pulumi-alicloud 3.63.0__py3-none-any.whl → 3.63.0a1726205090__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.

Files changed (75) hide show
  1. pulumi_alicloud/__init__.py +0 -24
  2. pulumi_alicloud/alb/acl.py +19 -18
  3. pulumi_alicloud/alb/health_check_template.py +88 -96
  4. pulumi_alicloud/amqp/binding.py +36 -30
  5. pulumi_alicloud/cen/_inputs.py +14 -180
  6. pulumi_alicloud/cen/outputs.py +12 -173
  7. pulumi_alicloud/cen/traffic_marking_policy.py +53 -116
  8. pulumi_alicloud/cen/transit_router_vpc_attachment.py +119 -338
  9. pulumi_alicloud/cms/_inputs.py +6 -6
  10. pulumi_alicloud/cms/outputs.py +6 -6
  11. pulumi_alicloud/cr/chart_namespace.py +6 -14
  12. pulumi_alicloud/cr/endpoint_acl_policy.py +2 -10
  13. pulumi_alicloud/cr/namespace.py +2 -10
  14. pulumi_alicloud/cs/registry_enterprise_sync_rule.py +10 -10
  15. pulumi_alicloud/ddos/_inputs.py +9 -8
  16. pulumi_alicloud/ddos/bgp_ip.py +1 -1
  17. pulumi_alicloud/ddos/domain_resource.py +90 -446
  18. pulumi_alicloud/ddos/outputs.py +8 -7
  19. pulumi_alicloud/eci/container_group.py +0 -47
  20. pulumi_alicloud/ecs/_inputs.py +0 -28
  21. pulumi_alicloud/ecs/ecs_snapshot.py +77 -199
  22. pulumi_alicloud/ecs/outputs.py +0 -20
  23. pulumi_alicloud/ecs/snapshot.py +8 -26
  24. pulumi_alicloud/emrv2/_inputs.py +12 -12
  25. pulumi_alicloud/emrv2/outputs.py +12 -12
  26. pulumi_alicloud/ens/_inputs.py +2 -50
  27. pulumi_alicloud/ens/instance.py +184 -428
  28. pulumi_alicloud/ens/outputs.py +2 -57
  29. pulumi_alicloud/ess/__init__.py +0 -1
  30. pulumi_alicloud/ess/alarm.py +0 -47
  31. pulumi_alicloud/expressconnect/physical_connection.py +185 -321
  32. pulumi_alicloud/fc/trigger.py +24 -22
  33. pulumi_alicloud/ga/_inputs.py +5 -23
  34. pulumi_alicloud/ga/endpoint_group.py +14 -68
  35. pulumi_alicloud/ga/outputs.py +5 -21
  36. pulumi_alicloud/governance/account.py +0 -61
  37. pulumi_alicloud/gpdb/__init__.py +0 -4
  38. pulumi_alicloud/gpdb/_inputs.py +3 -361
  39. pulumi_alicloud/gpdb/instance.py +0 -47
  40. pulumi_alicloud/gpdb/outputs.py +4 -597
  41. pulumi_alicloud/mongodb/instance.py +0 -94
  42. pulumi_alicloud/nlb/_inputs.py +64 -120
  43. pulumi_alicloud/nlb/get_listeners.py +2 -32
  44. pulumi_alicloud/nlb/get_server_group_server_attachments.py +2 -8
  45. pulumi_alicloud/nlb/listener.py +245 -315
  46. pulumi_alicloud/nlb/listener_additional_certificate_attachment.py +25 -25
  47. pulumi_alicloud/nlb/load_balancer.py +212 -297
  48. pulumi_alicloud/nlb/load_balancer_security_group_attachment.py +39 -29
  49. pulumi_alicloud/nlb/loadbalancer_common_bandwidth_package_attachment.py +18 -22
  50. pulumi_alicloud/nlb/outputs.py +66 -122
  51. pulumi_alicloud/nlb/security_policy.py +25 -53
  52. pulumi_alicloud/nlb/server_group.py +133 -196
  53. pulumi_alicloud/ocean/base_instance.py +163 -498
  54. pulumi_alicloud/oos/get_secret_parameters.py +9 -111
  55. pulumi_alicloud/oos/outputs.py +11 -22
  56. pulumi_alicloud/pulumi-plugin.json +1 -1
  57. pulumi_alicloud/ram/get_account_alias.py +2 -35
  58. pulumi_alicloud/rds/instance.py +21 -21
  59. pulumi_alicloud/rocketmq/_inputs.py +22 -79
  60. pulumi_alicloud/rocketmq/outputs.py +21 -85
  61. pulumi_alicloud/rocketmq/rocket_mq_instance.py +113 -307
  62. pulumi_alicloud/servicemesh/extension_provider.py +2 -2
  63. pulumi_alicloud/vpc/common_bandwith_package_attachment.py +2 -2
  64. pulumi_alicloud/vpc/peer_connection.py +59 -127
  65. pulumi_alicloud/vpc/peer_connection_accepter.py +42 -263
  66. pulumi_alicloud/vpc/route_entry.py +210 -232
  67. {pulumi_alicloud-3.63.0.dist-info → pulumi_alicloud-3.63.0a1726205090.dist-info}/METADATA +1 -1
  68. {pulumi_alicloud-3.63.0.dist-info → pulumi_alicloud-3.63.0a1726205090.dist-info}/RECORD +70 -75
  69. {pulumi_alicloud-3.63.0.dist-info → pulumi_alicloud-3.63.0a1726205090.dist-info}/WHEEL +1 -1
  70. pulumi_alicloud/ess/server_group_attachment.py +0 -552
  71. pulumi_alicloud/gpdb/db_instance_ip_array.py +0 -533
  72. pulumi_alicloud/gpdb/get_data_backups.py +0 -288
  73. pulumi_alicloud/gpdb/get_log_backups.py +0 -225
  74. pulumi_alicloud/gpdb/streaming_job.py +0 -1568
  75. {pulumi_alicloud-3.63.0.dist-info → pulumi_alicloud-3.63.0a1726205090.dist-info}/top_level.txt +0 -0
