pulumi-alicloud 3.58.0a1719956927__py3-none-any.whl → 3.59.0__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/adb/resource_group.py +115 -119
- pulumi_alicloud/alb/__init__.py +1 -0
- pulumi_alicloud/alb/load_balancer_security_group_attachment.py +327 -0
- pulumi_alicloud/cen/__init__.py +1 -0
- pulumi_alicloud/cen/transit_router_ecr_attachment.py +584 -0
- pulumi_alicloud/clickhouse/get_regions.py +2 -2
- pulumi_alicloud/cloudstoragegateway/gateway.py +69 -69
- pulumi_alicloud/cloudstoragegateway/gateway_cache_disk.py +150 -27
- pulumi_alicloud/ddos/__init__.py +1 -0
- pulumi_alicloud/ddos/_inputs.py +712 -0
- pulumi_alicloud/ddos/bgp_policy.py +343 -0
- pulumi_alicloud/ddos/outputs.py +666 -0
- pulumi_alicloud/dfs/file_system.py +52 -19
- pulumi_alicloud/ecs/_inputs.py +132 -8
- pulumi_alicloud/ecs/ecs_launch_template.py +142 -1
- pulumi_alicloud/ecs/image.py +607 -121
- pulumi_alicloud/ecs/launch_template.py +103 -1
- pulumi_alicloud/ecs/outputs.py +131 -8
- pulumi_alicloud/emrv2/_inputs.py +490 -0
- pulumi_alicloud/emrv2/cluster.py +14 -14
- pulumi_alicloud/emrv2/outputs.py +500 -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/eci_scaling_configuration.py +94 -0
- pulumi_alicloud/ess/scaling_group.py +94 -0
- pulumi_alicloud/ga/accelerator.py +47 -0
- pulumi_alicloud/ga/acl.py +47 -0
- pulumi_alicloud/ga/bandwidth_package.py +57 -12
- pulumi_alicloud/ga/bandwidth_package_attachment.py +34 -34
- pulumi_alicloud/ga/basic_accelerator.py +55 -8
- pulumi_alicloud/ga/listener.py +122 -0
- pulumi_alicloud/gpdb/__init__.py +4 -0
- pulumi_alicloud/gpdb/external_data_service.py +485 -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/kvstore/instance.py +101 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/redis/tair_instance.py +161 -67
- {pulumi_alicloud-3.58.0a1719956927.dist-info → pulumi_alicloud-3.59.0.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.58.0a1719956927.dist-info → pulumi_alicloud-3.59.0.dist-info}/RECORD +46 -37
- {pulumi_alicloud-3.58.0a1719956927.dist-info → pulumi_alicloud-3.59.0.dist-info}/WHEEL +1 -1
- {pulumi_alicloud-3.58.0a1719956927.dist-info → pulumi_alicloud-3.59.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,458 @@
|
|
|
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__ = ['NatGatewayArgs', 'NatGateway']
|
|
13
|
+
|
|
14
|
+
@pulumi.input_type
|
|
15
|
+
class NatGatewayArgs:
|
|
16
|
+
def __init__(__self__, *,
|
|
17
|
+
ens_region_id: pulumi.Input[str],
|
|
18
|
+
network_id: pulumi.Input[str],
|
|
19
|
+
vswitch_id: pulumi.Input[str],
|
|
20
|
+
instance_type: Optional[pulumi.Input[str]] = None,
|
|
21
|
+
nat_name: Optional[pulumi.Input[str]] = None):
|
|
22
|
+
"""
|
|
23
|
+
The set of arguments for constructing a NatGateway resource.
|
|
24
|
+
:param pulumi.Input[str] ens_region_id: The ID of the ENS node.
|
|
25
|
+
:param pulumi.Input[str] network_id: The network ID.
|
|
26
|
+
:param pulumi.Input[str] vswitch_id: The vSwitch ID.
|
|
27
|
+
:param pulumi.Input[str] instance_type: NAT specifications. Value: `enat.default`.
|
|
28
|
+
:param pulumi.Input[str] nat_name: The name of the NAT gateway. The length is 1 to 128 characters, but it cannot start with 'http:// 'or 'https.
|
|
29
|
+
"""
|
|
30
|
+
pulumi.set(__self__, "ens_region_id", ens_region_id)
|
|
31
|
+
pulumi.set(__self__, "network_id", network_id)
|
|
32
|
+
pulumi.set(__self__, "vswitch_id", vswitch_id)
|
|
33
|
+
if instance_type is not None:
|
|
34
|
+
pulumi.set(__self__, "instance_type", instance_type)
|
|
35
|
+
if nat_name is not None:
|
|
36
|
+
pulumi.set(__self__, "nat_name", nat_name)
|
|
37
|
+
|
|
38
|
+
@property
|
|
39
|
+
@pulumi.getter(name="ensRegionId")
|
|
40
|
+
def ens_region_id(self) -> pulumi.Input[str]:
|
|
41
|
+
"""
|
|
42
|
+
The ID of the ENS node.
|
|
43
|
+
"""
|
|
44
|
+
return pulumi.get(self, "ens_region_id")
|
|
45
|
+
|
|
46
|
+
@ens_region_id.setter
|
|
47
|
+
def ens_region_id(self, value: pulumi.Input[str]):
|
|
48
|
+
pulumi.set(self, "ens_region_id", value)
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
@pulumi.getter(name="networkId")
|
|
52
|
+
def network_id(self) -> pulumi.Input[str]:
|
|
53
|
+
"""
|
|
54
|
+
The network ID.
|
|
55
|
+
"""
|
|
56
|
+
return pulumi.get(self, "network_id")
|
|
57
|
+
|
|
58
|
+
@network_id.setter
|
|
59
|
+
def network_id(self, value: pulumi.Input[str]):
|
|
60
|
+
pulumi.set(self, "network_id", value)
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
@pulumi.getter(name="vswitchId")
|
|
64
|
+
def vswitch_id(self) -> pulumi.Input[str]:
|
|
65
|
+
"""
|
|
66
|
+
The vSwitch ID.
|
|
67
|
+
"""
|
|
68
|
+
return pulumi.get(self, "vswitch_id")
|
|
69
|
+
|
|
70
|
+
@vswitch_id.setter
|
|
71
|
+
def vswitch_id(self, value: pulumi.Input[str]):
|
|
72
|
+
pulumi.set(self, "vswitch_id", value)
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
@pulumi.getter(name="instanceType")
|
|
76
|
+
def instance_type(self) -> Optional[pulumi.Input[str]]:
|
|
77
|
+
"""
|
|
78
|
+
NAT specifications. Value: `enat.default`.
|
|
79
|
+
"""
|
|
80
|
+
return pulumi.get(self, "instance_type")
|
|
81
|
+
|
|
82
|
+
@instance_type.setter
|
|
83
|
+
def instance_type(self, value: Optional[pulumi.Input[str]]):
|
|
84
|
+
pulumi.set(self, "instance_type", value)
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
@pulumi.getter(name="natName")
|
|
88
|
+
def nat_name(self) -> Optional[pulumi.Input[str]]:
|
|
89
|
+
"""
|
|
90
|
+
The name of the NAT gateway. The length is 1 to 128 characters, but it cannot start with 'http:// 'or 'https.
|
|
91
|
+
"""
|
|
92
|
+
return pulumi.get(self, "nat_name")
|
|
93
|
+
|
|
94
|
+
@nat_name.setter
|
|
95
|
+
def nat_name(self, value: Optional[pulumi.Input[str]]):
|
|
96
|
+
pulumi.set(self, "nat_name", value)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
@pulumi.input_type
|
|
100
|
+
class _NatGatewayState:
|
|
101
|
+
def __init__(__self__, *,
|
|
102
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
103
|
+
ens_region_id: Optional[pulumi.Input[str]] = None,
|
|
104
|
+
instance_type: Optional[pulumi.Input[str]] = None,
|
|
105
|
+
nat_name: Optional[pulumi.Input[str]] = None,
|
|
106
|
+
network_id: Optional[pulumi.Input[str]] = None,
|
|
107
|
+
vswitch_id: Optional[pulumi.Input[str]] = None):
|
|
108
|
+
"""
|
|
109
|
+
Input properties used for looking up and filtering NatGateway resources.
|
|
110
|
+
:param pulumi.Input[str] create_time: Creation time. UTC time, in the format of YYYY-MM-DDThh:mm:ssZ.
|
|
111
|
+
:param pulumi.Input[str] ens_region_id: The ID of the ENS node.
|
|
112
|
+
:param pulumi.Input[str] instance_type: NAT specifications. Value: `enat.default`.
|
|
113
|
+
:param pulumi.Input[str] nat_name: The name of the NAT gateway. The length is 1 to 128 characters, but it cannot start with 'http:// 'or 'https.
|
|
114
|
+
:param pulumi.Input[str] network_id: The network ID.
|
|
115
|
+
:param pulumi.Input[str] vswitch_id: The vSwitch ID.
|
|
116
|
+
"""
|
|
117
|
+
if create_time is not None:
|
|
118
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
119
|
+
if ens_region_id is not None:
|
|
120
|
+
pulumi.set(__self__, "ens_region_id", ens_region_id)
|
|
121
|
+
if instance_type is not None:
|
|
122
|
+
pulumi.set(__self__, "instance_type", instance_type)
|
|
123
|
+
if nat_name is not None:
|
|
124
|
+
pulumi.set(__self__, "nat_name", nat_name)
|
|
125
|
+
if network_id is not None:
|
|
126
|
+
pulumi.set(__self__, "network_id", network_id)
|
|
127
|
+
if vswitch_id is not None:
|
|
128
|
+
pulumi.set(__self__, "vswitch_id", vswitch_id)
|
|
129
|
+
|
|
130
|
+
@property
|
|
131
|
+
@pulumi.getter(name="createTime")
|
|
132
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
|
133
|
+
"""
|
|
134
|
+
Creation time. UTC time, in the format of YYYY-MM-DDThh:mm:ssZ.
|
|
135
|
+
"""
|
|
136
|
+
return pulumi.get(self, "create_time")
|
|
137
|
+
|
|
138
|
+
@create_time.setter
|
|
139
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
|
140
|
+
pulumi.set(self, "create_time", value)
|
|
141
|
+
|
|
142
|
+
@property
|
|
143
|
+
@pulumi.getter(name="ensRegionId")
|
|
144
|
+
def ens_region_id(self) -> Optional[pulumi.Input[str]]:
|
|
145
|
+
"""
|
|
146
|
+
The ID of the ENS node.
|
|
147
|
+
"""
|
|
148
|
+
return pulumi.get(self, "ens_region_id")
|
|
149
|
+
|
|
150
|
+
@ens_region_id.setter
|
|
151
|
+
def ens_region_id(self, value: Optional[pulumi.Input[str]]):
|
|
152
|
+
pulumi.set(self, "ens_region_id", value)
|
|
153
|
+
|
|
154
|
+
@property
|
|
155
|
+
@pulumi.getter(name="instanceType")
|
|
156
|
+
def instance_type(self) -> Optional[pulumi.Input[str]]:
|
|
157
|
+
"""
|
|
158
|
+
NAT specifications. Value: `enat.default`.
|
|
159
|
+
"""
|
|
160
|
+
return pulumi.get(self, "instance_type")
|
|
161
|
+
|
|
162
|
+
@instance_type.setter
|
|
163
|
+
def instance_type(self, value: Optional[pulumi.Input[str]]):
|
|
164
|
+
pulumi.set(self, "instance_type", value)
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
@pulumi.getter(name="natName")
|
|
168
|
+
def nat_name(self) -> Optional[pulumi.Input[str]]:
|
|
169
|
+
"""
|
|
170
|
+
The name of the NAT gateway. The length is 1 to 128 characters, but it cannot start with 'http:// 'or 'https.
|
|
171
|
+
"""
|
|
172
|
+
return pulumi.get(self, "nat_name")
|
|
173
|
+
|
|
174
|
+
@nat_name.setter
|
|
175
|
+
def nat_name(self, value: Optional[pulumi.Input[str]]):
|
|
176
|
+
pulumi.set(self, "nat_name", value)
|
|
177
|
+
|
|
178
|
+
@property
|
|
179
|
+
@pulumi.getter(name="networkId")
|
|
180
|
+
def network_id(self) -> Optional[pulumi.Input[str]]:
|
|
181
|
+
"""
|
|
182
|
+
The network ID.
|
|
183
|
+
"""
|
|
184
|
+
return pulumi.get(self, "network_id")
|
|
185
|
+
|
|
186
|
+
@network_id.setter
|
|
187
|
+
def network_id(self, value: Optional[pulumi.Input[str]]):
|
|
188
|
+
pulumi.set(self, "network_id", value)
|
|
189
|
+
|
|
190
|
+
@property
|
|
191
|
+
@pulumi.getter(name="vswitchId")
|
|
192
|
+
def vswitch_id(self) -> Optional[pulumi.Input[str]]:
|
|
193
|
+
"""
|
|
194
|
+
The vSwitch ID.
|
|
195
|
+
"""
|
|
196
|
+
return pulumi.get(self, "vswitch_id")
|
|
197
|
+
|
|
198
|
+
@vswitch_id.setter
|
|
199
|
+
def vswitch_id(self, value: Optional[pulumi.Input[str]]):
|
|
200
|
+
pulumi.set(self, "vswitch_id", value)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
class NatGateway(pulumi.CustomResource):
|
|
204
|
+
@overload
|
|
205
|
+
def __init__(__self__,
|
|
206
|
+
resource_name: str,
|
|
207
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
208
|
+
ens_region_id: Optional[pulumi.Input[str]] = None,
|
|
209
|
+
instance_type: Optional[pulumi.Input[str]] = None,
|
|
210
|
+
nat_name: Optional[pulumi.Input[str]] = None,
|
|
211
|
+
network_id: Optional[pulumi.Input[str]] = None,
|
|
212
|
+
vswitch_id: Optional[pulumi.Input[str]] = None,
|
|
213
|
+
__props__=None):
|
|
214
|
+
"""
|
|
215
|
+
Provides a Ens Nat Gateway resource.
|
|
216
|
+
|
|
217
|
+
Nat gateway of ENS.
|
|
218
|
+
|
|
219
|
+
For information about Ens Nat Gateway and how to use it, see [What is Nat Gateway](https://www.alibabacloud.com/help/en/).
|
|
220
|
+
|
|
221
|
+
> **NOTE:** Available since v1.227.0.
|
|
222
|
+
|
|
223
|
+
## Example Usage
|
|
224
|
+
|
|
225
|
+
Basic Usage
|
|
226
|
+
|
|
227
|
+
```python
|
|
228
|
+
import pulumi
|
|
229
|
+
import pulumi_alicloud as alicloud
|
|
230
|
+
|
|
231
|
+
config = pulumi.Config()
|
|
232
|
+
name = config.get("name")
|
|
233
|
+
if name is None:
|
|
234
|
+
name = "terraform-example"
|
|
235
|
+
ens_region_id = config.get("ensRegionId")
|
|
236
|
+
if ens_region_id is None:
|
|
237
|
+
ens_region_id = "cn-chenzhou-telecom_unicom_cmcc"
|
|
238
|
+
default_obbr_l7 = alicloud.ens.Network("defaultObbrL7",
|
|
239
|
+
network_name=name,
|
|
240
|
+
description=name,
|
|
241
|
+
cidr_block="10.0.0.0/8",
|
|
242
|
+
ens_region_id=ens_region_id)
|
|
243
|
+
defaulte_fw783 = alicloud.ens.Vswitch("defaulteFw783",
|
|
244
|
+
cidr_block="10.0.8.0/24",
|
|
245
|
+
vswitch_name=name,
|
|
246
|
+
ens_region_id=default_obbr_l7.ens_region_id,
|
|
247
|
+
network_id=default_obbr_l7.id)
|
|
248
|
+
default = alicloud.ens.NatGateway("default",
|
|
249
|
+
vswitch_id=defaulte_fw783.id,
|
|
250
|
+
ens_region_id=defaulte_fw783.ens_region_id,
|
|
251
|
+
network_id=defaulte_fw783.network_id,
|
|
252
|
+
instance_type="enat.default",
|
|
253
|
+
nat_name=name)
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## Import
|
|
257
|
+
|
|
258
|
+
Ens Nat Gateway can be imported using the id, e.g.
|
|
259
|
+
|
|
260
|
+
```sh
|
|
261
|
+
$ pulumi import alicloud:ens/natGateway:NatGateway example <id>
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
:param str resource_name: The name of the resource.
|
|
265
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
266
|
+
:param pulumi.Input[str] ens_region_id: The ID of the ENS node.
|
|
267
|
+
:param pulumi.Input[str] instance_type: NAT specifications. Value: `enat.default`.
|
|
268
|
+
:param pulumi.Input[str] nat_name: The name of the NAT gateway. The length is 1 to 128 characters, but it cannot start with 'http:// 'or 'https.
|
|
269
|
+
:param pulumi.Input[str] network_id: The network ID.
|
|
270
|
+
:param pulumi.Input[str] vswitch_id: The vSwitch ID.
|
|
271
|
+
"""
|
|
272
|
+
...
|
|
273
|
+
@overload
|
|
274
|
+
def __init__(__self__,
|
|
275
|
+
resource_name: str,
|
|
276
|
+
args: NatGatewayArgs,
|
|
277
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
278
|
+
"""
|
|
279
|
+
Provides a Ens Nat Gateway resource.
|
|
280
|
+
|
|
281
|
+
Nat gateway of ENS.
|
|
282
|
+
|
|
283
|
+
For information about Ens Nat Gateway and how to use it, see [What is Nat Gateway](https://www.alibabacloud.com/help/en/).
|
|
284
|
+
|
|
285
|
+
> **NOTE:** Available since v1.227.0.
|
|
286
|
+
|
|
287
|
+
## Example Usage
|
|
288
|
+
|
|
289
|
+
Basic Usage
|
|
290
|
+
|
|
291
|
+
```python
|
|
292
|
+
import pulumi
|
|
293
|
+
import pulumi_alicloud as alicloud
|
|
294
|
+
|
|
295
|
+
config = pulumi.Config()
|
|
296
|
+
name = config.get("name")
|
|
297
|
+
if name is None:
|
|
298
|
+
name = "terraform-example"
|
|
299
|
+
ens_region_id = config.get("ensRegionId")
|
|
300
|
+
if ens_region_id is None:
|
|
301
|
+
ens_region_id = "cn-chenzhou-telecom_unicom_cmcc"
|
|
302
|
+
default_obbr_l7 = alicloud.ens.Network("defaultObbrL7",
|
|
303
|
+
network_name=name,
|
|
304
|
+
description=name,
|
|
305
|
+
cidr_block="10.0.0.0/8",
|
|
306
|
+
ens_region_id=ens_region_id)
|
|
307
|
+
defaulte_fw783 = alicloud.ens.Vswitch("defaulteFw783",
|
|
308
|
+
cidr_block="10.0.8.0/24",
|
|
309
|
+
vswitch_name=name,
|
|
310
|
+
ens_region_id=default_obbr_l7.ens_region_id,
|
|
311
|
+
network_id=default_obbr_l7.id)
|
|
312
|
+
default = alicloud.ens.NatGateway("default",
|
|
313
|
+
vswitch_id=defaulte_fw783.id,
|
|
314
|
+
ens_region_id=defaulte_fw783.ens_region_id,
|
|
315
|
+
network_id=defaulte_fw783.network_id,
|
|
316
|
+
instance_type="enat.default",
|
|
317
|
+
nat_name=name)
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
## Import
|
|
321
|
+
|
|
322
|
+
Ens Nat Gateway can be imported using the id, e.g.
|
|
323
|
+
|
|
324
|
+
```sh
|
|
325
|
+
$ pulumi import alicloud:ens/natGateway:NatGateway example <id>
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
:param str resource_name: The name of the resource.
|
|
329
|
+
:param NatGatewayArgs args: The arguments to use to populate this resource's properties.
|
|
330
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
331
|
+
"""
|
|
332
|
+
...
|
|
333
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
334
|
+
resource_args, opts = _utilities.get_resource_args_opts(NatGatewayArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
335
|
+
if resource_args is not None:
|
|
336
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
337
|
+
else:
|
|
338
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
339
|
+
|
|
340
|
+
def _internal_init(__self__,
|
|
341
|
+
resource_name: str,
|
|
342
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
343
|
+
ens_region_id: Optional[pulumi.Input[str]] = None,
|
|
344
|
+
instance_type: Optional[pulumi.Input[str]] = None,
|
|
345
|
+
nat_name: Optional[pulumi.Input[str]] = None,
|
|
346
|
+
network_id: Optional[pulumi.Input[str]] = None,
|
|
347
|
+
vswitch_id: Optional[pulumi.Input[str]] = None,
|
|
348
|
+
__props__=None):
|
|
349
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
350
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
351
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
352
|
+
if opts.id is None:
|
|
353
|
+
if __props__ is not None:
|
|
354
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
355
|
+
__props__ = NatGatewayArgs.__new__(NatGatewayArgs)
|
|
356
|
+
|
|
357
|
+
if ens_region_id is None and not opts.urn:
|
|
358
|
+
raise TypeError("Missing required property 'ens_region_id'")
|
|
359
|
+
__props__.__dict__["ens_region_id"] = ens_region_id
|
|
360
|
+
__props__.__dict__["instance_type"] = instance_type
|
|
361
|
+
__props__.__dict__["nat_name"] = nat_name
|
|
362
|
+
if network_id is None and not opts.urn:
|
|
363
|
+
raise TypeError("Missing required property 'network_id'")
|
|
364
|
+
__props__.__dict__["network_id"] = network_id
|
|
365
|
+
if vswitch_id is None and not opts.urn:
|
|
366
|
+
raise TypeError("Missing required property 'vswitch_id'")
|
|
367
|
+
__props__.__dict__["vswitch_id"] = vswitch_id
|
|
368
|
+
__props__.__dict__["create_time"] = None
|
|
369
|
+
super(NatGateway, __self__).__init__(
|
|
370
|
+
'alicloud:ens/natGateway:NatGateway',
|
|
371
|
+
resource_name,
|
|
372
|
+
__props__,
|
|
373
|
+
opts)
|
|
374
|
+
|
|
375
|
+
@staticmethod
|
|
376
|
+
def get(resource_name: str,
|
|
377
|
+
id: pulumi.Input[str],
|
|
378
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
379
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
380
|
+
ens_region_id: Optional[pulumi.Input[str]] = None,
|
|
381
|
+
instance_type: Optional[pulumi.Input[str]] = None,
|
|
382
|
+
nat_name: Optional[pulumi.Input[str]] = None,
|
|
383
|
+
network_id: Optional[pulumi.Input[str]] = None,
|
|
384
|
+
vswitch_id: Optional[pulumi.Input[str]] = None) -> 'NatGateway':
|
|
385
|
+
"""
|
|
386
|
+
Get an existing NatGateway resource's state with the given name, id, and optional extra
|
|
387
|
+
properties used to qualify the lookup.
|
|
388
|
+
|
|
389
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
390
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
391
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
392
|
+
:param pulumi.Input[str] create_time: Creation time. UTC time, in the format of YYYY-MM-DDThh:mm:ssZ.
|
|
393
|
+
:param pulumi.Input[str] ens_region_id: The ID of the ENS node.
|
|
394
|
+
:param pulumi.Input[str] instance_type: NAT specifications. Value: `enat.default`.
|
|
395
|
+
:param pulumi.Input[str] nat_name: The name of the NAT gateway. The length is 1 to 128 characters, but it cannot start with 'http:// 'or 'https.
|
|
396
|
+
:param pulumi.Input[str] network_id: The network ID.
|
|
397
|
+
:param pulumi.Input[str] vswitch_id: The vSwitch ID.
|
|
398
|
+
"""
|
|
399
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
400
|
+
|
|
401
|
+
__props__ = _NatGatewayState.__new__(_NatGatewayState)
|
|
402
|
+
|
|
403
|
+
__props__.__dict__["create_time"] = create_time
|
|
404
|
+
__props__.__dict__["ens_region_id"] = ens_region_id
|
|
405
|
+
__props__.__dict__["instance_type"] = instance_type
|
|
406
|
+
__props__.__dict__["nat_name"] = nat_name
|
|
407
|
+
__props__.__dict__["network_id"] = network_id
|
|
408
|
+
__props__.__dict__["vswitch_id"] = vswitch_id
|
|
409
|
+
return NatGateway(resource_name, opts=opts, __props__=__props__)
|
|
410
|
+
|
|
411
|
+
@property
|
|
412
|
+
@pulumi.getter(name="createTime")
|
|
413
|
+
def create_time(self) -> pulumi.Output[str]:
|
|
414
|
+
"""
|
|
415
|
+
Creation time. UTC time, in the format of YYYY-MM-DDThh:mm:ssZ.
|
|
416
|
+
"""
|
|
417
|
+
return pulumi.get(self, "create_time")
|
|
418
|
+
|
|
419
|
+
@property
|
|
420
|
+
@pulumi.getter(name="ensRegionId")
|
|
421
|
+
def ens_region_id(self) -> pulumi.Output[str]:
|
|
422
|
+
"""
|
|
423
|
+
The ID of the ENS node.
|
|
424
|
+
"""
|
|
425
|
+
return pulumi.get(self, "ens_region_id")
|
|
426
|
+
|
|
427
|
+
@property
|
|
428
|
+
@pulumi.getter(name="instanceType")
|
|
429
|
+
def instance_type(self) -> pulumi.Output[str]:
|
|
430
|
+
"""
|
|
431
|
+
NAT specifications. Value: `enat.default`.
|
|
432
|
+
"""
|
|
433
|
+
return pulumi.get(self, "instance_type")
|
|
434
|
+
|
|
435
|
+
@property
|
|
436
|
+
@pulumi.getter(name="natName")
|
|
437
|
+
def nat_name(self) -> pulumi.Output[Optional[str]]:
|
|
438
|
+
"""
|
|
439
|
+
The name of the NAT gateway. The length is 1 to 128 characters, but it cannot start with 'http:// 'or 'https.
|
|
440
|
+
"""
|
|
441
|
+
return pulumi.get(self, "nat_name")
|
|
442
|
+
|
|
443
|
+
@property
|
|
444
|
+
@pulumi.getter(name="networkId")
|
|
445
|
+
def network_id(self) -> pulumi.Output[str]:
|
|
446
|
+
"""
|
|
447
|
+
The network ID.
|
|
448
|
+
"""
|
|
449
|
+
return pulumi.get(self, "network_id")
|
|
450
|
+
|
|
451
|
+
@property
|
|
452
|
+
@pulumi.getter(name="vswitchId")
|
|
453
|
+
def vswitch_id(self) -> pulumi.Output[str]:
|
|
454
|
+
"""
|
|
455
|
+
The vSwitch ID.
|
|
456
|
+
"""
|
|
457
|
+
return pulumi.get(self, "vswitch_id")
|
|
458
|
+
|
|
@@ -25,6 +25,8 @@ class EciScalingConfigurationArgs:
|
|
|
25
25
|
container_group_name: Optional[pulumi.Input[str]] = None,
|
|
26
26
|
containers: Optional[pulumi.Input[Sequence[pulumi.Input['EciScalingConfigurationContainerArgs']]]] = None,
|
|
27
27
|
cpu: Optional[pulumi.Input[float]] = None,
|
|
28
|
+
cpu_options_core: Optional[pulumi.Input[int]] = None,
|
|
29
|
+
cpu_options_threads_per_core: Optional[pulumi.Input[int]] = None,
|
|
28
30
|
description: Optional[pulumi.Input[str]] = None,
|
|
29
31
|
dns_policy: Optional[pulumi.Input[str]] = None,
|
|
30
32
|
egress_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
@@ -65,6 +67,8 @@ class EciScalingConfigurationArgs:
|
|
|
65
67
|
English), starting with numbers, English lowercase letters , and can contain number, and hypens `-`.
|
|
66
68
|
:param pulumi.Input[Sequence[pulumi.Input['EciScalingConfigurationContainerArgs']]] containers: The list of containers. See `containers` below for details.
|
|
67
69
|
:param pulumi.Input[float] cpu: The amount of CPU resources allocated to the container group.
|
|
70
|
+
:param pulumi.Input[int] cpu_options_core: The number of physical CPU cores. You can specify this parameter for only specific instance types.
|
|
71
|
+
:param pulumi.Input[int] cpu_options_threads_per_core: The number of threads per core. You can specify this parameter for only specific instance types. If you set this parameter to 1, Hyper-Threading is disabled.
|
|
68
72
|
:param pulumi.Input[str] description: The description of data disk N. Valid values of N: 1 to 16. The description must be 2 to
|
|
69
73
|
256 characters in length and cannot start with http:// or https://.
|
|
70
74
|
:param pulumi.Input[str] dns_policy: dns policy of contain group.
|
|
@@ -122,6 +126,10 @@ class EciScalingConfigurationArgs:
|
|
|
122
126
|
pulumi.set(__self__, "containers", containers)
|
|
123
127
|
if cpu is not None:
|
|
124
128
|
pulumi.set(__self__, "cpu", cpu)
|
|
129
|
+
if cpu_options_core is not None:
|
|
130
|
+
pulumi.set(__self__, "cpu_options_core", cpu_options_core)
|
|
131
|
+
if cpu_options_threads_per_core is not None:
|
|
132
|
+
pulumi.set(__self__, "cpu_options_threads_per_core", cpu_options_threads_per_core)
|
|
125
133
|
if description is not None:
|
|
126
134
|
pulumi.set(__self__, "description", description)
|
|
127
135
|
if dns_policy is not None:
|
|
@@ -287,6 +295,30 @@ class EciScalingConfigurationArgs:
|
|
|
287
295
|
def cpu(self, value: Optional[pulumi.Input[float]]):
|
|
288
296
|
pulumi.set(self, "cpu", value)
|
|
289
297
|
|
|
298
|
+
@property
|
|
299
|
+
@pulumi.getter(name="cpuOptionsCore")
|
|
300
|
+
def cpu_options_core(self) -> Optional[pulumi.Input[int]]:
|
|
301
|
+
"""
|
|
302
|
+
The number of physical CPU cores. You can specify this parameter for only specific instance types.
|
|
303
|
+
"""
|
|
304
|
+
return pulumi.get(self, "cpu_options_core")
|
|
305
|
+
|
|
306
|
+
@cpu_options_core.setter
|
|
307
|
+
def cpu_options_core(self, value: Optional[pulumi.Input[int]]):
|
|
308
|
+
pulumi.set(self, "cpu_options_core", value)
|
|
309
|
+
|
|
310
|
+
@property
|
|
311
|
+
@pulumi.getter(name="cpuOptionsThreadsPerCore")
|
|
312
|
+
def cpu_options_threads_per_core(self) -> Optional[pulumi.Input[int]]:
|
|
313
|
+
"""
|
|
314
|
+
The number of threads per core. You can specify this parameter for only specific instance types. If you set this parameter to 1, Hyper-Threading is disabled.
|
|
315
|
+
"""
|
|
316
|
+
return pulumi.get(self, "cpu_options_threads_per_core")
|
|
317
|
+
|
|
318
|
+
@cpu_options_threads_per_core.setter
|
|
319
|
+
def cpu_options_threads_per_core(self, value: Optional[pulumi.Input[int]]):
|
|
320
|
+
pulumi.set(self, "cpu_options_threads_per_core", value)
|
|
321
|
+
|
|
290
322
|
@property
|
|
291
323
|
@pulumi.getter
|
|
292
324
|
def description(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -635,6 +667,8 @@ class _EciScalingConfigurationState:
|
|
|
635
667
|
container_group_name: Optional[pulumi.Input[str]] = None,
|
|
636
668
|
containers: Optional[pulumi.Input[Sequence[pulumi.Input['EciScalingConfigurationContainerArgs']]]] = None,
|
|
637
669
|
cpu: Optional[pulumi.Input[float]] = None,
|
|
670
|
+
cpu_options_core: Optional[pulumi.Input[int]] = None,
|
|
671
|
+
cpu_options_threads_per_core: Optional[pulumi.Input[int]] = None,
|
|
638
672
|
description: Optional[pulumi.Input[str]] = None,
|
|
639
673
|
dns_policy: Optional[pulumi.Input[str]] = None,
|
|
640
674
|
egress_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
@@ -675,6 +709,8 @@ class _EciScalingConfigurationState:
|
|
|
675
709
|
English), starting with numbers, English lowercase letters , and can contain number, and hypens `-`.
|
|
676
710
|
:param pulumi.Input[Sequence[pulumi.Input['EciScalingConfigurationContainerArgs']]] containers: The list of containers. See `containers` below for details.
|
|
677
711
|
:param pulumi.Input[float] cpu: The amount of CPU resources allocated to the container group.
|
|
712
|
+
:param pulumi.Input[int] cpu_options_core: The number of physical CPU cores. You can specify this parameter for only specific instance types.
|
|
713
|
+
:param pulumi.Input[int] cpu_options_threads_per_core: The number of threads per core. You can specify this parameter for only specific instance types. If you set this parameter to 1, Hyper-Threading is disabled.
|
|
678
714
|
:param pulumi.Input[str] description: The description of data disk N. Valid values of N: 1 to 16. The description must be 2 to
|
|
679
715
|
256 characters in length and cannot start with http:// or https://.
|
|
680
716
|
:param pulumi.Input[str] dns_policy: dns policy of contain group.
|
|
@@ -732,6 +768,10 @@ class _EciScalingConfigurationState:
|
|
|
732
768
|
pulumi.set(__self__, "containers", containers)
|
|
733
769
|
if cpu is not None:
|
|
734
770
|
pulumi.set(__self__, "cpu", cpu)
|
|
771
|
+
if cpu_options_core is not None:
|
|
772
|
+
pulumi.set(__self__, "cpu_options_core", cpu_options_core)
|
|
773
|
+
if cpu_options_threads_per_core is not None:
|
|
774
|
+
pulumi.set(__self__, "cpu_options_threads_per_core", cpu_options_threads_per_core)
|
|
735
775
|
if description is not None:
|
|
736
776
|
pulumi.set(__self__, "description", description)
|
|
737
777
|
if dns_policy is not None:
|
|
@@ -887,6 +927,30 @@ class _EciScalingConfigurationState:
|
|
|
887
927
|
def cpu(self, value: Optional[pulumi.Input[float]]):
|
|
888
928
|
pulumi.set(self, "cpu", value)
|
|
889
929
|
|
|
930
|
+
@property
|
|
931
|
+
@pulumi.getter(name="cpuOptionsCore")
|
|
932
|
+
def cpu_options_core(self) -> Optional[pulumi.Input[int]]:
|
|
933
|
+
"""
|
|
934
|
+
The number of physical CPU cores. You can specify this parameter for only specific instance types.
|
|
935
|
+
"""
|
|
936
|
+
return pulumi.get(self, "cpu_options_core")
|
|
937
|
+
|
|
938
|
+
@cpu_options_core.setter
|
|
939
|
+
def cpu_options_core(self, value: Optional[pulumi.Input[int]]):
|
|
940
|
+
pulumi.set(self, "cpu_options_core", value)
|
|
941
|
+
|
|
942
|
+
@property
|
|
943
|
+
@pulumi.getter(name="cpuOptionsThreadsPerCore")
|
|
944
|
+
def cpu_options_threads_per_core(self) -> Optional[pulumi.Input[int]]:
|
|
945
|
+
"""
|
|
946
|
+
The number of threads per core. You can specify this parameter for only specific instance types. If you set this parameter to 1, Hyper-Threading is disabled.
|
|
947
|
+
"""
|
|
948
|
+
return pulumi.get(self, "cpu_options_threads_per_core")
|
|
949
|
+
|
|
950
|
+
@cpu_options_threads_per_core.setter
|
|
951
|
+
def cpu_options_threads_per_core(self, value: Optional[pulumi.Input[int]]):
|
|
952
|
+
pulumi.set(self, "cpu_options_threads_per_core", value)
|
|
953
|
+
|
|
890
954
|
@property
|
|
891
955
|
@pulumi.getter
|
|
892
956
|
def description(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -1249,6 +1313,8 @@ class EciScalingConfiguration(pulumi.CustomResource):
|
|
|
1249
1313
|
container_group_name: Optional[pulumi.Input[str]] = None,
|
|
1250
1314
|
containers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EciScalingConfigurationContainerArgs']]]]] = None,
|
|
1251
1315
|
cpu: Optional[pulumi.Input[float]] = None,
|
|
1316
|
+
cpu_options_core: Optional[pulumi.Input[int]] = None,
|
|
1317
|
+
cpu_options_threads_per_core: Optional[pulumi.Input[int]] = None,
|
|
1252
1318
|
description: Optional[pulumi.Input[str]] = None,
|
|
1253
1319
|
dns_policy: Optional[pulumi.Input[str]] = None,
|
|
1254
1320
|
egress_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
@@ -1359,6 +1425,8 @@ class EciScalingConfiguration(pulumi.CustomResource):
|
|
|
1359
1425
|
English), starting with numbers, English lowercase letters , and can contain number, and hypens `-`.
|
|
1360
1426
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EciScalingConfigurationContainerArgs']]]] containers: The list of containers. See `containers` below for details.
|
|
1361
1427
|
:param pulumi.Input[float] cpu: The amount of CPU resources allocated to the container group.
|
|
1428
|
+
:param pulumi.Input[int] cpu_options_core: The number of physical CPU cores. You can specify this parameter for only specific instance types.
|
|
1429
|
+
:param pulumi.Input[int] cpu_options_threads_per_core: The number of threads per core. You can specify this parameter for only specific instance types. If you set this parameter to 1, Hyper-Threading is disabled.
|
|
1362
1430
|
:param pulumi.Input[str] description: The description of data disk N. Valid values of N: 1 to 16. The description must be 2 to
|
|
1363
1431
|
256 characters in length and cannot start with http:// or https://.
|
|
1364
1432
|
:param pulumi.Input[str] dns_policy: dns policy of contain group.
|
|
@@ -1498,6 +1566,8 @@ class EciScalingConfiguration(pulumi.CustomResource):
|
|
|
1498
1566
|
container_group_name: Optional[pulumi.Input[str]] = None,
|
|
1499
1567
|
containers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EciScalingConfigurationContainerArgs']]]]] = None,
|
|
1500
1568
|
cpu: Optional[pulumi.Input[float]] = None,
|
|
1569
|
+
cpu_options_core: Optional[pulumi.Input[int]] = None,
|
|
1570
|
+
cpu_options_threads_per_core: Optional[pulumi.Input[int]] = None,
|
|
1501
1571
|
description: Optional[pulumi.Input[str]] = None,
|
|
1502
1572
|
dns_policy: Optional[pulumi.Input[str]] = None,
|
|
1503
1573
|
egress_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
@@ -1543,6 +1613,8 @@ class EciScalingConfiguration(pulumi.CustomResource):
|
|
|
1543
1613
|
__props__.__dict__["container_group_name"] = container_group_name
|
|
1544
1614
|
__props__.__dict__["containers"] = containers
|
|
1545
1615
|
__props__.__dict__["cpu"] = cpu
|
|
1616
|
+
__props__.__dict__["cpu_options_core"] = cpu_options_core
|
|
1617
|
+
__props__.__dict__["cpu_options_threads_per_core"] = cpu_options_threads_per_core
|
|
1546
1618
|
__props__.__dict__["description"] = description
|
|
1547
1619
|
__props__.__dict__["dns_policy"] = dns_policy
|
|
1548
1620
|
__props__.__dict__["egress_bandwidth"] = egress_bandwidth
|
|
@@ -1591,6 +1663,8 @@ class EciScalingConfiguration(pulumi.CustomResource):
|
|
|
1591
1663
|
container_group_name: Optional[pulumi.Input[str]] = None,
|
|
1592
1664
|
containers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EciScalingConfigurationContainerArgs']]]]] = None,
|
|
1593
1665
|
cpu: Optional[pulumi.Input[float]] = None,
|
|
1666
|
+
cpu_options_core: Optional[pulumi.Input[int]] = None,
|
|
1667
|
+
cpu_options_threads_per_core: Optional[pulumi.Input[int]] = None,
|
|
1594
1668
|
description: Optional[pulumi.Input[str]] = None,
|
|
1595
1669
|
dns_policy: Optional[pulumi.Input[str]] = None,
|
|
1596
1670
|
egress_bandwidth: Optional[pulumi.Input[int]] = None,
|
|
@@ -1636,6 +1710,8 @@ class EciScalingConfiguration(pulumi.CustomResource):
|
|
|
1636
1710
|
English), starting with numbers, English lowercase letters , and can contain number, and hypens `-`.
|
|
1637
1711
|
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['EciScalingConfigurationContainerArgs']]]] containers: The list of containers. See `containers` below for details.
|
|
1638
1712
|
:param pulumi.Input[float] cpu: The amount of CPU resources allocated to the container group.
|
|
1713
|
+
:param pulumi.Input[int] cpu_options_core: The number of physical CPU cores. You can specify this parameter for only specific instance types.
|
|
1714
|
+
:param pulumi.Input[int] cpu_options_threads_per_core: The number of threads per core. You can specify this parameter for only specific instance types. If you set this parameter to 1, Hyper-Threading is disabled.
|
|
1639
1715
|
:param pulumi.Input[str] description: The description of data disk N. Valid values of N: 1 to 16. The description must be 2 to
|
|
1640
1716
|
256 characters in length and cannot start with http:// or https://.
|
|
1641
1717
|
:param pulumi.Input[str] dns_policy: dns policy of contain group.
|
|
@@ -1689,6 +1765,8 @@ class EciScalingConfiguration(pulumi.CustomResource):
|
|
|
1689
1765
|
__props__.__dict__["container_group_name"] = container_group_name
|
|
1690
1766
|
__props__.__dict__["containers"] = containers
|
|
1691
1767
|
__props__.__dict__["cpu"] = cpu
|
|
1768
|
+
__props__.__dict__["cpu_options_core"] = cpu_options_core
|
|
1769
|
+
__props__.__dict__["cpu_options_threads_per_core"] = cpu_options_threads_per_core
|
|
1692
1770
|
__props__.__dict__["description"] = description
|
|
1693
1771
|
__props__.__dict__["dns_policy"] = dns_policy
|
|
1694
1772
|
__props__.__dict__["egress_bandwidth"] = egress_bandwidth
|
|
@@ -1785,6 +1863,22 @@ class EciScalingConfiguration(pulumi.CustomResource):
|
|
|
1785
1863
|
"""
|
|
1786
1864
|
return pulumi.get(self, "cpu")
|
|
1787
1865
|
|
|
1866
|
+
@property
|
|
1867
|
+
@pulumi.getter(name="cpuOptionsCore")
|
|
1868
|
+
def cpu_options_core(self) -> pulumi.Output[Optional[int]]:
|
|
1869
|
+
"""
|
|
1870
|
+
The number of physical CPU cores. You can specify this parameter for only specific instance types.
|
|
1871
|
+
"""
|
|
1872
|
+
return pulumi.get(self, "cpu_options_core")
|
|
1873
|
+
|
|
1874
|
+
@property
|
|
1875
|
+
@pulumi.getter(name="cpuOptionsThreadsPerCore")
|
|
1876
|
+
def cpu_options_threads_per_core(self) -> pulumi.Output[Optional[int]]:
|
|
1877
|
+
"""
|
|
1878
|
+
The number of threads per core. You can specify this parameter for only specific instance types. If you set this parameter to 1, Hyper-Threading is disabled.
|
|
1879
|
+
"""
|
|
1880
|
+
return pulumi.get(self, "cpu_options_threads_per_core")
|
|
1881
|
+
|
|
1788
1882
|
@property
|
|
1789
1883
|
@pulumi.getter
|
|
1790
1884
|
def description(self) -> pulumi.Output[Optional[str]]:
|