pulumi-alicloud 3.63.0a1726291447__py3-none-any.whl → 3.63.0a1726723452__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/amqp/binding.py +30 -36
- pulumi_alicloud/cen/_inputs.py +180 -14
- pulumi_alicloud/cen/outputs.py +173 -12
- pulumi_alicloud/cen/traffic_marking_policy.py +116 -53
- pulumi_alicloud/cen/transit_router_vpc_attachment.py +338 -119
- pulumi_alicloud/cr/chart_namespace.py +14 -6
- pulumi_alicloud/cr/endpoint_acl_policy.py +10 -2
- pulumi_alicloud/cr/namespace.py +10 -2
- pulumi_alicloud/cs/registry_enterprise_sync_rule.py +10 -10
- pulumi_alicloud/ddos/bgp_ip.py +1 -1
- pulumi_alicloud/ecs/_inputs.py +28 -0
- pulumi_alicloud/ecs/outputs.py +20 -0
- pulumi_alicloud/emrv2/_inputs.py +12 -12
- pulumi_alicloud/emrv2/outputs.py +12 -12
- pulumi_alicloud/ens/_inputs.py +50 -2
- pulumi_alicloud/ens/instance.py +428 -184
- pulumi_alicloud/ens/outputs.py +57 -2
- pulumi_alicloud/expressconnect/physical_connection.py +321 -185
- pulumi_alicloud/fc/trigger.py +22 -24
- pulumi_alicloud/ga/endpoint_group.py +68 -14
- pulumi_alicloud/mongodb/instance.py +94 -0
- pulumi_alicloud/nlb/_inputs.py +120 -64
- pulumi_alicloud/nlb/get_listeners.py +32 -2
- pulumi_alicloud/nlb/get_server_group_server_attachments.py +8 -2
- pulumi_alicloud/nlb/listener.py +315 -245
- pulumi_alicloud/nlb/listener_additional_certificate_attachment.py +25 -25
- pulumi_alicloud/nlb/load_balancer.py +181 -212
- pulumi_alicloud/nlb/load_balancer_security_group_attachment.py +29 -39
- pulumi_alicloud/nlb/loadbalancer_common_bandwidth_package_attachment.py +22 -18
- pulumi_alicloud/nlb/outputs.py +122 -66
- pulumi_alicloud/nlb/security_policy.py +53 -25
- pulumi_alicloud/nlb/server_group.py +196 -133
- pulumi_alicloud/ocean/base_instance.py +498 -163
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/servicemesh/extension_provider.py +2 -2
- pulumi_alicloud/vpc/common_bandwith_package_attachment.py +2 -2
- {pulumi_alicloud-3.63.0a1726291447.dist-info → pulumi_alicloud-3.63.0a1726723452.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.63.0a1726291447.dist-info → pulumi_alicloud-3.63.0a1726723452.dist-info}/RECORD +40 -40
- {pulumi_alicloud-3.63.0a1726291447.dist-info → pulumi_alicloud-3.63.0a1726723452.dist-info}/WHEEL +1 -1
- {pulumi_alicloud-3.63.0a1726291447.dist-info → pulumi_alicloud-3.63.0a1726723452.dist-info}/top_level.txt +0 -0
pulumi_alicloud/amqp/binding.py
CHANGED
|
@@ -305,10 +305,6 @@ class Binding(pulumi.CustomResource):
|
|
|
305
305
|
import pulumi
|
|
306
306
|
import pulumi_alicloud as alicloud
|
|
307
307
|
|
|
308
|
-
config = pulumi.Config()
|
|
309
|
-
name = config.get("name")
|
|
310
|
-
if name is None:
|
|
311
|
-
name = "terraform-example"
|
|
312
308
|
default = alicloud.amqp.Instance("default",
|
|
313
309
|
instance_type="enterprise",
|
|
314
310
|
max_tps="3000",
|
|
@@ -316,29 +312,30 @@ class Binding(pulumi.CustomResource):
|
|
|
316
312
|
storage_size="700",
|
|
317
313
|
support_eip=False,
|
|
318
314
|
max_eip_tps="128",
|
|
319
|
-
payment_type="Subscription"
|
|
315
|
+
payment_type="Subscription",
|
|
316
|
+
period=1)
|
|
320
317
|
default_virtual_host = alicloud.amqp.VirtualHost("default",
|
|
321
318
|
instance_id=default.id,
|
|
322
|
-
virtual_host_name=
|
|
319
|
+
virtual_host_name="tf-example")
|
|
323
320
|
default_exchange = alicloud.amqp.Exchange("default",
|
|
324
|
-
instance_id=default.id,
|
|
325
|
-
virtual_host_name=default_virtual_host.virtual_host_name,
|
|
326
|
-
exchange_name=name,
|
|
327
|
-
exchange_type="HEADERS",
|
|
328
321
|
auto_delete_state=False,
|
|
329
|
-
|
|
322
|
+
exchange_name="tf-example",
|
|
323
|
+
exchange_type="HEADERS",
|
|
324
|
+
instance_id=default.id,
|
|
325
|
+
internal=False,
|
|
326
|
+
virtual_host_name=default_virtual_host.virtual_host_name)
|
|
330
327
|
default_queue = alicloud.amqp.Queue("default",
|
|
331
328
|
instance_id=default.id,
|
|
332
|
-
|
|
333
|
-
|
|
329
|
+
queue_name="tf-example",
|
|
330
|
+
virtual_host_name=default_virtual_host.virtual_host_name)
|
|
334
331
|
default_binding = alicloud.amqp.Binding("default",
|
|
332
|
+
argument="x-match:all",
|
|
333
|
+
binding_key=default_queue.queue_name,
|
|
334
|
+
binding_type="QUEUE",
|
|
335
|
+
destination_name="tf-example",
|
|
335
336
|
instance_id=default.id,
|
|
336
|
-
virtual_host_name=default_virtual_host.virtual_host_name,
|
|
337
337
|
source_exchange=default_exchange.exchange_name,
|
|
338
|
-
|
|
339
|
-
binding_type="QUEUE",
|
|
340
|
-
binding_key=default_queue.queue_name,
|
|
341
|
-
argument="x-match:all")
|
|
338
|
+
virtual_host_name=default_virtual_host.virtual_host_name)
|
|
342
339
|
```
|
|
343
340
|
|
|
344
341
|
## Import
|
|
@@ -388,10 +385,6 @@ class Binding(pulumi.CustomResource):
|
|
|
388
385
|
import pulumi
|
|
389
386
|
import pulumi_alicloud as alicloud
|
|
390
387
|
|
|
391
|
-
config = pulumi.Config()
|
|
392
|
-
name = config.get("name")
|
|
393
|
-
if name is None:
|
|
394
|
-
name = "terraform-example"
|
|
395
388
|
default = alicloud.amqp.Instance("default",
|
|
396
389
|
instance_type="enterprise",
|
|
397
390
|
max_tps="3000",
|
|
@@ -399,29 +392,30 @@ class Binding(pulumi.CustomResource):
|
|
|
399
392
|
storage_size="700",
|
|
400
393
|
support_eip=False,
|
|
401
394
|
max_eip_tps="128",
|
|
402
|
-
payment_type="Subscription"
|
|
395
|
+
payment_type="Subscription",
|
|
396
|
+
period=1)
|
|
403
397
|
default_virtual_host = alicloud.amqp.VirtualHost("default",
|
|
404
398
|
instance_id=default.id,
|
|
405
|
-
virtual_host_name=
|
|
399
|
+
virtual_host_name="tf-example")
|
|
406
400
|
default_exchange = alicloud.amqp.Exchange("default",
|
|
407
|
-
instance_id=default.id,
|
|
408
|
-
virtual_host_name=default_virtual_host.virtual_host_name,
|
|
409
|
-
exchange_name=name,
|
|
410
|
-
exchange_type="HEADERS",
|
|
411
401
|
auto_delete_state=False,
|
|
412
|
-
|
|
402
|
+
exchange_name="tf-example",
|
|
403
|
+
exchange_type="HEADERS",
|
|
404
|
+
instance_id=default.id,
|
|
405
|
+
internal=False,
|
|
406
|
+
virtual_host_name=default_virtual_host.virtual_host_name)
|
|
413
407
|
default_queue = alicloud.amqp.Queue("default",
|
|
414
408
|
instance_id=default.id,
|
|
415
|
-
|
|
416
|
-
|
|
409
|
+
queue_name="tf-example",
|
|
410
|
+
virtual_host_name=default_virtual_host.virtual_host_name)
|
|
417
411
|
default_binding = alicloud.amqp.Binding("default",
|
|
412
|
+
argument="x-match:all",
|
|
413
|
+
binding_key=default_queue.queue_name,
|
|
414
|
+
binding_type="QUEUE",
|
|
415
|
+
destination_name="tf-example",
|
|
418
416
|
instance_id=default.id,
|
|
419
|
-
virtual_host_name=default_virtual_host.virtual_host_name,
|
|
420
417
|
source_exchange=default_exchange.exchange_name,
|
|
421
|
-
|
|
422
|
-
binding_type="QUEUE",
|
|
423
|
-
binding_key=default_queue.queue_name,
|
|
424
|
-
argument="x-match:all")
|
|
418
|
+
virtual_host_name=default_virtual_host.virtual_host_name)
|
|
425
419
|
```
|
|
426
420
|
|
|
427
421
|
## Import
|
pulumi_alicloud/cen/_inputs.py
CHANGED
|
@@ -10,46 +10,212 @@ from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
|
10
10
|
from .. import _utilities
|
|
11
11
|
|
|
12
12
|
__all__ = [
|
|
13
|
+
'TrafficMarkingPolicyTrafficMatchRuleArgs',
|
|
13
14
|
'TransitRouterVpcAttachmentZoneMappingArgs',
|
|
14
15
|
'TransitRouterVpnAttachmentZoneArgs',
|
|
15
16
|
]
|
|
16
17
|
|
|
18
|
+
@pulumi.input_type
|
|
19
|
+
class TrafficMarkingPolicyTrafficMatchRuleArgs:
|
|
20
|
+
def __init__(__self__, *,
|
|
21
|
+
address_family: Optional[pulumi.Input[str]] = None,
|
|
22
|
+
dst_cidr: Optional[pulumi.Input[str]] = None,
|
|
23
|
+
dst_port_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
24
|
+
match_dscp: Optional[pulumi.Input[int]] = None,
|
|
25
|
+
protocol: Optional[pulumi.Input[str]] = None,
|
|
26
|
+
src_cidr: Optional[pulumi.Input[str]] = None,
|
|
27
|
+
src_port_ranges: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]] = None,
|
|
28
|
+
traffic_match_rule_description: Optional[pulumi.Input[str]] = None,
|
|
29
|
+
traffic_match_rule_name: Optional[pulumi.Input[str]] = None):
|
|
30
|
+
"""
|
|
31
|
+
:param pulumi.Input[str] address_family: IP Address Family.
|
|
32
|
+
:param pulumi.Input[str] dst_cidr: The destination network segment of the traffic message. The flow classification matches the traffic of the destination IP address in the destination network segment. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any destination IP address.
|
|
33
|
+
:param pulumi.Input[Sequence[pulumi.Input[int]]] dst_port_ranges: The destination port of the traffic message. Valid values: **-1**, `1` to `65535`. The flow classification rule matches the traffic of the destination port number in the destination port range. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any destination port number. The current parameter supports a maximum of 2 port numbers. The input format is described as follows:
|
|
34
|
+
- If you only enter a port number, such as 1, the system defaults to match the traffic with the destination port of 1.
|
|
35
|
+
- If you enter 2 port numbers, such as 1 and 200, the system defaults to match the traffic of the destination port in the range of 1 to 200.
|
|
36
|
+
- If you enter 2 port numbers and one of them is - 1, the other port must also be - 1, indicating that it matches any destination port.
|
|
37
|
+
:param pulumi.Input[int] match_dscp: The DSCP value of the traffic message. Valid values: `0` to **63 * *. The flow classification rule matches the flow with the specified DSCP value. If the flow classification rule is not set, it means that the flow classification rule matches the flow with any DSCP value.> **NOTE:** The current DSCP value refers to the DSCP value that the traffic message has carried before entering the cross-region connection.
|
|
38
|
+
:param pulumi.Input[str] protocol: The protocol type of the traffic message. Stream classification rules can match traffic of multiple protocol types, such as `HTTP`, `HTTPS`, `TCP`, `UDP`, `SSH`, and **Telnet. For more protocol types, please log on to the [Cloud Enterprise Network Management Console](https://cen.console.aliyun.com/cen/list) to view.
|
|
39
|
+
:param pulumi.Input[str] src_cidr: The source network segment of the traffic message. The flow classification rule matches the traffic of the source IP address in the source network segment. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any source IP address.
|
|
40
|
+
:param pulumi.Input[Sequence[pulumi.Input[int]]] src_port_ranges: The source port of the traffic message. Valid values: **-1**, `1` to `65535`. The flow classification rule matches the traffic of the source port number in the source port range. If it is not set, it means that the flow classification rule matches the traffic of any source port number. The current parameter supports entering up to two port numbers. The input format is described as follows:
|
|
41
|
+
- If you only enter a port number, such as 1, the system defaults to match the traffic with source port 1.
|
|
42
|
+
- If you enter two port numbers, such as 1 and 200, the system defaults to match the traffic with the source port in the range of 1 to 200.
|
|
43
|
+
- If you enter two port numbers and one of them is - 1, the other port must also be - 1, indicating that it matches any source port.
|
|
44
|
+
:param pulumi.Input[str] traffic_match_rule_description: The description information of the stream classification rule. The description must be 2 to 128 characters in length and can contain numbers, dashes (-), and underscores (_).
|
|
45
|
+
:param pulumi.Input[str] traffic_match_rule_name: The name of the stream classification rule. The name must be 2 to 128 characters in length and can contain numbers, dashes (-), and underscores (_).
|
|
46
|
+
"""
|
|
47
|
+
if address_family is not None:
|
|
48
|
+
pulumi.set(__self__, "address_family", address_family)
|
|
49
|
+
if dst_cidr is not None:
|
|
50
|
+
pulumi.set(__self__, "dst_cidr", dst_cidr)
|
|
51
|
+
if dst_port_ranges is not None:
|
|
52
|
+
pulumi.set(__self__, "dst_port_ranges", dst_port_ranges)
|
|
53
|
+
if match_dscp is not None:
|
|
54
|
+
pulumi.set(__self__, "match_dscp", match_dscp)
|
|
55
|
+
if protocol is not None:
|
|
56
|
+
pulumi.set(__self__, "protocol", protocol)
|
|
57
|
+
if src_cidr is not None:
|
|
58
|
+
pulumi.set(__self__, "src_cidr", src_cidr)
|
|
59
|
+
if src_port_ranges is not None:
|
|
60
|
+
pulumi.set(__self__, "src_port_ranges", src_port_ranges)
|
|
61
|
+
if traffic_match_rule_description is not None:
|
|
62
|
+
pulumi.set(__self__, "traffic_match_rule_description", traffic_match_rule_description)
|
|
63
|
+
if traffic_match_rule_name is not None:
|
|
64
|
+
pulumi.set(__self__, "traffic_match_rule_name", traffic_match_rule_name)
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
@pulumi.getter(name="addressFamily")
|
|
68
|
+
def address_family(self) -> Optional[pulumi.Input[str]]:
|
|
69
|
+
"""
|
|
70
|
+
IP Address Family.
|
|
71
|
+
"""
|
|
72
|
+
return pulumi.get(self, "address_family")
|
|
73
|
+
|
|
74
|
+
@address_family.setter
|
|
75
|
+
def address_family(self, value: Optional[pulumi.Input[str]]):
|
|
76
|
+
pulumi.set(self, "address_family", value)
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
@pulumi.getter(name="dstCidr")
|
|
80
|
+
def dst_cidr(self) -> Optional[pulumi.Input[str]]:
|
|
81
|
+
"""
|
|
82
|
+
The destination network segment of the traffic message. The flow classification matches the traffic of the destination IP address in the destination network segment. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any destination IP address.
|
|
83
|
+
"""
|
|
84
|
+
return pulumi.get(self, "dst_cidr")
|
|
85
|
+
|
|
86
|
+
@dst_cidr.setter
|
|
87
|
+
def dst_cidr(self, value: Optional[pulumi.Input[str]]):
|
|
88
|
+
pulumi.set(self, "dst_cidr", value)
|
|
89
|
+
|
|
90
|
+
@property
|
|
91
|
+
@pulumi.getter(name="dstPortRanges")
|
|
92
|
+
def dst_port_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
93
|
+
"""
|
|
94
|
+
The destination port of the traffic message. Valid values: **-1**, `1` to `65535`. The flow classification rule matches the traffic of the destination port number in the destination port range. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any destination port number. The current parameter supports a maximum of 2 port numbers. The input format is described as follows:
|
|
95
|
+
- If you only enter a port number, such as 1, the system defaults to match the traffic with the destination port of 1.
|
|
96
|
+
- If you enter 2 port numbers, such as 1 and 200, the system defaults to match the traffic of the destination port in the range of 1 to 200.
|
|
97
|
+
- If you enter 2 port numbers and one of them is - 1, the other port must also be - 1, indicating that it matches any destination port.
|
|
98
|
+
"""
|
|
99
|
+
return pulumi.get(self, "dst_port_ranges")
|
|
100
|
+
|
|
101
|
+
@dst_port_ranges.setter
|
|
102
|
+
def dst_port_ranges(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
|
|
103
|
+
pulumi.set(self, "dst_port_ranges", value)
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
@pulumi.getter(name="matchDscp")
|
|
107
|
+
def match_dscp(self) -> Optional[pulumi.Input[int]]:
|
|
108
|
+
"""
|
|
109
|
+
The DSCP value of the traffic message. Valid values: `0` to **63 * *. The flow classification rule matches the flow with the specified DSCP value. If the flow classification rule is not set, it means that the flow classification rule matches the flow with any DSCP value.> **NOTE:** The current DSCP value refers to the DSCP value that the traffic message has carried before entering the cross-region connection.
|
|
110
|
+
"""
|
|
111
|
+
return pulumi.get(self, "match_dscp")
|
|
112
|
+
|
|
113
|
+
@match_dscp.setter
|
|
114
|
+
def match_dscp(self, value: Optional[pulumi.Input[int]]):
|
|
115
|
+
pulumi.set(self, "match_dscp", value)
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
@pulumi.getter
|
|
119
|
+
def protocol(self) -> Optional[pulumi.Input[str]]:
|
|
120
|
+
"""
|
|
121
|
+
The protocol type of the traffic message. Stream classification rules can match traffic of multiple protocol types, such as `HTTP`, `HTTPS`, `TCP`, `UDP`, `SSH`, and **Telnet. For more protocol types, please log on to the [Cloud Enterprise Network Management Console](https://cen.console.aliyun.com/cen/list) to view.
|
|
122
|
+
"""
|
|
123
|
+
return pulumi.get(self, "protocol")
|
|
124
|
+
|
|
125
|
+
@protocol.setter
|
|
126
|
+
def protocol(self, value: Optional[pulumi.Input[str]]):
|
|
127
|
+
pulumi.set(self, "protocol", value)
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
@pulumi.getter(name="srcCidr")
|
|
131
|
+
def src_cidr(self) -> Optional[pulumi.Input[str]]:
|
|
132
|
+
"""
|
|
133
|
+
The source network segment of the traffic message. The flow classification rule matches the traffic of the source IP address in the source network segment. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any source IP address.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "src_cidr")
|
|
136
|
+
|
|
137
|
+
@src_cidr.setter
|
|
138
|
+
def src_cidr(self, value: Optional[pulumi.Input[str]]):
|
|
139
|
+
pulumi.set(self, "src_cidr", value)
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
@pulumi.getter(name="srcPortRanges")
|
|
143
|
+
def src_port_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]:
|
|
144
|
+
"""
|
|
145
|
+
The source port of the traffic message. Valid values: **-1**, `1` to `65535`. The flow classification rule matches the traffic of the source port number in the source port range. If it is not set, it means that the flow classification rule matches the traffic of any source port number. The current parameter supports entering up to two port numbers. The input format is described as follows:
|
|
146
|
+
- If you only enter a port number, such as 1, the system defaults to match the traffic with source port 1.
|
|
147
|
+
- If you enter two port numbers, such as 1 and 200, the system defaults to match the traffic with the source port in the range of 1 to 200.
|
|
148
|
+
- If you enter two port numbers and one of them is - 1, the other port must also be - 1, indicating that it matches any source port.
|
|
149
|
+
"""
|
|
150
|
+
return pulumi.get(self, "src_port_ranges")
|
|
151
|
+
|
|
152
|
+
@src_port_ranges.setter
|
|
153
|
+
def src_port_ranges(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[int]]]]):
|
|
154
|
+
pulumi.set(self, "src_port_ranges", value)
|
|
155
|
+
|
|
156
|
+
@property
|
|
157
|
+
@pulumi.getter(name="trafficMatchRuleDescription")
|
|
158
|
+
def traffic_match_rule_description(self) -> Optional[pulumi.Input[str]]:
|
|
159
|
+
"""
|
|
160
|
+
The description information of the stream classification rule. The description must be 2 to 128 characters in length and can contain numbers, dashes (-), and underscores (_).
|
|
161
|
+
"""
|
|
162
|
+
return pulumi.get(self, "traffic_match_rule_description")
|
|
163
|
+
|
|
164
|
+
@traffic_match_rule_description.setter
|
|
165
|
+
def traffic_match_rule_description(self, value: Optional[pulumi.Input[str]]):
|
|
166
|
+
pulumi.set(self, "traffic_match_rule_description", value)
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
@pulumi.getter(name="trafficMatchRuleName")
|
|
170
|
+
def traffic_match_rule_name(self) -> Optional[pulumi.Input[str]]:
|
|
171
|
+
"""
|
|
172
|
+
The name of the stream classification rule. The name must be 2 to 128 characters in length and can contain numbers, dashes (-), and underscores (_).
|
|
173
|
+
"""
|
|
174
|
+
return pulumi.get(self, "traffic_match_rule_name")
|
|
175
|
+
|
|
176
|
+
@traffic_match_rule_name.setter
|
|
177
|
+
def traffic_match_rule_name(self, value: Optional[pulumi.Input[str]]):
|
|
178
|
+
pulumi.set(self, "traffic_match_rule_name", value)
|
|
179
|
+
|
|
180
|
+
|
|
17
181
|
@pulumi.input_type
|
|
18
182
|
class TransitRouterVpcAttachmentZoneMappingArgs:
|
|
19
183
|
def __init__(__self__, *,
|
|
20
|
-
vswitch_id:
|
|
21
|
-
zone_id:
|
|
184
|
+
vswitch_id: pulumi.Input[str],
|
|
185
|
+
zone_id: pulumi.Input[str]):
|
|
22
186
|
"""
|
|
23
|
-
:param pulumi.Input[str] vswitch_id: The
|
|
24
|
-
|
|
187
|
+
:param pulumi.Input[str] vswitch_id: The ID of the vSwitch that you want to add to the VPC connection. You can specify at most 10 vSwitches in each call.
|
|
188
|
+
- If the VPC connection belongs to the current Alibaba Cloud account, you can call the [DescribeVSwitches](https://www.alibabacloud.com/help/en/doc-detail/35748.html) operation to query the IDs of the vSwitches and zones of the VPC.
|
|
189
|
+
- If the VPC connection belongs to another Alibaba Cloud account, you can call the [ListGrantVSwitchesToCen](https://www.alibabacloud.com/help/en/doc-detail/427599.html) operation to query the IDs of the vSwitches and zones of the VPC.
|
|
190
|
+
:param pulumi.Input[str] zone_id: The ID of the zone that supports Enterprise Edition transit routers. You can call the [DescribeZones](https://www.alibabacloud.com/help/en/doc-detail/36064.html) operation to query the most recent zone list. You can specify at most 10 zones in each call.
|
|
25
191
|
"""
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
if zone_id is not None:
|
|
29
|
-
pulumi.set(__self__, "zone_id", zone_id)
|
|
192
|
+
pulumi.set(__self__, "vswitch_id", vswitch_id)
|
|
193
|
+
pulumi.set(__self__, "zone_id", zone_id)
|
|
30
194
|
|
|
31
195
|
@property
|
|
32
196
|
@pulumi.getter(name="vswitchId")
|
|
33
|
-
def vswitch_id(self) ->
|
|
197
|
+
def vswitch_id(self) -> pulumi.Input[str]:
|
|
34
198
|
"""
|
|
35
|
-
The
|
|
199
|
+
The ID of the vSwitch that you want to add to the VPC connection. You can specify at most 10 vSwitches in each call.
|
|
200
|
+
- If the VPC connection belongs to the current Alibaba Cloud account, you can call the [DescribeVSwitches](https://www.alibabacloud.com/help/en/doc-detail/35748.html) operation to query the IDs of the vSwitches and zones of the VPC.
|
|
201
|
+
- If the VPC connection belongs to another Alibaba Cloud account, you can call the [ListGrantVSwitchesToCen](https://www.alibabacloud.com/help/en/doc-detail/427599.html) operation to query the IDs of the vSwitches and zones of the VPC.
|
|
36
202
|
"""
|
|
37
203
|
return pulumi.get(self, "vswitch_id")
|
|
38
204
|
|
|
39
205
|
@vswitch_id.setter
|
|
40
|
-
def vswitch_id(self, value:
|
|
206
|
+
def vswitch_id(self, value: pulumi.Input[str]):
|
|
41
207
|
pulumi.set(self, "vswitch_id", value)
|
|
42
208
|
|
|
43
209
|
@property
|
|
44
210
|
@pulumi.getter(name="zoneId")
|
|
45
|
-
def zone_id(self) ->
|
|
211
|
+
def zone_id(self) -> pulumi.Input[str]:
|
|
46
212
|
"""
|
|
47
|
-
The zone
|
|
213
|
+
The ID of the zone that supports Enterprise Edition transit routers. You can call the [DescribeZones](https://www.alibabacloud.com/help/en/doc-detail/36064.html) operation to query the most recent zone list. You can specify at most 10 zones in each call.
|
|
48
214
|
"""
|
|
49
215
|
return pulumi.get(self, "zone_id")
|
|
50
216
|
|
|
51
217
|
@zone_id.setter
|
|
52
|
-
def zone_id(self, value:
|
|
218
|
+
def zone_id(self, value: pulumi.Input[str]):
|
|
53
219
|
pulumi.set(self, "zone_id", value)
|
|
54
220
|
|
|
55
221
|
|
pulumi_alicloud/cen/outputs.py
CHANGED
|
@@ -11,6 +11,7 @@ from .. import _utilities
|
|
|
11
11
|
from . import outputs
|
|
12
12
|
|
|
13
13
|
__all__ = [
|
|
14
|
+
'TrafficMarkingPolicyTrafficMatchRule',
|
|
14
15
|
'TransitRouterVpcAttachmentZoneMapping',
|
|
15
16
|
'TransitRouterVpnAttachmentZone',
|
|
16
17
|
'GetBandwidthLimitsLimitResult',
|
|
@@ -51,6 +52,164 @@ __all__ = [
|
|
|
51
52
|
'GetVbrHealthChecksCheckResult',
|
|
52
53
|
]
|
|
53
54
|
|
|
55
|
+
@pulumi.output_type
|
|
56
|
+
class TrafficMarkingPolicyTrafficMatchRule(dict):
|
|
57
|
+
@staticmethod
|
|
58
|
+
def __key_warning(key: str):
|
|
59
|
+
suggest = None
|
|
60
|
+
if key == "addressFamily":
|
|
61
|
+
suggest = "address_family"
|
|
62
|
+
elif key == "dstCidr":
|
|
63
|
+
suggest = "dst_cidr"
|
|
64
|
+
elif key == "dstPortRanges":
|
|
65
|
+
suggest = "dst_port_ranges"
|
|
66
|
+
elif key == "matchDscp":
|
|
67
|
+
suggest = "match_dscp"
|
|
68
|
+
elif key == "srcCidr":
|
|
69
|
+
suggest = "src_cidr"
|
|
70
|
+
elif key == "srcPortRanges":
|
|
71
|
+
suggest = "src_port_ranges"
|
|
72
|
+
elif key == "trafficMatchRuleDescription":
|
|
73
|
+
suggest = "traffic_match_rule_description"
|
|
74
|
+
elif key == "trafficMatchRuleName":
|
|
75
|
+
suggest = "traffic_match_rule_name"
|
|
76
|
+
|
|
77
|
+
if suggest:
|
|
78
|
+
pulumi.log.warn(f"Key '{key}' not found in TrafficMarkingPolicyTrafficMatchRule. Access the value via the '{suggest}' property getter instead.")
|
|
79
|
+
|
|
80
|
+
def __getitem__(self, key: str) -> Any:
|
|
81
|
+
TrafficMarkingPolicyTrafficMatchRule.__key_warning(key)
|
|
82
|
+
return super().__getitem__(key)
|
|
83
|
+
|
|
84
|
+
def get(self, key: str, default = None) -> Any:
|
|
85
|
+
TrafficMarkingPolicyTrafficMatchRule.__key_warning(key)
|
|
86
|
+
return super().get(key, default)
|
|
87
|
+
|
|
88
|
+
def __init__(__self__, *,
|
|
89
|
+
address_family: Optional[str] = None,
|
|
90
|
+
dst_cidr: Optional[str] = None,
|
|
91
|
+
dst_port_ranges: Optional[Sequence[int]] = None,
|
|
92
|
+
match_dscp: Optional[int] = None,
|
|
93
|
+
protocol: Optional[str] = None,
|
|
94
|
+
src_cidr: Optional[str] = None,
|
|
95
|
+
src_port_ranges: Optional[Sequence[int]] = None,
|
|
96
|
+
traffic_match_rule_description: Optional[str] = None,
|
|
97
|
+
traffic_match_rule_name: Optional[str] = None):
|
|
98
|
+
"""
|
|
99
|
+
:param str address_family: IP Address Family.
|
|
100
|
+
:param str dst_cidr: The destination network segment of the traffic message. The flow classification matches the traffic of the destination IP address in the destination network segment. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any destination IP address.
|
|
101
|
+
:param Sequence[int] dst_port_ranges: The destination port of the traffic message. Valid values: **-1**, `1` to `65535`. The flow classification rule matches the traffic of the destination port number in the destination port range. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any destination port number. The current parameter supports a maximum of 2 port numbers. The input format is described as follows:
|
|
102
|
+
- If you only enter a port number, such as 1, the system defaults to match the traffic with the destination port of 1.
|
|
103
|
+
- If you enter 2 port numbers, such as 1 and 200, the system defaults to match the traffic of the destination port in the range of 1 to 200.
|
|
104
|
+
- If you enter 2 port numbers and one of them is - 1, the other port must also be - 1, indicating that it matches any destination port.
|
|
105
|
+
:param int match_dscp: The DSCP value of the traffic message. Valid values: `0` to **63 * *. The flow classification rule matches the flow with the specified DSCP value. If the flow classification rule is not set, it means that the flow classification rule matches the flow with any DSCP value.> **NOTE:** The current DSCP value refers to the DSCP value that the traffic message has carried before entering the cross-region connection.
|
|
106
|
+
:param str protocol: The protocol type of the traffic message. Stream classification rules can match traffic of multiple protocol types, such as `HTTP`, `HTTPS`, `TCP`, `UDP`, `SSH`, and **Telnet. For more protocol types, please log on to the [Cloud Enterprise Network Management Console](https://cen.console.aliyun.com/cen/list) to view.
|
|
107
|
+
:param str src_cidr: The source network segment of the traffic message. The flow classification rule matches the traffic of the source IP address in the source network segment. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any source IP address.
|
|
108
|
+
:param Sequence[int] src_port_ranges: The source port of the traffic message. Valid values: **-1**, `1` to `65535`. The flow classification rule matches the traffic of the source port number in the source port range. If it is not set, it means that the flow classification rule matches the traffic of any source port number. The current parameter supports entering up to two port numbers. The input format is described as follows:
|
|
109
|
+
- If you only enter a port number, such as 1, the system defaults to match the traffic with source port 1.
|
|
110
|
+
- If you enter two port numbers, such as 1 and 200, the system defaults to match the traffic with the source port in the range of 1 to 200.
|
|
111
|
+
- If you enter two port numbers and one of them is - 1, the other port must also be - 1, indicating that it matches any source port.
|
|
112
|
+
:param str traffic_match_rule_description: The description information of the stream classification rule. The description must be 2 to 128 characters in length and can contain numbers, dashes (-), and underscores (_).
|
|
113
|
+
:param str traffic_match_rule_name: The name of the stream classification rule. The name must be 2 to 128 characters in length and can contain numbers, dashes (-), and underscores (_).
|
|
114
|
+
"""
|
|
115
|
+
if address_family is not None:
|
|
116
|
+
pulumi.set(__self__, "address_family", address_family)
|
|
117
|
+
if dst_cidr is not None:
|
|
118
|
+
pulumi.set(__self__, "dst_cidr", dst_cidr)
|
|
119
|
+
if dst_port_ranges is not None:
|
|
120
|
+
pulumi.set(__self__, "dst_port_ranges", dst_port_ranges)
|
|
121
|
+
if match_dscp is not None:
|
|
122
|
+
pulumi.set(__self__, "match_dscp", match_dscp)
|
|
123
|
+
if protocol is not None:
|
|
124
|
+
pulumi.set(__self__, "protocol", protocol)
|
|
125
|
+
if src_cidr is not None:
|
|
126
|
+
pulumi.set(__self__, "src_cidr", src_cidr)
|
|
127
|
+
if src_port_ranges is not None:
|
|
128
|
+
pulumi.set(__self__, "src_port_ranges", src_port_ranges)
|
|
129
|
+
if traffic_match_rule_description is not None:
|
|
130
|
+
pulumi.set(__self__, "traffic_match_rule_description", traffic_match_rule_description)
|
|
131
|
+
if traffic_match_rule_name is not None:
|
|
132
|
+
pulumi.set(__self__, "traffic_match_rule_name", traffic_match_rule_name)
|
|
133
|
+
|
|
134
|
+
@property
|
|
135
|
+
@pulumi.getter(name="addressFamily")
|
|
136
|
+
def address_family(self) -> Optional[str]:
|
|
137
|
+
"""
|
|
138
|
+
IP Address Family.
|
|
139
|
+
"""
|
|
140
|
+
return pulumi.get(self, "address_family")
|
|
141
|
+
|
|
142
|
+
@property
|
|
143
|
+
@pulumi.getter(name="dstCidr")
|
|
144
|
+
def dst_cidr(self) -> Optional[str]:
|
|
145
|
+
"""
|
|
146
|
+
The destination network segment of the traffic message. The flow classification matches the traffic of the destination IP address in the destination network segment. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any destination IP address.
|
|
147
|
+
"""
|
|
148
|
+
return pulumi.get(self, "dst_cidr")
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
@pulumi.getter(name="dstPortRanges")
|
|
152
|
+
def dst_port_ranges(self) -> Optional[Sequence[int]]:
|
|
153
|
+
"""
|
|
154
|
+
The destination port of the traffic message. Valid values: **-1**, `1` to `65535`. The flow classification rule matches the traffic of the destination port number in the destination port range. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any destination port number. The current parameter supports a maximum of 2 port numbers. The input format is described as follows:
|
|
155
|
+
- If you only enter a port number, such as 1, the system defaults to match the traffic with the destination port of 1.
|
|
156
|
+
- If you enter 2 port numbers, such as 1 and 200, the system defaults to match the traffic of the destination port in the range of 1 to 200.
|
|
157
|
+
- If you enter 2 port numbers and one of them is - 1, the other port must also be - 1, indicating that it matches any destination port.
|
|
158
|
+
"""
|
|
159
|
+
return pulumi.get(self, "dst_port_ranges")
|
|
160
|
+
|
|
161
|
+
@property
|
|
162
|
+
@pulumi.getter(name="matchDscp")
|
|
163
|
+
def match_dscp(self) -> Optional[int]:
|
|
164
|
+
"""
|
|
165
|
+
The DSCP value of the traffic message. Valid values: `0` to **63 * *. The flow classification rule matches the flow with the specified DSCP value. If the flow classification rule is not set, it means that the flow classification rule matches the flow with any DSCP value.> **NOTE:** The current DSCP value refers to the DSCP value that the traffic message has carried before entering the cross-region connection.
|
|
166
|
+
"""
|
|
167
|
+
return pulumi.get(self, "match_dscp")
|
|
168
|
+
|
|
169
|
+
@property
|
|
170
|
+
@pulumi.getter
|
|
171
|
+
def protocol(self) -> Optional[str]:
|
|
172
|
+
"""
|
|
173
|
+
The protocol type of the traffic message. Stream classification rules can match traffic of multiple protocol types, such as `HTTP`, `HTTPS`, `TCP`, `UDP`, `SSH`, and **Telnet. For more protocol types, please log on to the [Cloud Enterprise Network Management Console](https://cen.console.aliyun.com/cen/list) to view.
|
|
174
|
+
"""
|
|
175
|
+
return pulumi.get(self, "protocol")
|
|
176
|
+
|
|
177
|
+
@property
|
|
178
|
+
@pulumi.getter(name="srcCidr")
|
|
179
|
+
def src_cidr(self) -> Optional[str]:
|
|
180
|
+
"""
|
|
181
|
+
The source network segment of the traffic message. The flow classification rule matches the traffic of the source IP address in the source network segment. If the flow classification rule is not set, it means that the flow classification rule matches the traffic of any source IP address.
|
|
182
|
+
"""
|
|
183
|
+
return pulumi.get(self, "src_cidr")
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
@pulumi.getter(name="srcPortRanges")
|
|
187
|
+
def src_port_ranges(self) -> Optional[Sequence[int]]:
|
|
188
|
+
"""
|
|
189
|
+
The source port of the traffic message. Valid values: **-1**, `1` to `65535`. The flow classification rule matches the traffic of the source port number in the source port range. If it is not set, it means that the flow classification rule matches the traffic of any source port number. The current parameter supports entering up to two port numbers. The input format is described as follows:
|
|
190
|
+
- If you only enter a port number, such as 1, the system defaults to match the traffic with source port 1.
|
|
191
|
+
- If you enter two port numbers, such as 1 and 200, the system defaults to match the traffic with the source port in the range of 1 to 200.
|
|
192
|
+
- If you enter two port numbers and one of them is - 1, the other port must also be - 1, indicating that it matches any source port.
|
|
193
|
+
"""
|
|
194
|
+
return pulumi.get(self, "src_port_ranges")
|
|
195
|
+
|
|
196
|
+
@property
|
|
197
|
+
@pulumi.getter(name="trafficMatchRuleDescription")
|
|
198
|
+
def traffic_match_rule_description(self) -> Optional[str]:
|
|
199
|
+
"""
|
|
200
|
+
The description information of the stream classification rule. The description must be 2 to 128 characters in length and can contain numbers, dashes (-), and underscores (_).
|
|
201
|
+
"""
|
|
202
|
+
return pulumi.get(self, "traffic_match_rule_description")
|
|
203
|
+
|
|
204
|
+
@property
|
|
205
|
+
@pulumi.getter(name="trafficMatchRuleName")
|
|
206
|
+
def traffic_match_rule_name(self) -> Optional[str]:
|
|
207
|
+
"""
|
|
208
|
+
The name of the stream classification rule. The name must be 2 to 128 characters in length and can contain numbers, dashes (-), and underscores (_).
|
|
209
|
+
"""
|
|
210
|
+
return pulumi.get(self, "traffic_match_rule_name")
|
|
211
|
+
|
|
212
|
+
|
|
54
213
|
@pulumi.output_type
|
|
55
214
|
class TransitRouterVpcAttachmentZoneMapping(dict):
|
|
56
215
|
@staticmethod
|
|
@@ -73,30 +232,32 @@ class TransitRouterVpcAttachmentZoneMapping(dict):
|
|
|
73
232
|
return super().get(key, default)
|
|
74
233
|
|
|
75
234
|
def __init__(__self__, *,
|
|
76
|
-
vswitch_id:
|
|
77
|
-
zone_id:
|
|
235
|
+
vswitch_id: str,
|
|
236
|
+
zone_id: str):
|
|
78
237
|
"""
|
|
79
|
-
:param str vswitch_id: The
|
|
80
|
-
|
|
238
|
+
:param str vswitch_id: The ID of the vSwitch that you want to add to the VPC connection. You can specify at most 10 vSwitches in each call.
|
|
239
|
+
- If the VPC connection belongs to the current Alibaba Cloud account, you can call the [DescribeVSwitches](https://www.alibabacloud.com/help/en/doc-detail/35748.html) operation to query the IDs of the vSwitches and zones of the VPC.
|
|
240
|
+
- If the VPC connection belongs to another Alibaba Cloud account, you can call the [ListGrantVSwitchesToCen](https://www.alibabacloud.com/help/en/doc-detail/427599.html) operation to query the IDs of the vSwitches and zones of the VPC.
|
|
241
|
+
:param str zone_id: The ID of the zone that supports Enterprise Edition transit routers. You can call the [DescribeZones](https://www.alibabacloud.com/help/en/doc-detail/36064.html) operation to query the most recent zone list. You can specify at most 10 zones in each call.
|
|
81
242
|
"""
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if zone_id is not None:
|
|
85
|
-
pulumi.set(__self__, "zone_id", zone_id)
|
|
243
|
+
pulumi.set(__self__, "vswitch_id", vswitch_id)
|
|
244
|
+
pulumi.set(__self__, "zone_id", zone_id)
|
|
86
245
|
|
|
87
246
|
@property
|
|
88
247
|
@pulumi.getter(name="vswitchId")
|
|
89
|
-
def vswitch_id(self) ->
|
|
248
|
+
def vswitch_id(self) -> str:
|
|
90
249
|
"""
|
|
91
|
-
The
|
|
250
|
+
The ID of the vSwitch that you want to add to the VPC connection. You can specify at most 10 vSwitches in each call.
|
|
251
|
+
- If the VPC connection belongs to the current Alibaba Cloud account, you can call the [DescribeVSwitches](https://www.alibabacloud.com/help/en/doc-detail/35748.html) operation to query the IDs of the vSwitches and zones of the VPC.
|
|
252
|
+
- If the VPC connection belongs to another Alibaba Cloud account, you can call the [ListGrantVSwitchesToCen](https://www.alibabacloud.com/help/en/doc-detail/427599.html) operation to query the IDs of the vSwitches and zones of the VPC.
|
|
92
253
|
"""
|
|
93
254
|
return pulumi.get(self, "vswitch_id")
|
|
94
255
|
|
|
95
256
|
@property
|
|
96
257
|
@pulumi.getter(name="zoneId")
|
|
97
|
-
def zone_id(self) ->
|
|
258
|
+
def zone_id(self) -> str:
|
|
98
259
|
"""
|
|
99
|
-
The zone
|
|
260
|
+
The ID of the zone that supports Enterprise Edition transit routers. You can call the [DescribeZones](https://www.alibabacloud.com/help/en/doc-detail/36064.html) operation to query the most recent zone list. You can specify at most 10 zones in each call.
|
|
100
261
|
"""
|
|
101
262
|
return pulumi.get(self, "zone_id")
|
|
102
263
|
|