@@ -15,35 +15,31 @@ __all__ = ['RouteEntryArgs', 'RouteEntry']
15
15
  class RouteEntryArgs:
16
16
  def __init__(__self__, *,
17
17
  route_table_id: pulumi.Input[str],
18
- description: Optional[pulumi.Input[str]] = None,
19
18
  destination_cidrblock: Optional[pulumi.Input[str]] = None,
20
19
  name: Optional[pulumi.Input[str]] = None,
21
20
  nexthop_id: Optional[pulumi.Input[str]] = None,
22
- nexthop_type: Optional[pulumi.Input[str]] = None):
21
+ nexthop_type: Optional[pulumi.Input[str]] = None,
22
+ router_id: Optional[pulumi.Input[str]] = None):
23
23
  """
24
24
  The set of arguments for constructing a RouteEntry resource.
25
- :param pulumi.Input[str] route_table_id: The ID of the Route Table.
26
- :param pulumi.Input[str] description: The description of the Route Entry. The description must be `1` to `256` characters in length, and cannot start with `http://` or `https://`.
27
- :param pulumi.Input[str] destination_cidrblock: The destination CIDR block of the custom route entry.
28
- :param pulumi.Input[str] name: The name of the Route Entry. The name must be `1` to `128` characters in length, and cannot start with `http://` or `https://`.
29
- :param pulumi.Input[str] nexthop_id: The ID of Next Hop.
30
- :param pulumi.Input[str] nexthop_type: The type of Next Hop. Valid values:
31
- - `Instance`: An Elastic Compute Service (ECS) instance.
32
- - `HaVip`: A high-availability virtual IP address (HAVIP).
33
- - `RouterInterface`: A router interface.
34
- - `NetworkInterface`: An elastic network interface (ENI).
35
- - `VpnGateway`: A VPN Gateway.
36
- - `IPv6Gateway`: An IPv6 gateway.
37
- - `NatGateway`: A Nat Gateway.
38
- - `Attachment`: A transit router.
39
- - `VpcPeer`: A VPC Peering Connection.
40
- - `Ipv4Gateway`: An IPv4 gateway.
41
- - `GatewayEndpoint`: A gateway endpoint.
42
- - `Ecr`: A Express Connect Router (ECR).
25
+ :param pulumi.Input[str] route_table_id: The ID of the route table.
26
+ :param pulumi.Input[str] destination_cidrblock: The RouteEntry's target network segment.
27
+ :param pulumi.Input[str] name: The name of the route entry. This name 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://.
28
+ :param pulumi.Input[str] nexthop_id: The route entry's next hop. ECS instance ID or VPC router interface ID.
29
+ :param pulumi.Input[str] nexthop_type: The next hop type. Available values:
30
+ - `Instance` (Default): an Elastic Compute Service (ECS) instance. This is the default value.
31
+ - `RouterInterface`: a router interface.
32
+ - `VpnGateway`: a VPN Gateway.
33
+ - `HaVip`: a high-availability virtual IP address (HAVIP).
34
+ - `NetworkInterface`: an elastic network interface (ENI).
35
+ - `NatGateway`: a Nat Gateway.
36
+ - `IPv6Gateway`: an IPv6 gateway.
37
+ - `Attachment`: a transit router.
38
+ - `VpcPeer`: a VPC Peering Connection.
39
+ - `Ipv4Gateway` (Available in 1.193.0+): an IPv4 gateway.
40
+ :param pulumi.Input[str] router_id: This argument has been deprecated. Please use other arguments to launch a custom route entry.
43
41
  """
44
42
  pulumi.set(__self__, "route_table_id", route_table_id)
45
- if description is not None:
46
- pulumi.set(__self__, "description", description)
47
43
  if destination_cidrblock is not None:
48
44
  pulumi.set(__self__, "destination_cidrblock", destination_cidrblock)
49
45
  if name is not None:
@@ -52,12 +48,17 @@ class RouteEntryArgs:
52
48
  pulumi.set(__self__, "nexthop_id", nexthop_id)
53
49
  if nexthop_type is not None:
54
50
  pulumi.set(__self__, "nexthop_type", nexthop_type)
51
+ if router_id is not None:
52
+ warnings.warn("""Attribute router_id has been deprecated and suggest removing it from your template.""", DeprecationWarning)
53
+ pulumi.log.warn("""router_id is deprecated: Attribute router_id has been deprecated and suggest removing it from your template.""")
54
+ if router_id is not None:
55
+ pulumi.set(__self__, "router_id", router_id)
55
56
 
56
57
  @property
57
58
  @pulumi.getter(name="routeTableId")
58
59
  def route_table_id(self) -> pulumi.Input[str]:
59
60
  """
60
- The ID of the Route Table.
61
+ The ID of the route table.
61
62
  """
62
63
  return pulumi.get(self, "route_table_id")
63
64
 
@@ -65,23 +66,11 @@ class RouteEntryArgs:
65
66
  def route_table_id(self, value: pulumi.Input[str]):
66
67
  pulumi.set(self, "route_table_id", value)
67
68
 
68
- @property
69
- @pulumi.getter
70
- def description(self) -> Optional[pulumi.Input[str]]:
71
- """
72
- The description of the Route Entry. The description must be `1` to `256` characters in length, and cannot start with `http://` or `https://`.
73
- """
74
- return pulumi.get(self, "description")
75
-
76
- @description.setter
77
- def description(self, value: Optional[pulumi.Input[str]]):
78
- pulumi.set(self, "description", value)
79
-
80
69
  @property
81
70
  @pulumi.getter(name="destinationCidrblock")
82
71
  def destination_cidrblock(self) -> Optional[pulumi.Input[str]]:
