pulumi-alicloud 3.74.0a1737782319__py3-none-any.whl → 3.75.0a1738041330__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 +80 -0
- pulumi_alicloud/alb/__init__.py +1 -0
- pulumi_alicloud/alb/_inputs.py +907 -244
- pulumi_alicloud/alb/get_server_groups.py +55 -25
- pulumi_alicloud/alb/listener.py +269 -174
- pulumi_alicloud/alb/load_balancer.py +239 -118
- pulumi_alicloud/alb/load_balancer_zone_shifted_attachment.py +303 -0
- pulumi_alicloud/alb/outputs.py +716 -218
- pulumi_alicloud/alb/server_group.py +532 -122
- pulumi_alicloud/cen/_inputs.py +34 -0
- pulumi_alicloud/cen/outputs.py +37 -0
- pulumi_alicloud/cen/transit_router_multicast_domain.py +123 -36
- pulumi_alicloud/cs/_inputs.py +349 -1
- pulumi_alicloud/cs/kubernetes.py +15 -15
- pulumi_alicloud/cs/node_pool.py +77 -2
- pulumi_alicloud/cs/outputs.py +265 -1
- pulumi_alicloud/dfs/file_system.py +62 -23
- pulumi_alicloud/dfs/mount_point.py +48 -22
- pulumi_alicloud/esa/__init__.py +3 -0
- pulumi_alicloud/esa/_inputs.py +81 -0
- pulumi_alicloud/esa/http_request_header_modification_rule.py +531 -0
- pulumi_alicloud/esa/list.py +361 -0
- pulumi_alicloud/esa/outputs.py +48 -0
- pulumi_alicloud/esa/page.py +376 -0
- pulumi_alicloud/esa/rate_plan_instance.py +63 -7
- pulumi_alicloud/ess/get_scaling_groups.py +64 -10
- pulumi_alicloud/ess/get_scaling_rules.py +74 -10
- pulumi_alicloud/ess/outputs.py +357 -17
- pulumi_alicloud/eventbridge/get_service.py +2 -6
- pulumi_alicloud/fc/_inputs.py +75 -75
- pulumi_alicloud/fc/outputs.py +50 -50
- pulumi_alicloud/fc/v3_function.py +53 -6
- pulumi_alicloud/kms/__init__.py +1 -0
- pulumi_alicloud/kms/get_instances.py +160 -0
- pulumi_alicloud/kms/instance.py +0 -60
- pulumi_alicloud/kms/outputs.py +19 -0
- pulumi_alicloud/maxcompute/__init__.py +5 -0
- pulumi_alicloud/maxcompute/_inputs.py +615 -42
- pulumi_alicloud/maxcompute/outputs.py +486 -28
- pulumi_alicloud/maxcompute/project.py +63 -31
- pulumi_alicloud/maxcompute/quota_plan.py +412 -0
- pulumi_alicloud/maxcompute/quota_schedule.py +260 -0
- pulumi_alicloud/maxcompute/role.py +423 -0
- pulumi_alicloud/maxcompute/role_user_attachment.py +368 -0
- pulumi_alicloud/maxcompute/tunnel_quota_timer.py +287 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/rds/instance.py +68 -0
- pulumi_alicloud/vpc/__init__.py +1 -0
- pulumi_alicloud/vpc/ipam_ipam_pool.py +47 -0
- pulumi_alicloud/vpc/ipam_ipam_scope.py +47 -0
- pulumi_alicloud/vpc/ipam_service.py +144 -0
- pulumi_alicloud/vpc/ipv4_cidr_block.py +162 -51
- {pulumi_alicloud-3.74.0a1737782319.dist-info → pulumi_alicloud-3.75.0a1738041330.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.74.0a1737782319.dist-info → pulumi_alicloud-3.75.0a1738041330.dist-info}/RECORD +56 -45
- {pulumi_alicloud-3.74.0a1737782319.dist-info → pulumi_alicloud-3.75.0a1738041330.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.74.0a1737782319.dist-info → pulumi_alicloud-3.75.0a1738041330.dist-info}/top_level.txt +0 -0
|
@@ -23,36 +23,71 @@ class ServerGroupArgs:
|
|
|
23
23
|
def __init__(__self__, *,
|
|
24
24
|
health_check_config: pulumi.Input['ServerGroupHealthCheckConfigArgs'],
|
|
25
25
|
server_group_name: pulumi.Input[str],
|
|
26
|
-
|
|
26
|
+
connection_drain_config: Optional[pulumi.Input['ServerGroupConnectionDrainConfigArgs']] = None,
|
|
27
|
+
cross_zone_enabled: Optional[pulumi.Input[bool]] = None,
|
|
28
|
+
health_check_template_id: Optional[pulumi.Input[str]] = None,
|
|
27
29
|
protocol: Optional[pulumi.Input[str]] = None,
|
|
28
30
|
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
29
31
|
scheduler: Optional[pulumi.Input[str]] = None,
|
|
30
32
|
server_group_type: Optional[pulumi.Input[str]] = None,
|
|
31
33
|
servers: Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]] = None,
|
|
34
|
+
slow_start_config: Optional[pulumi.Input['ServerGroupSlowStartConfigArgs']] = None,
|
|
32
35
|
sticky_session_config: Optional[pulumi.Input['ServerGroupStickySessionConfigArgs']] = None,
|
|
33
36
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
37
|
+
uch_config: Optional[pulumi.Input['ServerGroupUchConfigArgs']] = None,
|
|
38
|
+
upstream_keepalive_enabled: Optional[pulumi.Input[bool]] = None,
|
|
34
39
|
vpc_id: Optional[pulumi.Input[str]] = None):
|
|
35
40
|
"""
|
|
36
41
|
The set of arguments for constructing a ServerGroup resource.
|
|
37
|
-
:param pulumi.Input['ServerGroupHealthCheckConfigArgs'] health_check_config: The configuration of health checks
|
|
38
|
-
:param pulumi.Input[str] server_group_name: The name of the server group.
|
|
39
|
-
:param pulumi.Input[
|
|
40
|
-
:param pulumi.Input[
|
|
41
|
-
:param pulumi.Input[str]
|
|
42
|
-
:param pulumi.Input[str]
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
:param pulumi.Input['ServerGroupHealthCheckConfigArgs'] health_check_config: The configuration of health checks See `health_check_config` below.
|
|
43
|
+
:param pulumi.Input[str] server_group_name: The name of the server group. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\\_), and hyphens (-). The name must start with a letter.
|
|
44
|
+
:param pulumi.Input['ServerGroupConnectionDrainConfigArgs'] connection_drain_config: Elegant interrupt configuration. See `connection_drain_config` below.
|
|
45
|
+
:param pulumi.Input[bool] cross_zone_enabled: Indicates whether cross-zone load balancing is enabled for the server group. Valid values:
|
|
46
|
+
:param pulumi.Input[str] health_check_template_id: The template ID.
|
|
47
|
+
:param pulumi.Input[str] protocol: The backend protocol. Valid values:
|
|
48
|
+
|
|
49
|
+
* `HTTP`: allows you to associate an HTTPS, HTTP, or QUIC listener with the server group. This is the default value.
|
|
50
|
+
|
|
51
|
+
* `HTTPS`: allows you to associate HTTPS listeners with backend servers.
|
|
52
|
+
|
|
53
|
+
* `gRPC`: allows you to associate an HTTPS or QUIC listener with the server group.
|
|
54
|
+
|
|
55
|
+
> **NOTE:** You do not need to specify a backend protocol if you set `ServerGroupType` to `Fc`.
|
|
56
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to transfer the cloud resource.
|
|
57
|
+
|
|
58
|
+
> **NOTE:** You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see [What is resource management?](https://www.alibabacloud.com/help/en/doc-detail/94475.html)
|
|
59
|
+
:param pulumi.Input[str] scheduler: The scheduling algorithm. Valid values:
|
|
60
|
+
|
|
61
|
+
* `Wrr` (default): The weighted round-robin algorithm is used. Backend servers that have higher weights receive more requests than those that have lower weights.
|
|
62
|
+
|
|
63
|
+
* `Wlc`: The weighted least connections algorithm is used. Requests are distributed based on the weights and the number of connections to backend servers. If two backend servers have the same weight, the backend server that has fewer connections is expected to receive more requests.
|
|
64
|
+
|
|
65
|
+
* `Sch`: The consistent hashing algorithm is used. Requests from the same source IP address are distributed to the same backend server.
|
|
66
|
+
|
|
67
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
68
|
+
:param pulumi.Input[str] server_group_type: The type of server group. Valid values:
|
|
69
|
+
|
|
70
|
+
- `Instance` (default): allows you to add servers by specifying `Ecs`, `Eni`, or `Eci`.
|
|
45
71
|
- `Ip`: allows you to add servers by specifying IP addresses.
|
|
46
72
|
- `Fc`: allows you to add servers by specifying functions of Function Compute.
|
|
47
|
-
:param pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]] servers:
|
|
48
|
-
:param pulumi.Input['
|
|
49
|
-
:param pulumi.Input[
|
|
50
|
-
:param pulumi.Input[str]
|
|
73
|
+
:param pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]] servers: List of servers. See `servers` below.
|
|
74
|
+
:param pulumi.Input['ServerGroupSlowStartConfigArgs'] slow_start_config: Slow start configuration. See `slow_start_config` below.
|
|
75
|
+
:param pulumi.Input['ServerGroupStickySessionConfigArgs'] sticky_session_config: The configuration of the sticky session See `sticky_session_config` below.
|
|
76
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tag of the resource
|
|
77
|
+
:param pulumi.Input['ServerGroupUchConfigArgs'] uch_config: Url consistency hash parameter configuration See `uch_config` below.
|
|
78
|
+
:param pulumi.Input[bool] upstream_keepalive_enabled: Specifies whether to enable persistent TCP connections.
|
|
79
|
+
:param pulumi.Input[str] vpc_id: The ID of the virtual private cloud (VPC). You can add only servers that are deployed in the specified VPC to the server group.
|
|
80
|
+
|
|
81
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
51
82
|
"""
|
|
52
83
|
pulumi.set(__self__, "health_check_config", health_check_config)
|
|
53
84
|
pulumi.set(__self__, "server_group_name", server_group_name)
|
|
54
|
-
if
|
|
55
|
-
pulumi.set(__self__, "
|
|
85
|
+
if connection_drain_config is not None:
|
|
86
|
+
pulumi.set(__self__, "connection_drain_config", connection_drain_config)
|
|
87
|
+
if cross_zone_enabled is not None:
|
|
88
|
+
pulumi.set(__self__, "cross_zone_enabled", cross_zone_enabled)
|
|
89
|
+
if health_check_template_id is not None:
|
|
90
|
+
pulumi.set(__self__, "health_check_template_id", health_check_template_id)
|
|
56
91
|
if protocol is not None:
|
|
57
92
|
pulumi.set(__self__, "protocol", protocol)
|
|
58
93
|
if resource_group_id is not None:
|
|
@@ -63,10 +98,16 @@ class ServerGroupArgs:
|
|
|
63
98
|
pulumi.set(__self__, "server_group_type", server_group_type)
|
|
64
99
|
if servers is not None:
|
|
65
100
|
pulumi.set(__self__, "servers", servers)
|
|
101
|
+
if slow_start_config is not None:
|
|
102
|
+
pulumi.set(__self__, "slow_start_config", slow_start_config)
|
|
66
103
|
if sticky_session_config is not None:
|
|
67
104
|
pulumi.set(__self__, "sticky_session_config", sticky_session_config)
|
|
68
105
|
if tags is not None:
|
|
69
106
|
pulumi.set(__self__, "tags", tags)
|
|
107
|
+
if uch_config is not None:
|
|
108
|
+
pulumi.set(__self__, "uch_config", uch_config)
|
|
109
|
+
if upstream_keepalive_enabled is not None:
|
|
110
|
+
pulumi.set(__self__, "upstream_keepalive_enabled", upstream_keepalive_enabled)
|
|
70
111
|
if vpc_id is not None:
|
|
71
112
|
pulumi.set(__self__, "vpc_id", vpc_id)
|
|
72
113
|
|
|
@@ -74,7 +115,7 @@ class ServerGroupArgs:
|
|
|
74
115
|
@pulumi.getter(name="healthCheckConfig")
|
|
75
116
|
def health_check_config(self) -> pulumi.Input['ServerGroupHealthCheckConfigArgs']:
|
|
76
117
|
"""
|
|
77
|
-
The configuration of health checks
|
|
118
|
+
The configuration of health checks See `health_check_config` below.
|
|
78
119
|
"""
|
|
79
120
|
return pulumi.get(self, "health_check_config")
|
|
80
121
|
|
|
@@ -86,7 +127,7 @@ class ServerGroupArgs:
|
|
|
86
127
|
@pulumi.getter(name="serverGroupName")
|
|
87
128
|
def server_group_name(self) -> pulumi.Input[str]:
|
|
88
129
|
"""
|
|
89
|
-
The name of the server group.
|
|
130
|
+
The name of the server group. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\\_), and hyphens (-). The name must start with a letter.
|
|
90
131
|
"""
|
|
91
132
|
return pulumi.get(self, "server_group_name")
|
|
92
133
|
|
|
@@ -95,22 +136,54 @@ class ServerGroupArgs:
|
|
|
95
136
|
pulumi.set(self, "server_group_name", value)
|
|
96
137
|
|
|
97
138
|
@property
|
|
98
|
-
@pulumi.getter(name="
|
|
99
|
-
def
|
|
139
|
+
@pulumi.getter(name="connectionDrainConfig")
|
|
140
|
+
def connection_drain_config(self) -> Optional[pulumi.Input['ServerGroupConnectionDrainConfigArgs']]:
|
|
100
141
|
"""
|
|
101
|
-
|
|
142
|
+
Elegant interrupt configuration. See `connection_drain_config` below.
|
|
102
143
|
"""
|
|
103
|
-
return pulumi.get(self, "
|
|
144
|
+
return pulumi.get(self, "connection_drain_config")
|
|
104
145
|
|
|
105
|
-
@
|
|
106
|
-
def
|
|
107
|
-
pulumi.set(self, "
|
|
146
|
+
@connection_drain_config.setter
|
|
147
|
+
def connection_drain_config(self, value: Optional[pulumi.Input['ServerGroupConnectionDrainConfigArgs']]):
|
|
148
|
+
pulumi.set(self, "connection_drain_config", value)
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
@pulumi.getter(name="crossZoneEnabled")
|
|
152
|
+
def cross_zone_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
153
|
+
"""
|
|
154
|
+
Indicates whether cross-zone load balancing is enabled for the server group. Valid values:
|
|
155
|
+
"""
|
|
156
|
+
return pulumi.get(self, "cross_zone_enabled")
|
|
157
|
+
|
|
158
|
+
@cross_zone_enabled.setter
|
|
159
|
+
def cross_zone_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
160
|
+
pulumi.set(self, "cross_zone_enabled", value)
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
@pulumi.getter(name="healthCheckTemplateId")
|
|
164
|
+
def health_check_template_id(self) -> Optional[pulumi.Input[str]]:
|
|
165
|
+
"""
|
|
166
|
+
The template ID.
|
|
167
|
+
"""
|
|
168
|
+
return pulumi.get(self, "health_check_template_id")
|
|
169
|
+
|
|
170
|
+
@health_check_template_id.setter
|
|
171
|
+
def health_check_template_id(self, value: Optional[pulumi.Input[str]]):
|
|
172
|
+
pulumi.set(self, "health_check_template_id", value)
|
|
108
173
|
|
|
109
174
|
@property
|
|
110
175
|
@pulumi.getter
|
|
111
176
|
def protocol(self) -> Optional[pulumi.Input[str]]:
|
|
112
177
|
"""
|
|
113
|
-
The
|
|
178
|
+
The backend protocol. Valid values:
|
|
179
|
+
|
|
180
|
+
* `HTTP`: allows you to associate an HTTPS, HTTP, or QUIC listener with the server group. This is the default value.
|
|
181
|
+
|
|
182
|
+
* `HTTPS`: allows you to associate HTTPS listeners with backend servers.
|
|
183
|
+
|
|
184
|
+
* `gRPC`: allows you to associate an HTTPS or QUIC listener with the server group.
|
|
185
|
+
|
|
186
|
+
> **NOTE:** You do not need to specify a backend protocol if you set `ServerGroupType` to `Fc`.
|
|
114
187
|
"""
|
|
115
188
|
return pulumi.get(self, "protocol")
|
|
116
189
|
|
|
@@ -122,7 +195,9 @@ class ServerGroupArgs:
|
|
|
122
195
|
@pulumi.getter(name="resourceGroupId")
|
|
123
196
|
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
124
197
|
"""
|
|
125
|
-
The ID of the resource group.
|
|
198
|
+
The ID of the resource group to which you want to transfer the cloud resource.
|
|
199
|
+
|
|
200
|
+
> **NOTE:** You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see [What is resource management?](https://www.alibabacloud.com/help/en/doc-detail/94475.html)
|
|
126
201
|
"""
|
|
127
202
|
return pulumi.get(self, "resource_group_id")
|
|
128
203
|
|
|
@@ -134,7 +209,15 @@ class ServerGroupArgs:
|
|
|
134
209
|
@pulumi.getter
|
|
135
210
|
def scheduler(self) -> Optional[pulumi.Input[str]]:
|
|
136
211
|
"""
|
|
137
|
-
The scheduling algorithm. Valid values:
|
|
212
|
+
The scheduling algorithm. Valid values:
|
|
213
|
+
|
|
214
|
+
* `Wrr` (default): The weighted round-robin algorithm is used. Backend servers that have higher weights receive more requests than those that have lower weights.
|
|
215
|
+
|
|
216
|
+
* `Wlc`: The weighted least connections algorithm is used. Requests are distributed based on the weights and the number of connections to backend servers. If two backend servers have the same weight, the backend server that has fewer connections is expected to receive more requests.
|
|
217
|
+
|
|
218
|
+
* `Sch`: The consistent hashing algorithm is used. Requests from the same source IP address are distributed to the same backend server.
|
|
219
|
+
|
|
220
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
138
221
|
"""
|
|
139
222
|
return pulumi.get(self, "scheduler")
|
|
140
223
|
|
|
@@ -146,8 +229,9 @@ class ServerGroupArgs:
|
|
|
146
229
|
@pulumi.getter(name="serverGroupType")
|
|
147
230
|
def server_group_type(self) -> Optional[pulumi.Input[str]]:
|
|
148
231
|
"""
|
|
149
|
-
The type of
|
|
150
|
-
|
|
232
|
+
The type of server group. Valid values:
|
|
233
|
+
|
|
234
|
+
- `Instance` (default): allows you to add servers by specifying `Ecs`, `Eni`, or `Eci`.
|
|
151
235
|
- `Ip`: allows you to add servers by specifying IP addresses.
|
|
152
236
|
- `Fc`: allows you to add servers by specifying functions of Function Compute.
|
|
153
237
|
"""
|
|
@@ -161,7 +245,7 @@ class ServerGroupArgs:
|
|
|
161
245
|
@pulumi.getter
|
|
162
246
|
def servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]]:
|
|
163
247
|
"""
|
|
164
|
-
|
|
248
|
+
List of servers. See `servers` below.
|
|
165
249
|
"""
|
|
166
250
|
return pulumi.get(self, "servers")
|
|
167
251
|
|
|
@@ -169,11 +253,23 @@ class ServerGroupArgs:
|
|
|
169
253
|
def servers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]]):
|
|
170
254
|
pulumi.set(self, "servers", value)
|
|
171
255
|
|
|
256
|
+
@property
|
|
257
|
+
@pulumi.getter(name="slowStartConfig")
|
|
258
|
+
def slow_start_config(self) -> Optional[pulumi.Input['ServerGroupSlowStartConfigArgs']]:
|
|
259
|
+
"""
|
|
260
|
+
Slow start configuration. See `slow_start_config` below.
|
|
261
|
+
"""
|
|
262
|
+
return pulumi.get(self, "slow_start_config")
|
|
263
|
+
|
|
264
|
+
@slow_start_config.setter
|
|
265
|
+
def slow_start_config(self, value: Optional[pulumi.Input['ServerGroupSlowStartConfigArgs']]):
|
|
266
|
+
pulumi.set(self, "slow_start_config", value)
|
|
267
|
+
|
|
172
268
|
@property
|
|
173
269
|
@pulumi.getter(name="stickySessionConfig")
|
|
174
270
|
def sticky_session_config(self) -> Optional[pulumi.Input['ServerGroupStickySessionConfigArgs']]:
|
|
175
271
|
"""
|
|
176
|
-
The configuration of session
|
|
272
|
+
The configuration of the sticky session See `sticky_session_config` below.
|
|
177
273
|
"""
|
|
178
274
|
return pulumi.get(self, "sticky_session_config")
|
|
179
275
|
|
|
@@ -185,7 +281,7 @@ class ServerGroupArgs:
|
|
|
185
281
|
@pulumi.getter
|
|
186
282
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
187
283
|
"""
|
|
188
|
-
|
|
284
|
+
The tag of the resource
|
|
189
285
|
"""
|
|
190
286
|
return pulumi.get(self, "tags")
|
|
191
287
|
|
|
@@ -193,11 +289,37 @@ class ServerGroupArgs:
|
|
|
193
289
|
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
194
290
|
pulumi.set(self, "tags", value)
|
|
195
291
|
|
|
292
|
+
@property
|
|
293
|
+
@pulumi.getter(name="uchConfig")
|
|
294
|
+
def uch_config(self) -> Optional[pulumi.Input['ServerGroupUchConfigArgs']]:
|
|
295
|
+
"""
|
|
296
|
+
Url consistency hash parameter configuration See `uch_config` below.
|
|
297
|
+
"""
|
|
298
|
+
return pulumi.get(self, "uch_config")
|
|
299
|
+
|
|
300
|
+
@uch_config.setter
|
|
301
|
+
def uch_config(self, value: Optional[pulumi.Input['ServerGroupUchConfigArgs']]):
|
|
302
|
+
pulumi.set(self, "uch_config", value)
|
|
303
|
+
|
|
304
|
+
@property
|
|
305
|
+
@pulumi.getter(name="upstreamKeepaliveEnabled")
|
|
306
|
+
def upstream_keepalive_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
307
|
+
"""
|
|
308
|
+
Specifies whether to enable persistent TCP connections.
|
|
309
|
+
"""
|
|
310
|
+
return pulumi.get(self, "upstream_keepalive_enabled")
|
|
311
|
+
|
|
312
|
+
@upstream_keepalive_enabled.setter
|
|
313
|
+
def upstream_keepalive_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
314
|
+
pulumi.set(self, "upstream_keepalive_enabled", value)
|
|
315
|
+
|
|
196
316
|
@property
|
|
197
317
|
@pulumi.getter(name="vpcId")
|
|
198
318
|
def vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
199
319
|
"""
|
|
200
|
-
The ID of the
|
|
320
|
+
The ID of the virtual private cloud (VPC). You can add only servers that are deployed in the specified VPC to the server group.
|
|
321
|
+
|
|
322
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
201
323
|
"""
|
|
202
324
|
return pulumi.get(self, "vpc_id")
|
|
203
325
|
|
|
@@ -209,40 +331,79 @@ class ServerGroupArgs:
|
|
|
209
331
|
@pulumi.input_type
|
|
210
332
|
class _ServerGroupState:
|
|
211
333
|
def __init__(__self__, *,
|
|
212
|
-
|
|
334
|
+
connection_drain_config: Optional[pulumi.Input['ServerGroupConnectionDrainConfigArgs']] = None,
|
|
335
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
336
|
+
cross_zone_enabled: Optional[pulumi.Input[bool]] = None,
|
|
213
337
|
health_check_config: Optional[pulumi.Input['ServerGroupHealthCheckConfigArgs']] = None,
|
|
338
|
+
health_check_template_id: Optional[pulumi.Input[str]] = None,
|
|
214
339
|
protocol: Optional[pulumi.Input[str]] = None,
|
|
215
340
|
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
216
341
|
scheduler: Optional[pulumi.Input[str]] = None,
|
|
217
342
|
server_group_name: Optional[pulumi.Input[str]] = None,
|
|
218
343
|
server_group_type: Optional[pulumi.Input[str]] = None,
|
|
219
344
|
servers: Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]] = None,
|
|
345
|
+
slow_start_config: Optional[pulumi.Input['ServerGroupSlowStartConfigArgs']] = None,
|
|
220
346
|
status: Optional[pulumi.Input[str]] = None,
|
|
221
347
|
sticky_session_config: Optional[pulumi.Input['ServerGroupStickySessionConfigArgs']] = None,
|
|
222
348
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
349
|
+
uch_config: Optional[pulumi.Input['ServerGroupUchConfigArgs']] = None,
|
|
350
|
+
upstream_keepalive_enabled: Optional[pulumi.Input[bool]] = None,
|
|
223
351
|
vpc_id: Optional[pulumi.Input[str]] = None):
|
|
224
352
|
"""
|
|
225
353
|
Input properties used for looking up and filtering ServerGroup resources.
|
|
226
|
-
:param pulumi.Input[
|
|
227
|
-
:param pulumi.Input[
|
|
228
|
-
:param pulumi.Input[
|
|
229
|
-
:param pulumi.Input[
|
|
230
|
-
:param pulumi.Input[str]
|
|
231
|
-
:param pulumi.Input[str]
|
|
232
|
-
|
|
233
|
-
|
|
354
|
+
:param pulumi.Input['ServerGroupConnectionDrainConfigArgs'] connection_drain_config: Elegant interrupt configuration. See `connection_drain_config` below.
|
|
355
|
+
:param pulumi.Input[str] create_time: The creation time of the resource
|
|
356
|
+
:param pulumi.Input[bool] cross_zone_enabled: Indicates whether cross-zone load balancing is enabled for the server group. Valid values:
|
|
357
|
+
:param pulumi.Input['ServerGroupHealthCheckConfigArgs'] health_check_config: The configuration of health checks See `health_check_config` below.
|
|
358
|
+
:param pulumi.Input[str] health_check_template_id: The template ID.
|
|
359
|
+
:param pulumi.Input[str] protocol: The backend protocol. Valid values:
|
|
360
|
+
|
|
361
|
+
* `HTTP`: allows you to associate an HTTPS, HTTP, or QUIC listener with the server group. This is the default value.
|
|
362
|
+
|
|
363
|
+
* `HTTPS`: allows you to associate HTTPS listeners with backend servers.
|
|
364
|
+
|
|
365
|
+
* `gRPC`: allows you to associate an HTTPS or QUIC listener with the server group.
|
|
366
|
+
|
|
367
|
+
> **NOTE:** You do not need to specify a backend protocol if you set `ServerGroupType` to `Fc`.
|
|
368
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to transfer the cloud resource.
|
|
369
|
+
|
|
370
|
+
> **NOTE:** You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see [What is resource management?](https://www.alibabacloud.com/help/en/doc-detail/94475.html)
|
|
371
|
+
:param pulumi.Input[str] scheduler: The scheduling algorithm. Valid values:
|
|
372
|
+
|
|
373
|
+
* `Wrr` (default): The weighted round-robin algorithm is used. Backend servers that have higher weights receive more requests than those that have lower weights.
|
|
374
|
+
|
|
375
|
+
* `Wlc`: The weighted least connections algorithm is used. Requests are distributed based on the weights and the number of connections to backend servers. If two backend servers have the same weight, the backend server that has fewer connections is expected to receive more requests.
|
|
376
|
+
|
|
377
|
+
* `Sch`: The consistent hashing algorithm is used. Requests from the same source IP address are distributed to the same backend server.
|
|
378
|
+
|
|
379
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
380
|
+
:param pulumi.Input[str] server_group_name: The name of the server group. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\\_), and hyphens (-). The name must start with a letter.
|
|
381
|
+
:param pulumi.Input[str] server_group_type: The type of server group. Valid values:
|
|
382
|
+
|
|
383
|
+
- `Instance` (default): allows you to add servers by specifying `Ecs`, `Eni`, or `Eci`.
|
|
234
384
|
- `Ip`: allows you to add servers by specifying IP addresses.
|
|
235
385
|
- `Fc`: allows you to add servers by specifying functions of Function Compute.
|
|
236
|
-
:param pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]] servers:
|
|
237
|
-
:param pulumi.Input[
|
|
238
|
-
:param pulumi.Input[
|
|
239
|
-
:param pulumi.Input[
|
|
240
|
-
:param pulumi.Input[str]
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
386
|
+
:param pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]] servers: List of servers. See `servers` below.
|
|
387
|
+
:param pulumi.Input['ServerGroupSlowStartConfigArgs'] slow_start_config: Slow start configuration. See `slow_start_config` below.
|
|
388
|
+
:param pulumi.Input[str] status: The status of the resource
|
|
389
|
+
:param pulumi.Input['ServerGroupStickySessionConfigArgs'] sticky_session_config: The configuration of the sticky session See `sticky_session_config` below.
|
|
390
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tag of the resource
|
|
391
|
+
:param pulumi.Input['ServerGroupUchConfigArgs'] uch_config: Url consistency hash parameter configuration See `uch_config` below.
|
|
392
|
+
:param pulumi.Input[bool] upstream_keepalive_enabled: Specifies whether to enable persistent TCP connections.
|
|
393
|
+
:param pulumi.Input[str] vpc_id: The ID of the virtual private cloud (VPC). You can add only servers that are deployed in the specified VPC to the server group.
|
|
394
|
+
|
|
395
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
396
|
+
"""
|
|
397
|
+
if connection_drain_config is not None:
|
|
398
|
+
pulumi.set(__self__, "connection_drain_config", connection_drain_config)
|
|
399
|
+
if create_time is not None:
|
|
400
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
401
|
+
if cross_zone_enabled is not None:
|
|
402
|
+
pulumi.set(__self__, "cross_zone_enabled", cross_zone_enabled)
|
|
244
403
|
if health_check_config is not None:
|
|
245
404
|
pulumi.set(__self__, "health_check_config", health_check_config)
|
|
405
|
+
if health_check_template_id is not None:
|
|
406
|
+
pulumi.set(__self__, "health_check_template_id", health_check_template_id)
|
|
246
407
|
if protocol is not None:
|
|
247
408
|
pulumi.set(__self__, "protocol", protocol)
|
|
248
409
|
if resource_group_id is not None:
|
|
@@ -255,32 +416,62 @@ class _ServerGroupState:
|
|
|
255
416
|
pulumi.set(__self__, "server_group_type", server_group_type)
|
|
256
417
|
if servers is not None:
|
|
257
418
|
pulumi.set(__self__, "servers", servers)
|
|
419
|
+
if slow_start_config is not None:
|
|
420
|
+
pulumi.set(__self__, "slow_start_config", slow_start_config)
|
|
258
421
|
if status is not None:
|
|
259
422
|
pulumi.set(__self__, "status", status)
|
|
260
423
|
if sticky_session_config is not None:
|
|
261
424
|
pulumi.set(__self__, "sticky_session_config", sticky_session_config)
|
|
262
425
|
if tags is not None:
|
|
263
426
|
pulumi.set(__self__, "tags", tags)
|
|
427
|
+
if uch_config is not None:
|
|
428
|
+
pulumi.set(__self__, "uch_config", uch_config)
|
|
429
|
+
if upstream_keepalive_enabled is not None:
|
|
430
|
+
pulumi.set(__self__, "upstream_keepalive_enabled", upstream_keepalive_enabled)
|
|
264
431
|
if vpc_id is not None:
|
|
265
432
|
pulumi.set(__self__, "vpc_id", vpc_id)
|
|
266
433
|
|
|
267
434
|
@property
|
|
268
|
-
@pulumi.getter(name="
|
|
269
|
-
def
|
|
435
|
+
@pulumi.getter(name="connectionDrainConfig")
|
|
436
|
+
def connection_drain_config(self) -> Optional[pulumi.Input['ServerGroupConnectionDrainConfigArgs']]:
|
|
437
|
+
"""
|
|
438
|
+
Elegant interrupt configuration. See `connection_drain_config` below.
|
|
439
|
+
"""
|
|
440
|
+
return pulumi.get(self, "connection_drain_config")
|
|
441
|
+
|
|
442
|
+
@connection_drain_config.setter
|
|
443
|
+
def connection_drain_config(self, value: Optional[pulumi.Input['ServerGroupConnectionDrainConfigArgs']]):
|
|
444
|
+
pulumi.set(self, "connection_drain_config", value)
|
|
445
|
+
|
|
446
|
+
@property
|
|
447
|
+
@pulumi.getter(name="createTime")
|
|
448
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
|
449
|
+
"""
|
|
450
|
+
The creation time of the resource
|
|
451
|
+
"""
|
|
452
|
+
return pulumi.get(self, "create_time")
|
|
453
|
+
|
|
454
|
+
@create_time.setter
|
|
455
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
|
456
|
+
pulumi.set(self, "create_time", value)
|
|
457
|
+
|
|
458
|
+
@property
|
|
459
|
+
@pulumi.getter(name="crossZoneEnabled")
|
|
460
|
+
def cross_zone_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
270
461
|
"""
|
|
271
|
-
|
|
462
|
+
Indicates whether cross-zone load balancing is enabled for the server group. Valid values:
|
|
272
463
|
"""
|
|
273
|
-
return pulumi.get(self, "
|
|
464
|
+
return pulumi.get(self, "cross_zone_enabled")
|
|
274
465
|
|
|
275
|
-
@
|
|
276
|
-
def
|
|
277
|
-
pulumi.set(self, "
|
|
466
|
+
@cross_zone_enabled.setter
|
|
467
|
+
def cross_zone_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
468
|
+
pulumi.set(self, "cross_zone_enabled", value)
|
|
278
469
|
|
|
279
470
|
@property
|
|
280
471
|
@pulumi.getter(name="healthCheckConfig")
|
|
281
472
|
def health_check_config(self) -> Optional[pulumi.Input['ServerGroupHealthCheckConfigArgs']]:
|
|
282
473
|
"""
|
|
283
|
-
The configuration of health checks
|
|
474
|
+
The configuration of health checks See `health_check_config` below.
|
|
284
475
|
"""
|
|
285
476
|
return pulumi.get(self, "health_check_config")
|
|
286
477
|
|
|
@@ -288,11 +479,31 @@ class _ServerGroupState:
|
|
|
288
479
|
def health_check_config(self, value: Optional[pulumi.Input['ServerGroupHealthCheckConfigArgs']]):
|
|
289
480
|
pulumi.set(self, "health_check_config", value)
|
|
290
481
|
|
|
482
|
+
@property
|
|
483
|
+
@pulumi.getter(name="healthCheckTemplateId")
|
|
484
|
+
def health_check_template_id(self) -> Optional[pulumi.Input[str]]:
|
|
485
|
+
"""
|
|
486
|
+
The template ID.
|
|
487
|
+
"""
|
|
488
|
+
return pulumi.get(self, "health_check_template_id")
|
|
489
|
+
|
|
490
|
+
@health_check_template_id.setter
|
|
491
|
+
def health_check_template_id(self, value: Optional[pulumi.Input[str]]):
|
|
492
|
+
pulumi.set(self, "health_check_template_id", value)
|
|
493
|
+
|
|
291
494
|
@property
|
|
292
495
|
@pulumi.getter
|
|
293
496
|
def protocol(self) -> Optional[pulumi.Input[str]]:
|
|
294
497
|
"""
|
|
295
|
-
The
|
|
498
|
+
The backend protocol. Valid values:
|
|
499
|
+
|
|
500
|
+
* `HTTP`: allows you to associate an HTTPS, HTTP, or QUIC listener with the server group. This is the default value.
|
|
501
|
+
|
|
502
|
+
* `HTTPS`: allows you to associate HTTPS listeners with backend servers.
|
|
503
|
+
|
|
504
|
+
* `gRPC`: allows you to associate an HTTPS or QUIC listener with the server group.
|
|
505
|
+
|
|
506
|
+
> **NOTE:** You do not need to specify a backend protocol if you set `ServerGroupType` to `Fc`.
|
|
296
507
|
"""
|
|
297
508
|
return pulumi.get(self, "protocol")
|
|
298
509
|
|
|
@@ -304,7 +515,9 @@ class _ServerGroupState:
|
|
|
304
515
|
@pulumi.getter(name="resourceGroupId")
|
|
305
516
|
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
306
517
|
"""
|
|
307
|
-
The ID of the resource group.
|
|
518
|
+
The ID of the resource group to which you want to transfer the cloud resource.
|
|
519
|
+
|
|
520
|
+
> **NOTE:** You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see [What is resource management?](https://www.alibabacloud.com/help/en/doc-detail/94475.html)
|
|
308
521
|
"""
|
|
309
522
|
return pulumi.get(self, "resource_group_id")
|
|
310
523
|
|
|
@@ -316,7 +529,15 @@ class _ServerGroupState:
|
|
|
316
529
|
@pulumi.getter
|
|
317
530
|
def scheduler(self) -> Optional[pulumi.Input[str]]:
|
|
318
531
|
"""
|
|
319
|
-
The scheduling algorithm. Valid values:
|
|
532
|
+
The scheduling algorithm. Valid values:
|
|
533
|
+
|
|
534
|
+
* `Wrr` (default): The weighted round-robin algorithm is used. Backend servers that have higher weights receive more requests than those that have lower weights.
|
|
535
|
+
|
|
536
|
+
* `Wlc`: The weighted least connections algorithm is used. Requests are distributed based on the weights and the number of connections to backend servers. If two backend servers have the same weight, the backend server that has fewer connections is expected to receive more requests.
|
|
537
|
+
|
|
538
|
+
* `Sch`: The consistent hashing algorithm is used. Requests from the same source IP address are distributed to the same backend server.
|
|
539
|
+
|
|
540
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
320
541
|
"""
|
|
321
542
|
return pulumi.get(self, "scheduler")
|
|
322
543
|
|
|
@@ -328,7 +549,7 @@ class _ServerGroupState:
|
|
|
328
549
|
@pulumi.getter(name="serverGroupName")
|
|
329
550
|
def server_group_name(self) -> Optional[pulumi.Input[str]]:
|
|
330
551
|
"""
|
|
331
|
-
The name of the server group.
|
|
552
|
+
The name of the server group. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\\_), and hyphens (-). The name must start with a letter.
|
|
332
553
|
"""
|
|
333
554
|
return pulumi.get(self, "server_group_name")
|
|
334
555
|
|
|
@@ -340,8 +561,9 @@ class _ServerGroupState:
|
|
|
340
561
|
@pulumi.getter(name="serverGroupType")
|
|
341
562
|
def server_group_type(self) -> Optional[pulumi.Input[str]]:
|
|
342
563
|
"""
|
|
343
|
-
The type of
|
|
344
|
-
|
|
564
|
+
The type of server group. Valid values:
|
|
565
|
+
|
|
566
|
+
- `Instance` (default): allows you to add servers by specifying `Ecs`, `Eni`, or `Eci`.
|
|
345
567
|
- `Ip`: allows you to add servers by specifying IP addresses.
|
|
346
568
|
- `Fc`: allows you to add servers by specifying functions of Function Compute.
|
|
347
569
|
"""
|
|
@@ -355,7 +577,7 @@ class _ServerGroupState:
|
|
|
355
577
|
@pulumi.getter
|
|
356
578
|
def servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]]:
|
|
357
579
|
"""
|
|
358
|
-
|
|
580
|
+
List of servers. See `servers` below.
|
|
359
581
|
"""
|
|
360
582
|
return pulumi.get(self, "servers")
|
|
361
583
|
|
|
@@ -363,11 +585,23 @@ class _ServerGroupState:
|
|
|
363
585
|
def servers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]]):
|
|
364
586
|
pulumi.set(self, "servers", value)
|
|
365
587
|
|
|
588
|
+
@property
|
|
589
|
+
@pulumi.getter(name="slowStartConfig")
|
|
590
|
+
def slow_start_config(self) -> Optional[pulumi.Input['ServerGroupSlowStartConfigArgs']]:
|
|
591
|
+
"""
|
|
592
|
+
Slow start configuration. See `slow_start_config` below.
|
|
593
|
+
"""
|
|
594
|
+
return pulumi.get(self, "slow_start_config")
|
|
595
|
+
|
|
596
|
+
@slow_start_config.setter
|
|
597
|
+
def slow_start_config(self, value: Optional[pulumi.Input['ServerGroupSlowStartConfigArgs']]):
|
|
598
|
+
pulumi.set(self, "slow_start_config", value)
|
|
599
|
+
|
|
366
600
|
@property
|
|
367
601
|
@pulumi.getter
|
|
368
602
|
def status(self) -> Optional[pulumi.Input[str]]:
|
|
369
603
|
"""
|
|
370
|
-
The status of the
|
|
604
|
+
The status of the resource
|
|
371
605
|
"""
|
|
372
606
|
return pulumi.get(self, "status")
|
|
373
607
|
|
|
@@ -379,7 +613,7 @@ class _ServerGroupState:
|
|
|
379
613
|
@pulumi.getter(name="stickySessionConfig")
|
|
380
614
|
def sticky_session_config(self) -> Optional[pulumi.Input['ServerGroupStickySessionConfigArgs']]:
|
|
381
615
|
"""
|
|
382
|
-
The configuration of session
|
|
616
|
+
The configuration of the sticky session See `sticky_session_config` below.
|
|
383
617
|
"""
|
|
384
618
|
return pulumi.get(self, "sticky_session_config")
|
|
385
619
|
|
|
@@ -391,7 +625,7 @@ class _ServerGroupState:
|
|
|
391
625
|
@pulumi.getter
|
|
392
626
|
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
393
627
|
"""
|
|
394
|
-
|
|
628
|
+
The tag of the resource
|
|
395
629
|
"""
|
|
396
630
|
return pulumi.get(self, "tags")
|
|
397
631
|
|
|
@@ -399,11 +633,37 @@ class _ServerGroupState:
|
|
|
399
633
|
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
400
634
|
pulumi.set(self, "tags", value)
|
|
401
635
|
|
|
636
|
+
@property
|
|
637
|
+
@pulumi.getter(name="uchConfig")
|
|
638
|
+
def uch_config(self) -> Optional[pulumi.Input['ServerGroupUchConfigArgs']]:
|
|
639
|
+
"""
|
|
640
|
+
Url consistency hash parameter configuration See `uch_config` below.
|
|
641
|
+
"""
|
|
642
|
+
return pulumi.get(self, "uch_config")
|
|
643
|
+
|
|
644
|
+
@uch_config.setter
|
|
645
|
+
def uch_config(self, value: Optional[pulumi.Input['ServerGroupUchConfigArgs']]):
|
|
646
|
+
pulumi.set(self, "uch_config", value)
|
|
647
|
+
|
|
648
|
+
@property
|
|
649
|
+
@pulumi.getter(name="upstreamKeepaliveEnabled")
|
|
650
|
+
def upstream_keepalive_enabled(self) -> Optional[pulumi.Input[bool]]:
|
|
651
|
+
"""
|
|
652
|
+
Specifies whether to enable persistent TCP connections.
|
|
653
|
+
"""
|
|
654
|
+
return pulumi.get(self, "upstream_keepalive_enabled")
|
|
655
|
+
|
|
656
|
+
@upstream_keepalive_enabled.setter
|
|
657
|
+
def upstream_keepalive_enabled(self, value: Optional[pulumi.Input[bool]]):
|
|
658
|
+
pulumi.set(self, "upstream_keepalive_enabled", value)
|
|
659
|
+
|
|
402
660
|
@property
|
|
403
661
|
@pulumi.getter(name="vpcId")
|
|
404
662
|
def vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
405
663
|
"""
|
|
406
|
-
The ID of the
|
|
664
|
+
The ID of the virtual private cloud (VPC). You can add only servers that are deployed in the specified VPC to the server group.
|
|
665
|
+
|
|
666
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
407
667
|
"""
|
|
408
668
|
return pulumi.get(self, "vpc_id")
|
|
409
669
|
|
|
@@ -417,22 +677,27 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
417
677
|
def __init__(__self__,
|
|
418
678
|
resource_name: str,
|
|
419
679
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
420
|
-
|
|
680
|
+
connection_drain_config: Optional[pulumi.Input[Union['ServerGroupConnectionDrainConfigArgs', 'ServerGroupConnectionDrainConfigArgsDict']]] = None,
|
|
681
|
+
cross_zone_enabled: Optional[pulumi.Input[bool]] = None,
|
|
421
682
|
health_check_config: Optional[pulumi.Input[Union['ServerGroupHealthCheckConfigArgs', 'ServerGroupHealthCheckConfigArgsDict']]] = None,
|
|
683
|
+
health_check_template_id: Optional[pulumi.Input[str]] = None,
|
|
422
684
|
protocol: Optional[pulumi.Input[str]] = None,
|
|
423
685
|
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
424
686
|
scheduler: Optional[pulumi.Input[str]] = None,
|
|
425
687
|
server_group_name: Optional[pulumi.Input[str]] = None,
|
|
426
688
|
server_group_type: Optional[pulumi.Input[str]] = None,
|
|
427
689
|
servers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerGroupServerArgs', 'ServerGroupServerArgsDict']]]]] = None,
|
|
690
|
+
slow_start_config: Optional[pulumi.Input[Union['ServerGroupSlowStartConfigArgs', 'ServerGroupSlowStartConfigArgsDict']]] = None,
|
|
428
691
|
sticky_session_config: Optional[pulumi.Input[Union['ServerGroupStickySessionConfigArgs', 'ServerGroupStickySessionConfigArgsDict']]] = None,
|
|
429
692
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
693
|
+
uch_config: Optional[pulumi.Input[Union['ServerGroupUchConfigArgs', 'ServerGroupUchConfigArgsDict']]] = None,
|
|
694
|
+
upstream_keepalive_enabled: Optional[pulumi.Input[bool]] = None,
|
|
430
695
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
431
696
|
__props__=None):
|
|
432
697
|
"""
|
|
433
|
-
Provides
|
|
698
|
+
Provides a Application Load Balancer (ALB) Server Group resource.
|
|
434
699
|
|
|
435
|
-
For information about ALB Server Group and how to use it, see [What is Server Group](https://www.alibabacloud.com/help/en/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-createservergroup).
|
|
700
|
+
For information about Application Load Balancer (ALB) Server Group and how to use it, see [What is Server Group](https://www.alibabacloud.com/help/en/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-createservergroup).
|
|
436
701
|
|
|
437
702
|
> **NOTE:** Available since v1.131.0.
|
|
438
703
|
|
|
@@ -517,7 +782,7 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
517
782
|
|
|
518
783
|
## Import
|
|
519
784
|
|
|
520
|
-
ALB Server Group can be imported using the id, e.g.
|
|
785
|
+
Application Load Balancer (ALB) Server Group can be imported using the id, e.g.
|
|
521
786
|
|
|
522
787
|
```sh
|
|
523
788
|
$ pulumi import alicloud:alb/serverGroup:ServerGroup example <id>
|
|
@@ -525,20 +790,46 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
525
790
|
|
|
526
791
|
:param str resource_name: The name of the resource.
|
|
527
792
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
528
|
-
:param pulumi.Input[
|
|
529
|
-
:param pulumi.Input[
|
|
530
|
-
:param pulumi.Input[
|
|
531
|
-
:param pulumi.Input[str]
|
|
532
|
-
:param pulumi.Input[str]
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
793
|
+
:param pulumi.Input[Union['ServerGroupConnectionDrainConfigArgs', 'ServerGroupConnectionDrainConfigArgsDict']] connection_drain_config: Elegant interrupt configuration. See `connection_drain_config` below.
|
|
794
|
+
:param pulumi.Input[bool] cross_zone_enabled: Indicates whether cross-zone load balancing is enabled for the server group. Valid values:
|
|
795
|
+
:param pulumi.Input[Union['ServerGroupHealthCheckConfigArgs', 'ServerGroupHealthCheckConfigArgsDict']] health_check_config: The configuration of health checks See `health_check_config` below.
|
|
796
|
+
:param pulumi.Input[str] health_check_template_id: The template ID.
|
|
797
|
+
:param pulumi.Input[str] protocol: The backend protocol. Valid values:
|
|
798
|
+
|
|
799
|
+
* `HTTP`: allows you to associate an HTTPS, HTTP, or QUIC listener with the server group. This is the default value.
|
|
800
|
+
|
|
801
|
+
* `HTTPS`: allows you to associate HTTPS listeners with backend servers.
|
|
802
|
+
|
|
803
|
+
* `gRPC`: allows you to associate an HTTPS or QUIC listener with the server group.
|
|
804
|
+
|
|
805
|
+
> **NOTE:** You do not need to specify a backend protocol if you set `ServerGroupType` to `Fc`.
|
|
806
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to transfer the cloud resource.
|
|
807
|
+
|
|
808
|
+
> **NOTE:** You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see [What is resource management?](https://www.alibabacloud.com/help/en/doc-detail/94475.html)
|
|
809
|
+
:param pulumi.Input[str] scheduler: The scheduling algorithm. Valid values:
|
|
810
|
+
|
|
811
|
+
* `Wrr` (default): The weighted round-robin algorithm is used. Backend servers that have higher weights receive more requests than those that have lower weights.
|
|
812
|
+
|
|
813
|
+
* `Wlc`: The weighted least connections algorithm is used. Requests are distributed based on the weights and the number of connections to backend servers. If two backend servers have the same weight, the backend server that has fewer connections is expected to receive more requests.
|
|
814
|
+
|
|
815
|
+
* `Sch`: The consistent hashing algorithm is used. Requests from the same source IP address are distributed to the same backend server.
|
|
816
|
+
|
|
817
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
818
|
+
:param pulumi.Input[str] server_group_name: The name of the server group. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\\_), and hyphens (-). The name must start with a letter.
|
|
819
|
+
:param pulumi.Input[str] server_group_type: The type of server group. Valid values:
|
|
820
|
+
|
|
821
|
+
- `Instance` (default): allows you to add servers by specifying `Ecs`, `Eni`, or `Eci`.
|
|
536
822
|
- `Ip`: allows you to add servers by specifying IP addresses.
|
|
537
823
|
- `Fc`: allows you to add servers by specifying functions of Function Compute.
|
|
538
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerGroupServerArgs', 'ServerGroupServerArgsDict']]]] servers:
|
|
539
|
-
:param pulumi.Input[Union['
|
|
540
|
-
:param pulumi.Input[
|
|
541
|
-
:param pulumi.Input[str]
|
|
824
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerGroupServerArgs', 'ServerGroupServerArgsDict']]]] servers: List of servers. See `servers` below.
|
|
825
|
+
:param pulumi.Input[Union['ServerGroupSlowStartConfigArgs', 'ServerGroupSlowStartConfigArgsDict']] slow_start_config: Slow start configuration. See `slow_start_config` below.
|
|
826
|
+
:param pulumi.Input[Union['ServerGroupStickySessionConfigArgs', 'ServerGroupStickySessionConfigArgsDict']] sticky_session_config: The configuration of the sticky session See `sticky_session_config` below.
|
|
827
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tag of the resource
|
|
828
|
+
:param pulumi.Input[Union['ServerGroupUchConfigArgs', 'ServerGroupUchConfigArgsDict']] uch_config: Url consistency hash parameter configuration See `uch_config` below.
|
|
829
|
+
:param pulumi.Input[bool] upstream_keepalive_enabled: Specifies whether to enable persistent TCP connections.
|
|
830
|
+
:param pulumi.Input[str] vpc_id: The ID of the virtual private cloud (VPC). You can add only servers that are deployed in the specified VPC to the server group.
|
|
831
|
+
|
|
832
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
542
833
|
"""
|
|
543
834
|
...
|
|
544
835
|
@overload
|
|
@@ -547,9 +838,9 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
547
838
|
args: ServerGroupArgs,
|
|
548
839
|
opts: Optional[pulumi.ResourceOptions] = None):
|
|
549
840
|
"""
|
|
550
|
-
Provides
|
|
841
|
+
Provides a Application Load Balancer (ALB) Server Group resource.
|
|
551
842
|
|
|
552
|
-
For information about ALB Server Group and how to use it, see [What is Server Group](https://www.alibabacloud.com/help/en/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-createservergroup).
|
|
843
|
+
For information about Application Load Balancer (ALB) Server Group and how to use it, see [What is Server Group](https://www.alibabacloud.com/help/en/slb/application-load-balancer/developer-reference/api-alb-2020-06-16-createservergroup).
|
|
553
844
|
|
|
554
845
|
> **NOTE:** Available since v1.131.0.
|
|
555
846
|
|
|
@@ -634,7 +925,7 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
634
925
|
|
|
635
926
|
## Import
|
|
636
927
|
|
|
637
|
-
ALB Server Group can be imported using the id, e.g.
|
|
928
|
+
Application Load Balancer (ALB) Server Group can be imported using the id, e.g.
|
|
638
929
|
|
|
639
930
|
```sh
|
|
640
931
|
$ pulumi import alicloud:alb/serverGroup:ServerGroup example <id>
|
|
@@ -655,16 +946,21 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
655
946
|
def _internal_init(__self__,
|
|
656
947
|
resource_name: str,
|
|
657
948
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
658
|
-
|
|
949
|
+
connection_drain_config: Optional[pulumi.Input[Union['ServerGroupConnectionDrainConfigArgs', 'ServerGroupConnectionDrainConfigArgsDict']]] = None,
|
|
950
|
+
cross_zone_enabled: Optional[pulumi.Input[bool]] = None,
|
|
659
951
|
health_check_config: Optional[pulumi.Input[Union['ServerGroupHealthCheckConfigArgs', 'ServerGroupHealthCheckConfigArgsDict']]] = None,
|
|
952
|
+
health_check_template_id: Optional[pulumi.Input[str]] = None,
|
|
660
953
|
protocol: Optional[pulumi.Input[str]] = None,
|
|
661
954
|
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
662
955
|
scheduler: Optional[pulumi.Input[str]] = None,
|
|
663
956
|
server_group_name: Optional[pulumi.Input[str]] = None,
|
|
664
957
|
server_group_type: Optional[pulumi.Input[str]] = None,
|
|
665
958
|
servers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerGroupServerArgs', 'ServerGroupServerArgsDict']]]]] = None,
|
|
959
|
+
slow_start_config: Optional[pulumi.Input[Union['ServerGroupSlowStartConfigArgs', 'ServerGroupSlowStartConfigArgsDict']]] = None,
|
|
666
960
|
sticky_session_config: Optional[pulumi.Input[Union['ServerGroupStickySessionConfigArgs', 'ServerGroupStickySessionConfigArgsDict']]] = None,
|
|
667
961
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
962
|
+
uch_config: Optional[pulumi.Input[Union['ServerGroupUchConfigArgs', 'ServerGroupUchConfigArgsDict']]] = None,
|
|
963
|
+
upstream_keepalive_enabled: Optional[pulumi.Input[bool]] = None,
|
|
668
964
|
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
669
965
|
__props__=None):
|
|
670
966
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
@@ -675,10 +971,12 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
675
971
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
676
972
|
__props__ = ServerGroupArgs.__new__(ServerGroupArgs)
|
|
677
973
|
|
|
678
|
-
__props__.__dict__["
|
|
974
|
+
__props__.__dict__["connection_drain_config"] = connection_drain_config
|
|
975
|
+
__props__.__dict__["cross_zone_enabled"] = cross_zone_enabled
|
|
679
976
|
if health_check_config is None and not opts.urn:
|
|
680
977
|
raise TypeError("Missing required property 'health_check_config'")
|
|
681
978
|
__props__.__dict__["health_check_config"] = health_check_config
|
|
979
|
+
__props__.__dict__["health_check_template_id"] = health_check_template_id
|
|
682
980
|
__props__.__dict__["protocol"] = protocol
|
|
683
981
|
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
684
982
|
__props__.__dict__["scheduler"] = scheduler
|
|
@@ -687,9 +985,13 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
687
985
|
__props__.__dict__["server_group_name"] = server_group_name
|
|
688
986
|
__props__.__dict__["server_group_type"] = server_group_type
|
|
689
987
|
__props__.__dict__["servers"] = servers
|
|
988
|
+
__props__.__dict__["slow_start_config"] = slow_start_config
|
|
690
989
|
__props__.__dict__["sticky_session_config"] = sticky_session_config
|
|
691
990
|
__props__.__dict__["tags"] = tags
|
|
991
|
+
__props__.__dict__["uch_config"] = uch_config
|
|
992
|
+
__props__.__dict__["upstream_keepalive_enabled"] = upstream_keepalive_enabled
|
|
692
993
|
__props__.__dict__["vpc_id"] = vpc_id
|
|
994
|
+
__props__.__dict__["create_time"] = None
|
|
693
995
|
__props__.__dict__["status"] = None
|
|
694
996
|
super(ServerGroup, __self__).__init__(
|
|
695
997
|
'alicloud:alb/serverGroup:ServerGroup',
|
|
@@ -701,17 +1003,23 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
701
1003
|
def get(resource_name: str,
|
|
702
1004
|
id: pulumi.Input[str],
|
|
703
1005
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
704
|
-
|
|
1006
|
+
connection_drain_config: Optional[pulumi.Input[Union['ServerGroupConnectionDrainConfigArgs', 'ServerGroupConnectionDrainConfigArgsDict']]] = None,
|
|
1007
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
1008
|
+
cross_zone_enabled: Optional[pulumi.Input[bool]] = None,
|
|
705
1009
|
health_check_config: Optional[pulumi.Input[Union['ServerGroupHealthCheckConfigArgs', 'ServerGroupHealthCheckConfigArgsDict']]] = None,
|
|
1010
|
+
health_check_template_id: Optional[pulumi.Input[str]] = None,
|
|
706
1011
|
protocol: Optional[pulumi.Input[str]] = None,
|
|
707
1012
|
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
708
1013
|
scheduler: Optional[pulumi.Input[str]] = None,
|
|
709
1014
|
server_group_name: Optional[pulumi.Input[str]] = None,
|
|
710
1015
|
server_group_type: Optional[pulumi.Input[str]] = None,
|
|
711
1016
|
servers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['ServerGroupServerArgs', 'ServerGroupServerArgsDict']]]]] = None,
|
|
1017
|
+
slow_start_config: Optional[pulumi.Input[Union['ServerGroupSlowStartConfigArgs', 'ServerGroupSlowStartConfigArgsDict']]] = None,
|
|
712
1018
|
status: Optional[pulumi.Input[str]] = None,
|
|
713
1019
|
sticky_session_config: Optional[pulumi.Input[Union['ServerGroupStickySessionConfigArgs', 'ServerGroupStickySessionConfigArgsDict']]] = None,
|
|
714
1020
|
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
1021
|
+
uch_config: Optional[pulumi.Input[Union['ServerGroupUchConfigArgs', 'ServerGroupUchConfigArgsDict']]] = None,
|
|
1022
|
+
upstream_keepalive_enabled: Optional[pulumi.Input[bool]] = None,
|
|
715
1023
|
vpc_id: Optional[pulumi.Input[str]] = None) -> 'ServerGroup':
|
|
716
1024
|
"""
|
|
717
1025
|
Get an existing ServerGroup resource's state with the given name, id, and optional extra
|
|
@@ -720,61 +1028,126 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
720
1028
|
:param str resource_name: The unique name of the resulting resource.
|
|
721
1029
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
722
1030
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
723
|
-
:param pulumi.Input[
|
|
724
|
-
:param pulumi.Input[
|
|
725
|
-
:param pulumi.Input[
|
|
726
|
-
:param pulumi.Input[
|
|
727
|
-
:param pulumi.Input[str]
|
|
728
|
-
:param pulumi.Input[str]
|
|
729
|
-
|
|
730
|
-
|
|
1031
|
+
:param pulumi.Input[Union['ServerGroupConnectionDrainConfigArgs', 'ServerGroupConnectionDrainConfigArgsDict']] connection_drain_config: Elegant interrupt configuration. See `connection_drain_config` below.
|
|
1032
|
+
:param pulumi.Input[str] create_time: The creation time of the resource
|
|
1033
|
+
:param pulumi.Input[bool] cross_zone_enabled: Indicates whether cross-zone load balancing is enabled for the server group. Valid values:
|
|
1034
|
+
:param pulumi.Input[Union['ServerGroupHealthCheckConfigArgs', 'ServerGroupHealthCheckConfigArgsDict']] health_check_config: The configuration of health checks See `health_check_config` below.
|
|
1035
|
+
:param pulumi.Input[str] health_check_template_id: The template ID.
|
|
1036
|
+
:param pulumi.Input[str] protocol: The backend protocol. Valid values:
|
|
1037
|
+
|
|
1038
|
+
* `HTTP`: allows you to associate an HTTPS, HTTP, or QUIC listener with the server group. This is the default value.
|
|
1039
|
+
|
|
1040
|
+
* `HTTPS`: allows you to associate HTTPS listeners with backend servers.
|
|
1041
|
+
|
|
1042
|
+
* `gRPC`: allows you to associate an HTTPS or QUIC listener with the server group.
|
|
1043
|
+
|
|
1044
|
+
> **NOTE:** You do not need to specify a backend protocol if you set `ServerGroupType` to `Fc`.
|
|
1045
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to transfer the cloud resource.
|
|
1046
|
+
|
|
1047
|
+
> **NOTE:** You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see [What is resource management?](https://www.alibabacloud.com/help/en/doc-detail/94475.html)
|
|
1048
|
+
:param pulumi.Input[str] scheduler: The scheduling algorithm. Valid values:
|
|
1049
|
+
|
|
1050
|
+
* `Wrr` (default): The weighted round-robin algorithm is used. Backend servers that have higher weights receive more requests than those that have lower weights.
|
|
1051
|
+
|
|
1052
|
+
* `Wlc`: The weighted least connections algorithm is used. Requests are distributed based on the weights and the number of connections to backend servers. If two backend servers have the same weight, the backend server that has fewer connections is expected to receive more requests.
|
|
1053
|
+
|
|
1054
|
+
* `Sch`: The consistent hashing algorithm is used. Requests from the same source IP address are distributed to the same backend server.
|
|
1055
|
+
|
|
1056
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
1057
|
+
:param pulumi.Input[str] server_group_name: The name of the server group. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\\_), and hyphens (-). The name must start with a letter.
|
|
1058
|
+
:param pulumi.Input[str] server_group_type: The type of server group. Valid values:
|
|
1059
|
+
|
|
1060
|
+
- `Instance` (default): allows you to add servers by specifying `Ecs`, `Eni`, or `Eci`.
|
|
731
1061
|
- `Ip`: allows you to add servers by specifying IP addresses.
|
|
732
1062
|
- `Fc`: allows you to add servers by specifying functions of Function Compute.
|
|
733
|
-
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerGroupServerArgs', 'ServerGroupServerArgsDict']]]] servers:
|
|
734
|
-
:param pulumi.Input[
|
|
735
|
-
:param pulumi.Input[
|
|
736
|
-
:param pulumi.Input[
|
|
737
|
-
:param pulumi.Input[str]
|
|
1063
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['ServerGroupServerArgs', 'ServerGroupServerArgsDict']]]] servers: List of servers. See `servers` below.
|
|
1064
|
+
:param pulumi.Input[Union['ServerGroupSlowStartConfigArgs', 'ServerGroupSlowStartConfigArgsDict']] slow_start_config: Slow start configuration. See `slow_start_config` below.
|
|
1065
|
+
:param pulumi.Input[str] status: The status of the resource
|
|
1066
|
+
:param pulumi.Input[Union['ServerGroupStickySessionConfigArgs', 'ServerGroupStickySessionConfigArgsDict']] sticky_session_config: The configuration of the sticky session See `sticky_session_config` below.
|
|
1067
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The tag of the resource
|
|
1068
|
+
:param pulumi.Input[Union['ServerGroupUchConfigArgs', 'ServerGroupUchConfigArgsDict']] uch_config: Url consistency hash parameter configuration See `uch_config` below.
|
|
1069
|
+
:param pulumi.Input[bool] upstream_keepalive_enabled: Specifies whether to enable persistent TCP connections.
|
|
1070
|
+
:param pulumi.Input[str] vpc_id: The ID of the virtual private cloud (VPC). You can add only servers that are deployed in the specified VPC to the server group.
|
|
1071
|
+
|
|
1072
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
738
1073
|
"""
|
|
739
1074
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
740
1075
|
|
|
741
1076
|
__props__ = _ServerGroupState.__new__(_ServerGroupState)
|
|
742
1077
|
|
|
743
|
-
__props__.__dict__["
|
|
1078
|
+
__props__.__dict__["connection_drain_config"] = connection_drain_config
|
|
1079
|
+
__props__.__dict__["create_time"] = create_time
|
|
1080
|
+
__props__.__dict__["cross_zone_enabled"] = cross_zone_enabled
|
|
744
1081
|
__props__.__dict__["health_check_config"] = health_check_config
|
|
1082
|
+
__props__.__dict__["health_check_template_id"] = health_check_template_id
|
|
745
1083
|
__props__.__dict__["protocol"] = protocol
|
|
746
1084
|
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
747
1085
|
__props__.__dict__["scheduler"] = scheduler
|
|
748
1086
|
__props__.__dict__["server_group_name"] = server_group_name
|
|
749
1087
|
__props__.__dict__["server_group_type"] = server_group_type
|
|
750
1088
|
__props__.__dict__["servers"] = servers
|
|
1089
|
+
__props__.__dict__["slow_start_config"] = slow_start_config
|
|
751
1090
|
__props__.__dict__["status"] = status
|
|
752
1091
|
__props__.__dict__["sticky_session_config"] = sticky_session_config
|
|
753
1092
|
__props__.__dict__["tags"] = tags
|
|
1093
|
+
__props__.__dict__["uch_config"] = uch_config
|
|
1094
|
+
__props__.__dict__["upstream_keepalive_enabled"] = upstream_keepalive_enabled
|
|
754
1095
|
__props__.__dict__["vpc_id"] = vpc_id
|
|
755
1096
|
return ServerGroup(resource_name, opts=opts, __props__=__props__)
|
|
756
1097
|
|
|
757
1098
|
@property
|
|
758
|
-
@pulumi.getter(name="
|
|
759
|
-
def
|
|
1099
|
+
@pulumi.getter(name="connectionDrainConfig")
|
|
1100
|
+
def connection_drain_config(self) -> pulumi.Output[Optional['outputs.ServerGroupConnectionDrainConfig']]:
|
|
1101
|
+
"""
|
|
1102
|
+
Elegant interrupt configuration. See `connection_drain_config` below.
|
|
1103
|
+
"""
|
|
1104
|
+
return pulumi.get(self, "connection_drain_config")
|
|
1105
|
+
|
|
1106
|
+
@property
|
|
1107
|
+
@pulumi.getter(name="createTime")
|
|
1108
|
+
def create_time(self) -> pulumi.Output[str]:
|
|
1109
|
+
"""
|
|
1110
|
+
The creation time of the resource
|
|
1111
|
+
"""
|
|
1112
|
+
return pulumi.get(self, "create_time")
|
|
1113
|
+
|
|
1114
|
+
@property
|
|
1115
|
+
@pulumi.getter(name="crossZoneEnabled")
|
|
1116
|
+
def cross_zone_enabled(self) -> pulumi.Output[bool]:
|
|
760
1117
|
"""
|
|
761
|
-
|
|
1118
|
+
Indicates whether cross-zone load balancing is enabled for the server group. Valid values:
|
|
762
1119
|
"""
|
|
763
|
-
return pulumi.get(self, "
|
|
1120
|
+
return pulumi.get(self, "cross_zone_enabled")
|
|
764
1121
|
|
|
765
1122
|
@property
|
|
766
1123
|
@pulumi.getter(name="healthCheckConfig")
|
|
767
1124
|
def health_check_config(self) -> pulumi.Output['outputs.ServerGroupHealthCheckConfig']:
|
|
768
1125
|
"""
|
|
769
|
-
The configuration of health checks
|
|
1126
|
+
The configuration of health checks See `health_check_config` below.
|
|
770
1127
|
"""
|
|
771
1128
|
return pulumi.get(self, "health_check_config")
|
|
772
1129
|
|
|
1130
|
+
@property
|
|
1131
|
+
@pulumi.getter(name="healthCheckTemplateId")
|
|
1132
|
+
def health_check_template_id(self) -> pulumi.Output[Optional[str]]:
|
|
1133
|
+
"""
|
|
1134
|
+
The template ID.
|
|
1135
|
+
"""
|
|
1136
|
+
return pulumi.get(self, "health_check_template_id")
|
|
1137
|
+
|
|
773
1138
|
@property
|
|
774
1139
|
@pulumi.getter
|
|
775
1140
|
def protocol(self) -> pulumi.Output[str]:
|
|
776
1141
|
"""
|
|
777
|
-
The
|
|
1142
|
+
The backend protocol. Valid values:
|
|
1143
|
+
|
|
1144
|
+
* `HTTP`: allows you to associate an HTTPS, HTTP, or QUIC listener with the server group. This is the default value.
|
|
1145
|
+
|
|
1146
|
+
* `HTTPS`: allows you to associate HTTPS listeners with backend servers.
|
|
1147
|
+
|
|
1148
|
+
* `gRPC`: allows you to associate an HTTPS or QUIC listener with the server group.
|
|
1149
|
+
|
|
1150
|
+
> **NOTE:** You do not need to specify a backend protocol if you set `ServerGroupType` to `Fc`.
|
|
778
1151
|
"""
|
|
779
1152
|
return pulumi.get(self, "protocol")
|
|
780
1153
|
|
|
@@ -782,7 +1155,9 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
782
1155
|
@pulumi.getter(name="resourceGroupId")
|
|
783
1156
|
def resource_group_id(self) -> pulumi.Output[str]:
|
|
784
1157
|
"""
|
|
785
|
-
The ID of the resource group.
|
|
1158
|
+
The ID of the resource group to which you want to transfer the cloud resource.
|
|
1159
|
+
|
|
1160
|
+
> **NOTE:** You can use resource groups to manage resources within your Alibaba Cloud account by group. This helps you resolve issues such as resource grouping and permission management for your Alibaba Cloud account. For more information, see [What is resource management?](https://www.alibabacloud.com/help/en/doc-detail/94475.html)
|
|
786
1161
|
"""
|
|
787
1162
|
return pulumi.get(self, "resource_group_id")
|
|
788
1163
|
|
|
@@ -790,7 +1165,15 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
790
1165
|
@pulumi.getter
|
|
791
1166
|
def scheduler(self) -> pulumi.Output[str]:
|
|
792
1167
|
"""
|
|
793
|
-
The scheduling algorithm. Valid values:
|
|
1168
|
+
The scheduling algorithm. Valid values:
|
|
1169
|
+
|
|
1170
|
+
* `Wrr` (default): The weighted round-robin algorithm is used. Backend servers that have higher weights receive more requests than those that have lower weights.
|
|
1171
|
+
|
|
1172
|
+
* `Wlc`: The weighted least connections algorithm is used. Requests are distributed based on the weights and the number of connections to backend servers. If two backend servers have the same weight, the backend server that has fewer connections is expected to receive more requests.
|
|
1173
|
+
|
|
1174
|
+
* `Sch`: The consistent hashing algorithm is used. Requests from the same source IP address are distributed to the same backend server.
|
|
1175
|
+
|
|
1176
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
794
1177
|
"""
|
|
795
1178
|
return pulumi.get(self, "scheduler")
|
|
796
1179
|
|
|
@@ -798,7 +1181,7 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
798
1181
|
@pulumi.getter(name="serverGroupName")
|
|
799
1182
|
def server_group_name(self) -> pulumi.Output[str]:
|
|
800
1183
|
"""
|
|
801
|
-
The name of the server group.
|
|
1184
|
+
The name of the server group. The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\\_), and hyphens (-). The name must start with a letter.
|
|
802
1185
|
"""
|
|
803
1186
|
return pulumi.get(self, "server_group_name")
|
|
804
1187
|
|
|
@@ -806,8 +1189,9 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
806
1189
|
@pulumi.getter(name="serverGroupType")
|
|
807
1190
|
def server_group_type(self) -> pulumi.Output[str]:
|
|
808
1191
|
"""
|
|
809
|
-
The type of
|
|
810
|
-
|
|
1192
|
+
The type of server group. Valid values:
|
|
1193
|
+
|
|
1194
|
+
- `Instance` (default): allows you to add servers by specifying `Ecs`, `Eni`, or `Eci`.
|
|
811
1195
|
- `Ip`: allows you to add servers by specifying IP addresses.
|
|
812
1196
|
- `Fc`: allows you to add servers by specifying functions of Function Compute.
|
|
813
1197
|
"""
|
|
@@ -817,23 +1201,31 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
817
1201
|
@pulumi.getter
|
|
818
1202
|
def servers(self) -> pulumi.Output[Optional[Sequence['outputs.ServerGroupServer']]]:
|
|
819
1203
|
"""
|
|
820
|
-
|
|
1204
|
+
List of servers. See `servers` below.
|
|
821
1205
|
"""
|
|
822
1206
|
return pulumi.get(self, "servers")
|
|
823
1207
|
|
|
1208
|
+
@property
|
|
1209
|
+
@pulumi.getter(name="slowStartConfig")
|
|
1210
|
+
def slow_start_config(self) -> pulumi.Output[Optional['outputs.ServerGroupSlowStartConfig']]:
|
|
1211
|
+
"""
|
|
1212
|
+
Slow start configuration. See `slow_start_config` below.
|
|
1213
|
+
"""
|
|
1214
|
+
return pulumi.get(self, "slow_start_config")
|
|
1215
|
+
|
|
824
1216
|
@property
|
|
825
1217
|
@pulumi.getter
|
|
826
1218
|
def status(self) -> pulumi.Output[str]:
|
|
827
1219
|
"""
|
|
828
|
-
The status of the
|
|
1220
|
+
The status of the resource
|
|
829
1221
|
"""
|
|
830
1222
|
return pulumi.get(self, "status")
|
|
831
1223
|
|
|
832
1224
|
@property
|
|
833
1225
|
@pulumi.getter(name="stickySessionConfig")
|
|
834
|
-
def sticky_session_config(self) -> pulumi.Output['outputs.ServerGroupStickySessionConfig']:
|
|
1226
|
+
def sticky_session_config(self) -> pulumi.Output[Optional['outputs.ServerGroupStickySessionConfig']]:
|
|
835
1227
|
"""
|
|
836
|
-
The configuration of session
|
|
1228
|
+
The configuration of the sticky session See `sticky_session_config` below.
|
|
837
1229
|
"""
|
|
838
1230
|
return pulumi.get(self, "sticky_session_config")
|
|
839
1231
|
|
|
@@ -841,15 +1233,33 @@ class ServerGroup(pulumi.CustomResource):
|
|
|
841
1233
|
@pulumi.getter
|
|
842
1234
|
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
843
1235
|
"""
|
|
844
|
-
|
|
1236
|
+
The tag of the resource
|
|
845
1237
|
"""
|
|
846
1238
|
return pulumi.get(self, "tags")
|
|
847
1239
|
|
|
1240
|
+
@property
|
|
1241
|
+
@pulumi.getter(name="uchConfig")
|
|
1242
|
+
def uch_config(self) -> pulumi.Output[Optional['outputs.ServerGroupUchConfig']]:
|
|
1243
|
+
"""
|
|
1244
|
+
Url consistency hash parameter configuration See `uch_config` below.
|
|
1245
|
+
"""
|
|
1246
|
+
return pulumi.get(self, "uch_config")
|
|
1247
|
+
|
|
1248
|
+
@property
|
|
1249
|
+
@pulumi.getter(name="upstreamKeepaliveEnabled")
|
|
1250
|
+
def upstream_keepalive_enabled(self) -> pulumi.Output[Optional[bool]]:
|
|
1251
|
+
"""
|
|
1252
|
+
Specifies whether to enable persistent TCP connections.
|
|
1253
|
+
"""
|
|
1254
|
+
return pulumi.get(self, "upstream_keepalive_enabled")
|
|
1255
|
+
|
|
848
1256
|
@property
|
|
849
1257
|
@pulumi.getter(name="vpcId")
|
|
850
1258
|
def vpc_id(self) -> pulumi.Output[Optional[str]]:
|
|
851
1259
|
"""
|
|
852
|
-
The ID of the
|
|
1260
|
+
The ID of the virtual private cloud (VPC). You can add only servers that are deployed in the specified VPC to the server group.
|
|
1261
|
+
|
|
1262
|
+
> **NOTE:** This parameter takes effect when the `ServerGroupType` parameter is set to `Instance` or `Ip`.
|
|
853
1263
|
"""
|
|
854
1264
|
return pulumi.get(self, "vpc_id")
|
|
855
1265
|
|