pulumi-alicloud 3.67.0__py3-none-any.whl → 3.67.0a1731734345__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pulumi-alicloud might be problematic. Click here for more details.
- pulumi_alicloud/__init__.py +0 -16
- pulumi_alicloud/cen/flow_log.py +58 -373
- pulumi_alicloud/cen/transit_router_ecr_attachment.py +4 -4
- pulumi_alicloud/cr/registry_enterprise_instance.py +90 -474
- pulumi_alicloud/ecs/ecs_image_component.py +48 -221
- pulumi_alicloud/ess/_inputs.py +0 -94
- pulumi_alicloud/ess/eci_scaling_configuration.py +14 -42
- pulumi_alicloud/ess/outputs.py +0 -79
- pulumi_alicloud/ess/scaling_configuration.py +0 -47
- pulumi_alicloud/expressconnect/router_vbr_child_instance.py +25 -86
- pulumi_alicloud/kms/key.py +1 -1
- pulumi_alicloud/kvstore/account.py +24 -24
- pulumi_alicloud/kvstore/audit_log_config.py +4 -4
- pulumi_alicloud/kvstore/backup_policy.py +2 -2
- pulumi_alicloud/kvstore/connection.py +8 -8
- pulumi_alicloud/kvstore/get_accounts.py +4 -4
- pulumi_alicloud/kvstore/get_connections.py +5 -5
- pulumi_alicloud/kvstore/get_instance_classes.py +12 -12
- pulumi_alicloud/kvstore/get_instance_engines.py +7 -7
- pulumi_alicloud/kvstore/get_permission.py +10 -10
- pulumi_alicloud/kvstore/get_zones.py +4 -4
- pulumi_alicloud/kvstore/outputs.py +2 -2
- pulumi_alicloud/mongodb/instance.py +0 -47
- pulumi_alicloud/mongodb/sharding_instance.py +0 -47
- pulumi_alicloud/polardb/cluster.py +7 -7
- pulumi_alicloud/privatelink/vpc_endpoint_service.py +91 -42
- pulumi_alicloud/privatelink/vpc_endpoint_service_connection.py +23 -27
- pulumi_alicloud/privatelink/vpc_endpoint_service_resource.py +37 -34
- pulumi_alicloud/privatelink/vpc_endpoint_zone.py +0 -28
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/rds/__init__.py +0 -2
- pulumi_alicloud/rds/_inputs.py +0 -146
- pulumi_alicloud/rds/outputs.py +0 -105
- pulumi_alicloud/redis/tair_instance.py +1 -76
- pulumi_alicloud/vpc/_inputs.py +0 -54
- pulumi_alicloud/vpc/nat_gateway.py +14 -175
- pulumi_alicloud/vpc/outputs.py +0 -51
- pulumi_alicloud/vpn/gateway_vco_route.py +21 -68
- {pulumi_alicloud-3.67.0.dist-info → pulumi_alicloud-3.67.0a1731734345.dist-info}/METADATA +5 -5
- {pulumi_alicloud-3.67.0.dist-info → pulumi_alicloud-3.67.0a1731734345.dist-info}/RECORD +42 -44
- {pulumi_alicloud-3.67.0.dist-info → pulumi_alicloud-3.67.0a1731734345.dist-info}/WHEEL +1 -1
- pulumi_alicloud/rds/custom.py +0 -1630
- pulumi_alicloud/rds/custom_deployment_set.py +0 -525
- {pulumi_alicloud-3.67.0.dist-info → pulumi_alicloud-3.67.0a1731734345.dist-info}/top_level.txt +0 -0
|
@@ -13,8 +13,6 @@ if sys.version_info >= (3, 11):
|
|
|
13
13
|
else:
|
|
14
14
|
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
15
|
from .. import _utilities
|
|
16
|
-
from . import outputs
|
|
17
|
-
from ._inputs import *
|
|
18
16
|
|
|
19
17
|
__all__ = ['NatGatewayArgs', 'NatGateway']
|
|
20
18
|
|
|
@@ -22,13 +20,11 @@ __all__ = ['NatGatewayArgs', 'NatGateway']
|
|
|
22
20
|
class NatGatewayArgs:
|
|
23
21
|
def __init__(__self__, *,
|
|
24
22
|
vpc_id: pulumi.Input[str],
|
|
25
|
-
access_mode: Optional[pulumi.Input['NatGatewayAccessModeArgs']] = None,
|
|
26
23
|
deletion_protection: Optional[pulumi.Input[bool]] = None,
|
|
27
24
|
description: Optional[pulumi.Input[str]] = None,
|
|
28
25
|
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
29
26
|
eip_bind_mode: Optional[pulumi.Input[str]] = None,
|
|
30
27
|
force: Optional[pulumi.Input[bool]] = None,
|
|
31
|
-
icmp_reply_enabled: Optional[pulumi.Input[bool]] = None,
|
|
32
28
|
instance_charge_type: Optional[pulumi.Input[str]] = None,
|
|
33
29
|
internet_charge_type: Optional[pulumi.Input[str]] = None,
|
|
34
30
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -37,14 +33,12 @@ class NatGatewayArgs:
|
|
|
37
33
|
network_type: Optional[pulumi.Input[str]] = None,
|
|
38
34
|
payment_type: Optional[pulumi.Input[str]] = None,
|
|
39
35
|
period: Optional[pulumi.Input[int]] = None,
|
|
40
|
-
private_link_enabled: Optional[pulumi.Input[bool]] = None,
|
|
41
36
|
specification: Optional[pulumi.Input[str]] = None,
|
|
42
37
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
43
38
|
vswitch_id: Optional[pulumi.Input[str]] = None):
|
|
44
39
|
"""
|
|
45
40
|
The set of arguments for constructing a NatGateway resource.
|
|
46
41
|
:param pulumi.Input[str] vpc_id: The VPC ID.
|
|
47
|
-
:param pulumi.Input['NatGatewayAccessModeArgs'] access_mode: The access mode for reverse access to the VPC NAT gateway. See `access_mode` below.
|
|
48
42
|
:param pulumi.Input[bool] deletion_protection: Whether enable the deletion protection or not. Default value: `false`.
|
|
49
43
|
- true: Enable deletion protection.
|
|
50
44
|
- false: Disable deletion protection.
|
|
@@ -54,24 +48,20 @@ class NatGatewayArgs:
|
|
|
54
48
|
- `MULTI_BINDED`: Multi EIP network card visible mode.
|
|
55
49
|
- `NAT`: EIP normal mode, compatible with IPv4 gateway.
|
|
56
50
|
:param pulumi.Input[bool] force: Specifies whether to forcefully delete the NAT gateway.
|
|
57
|
-
:param pulumi.Input[bool] icmp_reply_enabled: Specifies whether to enable ICMP retrieval. Default value: `true`. Valid values:
|
|
58
51
|
:param pulumi.Input[str] instance_charge_type: Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.
|
|
59
|
-
:param pulumi.Input[str] internet_charge_type: The internet charge type. Valid values `PayByLcu`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From
|
|
52
|
+
:param pulumi.Input[str] internet_charge_type: The internet charge type. Valid values `PayByLcu` and `PayBySpec`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From 1.137.0+, The `PayBySpec` has been deprecated.
|
|
60
53
|
:param pulumi.Input[str] name: Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.
|
|
61
54
|
:param pulumi.Input[str] nat_gateway_name: Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.
|
|
62
|
-
:param pulumi.Input[str] nat_type: The type of NAT gateway. Valid values: `Enhanced`. **NOTE:** From
|
|
55
|
+
:param pulumi.Input[str] nat_type: The type of NAT gateway. Valid values: `Normal` and `Enhanced`. **NOTE:** From 1.137.0+, The `Normal` has been deprecated.
|
|
63
56
|
:param pulumi.Input[str] network_type: Indicates the type of the created NAT gateway. Valid values `internet` and `intranet`. `internet`: Internet NAT Gateway. `intranet`: VPC NAT Gateway.
|
|
64
57
|
:param pulumi.Input[str] payment_type: The billing method of the NAT gateway. Valid values are `PayAsYouGo` and `Subscription`. Default to `PayAsYouGo`.
|
|
65
58
|
:param pulumi.Input[int] period: The duration that you will buy the resource, in month. It is valid when `payment_type` is `Subscription`. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. **NOTE:** International station only supports `Subscription`.
|
|
66
59
|
> **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
|
|
67
|
-
:param pulumi.Input[bool] private_link_enabled: Specifies whether to enable PrivateLink. Default value: `false`. Valid values:
|
|
68
60
|
:param pulumi.Input[str] specification: The specification of the nat gateway. Valid values are `Small`, `Middle` and `Large`. Effective when `internet_charge_type` is `PayBySpec` and `network_type` is `internet`. Details refer to [Nat Gateway Specification](https://help.aliyun.com/document_detail/203500.html).
|
|
69
61
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tags of NAT gateway.
|
|
70
62
|
:param pulumi.Input[str] vswitch_id: The id of VSwitch.
|
|
71
63
|
"""
|
|
72
64
|
pulumi.set(__self__, "vpc_id", vpc_id)
|
|
73
|
-
if access_mode is not None:
|
|
74
|
-
pulumi.set(__self__, "access_mode", access_mode)
|
|
75
65
|
if deletion_protection is not None:
|
|
76
66
|
pulumi.set(__self__, "deletion_protection", deletion_protection)
|
|
77
67
|
if description is not None:
|
|
@@ -82,18 +72,10 @@ class NatGatewayArgs:
|
|
|
82
72
|
pulumi.set(__self__, "eip_bind_mode", eip_bind_mode)
|
|
83
73
|
if force is not None:
|
|
84
74
|
pulumi.set(__self__, "force", force)
|
|
85
|
-
if icmp_reply_enabled is not None:
|
|
86
|
-
pulumi.set(__self__, "icmp_reply_enabled", icmp_reply_enabled)
|
|
87
|
-
if instance_charge_type is not None:
|
|
88
|
-
warnings.warn("""Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.""", DeprecationWarning)
|
|
89
|
-
pulumi.log.warn("""instance_charge_type is deprecated: Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.""")
|
|
90
75
|
if instance_charge_type is not None:
|
|
91
76
|
pulumi.set(__self__, "instance_charge_type", instance_charge_type)
|
|
92
77
|
if internet_charge_type is not None:
|
|
93
78
|
pulumi.set(__self__, "internet_charge_type", internet_charge_type)
|
|
94
|
-
if name is not None:
|
|
95
|
-
warnings.warn("""Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.""", DeprecationWarning)
|
|
96
|
-
pulumi.log.warn("""name is deprecated: Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.""")
|
|
97
79
|
if name is not None:
|
|
98
80
|
pulumi.set(__self__, "name", name)
|
|
99
81
|
if nat_gateway_name is not None:
|
|
@@ -106,8 +88,6 @@ class NatGatewayArgs:
|
|
|
106
88
|
pulumi.set(__self__, "payment_type", payment_type)
|
|
107
89
|
if period is not None:
|
|
108
90
|
pulumi.set(__self__, "period", period)
|
|
109
|
-
if private_link_enabled is not None:
|
|
110
|
-
pulumi.set(__self__, "private_link_enabled", private_link_enabled)
|
|
111
91
|
if specification is not None:
|
|
112
92
|
pulumi.set(__self__, "specification", specification)
|
|
113
93
|
if tags is not None:
|
|
@@ -127,18 +107,6 @@ class NatGatewayArgs:
|
|
|
127
107
|
def vpc_id(self, value: pulumi.Input[str]):
|
|
128
108
|
pulumi.set(self, "vpc_id", value)
|
|
129
109
|
|
|
130
|
-
@property
|
|
131
|
-
@pulumi.getter(name="accessMode")
|
|
132
|
-
def access_mode(self) -> Optional[pulumi.Input['NatGatewayAccessModeArgs']]:
|
|
133
|
-
"""
|
|
134
|
-
The access mode for reverse access to the VPC NAT gateway. See `access_mode` below.
|
|
135
|
-
"""
|
|
136
|
-
return pulumi.get(self, "access_mode")
|
|
137
|
-
|
|
138
|
-
@access_mode.setter
|
|
139
|
-
def access_mode(self, value: Optional[pulumi.Input['NatGatewayAccessModeArgs']]):
|
|
140
|
-
pulumi.set(self, "access_mode", value)
|
|
141
|
-
|
|
142
110
|
@property
|
|
143
111
|
@pulumi.getter(name="deletionProtection")
|
|
144
112
|
def deletion_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -203,21 +171,8 @@ class NatGatewayArgs:
|
|
|
203
171
|
def force(self, value: Optional[pulumi.Input[bool]]):
|
|
204
172
|
pulumi.set(self, "force", value)
|
|
205
173
|
|
|
206
|
-
@property
|
|
207
|
-
@pulumi.getter(name="icmpReplyEnabled")
|
|
208
|
-
def icmp_reply_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
209
|
-
"""
|
|
210
|
-
Specifies whether to enable ICMP retrieval. Default value: `true`. Valid values:
|
|
211
|
-
"""
|
|
212
|
-
return pulumi.get(self, "icmp_reply_enabled")
|
|
213
|
-
|
|
214
|
-
@icmp_reply_enabled.setter
|
|
215
|
-
def icmp_reply_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
216
|
-
pulumi.set(self, "icmp_reply_enabled", value)
|
|
217
|
-
|
|
218
174
|
@property
|
|
219
175
|
@pulumi.getter(name="instanceChargeType")
|
|
220
|
-
@_utilities.deprecated("""Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.""")
|
|
221
176
|
def instance_charge_type(self) -> Optional[pulumi.Input[str]]:
|
|
222
177
|
"""
|
|
223
178
|
Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.
|
|
@@ -232,7 +187,7 @@ class NatGatewayArgs:
|
|
|
232
187
|
@pulumi.getter(name="internetChargeType")
|
|
233
188
|
def internet_charge_type(self) -> Optional[pulumi.Input[str]]:
|
|
234
189
|
"""
|
|
235
|
-
The internet charge type. Valid values `PayByLcu`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From
|
|
190
|
+
The internet charge type. Valid values `PayByLcu` and `PayBySpec`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From 1.137.0+, The `PayBySpec` has been deprecated.
|
|
236
191
|
"""
|
|
237
192
|
return pulumi.get(self, "internet_charge_type")
|
|
238
193
|
|
|
@@ -242,7 +197,6 @@ class NatGatewayArgs:
|
|
|
242
197
|
|
|
243
198
|
@property
|
|
244
199
|
@pulumi.getter
|
|
245
|
-
@_utilities.deprecated("""Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.""")
|
|
246
200
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
247
201
|
"""
|
|
248
202
|
Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.
|
|
@@ -269,7 +223,7 @@ class NatGatewayArgs:
|
|
|
269
223
|
@pulumi.getter(name="natType")
|
|
270
224
|
def nat_type(self) -> Optional[pulumi.Input[str]]:
|
|
271
225
|
"""
|
|
272
|
-
The type of NAT gateway. Valid values: `Enhanced`. **NOTE:** From
|
|
226
|
+
The type of NAT gateway. Valid values: `Normal` and `Enhanced`. **NOTE:** From 1.137.0+, The `Normal` has been deprecated.
|
|
273
227
|
"""
|
|
274
228
|
return pulumi.get(self, "nat_type")
|
|
275
229
|
|
|
@@ -314,18 +268,6 @@ class NatGatewayArgs:
|
|
|
314
268
|
def period(self, value: Optional[pulumi.Input[int]]):
|
|
315
269
|
pulumi.set(self, "period", value)
|
|
316
270
|
|
|
317
|
-
@property
|
|
318
|
-
@pulumi.getter(name="privateLinkEnabled")
|
|
319
|
-
def private_link_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
320
|
-
"""
|
|
321
|
-
Specifies whether to enable PrivateLink. Default value: `false`. Valid values:
|
|
322
|
-
"""
|
|
323
|
-
return pulumi.get(self, "private_link_enabled")
|
|
324
|
-
|
|
325
|
-
@private_link_enabled.setter
|
|
326
|
-
def private_link_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
327
|
-
pulumi.set(self, "private_link_enabled", value)
|
|
328
|
-
|
|
329
271
|
@property
|
|
330
272
|
@pulumi.getter
|
|
331
273
|
def specification(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -366,14 +308,12 @@ class NatGatewayArgs:
|
|
|
366
308
|
@pulumi.input_type
|
|
367
309
|
class _NatGatewayState:
|
|
368
310
|
def __init__(__self__, *,
|
|
369
|
-
access_mode: Optional[pulumi.Input['NatGatewayAccessModeArgs']] = None,
|
|
370
311
|
deletion_protection: Optional[pulumi.Input[bool]] = None,
|
|
371
312
|
description: Optional[pulumi.Input[str]] = None,
|
|
372
313
|
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
373
314
|
eip_bind_mode: Optional[pulumi.Input[str]] = None,
|
|
374
315
|
force: Optional[pulumi.Input[bool]] = None,
|
|
375
316
|
forward_table_ids: Optional[pulumi.Input[str]] = None,
|
|
376
|
-
icmp_reply_enabled: Optional[pulumi.Input[bool]] = None,
|
|
377
317
|
instance_charge_type: Optional[pulumi.Input[str]] = None,
|
|
378
318
|
internet_charge_type: Optional[pulumi.Input[str]] = None,
|
|
379
319
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -382,7 +322,6 @@ class _NatGatewayState:
|
|
|
382
322
|
network_type: Optional[pulumi.Input[str]] = None,
|
|
383
323
|
payment_type: Optional[pulumi.Input[str]] = None,
|
|
384
324
|
period: Optional[pulumi.Input[int]] = None,
|
|
385
|
-
private_link_enabled: Optional[pulumi.Input[bool]] = None,
|
|
386
325
|
snat_table_ids: Optional[pulumi.Input[str]] = None,
|
|
387
326
|
specification: Optional[pulumi.Input[str]] = None,
|
|
388
327
|
status: Optional[pulumi.Input[str]] = None,
|
|
@@ -391,7 +330,6 @@ class _NatGatewayState:
|
|
|
391
330
|
vswitch_id: Optional[pulumi.Input[str]] = None):
|
|
392
331
|
"""
|
|
393
332
|
Input properties used for looking up and filtering NatGateway resources.
|
|
394
|
-
:param pulumi.Input['NatGatewayAccessModeArgs'] access_mode: The access mode for reverse access to the VPC NAT gateway. See `access_mode` below.
|
|
395
333
|
:param pulumi.Input[bool] deletion_protection: Whether enable the deletion protection or not. Default value: `false`.
|
|
396
334
|
- true: Enable deletion protection.
|
|
397
335
|
- false: Disable deletion protection.
|
|
@@ -402,17 +340,15 @@ class _NatGatewayState:
|
|
|
402
340
|
- `NAT`: EIP normal mode, compatible with IPv4 gateway.
|
|
403
341
|
:param pulumi.Input[bool] force: Specifies whether to forcefully delete the NAT gateway.
|
|
404
342
|
:param pulumi.Input[str] forward_table_ids: The nat gateway will auto create a forward item.
|
|
405
|
-
:param pulumi.Input[bool] icmp_reply_enabled: Specifies whether to enable ICMP retrieval. Default value: `true`. Valid values:
|
|
406
343
|
:param pulumi.Input[str] instance_charge_type: Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.
|
|
407
|
-
:param pulumi.Input[str] internet_charge_type: The internet charge type. Valid values `PayByLcu`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From
|
|
344
|
+
:param pulumi.Input[str] internet_charge_type: The internet charge type. Valid values `PayByLcu` and `PayBySpec`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From 1.137.0+, The `PayBySpec` has been deprecated.
|
|
408
345
|
:param pulumi.Input[str] name: Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.
|
|
409
346
|
:param pulumi.Input[str] nat_gateway_name: Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.
|
|
410
|
-
:param pulumi.Input[str] nat_type: The type of NAT gateway. Valid values: `Enhanced`. **NOTE:** From
|
|
347
|
+
:param pulumi.Input[str] nat_type: The type of NAT gateway. Valid values: `Normal` and `Enhanced`. **NOTE:** From 1.137.0+, The `Normal` has been deprecated.
|
|
411
348
|
:param pulumi.Input[str] network_type: Indicates the type of the created NAT gateway. Valid values `internet` and `intranet`. `internet`: Internet NAT Gateway. `intranet`: VPC NAT Gateway.
|
|
412
349
|
:param pulumi.Input[str] payment_type: The billing method of the NAT gateway. Valid values are `PayAsYouGo` and `Subscription`. Default to `PayAsYouGo`.
|
|
413
350
|
:param pulumi.Input[int] period: The duration that you will buy the resource, in month. It is valid when `payment_type` is `Subscription`. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. **NOTE:** International station only supports `Subscription`.
|
|
414
351
|
> **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
|
|
415
|
-
:param pulumi.Input[bool] private_link_enabled: Specifies whether to enable PrivateLink. Default value: `false`. Valid values:
|
|
416
352
|
:param pulumi.Input[str] snat_table_ids: The nat gateway will auto create a snat item.
|
|
417
353
|
:param pulumi.Input[str] specification: The specification of the nat gateway. Valid values are `Small`, `Middle` and `Large`. Effective when `internet_charge_type` is `PayBySpec` and `network_type` is `internet`. Details refer to [Nat Gateway Specification](https://help.aliyun.com/document_detail/203500.html).
|
|
418
354
|
:param pulumi.Input[str] status: (Available since v1.121.0) The status of NAT gateway.
|
|
@@ -420,8 +356,6 @@ class _NatGatewayState:
|
|
|
420
356
|
:param pulumi.Input[str] vpc_id: The VPC ID.
|
|
421
357
|
:param pulumi.Input[str] vswitch_id: The id of VSwitch.
|
|
422
358
|
"""
|
|
423
|
-
if access_mode is not None:
|
|
424
|
-
pulumi.set(__self__, "access_mode", access_mode)
|
|
425
359
|
if deletion_protection is not None:
|
|
426
360
|
pulumi.set(__self__, "deletion_protection", deletion_protection)
|
|
427
361
|
if description is not None:
|
|
@@ -434,18 +368,10 @@ class _NatGatewayState:
|
|
|
434
368
|
pulumi.set(__self__, "force", force)
|
|
435
369
|
if forward_table_ids is not None:
|
|
436
370
|
pulumi.set(__self__, "forward_table_ids", forward_table_ids)
|
|
437
|
-
if icmp_reply_enabled is not None:
|
|
438
|
-
pulumi.set(__self__, "icmp_reply_enabled", icmp_reply_enabled)
|
|
439
|
-
if instance_charge_type is not None:
|
|
440
|
-
warnings.warn("""Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.""", DeprecationWarning)
|
|
441
|
-
pulumi.log.warn("""instance_charge_type is deprecated: Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.""")
|
|
442
371
|
if instance_charge_type is not None:
|
|
443
372
|
pulumi.set(__self__, "instance_charge_type", instance_charge_type)
|
|
444
373
|
if internet_charge_type is not None:
|
|
445
374
|
pulumi.set(__self__, "internet_charge_type", internet_charge_type)
|
|
446
|
-
if name is not None:
|
|
447
|
-
warnings.warn("""Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.""", DeprecationWarning)
|
|
448
|
-
pulumi.log.warn("""name is deprecated: Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.""")
|
|
449
375
|
if name is not None:
|
|
450
376
|
pulumi.set(__self__, "name", name)
|
|
451
377
|
if nat_gateway_name is not None:
|
|
@@ -458,8 +384,6 @@ class _NatGatewayState:
|
|
|
458
384
|
pulumi.set(__self__, "payment_type", payment_type)
|
|
459
385
|
if period is not None:
|
|
460
386
|
pulumi.set(__self__, "period", period)
|
|
461
|
-
if private_link_enabled is not None:
|
|
462
|
-
pulumi.set(__self__, "private_link_enabled", private_link_enabled)
|
|
463
387
|
if snat_table_ids is not None:
|
|
464
388
|
pulumi.set(__self__, "snat_table_ids", snat_table_ids)
|
|
465
389
|
if specification is not None:
|
|
@@ -473,18 +397,6 @@ class _NatGatewayState:
|
|
|
473
397
|
if vswitch_id is not None:
|
|
474
398
|
pulumi.set(__self__, "vswitch_id", vswitch_id)
|
|
475
399
|
|
|
476
|
-
@property
|
|
477
|
-
@pulumi.getter(name="accessMode")
|
|
478
|
-
def access_mode(self) -> Optional[pulumi.Input['NatGatewayAccessModeArgs']]:
|
|
479
|
-
"""
|
|
480
|
-
The access mode for reverse access to the VPC NAT gateway. See `access_mode` below.
|
|
481
|
-
"""
|
|
482
|
-
return pulumi.get(self, "access_mode")
|
|
483
|
-
|
|
484
|
-
@access_mode.setter
|
|
485
|
-
def access_mode(self, value: Optional[pulumi.Input['NatGatewayAccessModeArgs']]):
|
|
486
|
-
pulumi.set(self, "access_mode", value)
|
|
487
|
-
|
|
488
400
|
@property
|
|
489
401
|
@pulumi.getter(name="deletionProtection")
|
|
490
402
|
def deletion_protection(self) -> Optional[pulumi.Input[bool]]:
|
|
@@ -561,21 +473,8 @@ class _NatGatewayState:
|
|
|
561
473
|
def forward_table_ids(self, value: Optional[pulumi.Input[str]]):
|
|
562
474
|
pulumi.set(self, "forward_table_ids", value)
|
|
563
475
|
|
|
564
|
-
@property
|
|
565
|
-
@pulumi.getter(name="icmpReplyEnabled")
|
|
566
|
-
def icmp_reply_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
567
|
-
"""
|
|
568
|
-
Specifies whether to enable ICMP retrieval. Default value: `true`. Valid values:
|
|
569
|
-
"""
|
|
570
|
-
return pulumi.get(self, "icmp_reply_enabled")
|
|
571
|
-
|
|
572
|
-
@icmp_reply_enabled.setter
|
|
573
|
-
def icmp_reply_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
574
|
-
pulumi.set(self, "icmp_reply_enabled", value)
|
|
575
|
-
|
|
576
476
|
@property
|
|
577
477
|
@pulumi.getter(name="instanceChargeType")
|
|
578
|
-
@_utilities.deprecated("""Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.""")
|
|
579
478
|
def instance_charge_type(self) -> Optional[pulumi.Input[str]]:
|
|
580
479
|
"""
|
|
581
480
|
Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.
|
|
@@ -590,7 +489,7 @@ class _NatGatewayState:
|
|
|
590
489
|
@pulumi.getter(name="internetChargeType")
|
|
591
490
|
def internet_charge_type(self) -> Optional[pulumi.Input[str]]:
|
|
592
491
|
"""
|
|
593
|
-
The internet charge type. Valid values `PayByLcu`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From
|
|
492
|
+
The internet charge type. Valid values `PayByLcu` and `PayBySpec`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From 1.137.0+, The `PayBySpec` has been deprecated.
|
|
594
493
|
"""
|
|
595
494
|
return pulumi.get(self, "internet_charge_type")
|
|
596
495
|
|
|
@@ -600,7 +499,6 @@ class _NatGatewayState:
|
|
|
600
499
|
|
|
601
500
|
@property
|
|
602
501
|
@pulumi.getter
|
|
603
|
-
@_utilities.deprecated("""Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.""")
|
|
604
502
|
def name(self) -> Optional[pulumi.Input[str]]:
|
|
605
503
|
"""
|
|
606
504
|
Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.
|
|
@@ -627,7 +525,7 @@ class _NatGatewayState:
|
|
|
627
525
|
@pulumi.getter(name="natType")
|
|
628
526
|
def nat_type(self) -> Optional[pulumi.Input[str]]:
|
|
629
527
|
"""
|
|
630
|
-
The type of NAT gateway. Valid values: `Enhanced`. **NOTE:** From
|
|
528
|
+
The type of NAT gateway. Valid values: `Normal` and `Enhanced`. **NOTE:** From 1.137.0+, The `Normal` has been deprecated.
|
|
631
529
|
"""
|
|
632
530
|
return pulumi.get(self, "nat_type")
|
|
633
531
|
|
|
@@ -672,18 +570,6 @@ class _NatGatewayState:
|
|
|
672
570
|
def period(self, value: Optional[pulumi.Input[int]]):
|
|
673
571
|
pulumi.set(self, "period", value)
|
|
674
572
|
|
|
675
|
-
@property
|
|
676
|
-
@pulumi.getter(name="privateLinkEnabled")
|
|
677
|
-
def private_link_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
678
|
-
"""
|
|
679
|
-
Specifies whether to enable PrivateLink. Default value: `false`. Valid values:
|
|
680
|
-
"""
|
|
681
|
-
return pulumi.get(self, "private_link_enabled")
|
|
682
|
-
|
|
683
|
-
@private_link_enabled.setter
|
|
684
|
-
def private_link_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
685
|
-
pulumi.set(self, "private_link_enabled", value)
|
|
686
|
-
|
|
687
573
|
@property
|
|
688
574
|
@pulumi.getter(name="snatTableIds")
|
|
689
575
|
def snat_table_ids(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -762,13 +648,11 @@ class NatGateway(pulumi.CustomResource):
|
|
|
762
648
|
def __init__(__self__,
|
|
763
649
|
resource_name: str,
|
|
764
650
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
765
|
-
access_mode: Optional[pulumi.Input[Union['NatGatewayAccessModeArgs', 'NatGatewayAccessModeArgsDict']]] = None,
|
|
766
651
|
deletion_protection: Optional[pulumi.Input[bool]] = None,
|
|
767
652
|
description: Optional[pulumi.Input[str]] = None,
|
|
768
653
|
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
769
654
|
eip_bind_mode: Optional[pulumi.Input[str]] = None,
|
|
770
655
|
force: Optional[pulumi.Input[bool]] = None,
|
|
771
|
-
icmp_reply_enabled: Optional[pulumi.Input[bool]] = None,
|
|
772
656
|
instance_charge_type: Optional[pulumi.Input[str]] = None,
|
|
773
657
|
internet_charge_type: Optional[pulumi.Input[str]] = None,
|
|
774
658
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -777,7 +661,6 @@ class NatGateway(pulumi.CustomResource):
|
|
|
777
661
|
network_type: Optional[pulumi.Input[str]] = None,
|
|
778
662
|
payment_type: Optional[pulumi.Input[str]] = None,
|
|
779
663
|
period: Optional[pulumi.Input[int]] = None,
|
|
780
|
-
private_link_enabled: Optional[pulumi.Input[bool]] = None,
|
|
781
664
|
specification: Optional[pulumi.Input[str]] = None,
|
|
782
665
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
783
666
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -794,7 +677,6 @@ class NatGateway(pulumi.CustomResource):
|
|
|
794
677
|
|
|
795
678
|
:param str resource_name: The name of the resource.
|
|
796
679
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
797
|
-
:param pulumi.Input[Union['NatGatewayAccessModeArgs', 'NatGatewayAccessModeArgsDict']] access_mode: The access mode for reverse access to the VPC NAT gateway. See `access_mode` below.
|
|
798
680
|
:param pulumi.Input[bool] deletion_protection: Whether enable the deletion protection or not. Default value: `false`.
|
|
799
681
|
- true: Enable deletion protection.
|
|
800
682
|
- false: Disable deletion protection.
|
|
@@ -804,17 +686,15 @@ class NatGateway(pulumi.CustomResource):
|
|
|
804
686
|
- `MULTI_BINDED`: Multi EIP network card visible mode.
|
|
805
687
|
- `NAT`: EIP normal mode, compatible with IPv4 gateway.
|
|
806
688
|
:param pulumi.Input[bool] force: Specifies whether to forcefully delete the NAT gateway.
|
|
807
|
-
:param pulumi.Input[bool] icmp_reply_enabled: Specifies whether to enable ICMP retrieval. Default value: `true`. Valid values:
|
|
808
689
|
:param pulumi.Input[str] instance_charge_type: Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.
|
|
809
|
-
:param pulumi.Input[str] internet_charge_type: The internet charge type. Valid values `PayByLcu`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From
|
|
690
|
+
:param pulumi.Input[str] internet_charge_type: The internet charge type. Valid values `PayByLcu` and `PayBySpec`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From 1.137.0+, The `PayBySpec` has been deprecated.
|
|
810
691
|
:param pulumi.Input[str] name: Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.
|
|
811
692
|
:param pulumi.Input[str] nat_gateway_name: Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.
|
|
812
|
-
:param pulumi.Input[str] nat_type: The type of NAT gateway. Valid values: `Enhanced`. **NOTE:** From
|
|
693
|
+
:param pulumi.Input[str] nat_type: The type of NAT gateway. Valid values: `Normal` and `Enhanced`. **NOTE:** From 1.137.0+, The `Normal` has been deprecated.
|
|
813
694
|
:param pulumi.Input[str] network_type: Indicates the type of the created NAT gateway. Valid values `internet` and `intranet`. `internet`: Internet NAT Gateway. `intranet`: VPC NAT Gateway.
|
|
814
695
|
:param pulumi.Input[str] payment_type: The billing method of the NAT gateway. Valid values are `PayAsYouGo` and `Subscription`. Default to `PayAsYouGo`.
|
|
815
696
|
:param pulumi.Input[int] period: The duration that you will buy the resource, in month. It is valid when `payment_type` is `Subscription`. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. **NOTE:** International station only supports `Subscription`.
|
|
816
697
|
> **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
|
|
817
|
-
:param pulumi.Input[bool] private_link_enabled: Specifies whether to enable PrivateLink. Default value: `false`. Valid values:
|
|
818
698
|
:param pulumi.Input[str] specification: The specification of the nat gateway. Valid values are `Small`, `Middle` and `Large`. Effective when `internet_charge_type` is `PayBySpec` and `network_type` is `internet`. Details refer to [Nat Gateway Specification](https://help.aliyun.com/document_detail/203500.html).
|
|
819
699
|
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tags of NAT gateway.
|
|
820
700
|
:param pulumi.Input[str] vpc_id: The VPC ID.
|
|
@@ -850,13 +730,11 @@ class NatGateway(pulumi.CustomResource):
|
|
|
850
730
|
def _internal_init(__self__,
|
|
851
731
|
resource_name: str,
|
|
852
732
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
853
|
-
access_mode: Optional[pulumi.Input[Union['NatGatewayAccessModeArgs', 'NatGatewayAccessModeArgsDict']]] = None,
|
|
854
733
|
deletion_protection: Optional[pulumi.Input[bool]] = None,
|
|
855
734
|
description: Optional[pulumi.Input[str]] = None,
|
|
856
735
|
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
857
736
|
eip_bind_mode: Optional[pulumi.Input[str]] = None,
|
|
858
737
|
force: Optional[pulumi.Input[bool]] = None,
|
|
859
|
-
icmp_reply_enabled: Optional[pulumi.Input[bool]] = None,
|
|
860
738
|
instance_charge_type: Optional[pulumi.Input[str]] = None,
|
|
861
739
|
internet_charge_type: Optional[pulumi.Input[str]] = None,
|
|
862
740
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -865,7 +743,6 @@ class NatGateway(pulumi.CustomResource):
|
|
|
865
743
|
network_type: Optional[pulumi.Input[str]] = None,
|
|
866
744
|
payment_type: Optional[pulumi.Input[str]] = None,
|
|
867
745
|
period: Optional[pulumi.Input[int]] = None,
|
|
868
|
-
private_link_enabled: Optional[pulumi.Input[bool]] = None,
|
|
869
746
|
specification: Optional[pulumi.Input[str]] = None,
|
|
870
747
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
871
748
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
@@ -879,13 +756,11 @@ class NatGateway(pulumi.CustomResource):
|
|
|
879
756
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
880
757
|
__props__ = NatGatewayArgs.__new__(NatGatewayArgs)
|
|
881
758
|
|
|
882
|
-
__props__.__dict__["access_mode"] = access_mode
|
|
883
759
|
__props__.__dict__["deletion_protection"] = deletion_protection
|
|
884
760
|
__props__.__dict__["description"] = description
|
|
885
761
|
__props__.__dict__["dry_run"] = dry_run
|
|
886
762
|
__props__.__dict__["eip_bind_mode"] = eip_bind_mode
|
|
887
763
|
__props__.__dict__["force"] = force
|
|
888
|
-
__props__.__dict__["icmp_reply_enabled"] = icmp_reply_enabled
|
|
889
764
|
__props__.__dict__["instance_charge_type"] = instance_charge_type
|
|
890
765
|
__props__.__dict__["internet_charge_type"] = internet_charge_type
|
|
891
766
|
__props__.__dict__["name"] = name
|
|
@@ -894,7 +769,6 @@ class NatGateway(pulumi.CustomResource):
|
|
|
894
769
|
__props__.__dict__["network_type"] = network_type
|
|
895
770
|
__props__.__dict__["payment_type"] = payment_type
|
|
896
771
|
__props__.__dict__["period"] = period
|
|
897
|
-
__props__.__dict__["private_link_enabled"] = private_link_enabled
|
|
898
772
|
__props__.__dict__["specification"] = specification
|
|
899
773
|
__props__.__dict__["tags"] = tags
|
|
900
774
|
if vpc_id is None and not opts.urn:
|
|
@@ -914,14 +788,12 @@ class NatGateway(pulumi.CustomResource):
|
|
|
914
788
|
def get(resource_name: str,
|
|
915
789
|
id: pulumi.Input[str],
|
|
916
790
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
917
|
-
access_mode: Optional[pulumi.Input[Union['NatGatewayAccessModeArgs', 'NatGatewayAccessModeArgsDict']]] = None,
|
|
918
791
|
deletion_protection: Optional[pulumi.Input[bool]] = None,
|
|
919
792
|
description: Optional[pulumi.Input[str]] = None,
|
|
920
793
|
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
921
794
|
eip_bind_mode: Optional[pulumi.Input[str]] = None,
|
|
922
795
|
force: Optional[pulumi.Input[bool]] = None,
|
|
923
796
|
forward_table_ids: Optional[pulumi.Input[str]] = None,
|
|
924
|
-
icmp_reply_enabled: Optional[pulumi.Input[bool]] = None,
|
|
925
797
|
instance_charge_type: Optional[pulumi.Input[str]] = None,
|
|
926
798
|
internet_charge_type: Optional[pulumi.Input[str]] = None,
|
|
927
799
|
name: Optional[pulumi.Input[str]] = None,
|
|
@@ -930,7 +802,6 @@ class NatGateway(pulumi.CustomResource):
|
|
|
930
802
|
network_type: Optional[pulumi.Input[str]] = None,
|
|
931
803
|
payment_type: Optional[pulumi.Input[str]] = None,
|
|
932
804
|
period: Optional[pulumi.Input[int]] = None,
|
|
933
|
-
private_link_enabled: Optional[pulumi.Input[bool]] = None,
|
|
934
805
|
snat_table_ids: Optional[pulumi.Input[str]] = None,
|
|
935
806
|
specification: Optional[pulumi.Input[str]] = None,
|
|
936
807
|
status: Optional[pulumi.Input[str]] = None,
|
|
@@ -944,7 +815,6 @@ class NatGateway(pulumi.CustomResource):
|
|
|
944
815
|
:param str resource_name: The unique name of the resulting resource.
|
|
945
816
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
946
817
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
947
|
-
:param pulumi.Input[Union['NatGatewayAccessModeArgs', 'NatGatewayAccessModeArgsDict']] access_mode: The access mode for reverse access to the VPC NAT gateway. See `access_mode` below.
|
|
948
818
|
:param pulumi.Input[bool] deletion_protection: Whether enable the deletion protection or not. Default value: `false`.
|
|
949
819
|
- true: Enable deletion protection.
|
|
950
820
|
- false: Disable deletion protection.
|
|
@@ -955,17 +825,15 @@ class NatGateway(pulumi.CustomResource):
|
|
|
955
825
|
- `NAT`: EIP normal mode, compatible with IPv4 gateway.
|
|
956
826
|
:param pulumi.Input[bool] force: Specifies whether to forcefully delete the NAT gateway.
|
|
957
827
|
:param pulumi.Input[str] forward_table_ids: The nat gateway will auto create a forward item.
|
|
958
|
-
:param pulumi.Input[bool] icmp_reply_enabled: Specifies whether to enable ICMP retrieval. Default value: `true`. Valid values:
|
|
959
828
|
:param pulumi.Input[str] instance_charge_type: Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.
|
|
960
|
-
:param pulumi.Input[str] internet_charge_type: The internet charge type. Valid values `PayByLcu`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From
|
|
829
|
+
:param pulumi.Input[str] internet_charge_type: The internet charge type. Valid values `PayByLcu` and `PayBySpec`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From 1.137.0+, The `PayBySpec` has been deprecated.
|
|
961
830
|
:param pulumi.Input[str] name: Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.
|
|
962
831
|
:param pulumi.Input[str] nat_gateway_name: Name of the nat gateway. The value can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin or end with a hyphen, and must not begin with http:// or https://. Defaults to null.
|
|
963
|
-
:param pulumi.Input[str] nat_type: The type of NAT gateway. Valid values: `Enhanced`. **NOTE:** From
|
|
832
|
+
:param pulumi.Input[str] nat_type: The type of NAT gateway. Valid values: `Normal` and `Enhanced`. **NOTE:** From 1.137.0+, The `Normal` has been deprecated.
|
|
964
833
|
:param pulumi.Input[str] network_type: Indicates the type of the created NAT gateway. Valid values `internet` and `intranet`. `internet`: Internet NAT Gateway. `intranet`: VPC NAT Gateway.
|
|
965
834
|
:param pulumi.Input[str] payment_type: The billing method of the NAT gateway. Valid values are `PayAsYouGo` and `Subscription`. Default to `PayAsYouGo`.
|
|
966
835
|
:param pulumi.Input[int] period: The duration that you will buy the resource, in month. It is valid when `payment_type` is `Subscription`. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console. **NOTE:** International station only supports `Subscription`.
|
|
967
836
|
> **NOTE:** The attribute `period` is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means running `pulumi up` will not effect the resource.
|
|
968
|
-
:param pulumi.Input[bool] private_link_enabled: Specifies whether to enable PrivateLink. Default value: `false`. Valid values:
|
|
969
837
|
:param pulumi.Input[str] snat_table_ids: The nat gateway will auto create a snat item.
|
|
970
838
|
:param pulumi.Input[str] specification: The specification of the nat gateway. Valid values are `Small`, `Middle` and `Large`. Effective when `internet_charge_type` is `PayBySpec` and `network_type` is `internet`. Details refer to [Nat Gateway Specification](https://help.aliyun.com/document_detail/203500.html).
|
|
971
839
|
:param pulumi.Input[str] status: (Available since v1.121.0) The status of NAT gateway.
|
|
@@ -977,14 +845,12 @@ class NatGateway(pulumi.CustomResource):
|
|
|
977
845
|
|
|
978
846
|
__props__ = _NatGatewayState.__new__(_NatGatewayState)
|
|
979
847
|
|
|
980
|
-
__props__.__dict__["access_mode"] = access_mode
|
|
981
848
|
__props__.__dict__["deletion_protection"] = deletion_protection
|
|
982
849
|
__props__.__dict__["description"] = description
|
|
983
850
|
__props__.__dict__["dry_run"] = dry_run
|
|
984
851
|
__props__.__dict__["eip_bind_mode"] = eip_bind_mode
|
|
985
852
|
__props__.__dict__["force"] = force
|
|
986
853
|
__props__.__dict__["forward_table_ids"] = forward_table_ids
|
|
987
|
-
__props__.__dict__["icmp_reply_enabled"] = icmp_reply_enabled
|
|
988
854
|
__props__.__dict__["instance_charge_type"] = instance_charge_type
|
|
989
855
|
__props__.__dict__["internet_charge_type"] = internet_charge_type
|
|
990
856
|
__props__.__dict__["name"] = name
|
|
@@ -993,7 +859,6 @@ class NatGateway(pulumi.CustomResource):
|
|
|
993
859
|
__props__.__dict__["network_type"] = network_type
|
|
994
860
|
__props__.__dict__["payment_type"] = payment_type
|
|
995
861
|
__props__.__dict__["period"] = period
|
|
996
|
-
__props__.__dict__["private_link_enabled"] = private_link_enabled
|
|
997
862
|
__props__.__dict__["snat_table_ids"] = snat_table_ids
|
|
998
863
|
__props__.__dict__["specification"] = specification
|
|
999
864
|
__props__.__dict__["status"] = status
|
|
@@ -1002,14 +867,6 @@ class NatGateway(pulumi.CustomResource):
|
|
|
1002
867
|
__props__.__dict__["vswitch_id"] = vswitch_id
|
|
1003
868
|
return NatGateway(resource_name, opts=opts, __props__=__props__)
|
|
1004
869
|
|
|
1005
|
-
@property
|
|
1006
|
-
@pulumi.getter(name="accessMode")
|
|
1007
|
-
def access_mode(self) -> pulumi.Output['outputs.NatGatewayAccessMode']:
|
|
1008
|
-
"""
|
|
1009
|
-
The access mode for reverse access to the VPC NAT gateway. See `access_mode` below.
|
|
1010
|
-
"""
|
|
1011
|
-
return pulumi.get(self, "access_mode")
|
|
1012
|
-
|
|
1013
870
|
@property
|
|
1014
871
|
@pulumi.getter(name="deletionProtection")
|
|
1015
872
|
def deletion_protection(self) -> pulumi.Output[bool]:
|
|
@@ -1062,17 +919,8 @@ class NatGateway(pulumi.CustomResource):
|
|
|
1062
919
|
"""
|
|
1063
920
|
return pulumi.get(self, "forward_table_ids")
|
|
1064
921
|
|
|
1065
|
-
@property
|
|
1066
|
-
@pulumi.getter(name="icmpReplyEnabled")
|
|
1067
|
-
def icmp_reply_enabled(self) -> pulumi.Output[bool]:
|
|
1068
|
-
"""
|
|
1069
|
-
Specifies whether to enable ICMP retrieval. Default value: `true`. Valid values:
|
|
1070
|
-
"""
|
|
1071
|
-
return pulumi.get(self, "icmp_reply_enabled")
|
|
1072
|
-
|
|
1073
922
|
@property
|
|
1074
923
|
@pulumi.getter(name="instanceChargeType")
|
|
1075
|
-
@_utilities.deprecated("""Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.""")
|
|
1076
924
|
def instance_charge_type(self) -> pulumi.Output[str]:
|
|
1077
925
|
"""
|
|
1078
926
|
Field `instance_charge_type` has been deprecated from provider version 1.121.0. New field `payment_type` instead.
|
|
@@ -1083,13 +931,12 @@ class NatGateway(pulumi.CustomResource):
|
|
|
1083
931
|
@pulumi.getter(name="internetChargeType")
|
|
1084
932
|
def internet_charge_type(self) -> pulumi.Output[str]:
|
|
1085
933
|
"""
|
|
1086
|
-
The internet charge type. Valid values `PayByLcu`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From
|
|
934
|
+
The internet charge type. Valid values `PayByLcu` and `PayBySpec`. The `PayByLcu` is only support enhanced NAT. **NOTE:** From 1.137.0+, The `PayBySpec` has been deprecated.
|
|
1087
935
|
"""
|
|
1088
936
|
return pulumi.get(self, "internet_charge_type")
|
|
1089
937
|
|
|
1090
938
|
@property
|
|
1091
939
|
@pulumi.getter
|
|
1092
|
-
@_utilities.deprecated("""Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.""")
|
|
1093
940
|
def name(self) -> pulumi.Output[str]:
|
|
1094
941
|
"""
|
|
1095
942
|
Field `name` has been deprecated from provider version 1.121.0. New field `nat_gateway_name` instead.
|
|
@@ -1108,7 +955,7 @@ class NatGateway(pulumi.CustomResource):
|
|
|
1108
955
|
@pulumi.getter(name="natType")
|
|
1109
956
|
def nat_type(self) -> pulumi.Output[str]:
|
|
1110
957
|
"""
|
|
1111
|
-
The type of NAT gateway. Valid values: `Enhanced`. **NOTE:** From
|
|
958
|
+
The type of NAT gateway. Valid values: `Normal` and `Enhanced`. **NOTE:** From 1.137.0+, The `Normal` has been deprecated.
|
|
1112
959
|
"""
|
|
1113
960
|
return pulumi.get(self, "nat_type")
|
|
1114
961
|
|
|
@@ -1137,14 +984,6 @@ class NatGateway(pulumi.CustomResource):
|
|
|
1137
984
|
"""
|
|
1138
985
|
return pulumi.get(self, "period")
|
|
1139
986
|
|
|
1140
|
-
@property
|
|
1141
|
-
@pulumi.getter(name="privateLinkEnabled")
|
|
1142
|
-
def private_link_enabled(self) -> pulumi.Output[Optional[bool]]:
|
|
1143
|
-
"""
|
|
1144
|
-
Specifies whether to enable PrivateLink. Default value: `false`. Valid values:
|
|
1145
|
-
"""
|
|
1146
|
-
return pulumi.get(self, "private_link_enabled")
|
|
1147
|
-
|
|
1148
987
|
@property
|
|
1149
988
|
@pulumi.getter(name="snatTableIds")
|
|
1150
989
|
def snat_table_ids(self) -> pulumi.Output[str]:
|
pulumi_alicloud/vpc/outputs.py
CHANGED
|
@@ -17,7 +17,6 @@ from . import outputs
|
|
|
17
17
|
|
|
18
18
|
__all__ = [
|
|
19
19
|
'DhcpOptionsSetAssociateVpc',
|
|
20
|
-
'NatGatewayAccessMode',
|
|
21
20
|
'NetworkAclAttachmentResource',
|
|
22
21
|
'NetworkAclEgressAclEntry',
|
|
23
22
|
'NetworkAclEntriesEgress',
|
|
@@ -123,56 +122,6 @@ class DhcpOptionsSetAssociateVpc(dict):
|
|
|
123
122
|
return pulumi.get(self, "associate_status")
|
|
124
123
|
|
|
125
124
|
|
|
126
|
-
@pulumi.output_type
|
|
127
|
-
class NatGatewayAccessMode(dict):
|
|
128
|
-
@staticmethod
|
|
129
|
-
def __key_warning(key: str):
|
|
130
|
-
suggest = None
|
|
131
|
-
if key == "modeValue":
|
|
132
|
-
suggest = "mode_value"
|
|
133
|
-
elif key == "tunnelType":
|
|
134
|
-
suggest = "tunnel_type"
|
|
135
|
-
|
|
136
|
-
if suggest:
|
|
137
|
-
pulumi.log.warn(f"Key '{key}' not found in NatGatewayAccessMode. Access the value via the '{suggest}' property getter instead.")
|
|
138
|
-
|
|
139
|
-
def __getitem__(self, key: str) -> Any:
|
|
140
|
-
NatGatewayAccessMode.__key_warning(key)
|
|
141
|
-
return super().__getitem__(key)
|
|
142
|
-
|
|
143
|
-
def get(self, key: str, default = None) -> Any:
|
|
144
|
-
NatGatewayAccessMode.__key_warning(key)
|
|
145
|
-
return super().get(key, default)
|
|
146
|
-
|
|
147
|
-
def __init__(__self__, *,
|
|
148
|
-
mode_value: Optional[str] = None,
|
|
149
|
-
tunnel_type: Optional[str] = None):
|
|
150
|
-
"""
|
|
151
|
-
:param str mode_value: The mode of Access. Valid values:
|
|
152
|
-
:param str tunnel_type: The type of Tunnel. Valid values: `geneve`. **NOTE:** `tunnel_type` takes effect only if `mode_value` is set to `tunnel`.
|
|
153
|
-
"""
|
|
154
|
-
if mode_value is not None:
|
|
155
|
-
pulumi.set(__self__, "mode_value", mode_value)
|
|
156
|
-
if tunnel_type is not None:
|
|
157
|
-
pulumi.set(__self__, "tunnel_type", tunnel_type)
|
|
158
|
-
|
|
159
|
-
@property
|
|
160
|
-
@pulumi.getter(name="modeValue")
|
|
161
|
-
def mode_value(self) -> Optional[str]:
|
|
162
|
-
"""
|
|
163
|
-
The mode of Access. Valid values:
|
|
164
|
-
"""
|
|
165
|
-
return pulumi.get(self, "mode_value")
|
|
166
|
-
|
|
167
|
-
@property
|
|
168
|
-
@pulumi.getter(name="tunnelType")
|
|
169
|
-
def tunnel_type(self) -> Optional[str]:
|
|
170
|
-
"""
|
|
171
|
-
The type of Tunnel. Valid values: `geneve`. **NOTE:** `tunnel_type` takes effect only if `mode_value` is set to `tunnel`.
|
|
172
|
-
"""
|
|
173
|
-
return pulumi.get(self, "tunnel_type")
|
|
174
|
-
|
|
175
|
-
|
|
176
125
|
@pulumi.output_type
|
|
177
126
|
class NetworkAclAttachmentResource(dict):
|
|
178
127
|
@staticmethod
|