83
72
  """
84
- The destination CIDR block of the custom route entry.
73
+ The RouteEntry's target network segment.
85
74
  """
86
75
  return pulumi.get(self, "destination_cidrblock")
87
76
 
@@ -93,7 +82,7 @@ class RouteEntryArgs:
93
82
  @pulumi.getter
94
83
  def name(self) -> Optional[pulumi.Input[str]]:
95
84
  """
96
- The name of the Route Entry. The name must be `1` to `128` characters in length, and cannot start with `http://` or `https://`.
85
+ The name of the route entry. This name 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://.
97
86
  """
98
87
  return pulumi.get(self, "name")
99
88
 
@@ -105,7 +94,7 @@ class RouteEntryArgs:
105
94
  @pulumi.getter(name="nexthopId")
106
95
  def nexthop_id(self) -> Optional[pulumi.Input[str]]:
107
96
  """
108
- The ID of Next Hop.
97
+ The route entry's next hop. ECS instance ID or VPC router interface ID.
109
98
  """
110
99
  return pulumi.get(self, "nexthop_id")
111
100
 
@@ -117,19 +106,17 @@ class RouteEntryArgs:
117
106
  @pulumi.getter(name="nexthopType")
118
107
  def nexthop_type(self) -> Optional[pulumi.Input[str]]:
119
108
  """
120
- The type of Next Hop. Valid values:
121
- - `Instance`: An Elastic Compute Service (ECS) instance.
122
- - `HaVip`: A high-availability virtual IP address (HAVIP).
123
- - `RouterInterface`: A router interface.
124
- - `NetworkInterface`: An elastic network interface (ENI).
125
- - `VpnGateway`: A VPN Gateway.
126
- - `IPv6Gateway`: An IPv6 gateway.
127
- - `NatGateway`: A Nat Gateway.
128
- - `Attachment`: A transit router.
129
- - `VpcPeer`: A VPC Peering Connection.
130
- - `Ipv4Gateway`: An IPv4 gateway.
131
- - `GatewayEndpoint`: A gateway endpoint.
132
- - `Ecr`: A Express Connect Router (ECR).
109
+ The next hop type. Available values:
110
+ - `Instance` (Default): an Elastic Compute Service (ECS) instance. This is the default value.
111
+ - `RouterInterface`: a router interface.
112
+ - `VpnGateway`: a VPN Gateway.
113
+ - `HaVip`: a high-availability virtual IP address (HAVIP).
114
+ - `NetworkInterface`: an elastic network interface (ENI).
115
+ - `NatGateway`: a Nat Gateway.
116
+ - `IPv6Gateway`: an IPv6 gateway.
117
+ - `Attachment`: a transit router.
118
+ - `VpcPeer`: a VPC Peering Connection.
119
+ - `Ipv4Gateway` (Available in 1.193.0+): an IPv4 gateway.
133
120
  """
134
121
  return pulumi.get(self, "nexthop_type")
135
122
 
@@ -137,11 +124,23 @@ class RouteEntryArgs:
137
124
  def nexthop_type(self, value: Optional[pulumi.Input[str]]):
138
125
  pulumi.set(self, "nexthop_type", value)
139
126
 
127
+ @property
128
+ @pulumi.getter(name="routerId")
129
+ @_utilities.deprecated("""Attribute router_id has been deprecated and suggest removing it from your template.""")
130
+ def router_id(self) -> Optional[pulumi.Input[str]]:
131
+ """
132
+ This argument has been deprecated. Please use other arguments to launch a custom route entry.
133
+ """
134
+ return pulumi.get(self, "router_id")
135
+
136
+ @router_id.setter
137
+ def router_id(self, value: Optional[pulumi.Input[str]]):
138
+ pulumi.set(self, "router_id", value)
139
+
140
140
 
141
141
  @pulumi.input_type
142
142
  class _RouteEntryState:
143
143
  def __init__(__self__, *,
144
- description: Optional[pulumi.Input[str]] = None,
145
144
  destination_cidrblock: Optional[pulumi.Input[str]] = None,
146
145
  name: Optional[pulumi.Input[str]] = None,
147
146
  nexthop_id: Optional[pulumi.Input[str]] = None,
@@ -150,28 +149,23 @@ class _RouteEntryState:
150
149
  router_id: Optional[pulumi.Input[str]] = None):
151
150
  """
152
151
  Input properties used for looking up and filtering RouteEntry resources.
153
- :param pulumi.Input[str] description: The description of the Route Entry. The description must be `1` to `256` characters in length, and cannot start with `http://` or `https://`.
154
- :param pulumi.Input[str] destination_cidrblock: The destination CIDR block of the custom route entry.
155
- :param pulumi.Input[str] name: The name of the Route Entry. The name must be `1` to `128` characters in length, and cannot start with `http://` or `https://`.
156
- :param pulumi.Input[str] nexthop_id: The ID of Next Hop.
157
- :param pulumi.Input[str] nexthop_type: The type of Next Hop. Valid values:
158
- - `Instance`: An Elastic Compute Service (ECS) instance.
159
- - `HaVip`: A high-availability virtual IP address (HAVIP).
160
- - `RouterInterface`: A router interface.
161
- - `NetworkInterface`: An elastic network interface (ENI).
162
- - `VpnGateway`: A VPN Gateway.
163
- - `IPv6Gateway`: An IPv6 gateway.
164
- - `NatGateway`: A Nat Gateway.
165
- - `Attachment`: A transit router.
166
- - `VpcPeer`: A VPC Peering Connection.
167
- - `Ipv4Gateway`: An IPv4 gateway.
168
- - `GatewayEndpoint`: A gateway endpoint.
169
- - `Ecr`: A Express Connect Router (ECR).
170
- :param pulumi.Input[str] route_table_id: The ID of the Route Table.
152
+ :param pulumi.Input[str] destination_cidrblock: The RouteEntry's target network segment.
153
+ :param pulumi.Input[str] name: The name of the route entry. This name 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://.
154
+ :param pulumi.Input[str] nexthop_id: The route entry's next hop. ECS instance ID or VPC router interface ID.
155
+ :param pulumi.Input[str] nexthop_type: The next hop type. Available values:
156
+ - `Instance` (Default): an Elastic Compute Service (ECS) instance. This is the default value.
157
+ - `RouterInterface`: a router interface.
158
+ - `VpnGateway`: a VPN Gateway.
159
+ - `HaVip`: a high-availability virtual IP address (HAVIP).
160
+ - `NetworkInterface`: an elastic network interface (ENI).
161
+ - `NatGateway`: a Nat Gateway.
162
+ - `IPv6Gateway`: an IPv6 gateway.
163
+ - `Attachment`: a transit router.
164
+ - `VpcPeer`: a VPC Peering Connection.
165
+ - `Ipv4Gateway` (Available in 1.193.0+): an IPv4 gateway.
166
+ :param pulumi.Input[str] route_table_id: The ID of the route table.
171
167
  :param pulumi.Input[str] router_id: This argument has been deprecated. Please use other arguments to launch a custom route entry.
172
168
  """
173
- if description is not None:
174
- pulumi.set(__self__, "description", description)
175
169
  if destination_cidrblock is not None:
176
170
  pulumi.set(__self__, "destination_cidrblock", destination_cidrblock)
177
171
  if name is not None:
@@ -188,23 +182,11 @@ class _RouteEntryState:
188
182
  if router_id is not None:
189
183
  pulumi.set(__self__, "router_id", router_id)
190
184
 
191
- @property
192
- @pulumi.getter
193
- def description(self) -> Optional[pulumi.Input[str]]:
194
- """
195
- The description of the Route Entry. The description must be `1` to `256` characters in length, and cannot start with `http://` or `https://`.
196
- """
197
- return pulumi.get(self, "description")
198
-
199
- @description.setter
200
- def description(self, value: Optional[pulumi.Input[str]]):
201
- pulumi.set(self, "description", value)
202
-
203
185
  @property
204
186
  @pulumi.getter(name="destinationCidrblock")
205
187
  def destination_cidrblock(self) -> Optional[pulumi.Input[str]]:
206
188
  """
207
- The destination CIDR block of the custom route entry.
189
+ The RouteEntry's target network segment.
208
190
  """
209
191
  return pulumi.get(self, "destination_cidrblock")
210
192
 
@@ -216,7 +198,7 @@ class _RouteEntryState:
216
198
  @pulumi.getter
217
199
  def name(self) -> Optional[pulumi.Input[str]]:
218
200
  """
219
- The name of the Route Entry. The name must be `1` to `128` characters in length, and cannot start with `http://` or `https://`.
201
+ The name of the route entry. This name 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://.
220
202
  """
221
203
  return pulumi.get(self, "name")
222
204
 
@@ -228,7 +210,7 @@ class _RouteEntryState:
228
210
  @pulumi.getter(name="nexthopId")
229
211
  def nexthop_id(self) -> Optional[pulumi.Input[str]]:
230
212
  """
231
- The ID of Next Hop.
213
+ The route entry's next hop. ECS instance ID or VPC router interface ID.
232
214
  """
233
215
  return pulumi.get(self, "nexthop_id")
234
216
 
@@ -240,19 +222,17 @@ class _RouteEntryState:
240
222
  @pulumi.getter(name="nexthopType")
241
223
  def nexthop_type(self) -> Optional[pulumi.Input[str]]:
242
224
  """
243
- The type of Next Hop. Valid values:
244
- - `Instance`: An Elastic Compute Service (ECS) instance.
245
- - `HaVip`: A high-availability virtual IP address (HAVIP).
246
- - `RouterInterface`: A router interface.
247
- - `NetworkInterface`: An elastic network interface (ENI).
248
- - `VpnGateway`: A VPN Gateway.
249
- - `IPv6Gateway`: An IPv6 gateway.
250
- - `NatGateway`: A Nat Gateway.
251
- - `Attachment`: A transit router.
252
- - `VpcPeer`: A VPC Peering Connection.
253
- - `Ipv4Gateway`: An IPv4 gateway.
254
- - `GatewayEndpoint`: A gateway endpoint.
255
- - `Ecr`: A Express Connect Router (ECR).
225
+ The next hop type. Available values:
226
+ - `Instance` (Default): an Elastic Compute Service (ECS) instance. This is the default value.
227
+ - `RouterInterface`: a router interface.
228
+ - `VpnGateway`: a VPN Gateway.
229
+ - `HaVip`: a high-availability virtual IP address (HAVIP).
230
+ - `NetworkInterface`: an elastic network interface (ENI).
231
+ - `NatGateway`: a Nat Gateway.
232
+ - `IPv6Gateway`: an IPv6 gateway.
233
+ - `Attachment`: a transit router.
234
+ - `VpcPeer`: a VPC Peering Connection.
235
+ - `Ipv4Gateway` (Available in 1.193.0+): an IPv4 gateway.
256
236
  """
257
237
  return pulumi.get(self, "nexthop_type")
258
238
 
@@ -264,7 +244,7 @@ class _RouteEntryState:
264
244
  @pulumi.getter(name="routeTableId")
265
245
  def route_table_id(self) -> Optional[pulumi.Input[str]]:
266
246
  """
267
- The ID of the Route Table.
247
+ The ID of the route table.
268
248
  """
269
249
  return pulumi.get(self, "route_table_id")
270
250
 
@@ -291,19 +271,15 @@ class RouteEntry(pulumi.CustomResource):
291
271
  def __init__(__self__,
292
272
  resource_name: str,
293
273
  opts: Optional[pulumi.ResourceOptions] = None,
294
- description: Optional[pulumi.Input[str]] = None,
295
274
  destination_cidrblock: Optional[pulumi.Input[str]] = None,
296
275
  name: Optional[pulumi.Input[str]] = None,
297
276
  nexthop_id: Optional[pulumi.Input[str]] = None,
298
277
  nexthop_type: Optional[pulumi.Input[str]] = None,
299
278
  route_table_id: Optional[pulumi.Input[str]] = None,
279
+ router_id: Optional[pulumi.Input[str]] = None,
300
280
  __props__=None):
301
281
  """
302
- Provides a Route Entry resource. A Route Entry represents a route item of one VPC Route Table.
303
-
304
- For information about Route Entry and how to use it, see [What is Route Entry](https://www.alibabacloud.com/help/en/vpc/developer-reference/api-vpc-2016-04-28-createrouteentry).
305
-
306
- > **NOTE:** Available since v0.1.0.
282
+ Provides a route entry resource. A route entry represents a route item of one VPC route table.
307
283
 
308
284
  ## Example Usage
309
285
 
@@ -313,43 +289,53 @@ class RouteEntry(pulumi.CustomResource):
313
289
  import pulumi
314
290
  import pulumi_alicloud as alicloud
315
291
 
292
+ default = alicloud.get_zones(available_resource_creation="VSwitch")
293
+ default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=default.zones[0].id,
294
+ cpu_core_count=1,
295
+ memory_size=2)
296
+ default_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
297
+ most_recent=True,
298
+ owners="system")
316
299
  config = pulumi.Config()
317
300
  name = config.get("name")
318
301
  if name is None:
319
- name = "terraform-example"
320
- default = alicloud.get_zones(available_disk_category="cloud_efficiency",
321
- available_resource_creation="VSwitch")
322
- default_get_images = alicloud.ecs.get_images(most_recent=True,
323
- owners="system")
324
- default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=default.zones[0].id,
325
- image_id=default_get_images.images[0].id)
326
- default_network = alicloud.vpc.Network("default",
302
+ name = "RouteEntryConfig"
303
+ foo = alicloud.vpc.Network("foo",
327
304
  vpc_name=name,
328
- cidr_block="192.168.0.0/16")
329
- default_switch = alicloud.vpc.Switch("default",
330
- vswitch_name=name,
331
- vpc_id=default_network.id,
332
- cidr_block="192.168.192.0/24",
333
- zone_id=default.zones[0].id)
334
- default_security_group = alicloud.ecs.SecurityGroup("default",
305
+ cidr_block="10.1.0.0/21")
306
+ foo_switch = alicloud.vpc.Switch("foo",
307
+ vpc_id=foo.id,
308
+ cidr_block="10.1.1.0/24",
309
+ zone_id=default.zones[0].id,
310
+ vswitch_name=name)
311
+ tf_test_foo = alicloud.ecs.SecurityGroup("tf_test_foo",
335
312
  name=name,
336
- vpc_id=default_network.id)
337
- default_instance = alicloud.ecs.Instance("default",
338
- image_id=default_get_images.images[0].id,
313
+ description="foo",
314
+ vpc_id=foo.id)
315
+ ingress = alicloud.ecs.SecurityGroupRule("ingress",
316
+ type="ingress",
317
+ ip_protocol="tcp",
318
+ nic_type="intranet",
319
+ policy="accept",
320
+ port_range="22/22",
321
+ priority=1,
322
+ security_group_id=tf_test_foo.id,
323
+ cidr_ip="0.0.0.0/0")
324
+ foo_instance = alicloud.ecs.Instance("foo",
325
+ security_groups=[tf_test_foo.id],
326
+ vswitch_id=foo_switch.id,
327
+ instance_charge_type="PostPaid",
339
328
  instance_type=default_get_instance_types.instance_types[0].id,
340
- security_groups=[__item.id for __item in [default_security_group]],
341
329
  internet_charge_type="PayByTraffic",
342
- internet_max_bandwidth_out=10,
343
- availability_zone=default_get_instance_types.instance_types[0].availability_zones[0],
344
- instance_charge_type="PostPaid",
330
+ internet_max_bandwidth_out=5,
345
331
  system_disk_category="cloud_efficiency",
346
- vswitch_id=default_switch.id,
332
+ image_id=default_get_images.images[0].id,
347
333
  instance_name=name)
348
- foo = alicloud.vpc.RouteEntry("foo",
349
- route_table_id=default_network.route_table_id,
334
+ foo_route_entry = alicloud.vpc.RouteEntry("foo",
335
+ route_table_id=foo.route_table_id,
350
336
  destination_cidrblock="172.11.1.1/32",
351
337
  nexthop_type="Instance",
352
- nexthop_id=default_instance.id)
338
+ nexthop_id=foo_instance.id)
353
339
  ```
354
340
 
355
341
  ## Module Support
@@ -359,30 +345,30 @@ class RouteEntry(pulumi.CustomResource):
359
345
 
360
346
  ## Import
361
347
 
348
+ Router entry can be imported using the id, e.g (formatted as<route_table_id:router_id:destination_cidrblock:nexthop_type:nexthop_id>).
349
+
362
350
  ```sh
363
- $ pulumi import alicloud:vpc/routeEntry:RouteEntry example <route_table_id>:<router_id>:<destination_cidrblock>:<nexthop_type>:<nexthop_id>
351
+ $ pulumi import alicloud:vpc/routeEntry:RouteEntry example vtb-123456:vrt-123456:0.0.0.0/0:NatGateway:ngw-123456
364
352
  ```
365
353
 
366
354
  :param str resource_name: The name of the resource.
367
355
  :param pulumi.ResourceOptions opts: Options for the resource.
368
- :param pulumi.Input[str] description: The description of the Route Entry. The description must be `1` to `256` characters in length, and cannot start with `http://` or `https://`.
369
- :param pulumi.Input[str] destination_cidrblock: The destination CIDR block of the custom route entry.
370
- :param pulumi.Input[str] name: The name of the Route Entry. The name must be `1` to `128` characters in length, and cannot start with `http://` or `https://`.
371
- :param pulumi.Input[str] nexthop_id: The ID of Next Hop.
372
- :param pulumi.Input[str] nexthop_type: The type of Next Hop. Valid values:
373
- - `Instance`: An Elastic Compute Service (ECS) instance.
374
- - `HaVip`: A high-availability virtual IP address (HAVIP).
375
- - `RouterInterface`: A router interface.
376
- - `NetworkInterface`: An elastic network interface (ENI).
377
- - `VpnGateway`: A VPN Gateway.
378
- - `IPv6Gateway`: An IPv6 gateway.
379
- - `NatGateway`: A Nat Gateway.
380
- - `Attachment`: A transit router.
381
- - `VpcPeer`: A VPC Peering Connection.
382
- - `Ipv4Gateway`: An IPv4 gateway.
383
- - `GatewayEndpoint`: A gateway endpoint.
384
- - `Ecr`: A Express Connect Router (ECR).
385
- :param pulumi.Input[str] route_table_id: The ID of the Route Table.
356
+ :param pulumi.Input[str] destination_cidrblock: The RouteEntry's target network segment.
357
+ :param pulumi.Input[str] name: The name of the route entry. This name 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://.
358
+ :param pulumi.Input[str] nexthop_id: The route entry's next hop. ECS instance ID or VPC router interface ID.
359
+ :param pulumi.Input[str] nexthop_type: The next hop type. Available values:
360
+ - `Instance` (Default): an Elastic Compute Service (ECS) instance. This is the default value.
361
+ - `RouterInterface`: a router interface.
362
+ - `VpnGateway`: a VPN Gateway.
363
+ - `HaVip`: a high-availability virtual IP address (HAVIP).
364
+ - `NetworkInterface`: an elastic network interface (ENI).
365
+ - `NatGateway`: a Nat Gateway.
366
+ - `IPv6Gateway`: an IPv6 gateway.
367
+ - `Attachment`: a transit router.
368
+ - `VpcPeer`: a VPC Peering Connection.
369
+ - `Ipv4Gateway` (Available in 1.193.0+): an IPv4 gateway.
370
+ :param pulumi.Input[str] route_table_id: The ID of the route table.
371
+ :param pulumi.Input[str] router_id: This argument has been deprecated. Please use other arguments to launch a custom route entry.
386
372
  """
387
373
  ...
388
374
  @overload
@@ -391,11 +377,7 @@ class RouteEntry(pulumi.CustomResource):
391
377
  args: RouteEntryArgs,
392
378
  opts: Optional[pulumi.ResourceOptions] = None):
393
379
  """
394
- Provides a Route Entry resource. A Route Entry represents a route item of one VPC Route Table.
395
-
396
- For information about Route Entry and how to use it, see [What is Route Entry](https://www.alibabacloud.com/help/en/vpc/developer-reference/api-vpc-2016-04-28-createrouteentry).
397
-
398
- > **NOTE:** Available since v0.1.0.
380
+ Provides a route entry resource. A route entry represents a route item of one VPC route table.
399
381
 
400
382
  ## Example Usage
401
383
 
@@ -405,43 +387,53 @@ class RouteEntry(pulumi.CustomResource):
405
387
  import pulumi
406
388
  import pulumi_alicloud as alicloud
407
389
 
390
+ default = alicloud.get_zones(available_resource_creation="VSwitch")
391
+ default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=default.zones[0].id,
392
+ cpu_core_count=1,
393
+ memory_size=2)
394
+ default_get_images = alicloud.ecs.get_images(name_regex="^ubuntu_18.*64",
395
+ most_recent=True,
396
+ owners="system")
408
397
  config = pulumi.Config()
409
398
  name = config.get("name")
410
399
  if name is None:
411
- name = "terraform-example"
412
- default = alicloud.get_zones(available_disk_category="cloud_efficiency",
413
- available_resource_creation="VSwitch")
414
- default_get_images = alicloud.ecs.get_images(most_recent=True,
415
- owners="system")
416
- default_get_instance_types = alicloud.ecs.get_instance_types(availability_zone=default.zones[0].id,
417
- image_id=default_get_images.images[0].id)
418
- default_network = alicloud.vpc.Network("default",
400
+ name = "RouteEntryConfig"
401
+ foo = alicloud.vpc.Network("foo",
419
402
  vpc_name=name,
420
- cidr_block="192.168.0.0/16")
421
- default_switch = alicloud.vpc.Switch("default",
422
- vswitch_name=name,
423
- vpc_id=default_network.id,
424
- cidr_block="192.168.192.0/24",
425
- zone_id=default.zones[0].id)
426
- default_security_group = alicloud.ecs.SecurityGroup("default",
403
+ cidr_block="10.1.0.0/21")
404
+ foo_switch = alicloud.vpc.Switch("foo",
405
+ vpc_id=foo.id,
406
+ cidr_block="10.1.1.0/24",
407
+ zone_id=default.zones[0].id,
408
+ vswitch_name=name)
409
+ tf_test_foo = alicloud.ecs.SecurityGroup("tf_test_foo",
427
410
  name=name,
428
- vpc_id=default_network.id)
429
- default_instance = alicloud.ecs.Instance("default",
430
- image_id=default_get_images.images[0].id,
411
+ description="foo",
412
+ vpc_id=foo.id)
413
+ ingress = alicloud.ecs.SecurityGroupRule("ingress",
414
+ type="ingress",
415
+ ip_protocol="tcp",
416
+ nic_type="intranet",
417
+ policy="accept",
418
+ port_range="22/22",
419
+ priority=1,
420
+ security_group_id=tf_test_foo.id,
421
+ cidr_ip="0.0.0.0/0")
422
+ foo_instance = alicloud.ecs.Instance("foo",
423
+ security_groups=[tf_test_foo.id],
424
+ vswitch_id=foo_switch.id,
425
+ instance_charge_type="PostPaid",
431
426
  instance_type=default_get_instance_types.instance_types[0].id,
432
- security_groups=[__item.id for __item in [default_security_group]],
433
427
  internet_charge_type="PayByTraffic",
434
- internet_max_bandwidth_out=10,
435
- availability_zone=default_get_instance_types.instance_types[0].availability_zones[0],
436
- instance_charge_type="PostPaid",
428
+ internet_max_bandwidth_out=5,
437
429
  system_disk_category="cloud_efficiency",
438
- vswitch_id=default_switch.id,
430
+ image_id=default_get_images.images[0].id,
439
431
  instance_name=name)
440
- foo = alicloud.vpc.RouteEntry("foo",
441
- route_table_id=default_network.route_table_id,
432
+ foo_route_entry = alicloud.vpc.RouteEntry("foo",
433
+ route_table_id=foo.route_table_id,
442
434
  destination_cidrblock="172.11.1.1/32",
443
435
  nexthop_type="Instance",
444
- nexthop_id=default_instance.id)
436
+ nexthop_id=foo_instance.id)
445
437
  ```
446
438
 
447
439
  ## Module Support
@@ -451,8 +443,10 @@ class RouteEntry(pulumi.CustomResource):
451
443
 
452
444
  ## Import
453
445
 
446
+ Router entry can be imported using the id, e.g (formatted as<route_table_id:router_id:destination_cidrblock:nexthop_type:nexthop_id>).
447
+
454
448
  ```sh
455
- $ pulumi import alicloud:vpc/routeEntry:RouteEntry example <route_table_id>:<router_id>:<destination_cidrblock>:<nexthop_type>:<nexthop_id>
449
+ $ pulumi import alicloud:vpc/routeEntry:RouteEntry example vtb-123456:vrt-123456:0.0.0.0/0:NatGateway:ngw-123456
456
450
  ```
457
451
 
458
452
  :param str resource_name: The name of the resource.
@@ -470,12 +464,12 @@ class RouteEntry(pulumi.CustomResource):
470
464
  def _internal_init(__self__,
471
465
  resource_name: str,
472
466
  opts: Optional[pulumi.ResourceOptions] = None,
473
- description: Optional[pulumi.Input[str]] = None,
474
467
  destination_cidrblock: Optional[pulumi.Input[str]] = None,
475
468
  name: Optional[pulumi.Input[str]] = None,
476
469
  nexthop_id: Optional[pulumi.Input[str]] = None,
477
470
  nexthop_type: Optional[pulumi.Input[str]] = None,
478
471
  route_table_id: Optional[pulumi.Input[str]] = None,
472
+ router_id: Optional[pulumi.Input[str]] = None,
479
473
  __props__=None):
480
474
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
481
475
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -485,7 +479,6 @@ class RouteEntry(pulumi.CustomResource):
485
479
  raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
486
480
  __props__ = RouteEntryArgs.__new__(RouteEntryArgs)
487
481
 
488
- __props__.__dict__["description"] = description
489
482
  __props__.__dict__["destination_cidrblock"] = destination_cidrblock
490
483
  __props__.__dict__["name"] = name
491
484
  __props__.__dict__["nexthop_id"] = nexthop_id
@@ -493,7 +486,7 @@ class RouteEntry(pulumi.CustomResource):
493
486
  if route_table_id is None and not opts.urn:
494
487
  raise TypeError("Missing required property 'route_table_id'")
495
488
  __props__.__dict__["route_table_id"] = route_table_id
496
- __props__.__dict__["router_id"] = None
489
+ __props__.__dict__["router_id"] = router_id
497
490
  super(RouteEntry, __self__).__init__(
498
491
  'alicloud:vpc/routeEntry:RouteEntry',
499
492
  resource_name,
@@ -504,7 +497,6 @@ class RouteEntry(pulumi.CustomResource):
504
497
  def get(resource_name: str,
505
498
  id: pulumi.Input[str],
506
499
  opts: Optional[pulumi.ResourceOptions] = None,
507
- description: Optional[pulumi.Input[str]] = None,
508
500
  destination_cidrblock: Optional[pulumi.Input[str]] = None,
509
501
  name: Optional[pulumi.Input[str]] = None,
510
502
  nexthop_id: Optional[pulumi.Input[str]] = None,
@@ -518,31 +510,27 @@ class RouteEntry(pulumi.CustomResource):
518
510
  :param str resource_name: The unique name of the resulting resource.
519
511
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
520
512
  :param pulumi.ResourceOptions opts: Options for the resource.
521
- :param pulumi.Input[str] description: The description of the Route Entry. The description must be `1` to `256` characters in length, and cannot start with `http://` or `https://`.
522
- :param pulumi.Input[str] destination_cidrblock: The destination CIDR block of the custom route entry.
523
- :param pulumi.Input[str] name: The name of the Route Entry. The name must be `1` to `128` characters in length, and cannot start with `http://` or `https://`.
524
- :param pulumi.Input[str] nexthop_id: The ID of Next Hop.
525
- :param pulumi.Input[str] nexthop_type: The type of Next Hop. Valid values:
526
- - `Instance`: An Elastic Compute Service (ECS) instance.
527
- - `HaVip`: A high-availability virtual IP address (HAVIP).
528
- - `RouterInterface`: A router interface.
529
- - `NetworkInterface`: An elastic network interface (ENI).
530
- - `VpnGateway`: A VPN Gateway.
531
- - `IPv6Gateway`: An IPv6 gateway.
532
- - `NatGateway`: A Nat Gateway.
533
- - `Attachment`: A transit router.
534
- - `VpcPeer`: A VPC Peering Connection.
535
- - `Ipv4Gateway`: An IPv4 gateway.
536
- - `GatewayEndpoint`: A gateway endpoint.
537
- - `Ecr`: A Express Connect Router (ECR).
538
- :param pulumi.Input[str] route_table_id: The ID of the Route Table.
513
+ :param pulumi.Input[str] destination_cidrblock: The RouteEntry's target network segment.
514
+ :param pulumi.Input[str] name: The name of the route entry. This name 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://.
515
+ :param pulumi.Input[str] nexthop_id: The route entry's next hop. ECS instance ID or VPC router interface ID.
516
+ :param pulumi.Input[str] nexthop_type: The next hop type. Available values:
517
+ - `Instance` (Default): an Elastic Compute Service (ECS) instance. This is the default value.
518
+ - `RouterInterface`: a router interface.
519
+ - `VpnGateway`: a VPN Gateway.
520
+ - `HaVip`: a high-availability virtual IP address (HAVIP).
521
+ - `NetworkInterface`: an elastic network interface (ENI).
522
+ - `NatGateway`: a Nat Gateway.
523
+ - `IPv6Gateway`: an IPv6 gateway.
524
+ - `Attachment`: a transit router.
525
+ - `VpcPeer`: a VPC Peering Connection.
526
+ - `Ipv4Gateway` (Available in 1.193.0+): an IPv4 gateway.
527
+ :param pulumi.Input[str] route_table_id: The ID of the route table.
539
528
  :param pulumi.Input[str] router_id: This argument has been deprecated. Please use other arguments to launch a custom route entry.
540
529
  """
541
530
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
542
531
 
543
532
  __props__ = _RouteEntryState.__new__(_RouteEntryState)
544
533
 
545
- __props__.__dict__["description"] = description
546
534
  __props__.__dict__["destination_cidrblock"] = destination_cidrblock
547
535
  __props__.__dict__["name"] = name
548
536
  __props__.__dict__["nexthop_id"] = nexthop_id
@@ -551,19 +539,11 @@ class RouteEntry(pulumi.CustomResource):
551
539
  __props__.__dict__["router_id"] = router_id
552
540
  return RouteEntry(resource_name, opts=opts, __props__=__props__)
553
541
 
554
- @property
555
- @pulumi.getter
556
- def description(self) -> pulumi.Output[Optional[str]]:
557
- """
558
- The description of the Route Entry. The description must be `1` to `256` characters in length, and cannot start with `http://` or `https://`.
559
- """
560
- return pulumi.get(self, "description")
561
-
562
542
  @property
563
543
  @pulumi.getter(name="destinationCidrblock")
564
544
  def destination_cidrblock(self) -> pulumi.Output[Optional[str]]:
565
545
  """
566
- The destination CIDR block of the custom route entry.
546
+ The RouteEntry's target network segment.
567
547
  """
568
548
  return pulumi.get(self, "destination_cidrblock")
569
549
 
@@ -571,7 +551,7 @@ class RouteEntry(pulumi.CustomResource):
571
551
  @pulumi.getter
572
552
  def name(self) -> pulumi.Output[str]:
573
553
  """
574
- The name of the Route Entry. The name must be `1` to `128` characters in length, and cannot start with `http://` or `https://`.
554
+ The name of the route entry. This name 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://.
575
555
  """
576
556
  return pulumi.get(self, "name")
577
557
 
@@ -579,7 +559,7 @@ class RouteEntry(pulumi.CustomResource):
579
559
  @pulumi.getter(name="nexthopId")
580
560
  def nexthop_id(self) -> pulumi.Output[Optional[str]]:
581
561
  """
582
- The ID of Next Hop.
562
+ The route entry's next hop. ECS instance ID or VPC router interface ID.
583
563
  """
584
564
  return pulumi.get(self, "nexthop_id")
585
565
 
@@ -587,19 +567,17 @@ class RouteEntry(pulumi.CustomResource):
587
567
  @pulumi.getter(name="nexthopType")
588
568
  def nexthop_type(self) -> pulumi.Output[Optional[str]]:
589
569
  """
590
- The type of Next Hop. Valid values:
591
- - `Instance`: An Elastic Compute Service (ECS) instance.
592
- - `HaVip`: A high-availability virtual IP address (HAVIP).
593
- - `RouterInterface`: A router interface.
594
- - `NetworkInterface`: An elastic network interface (ENI).
595
- - `VpnGateway`: A VPN Gateway.
596
- - `IPv6Gateway`: An IPv6 gateway.
597
- - `NatGateway`: A Nat Gateway.
598
- - `Attachment`: A transit router.
599
- - `VpcPeer`: A VPC Peering Connection.
600
- - `Ipv4Gateway`: An IPv4 gateway.
601
- - `GatewayEndpoint`: A gateway endpoint.
602
- - `Ecr`: A Express Connect Router (ECR).
570
+ The next hop type. Available values:
571
+ - `Instance` (Default): an Elastic Compute Service (ECS) instance. This is the default value.
572
+ - `RouterInterface`: a router interface.
573
+ - `VpnGateway`: a VPN Gateway.
574
+ - `HaVip`: a high-availability virtual IP address (HAVIP).
575
+ - `NetworkInterface`: an elastic network interface (ENI).
576
+ - `NatGateway`: a Nat Gateway.
577
+ - `IPv6Gateway`: an IPv6 gateway.
578
+ - `Attachment`: a transit router.
579
+ - `VpcPeer`: a VPC Peering Connection.
580
+ - `Ipv4Gateway` (Available in 1.193.0+): an IPv4 gateway.
603
581
  """
604
582
  return pulumi.get(self, "nexthop_type")
605
583
 
@@ -607,7 +585,7 @@ class RouteEntry(pulumi.CustomResource):
607
585
  @pulumi.getter(name="routeTableId")
608
586
  def route_table_id(self) -> pulumi.Output[str]:
609
587
  """
610
- The ID of the Route Table.
588
+ The ID of the route table.
611
589
  """
612
590
  return pulumi.get(self, "route_table_id")
613
591