pulumi-alicloud 3.66.0a1731648019__py3-none-any.whl → 3.66.0a1731672315__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 +94 -0
- pulumi_alicloud/alikafka/instance.py +112 -0
- pulumi_alicloud/cloudsso/_inputs.py +9 -9
- pulumi_alicloud/cloudsso/access_configuration.py +100 -34
- pulumi_alicloud/cloudsso/outputs.py +6 -6
- pulumi_alicloud/esa/__init__.py +9 -0
- pulumi_alicloud/esa/rate_plan_instance.py +626 -0
- pulumi_alicloud/esa/site.py +533 -0
- pulumi_alicloud/fc/_inputs.py +243 -135
- pulumi_alicloud/fc/outputs.py +173 -90
- pulumi_alicloud/fc/v3_alias.py +28 -0
- pulumi_alicloud/fc/v3_async_invoke_config.py +56 -0
- pulumi_alicloud/fc/v3_concurrency_config.py +28 -0
- pulumi_alicloud/fc/v3_custom_domain.py +118 -6
- pulumi_alicloud/fc/v3_function.py +308 -0
- pulumi_alicloud/fc/v3_function_version.py +30 -2
- pulumi_alicloud/fc/v3_layer_version.py +104 -1
- pulumi_alicloud/fc/v3_provision_config.py +86 -2
- pulumi_alicloud/fc/v3_trigger.py +114 -0
- pulumi_alicloud/gwlb/__init__.py +12 -0
- pulumi_alicloud/gwlb/_inputs.py +673 -0
- pulumi_alicloud/gwlb/listener.py +434 -0
- pulumi_alicloud/gwlb/load_balancer.py +537 -0
- pulumi_alicloud/gwlb/outputs.py +533 -0
- pulumi_alicloud/gwlb/server_group.py +780 -0
- pulumi_alicloud/oss/__init__.py +2 -0
- pulumi_alicloud/oss/_inputs.py +194 -0
- pulumi_alicloud/oss/bucket_cname.py +509 -0
- pulumi_alicloud/oss/bucket_cname_token.py +239 -0
- pulumi_alicloud/oss/outputs.py +141 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/quotas/_inputs.py +6 -6
- pulumi_alicloud/quotas/outputs.py +4 -4
- pulumi_alicloud/quotas/quota_application.py +21 -28
- pulumi_alicloud/redis/tair_instance.py +21 -77
- pulumi_alicloud/vpc/__init__.py +4 -0
- pulumi_alicloud/vpc/ipam_ipam.py +531 -0
- pulumi_alicloud/vpc/ipam_ipam_pool.py +850 -0
- pulumi_alicloud/vpc/ipam_ipam_pool_cidr.py +313 -0
- pulumi_alicloud/vpc/ipam_ipam_scope.py +537 -0
- {pulumi_alicloud-3.66.0a1731648019.dist-info → pulumi_alicloud-3.66.0a1731672315.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.66.0a1731648019.dist-info → pulumi_alicloud-3.66.0a1731672315.dist-info}/RECORD +44 -29
- {pulumi_alicloud-3.66.0a1731648019.dist-info → pulumi_alicloud-3.66.0a1731672315.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.66.0a1731648019.dist-info → pulumi_alicloud-3.66.0a1731672315.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,533 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import copy
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
|
|
18
|
+
__all__ = [
|
|
19
|
+
'LoadBalancerZoneMapping',
|
|
20
|
+
'LoadBalancerZoneMappingLoadBalancerAddress',
|
|
21
|
+
'ServerGroupConnectionDrainConfig',
|
|
22
|
+
'ServerGroupHealthCheckConfig',
|
|
23
|
+
'ServerGroupServer',
|
|
24
|
+
]
|
|
25
|
+
|
|
26
|
+
@pulumi.output_type
|
|
27
|
+
class LoadBalancerZoneMapping(dict):
|
|
28
|
+
@staticmethod
|
|
29
|
+
def __key_warning(key: str):
|
|
30
|
+
suggest = None
|
|
31
|
+
if key == "vswitchId":
|
|
32
|
+
suggest = "vswitch_id"
|
|
33
|
+
elif key == "zoneId":
|
|
34
|
+
suggest = "zone_id"
|
|
35
|
+
elif key == "loadBalancerAddresses":
|
|
36
|
+
suggest = "load_balancer_addresses"
|
|
37
|
+
|
|
38
|
+
if suggest:
|
|
39
|
+
pulumi.log.warn(f"Key '{key}' not found in LoadBalancerZoneMapping. Access the value via the '{suggest}' property getter instead.")
|
|
40
|
+
|
|
41
|
+
def __getitem__(self, key: str) -> Any:
|
|
42
|
+
LoadBalancerZoneMapping.__key_warning(key)
|
|
43
|
+
return super().__getitem__(key)
|
|
44
|
+
|
|
45
|
+
def get(self, key: str, default = None) -> Any:
|
|
46
|
+
LoadBalancerZoneMapping.__key_warning(key)
|
|
47
|
+
return super().get(key, default)
|
|
48
|
+
|
|
49
|
+
def __init__(__self__, *,
|
|
50
|
+
vswitch_id: str,
|
|
51
|
+
zone_id: str,
|
|
52
|
+
load_balancer_addresses: Optional[Sequence['outputs.LoadBalancerZoneMappingLoadBalancerAddress']] = None):
|
|
53
|
+
"""
|
|
54
|
+
:param str vswitch_id: The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.
|
|
55
|
+
:param str zone_id: The ID of the zone to which the Gateway Load Balancer instance belongs.
|
|
56
|
+
:param Sequence['LoadBalancerZoneMappingLoadBalancerAddressArgs'] load_balancer_addresses: The addresses of the Gateway Load Balancer instance.
|
|
57
|
+
"""
|
|
58
|
+
pulumi.set(__self__, "vswitch_id", vswitch_id)
|
|
59
|
+
pulumi.set(__self__, "zone_id", zone_id)
|
|
60
|
+
if load_balancer_addresses is not None:
|
|
61
|
+
pulumi.set(__self__, "load_balancer_addresses", load_balancer_addresses)
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
@pulumi.getter(name="vswitchId")
|
|
65
|
+
def vswitch_id(self) -> str:
|
|
66
|
+
"""
|
|
67
|
+
The ID of the vSwitch that corresponds to the zone. Each zone can use only one vSwitch and subnet.
|
|
68
|
+
"""
|
|
69
|
+
return pulumi.get(self, "vswitch_id")
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
@pulumi.getter(name="zoneId")
|
|
73
|
+
def zone_id(self) -> str:
|
|
74
|
+
"""
|
|
75
|
+
The ID of the zone to which the Gateway Load Balancer instance belongs.
|
|
76
|
+
"""
|
|
77
|
+
return pulumi.get(self, "zone_id")
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
@pulumi.getter(name="loadBalancerAddresses")
|
|
81
|
+
def load_balancer_addresses(self) -> Optional[Sequence['outputs.LoadBalancerZoneMappingLoadBalancerAddress']]:
|
|
82
|
+
"""
|
|
83
|
+
The addresses of the Gateway Load Balancer instance.
|
|
84
|
+
"""
|
|
85
|
+
return pulumi.get(self, "load_balancer_addresses")
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
@pulumi.output_type
|
|
89
|
+
class LoadBalancerZoneMappingLoadBalancerAddress(dict):
|
|
90
|
+
@staticmethod
|
|
91
|
+
def __key_warning(key: str):
|
|
92
|
+
suggest = None
|
|
93
|
+
if key == "eniId":
|
|
94
|
+
suggest = "eni_id"
|
|
95
|
+
elif key == "privateIpv4Address":
|
|
96
|
+
suggest = "private_ipv4_address"
|
|
97
|
+
|
|
98
|
+
if suggest:
|
|
99
|
+
pulumi.log.warn(f"Key '{key}' not found in LoadBalancerZoneMappingLoadBalancerAddress. Access the value via the '{suggest}' property getter instead.")
|
|
100
|
+
|
|
101
|
+
def __getitem__(self, key: str) -> Any:
|
|
102
|
+
LoadBalancerZoneMappingLoadBalancerAddress.__key_warning(key)
|
|
103
|
+
return super().__getitem__(key)
|
|
104
|
+
|
|
105
|
+
def get(self, key: str, default = None) -> Any:
|
|
106
|
+
LoadBalancerZoneMappingLoadBalancerAddress.__key_warning(key)
|
|
107
|
+
return super().get(key, default)
|
|
108
|
+
|
|
109
|
+
def __init__(__self__, *,
|
|
110
|
+
eni_id: Optional[str] = None,
|
|
111
|
+
private_ipv4_address: Optional[str] = None):
|
|
112
|
+
"""
|
|
113
|
+
:param str eni_id: The ID of the ENI.
|
|
114
|
+
:param str private_ipv4_address: IPv4 private network address.
|
|
115
|
+
"""
|
|
116
|
+
if eni_id is not None:
|
|
117
|
+
pulumi.set(__self__, "eni_id", eni_id)
|
|
118
|
+
if private_ipv4_address is not None:
|
|
119
|
+
pulumi.set(__self__, "private_ipv4_address", private_ipv4_address)
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
@pulumi.getter(name="eniId")
|
|
123
|
+
def eni_id(self) -> Optional[str]:
|
|
124
|
+
"""
|
|
125
|
+
The ID of the ENI.
|
|
126
|
+
"""
|
|
127
|
+
return pulumi.get(self, "eni_id")
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
@pulumi.getter(name="privateIpv4Address")
|
|
131
|
+
def private_ipv4_address(self) -> Optional[str]:
|
|
132
|
+
"""
|
|
133
|
+
IPv4 private network address.
|
|
134
|
+
"""
|
|
135
|
+
return pulumi.get(self, "private_ipv4_address")
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
@pulumi.output_type
|
|
139
|
+
class ServerGroupConnectionDrainConfig(dict):
|
|
140
|
+
@staticmethod
|
|
141
|
+
def __key_warning(key: str):
|
|
142
|
+
suggest = None
|
|
143
|
+
if key == "connectionDrainEnabled":
|
|
144
|
+
suggest = "connection_drain_enabled"
|
|
145
|
+
elif key == "connectionDrainTimeout":
|
|
146
|
+
suggest = "connection_drain_timeout"
|
|
147
|
+
|
|
148
|
+
if suggest:
|
|
149
|
+
pulumi.log.warn(f"Key '{key}' not found in ServerGroupConnectionDrainConfig. Access the value via the '{suggest}' property getter instead.")
|
|
150
|
+
|
|
151
|
+
def __getitem__(self, key: str) -> Any:
|
|
152
|
+
ServerGroupConnectionDrainConfig.__key_warning(key)
|
|
153
|
+
return super().__getitem__(key)
|
|
154
|
+
|
|
155
|
+
def get(self, key: str, default = None) -> Any:
|
|
156
|
+
ServerGroupConnectionDrainConfig.__key_warning(key)
|
|
157
|
+
return super().get(key, default)
|
|
158
|
+
|
|
159
|
+
def __init__(__self__, *,
|
|
160
|
+
connection_drain_enabled: Optional[bool] = None,
|
|
161
|
+
connection_drain_timeout: Optional[int] = None):
|
|
162
|
+
"""
|
|
163
|
+
:param bool connection_drain_enabled: Whether to open the connection graceful interrupt. Value:
|
|
164
|
+
:param int connection_drain_timeout: Connection Grace interrupt timeout.
|
|
165
|
+
|
|
166
|
+
Unit: seconds.
|
|
167
|
+
|
|
168
|
+
Value range: 1~3600.
|
|
169
|
+
"""
|
|
170
|
+
if connection_drain_enabled is not None:
|
|
171
|
+
pulumi.set(__self__, "connection_drain_enabled", connection_drain_enabled)
|
|
172
|
+
if connection_drain_timeout is not None:
|
|
173
|
+
pulumi.set(__self__, "connection_drain_timeout", connection_drain_timeout)
|
|
174
|
+
|
|
175
|
+
@property
|
|
176
|
+
@pulumi.getter(name="connectionDrainEnabled")
|
|
177
|
+
def connection_drain_enabled(self) -> Optional[bool]:
|
|
178
|
+
"""
|
|
179
|
+
Whether to open the connection graceful interrupt. Value:
|
|
180
|
+
"""
|
|
181
|
+
return pulumi.get(self, "connection_drain_enabled")
|
|
182
|
+
|
|
183
|
+
@property
|
|
184
|
+
@pulumi.getter(name="connectionDrainTimeout")
|
|
185
|
+
def connection_drain_timeout(self) -> Optional[int]:
|
|
186
|
+
"""
|
|
187
|
+
Connection Grace interrupt timeout.
|
|
188
|
+
|
|
189
|
+
Unit: seconds.
|
|
190
|
+
|
|
191
|
+
Value range: 1~3600.
|
|
192
|
+
"""
|
|
193
|
+
return pulumi.get(self, "connection_drain_timeout")
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
@pulumi.output_type
|
|
197
|
+
class ServerGroupHealthCheckConfig(dict):
|
|
198
|
+
@staticmethod
|
|
199
|
+
def __key_warning(key: str):
|
|
200
|
+
suggest = None
|
|
201
|
+
if key == "healthCheckConnectPort":
|
|
202
|
+
suggest = "health_check_connect_port"
|
|
203
|
+
elif key == "healthCheckConnectTimeout":
|
|
204
|
+
suggest = "health_check_connect_timeout"
|
|
205
|
+
elif key == "healthCheckDomain":
|
|
206
|
+
suggest = "health_check_domain"
|
|
207
|
+
elif key == "healthCheckEnabled":
|
|
208
|
+
suggest = "health_check_enabled"
|
|
209
|
+
elif key == "healthCheckHttpCodes":
|
|
210
|
+
suggest = "health_check_http_codes"
|
|
211
|
+
elif key == "healthCheckInterval":
|
|
212
|
+
suggest = "health_check_interval"
|
|
213
|
+
elif key == "healthCheckPath":
|
|
214
|
+
suggest = "health_check_path"
|
|
215
|
+
elif key == "healthCheckProtocol":
|
|
216
|
+
suggest = "health_check_protocol"
|
|
217
|
+
elif key == "healthyThreshold":
|
|
218
|
+
suggest = "healthy_threshold"
|
|
219
|
+
elif key == "unhealthyThreshold":
|
|
220
|
+
suggest = "unhealthy_threshold"
|
|
221
|
+
|
|
222
|
+
if suggest:
|
|
223
|
+
pulumi.log.warn(f"Key '{key}' not found in ServerGroupHealthCheckConfig. Access the value via the '{suggest}' property getter instead.")
|
|
224
|
+
|
|
225
|
+
def __getitem__(self, key: str) -> Any:
|
|
226
|
+
ServerGroupHealthCheckConfig.__key_warning(key)
|
|
227
|
+
return super().__getitem__(key)
|
|
228
|
+
|
|
229
|
+
def get(self, key: str, default = None) -> Any:
|
|
230
|
+
ServerGroupHealthCheckConfig.__key_warning(key)
|
|
231
|
+
return super().get(key, default)
|
|
232
|
+
|
|
233
|
+
def __init__(__self__, *,
|
|
234
|
+
health_check_connect_port: Optional[int] = None,
|
|
235
|
+
health_check_connect_timeout: Optional[int] = None,
|
|
236
|
+
health_check_domain: Optional[str] = None,
|
|
237
|
+
health_check_enabled: Optional[bool] = None,
|
|
238
|
+
health_check_http_codes: Optional[Sequence[str]] = None,
|
|
239
|
+
health_check_interval: Optional[int] = None,
|
|
240
|
+
health_check_path: Optional[str] = None,
|
|
241
|
+
health_check_protocol: Optional[str] = None,
|
|
242
|
+
healthy_threshold: Optional[int] = None,
|
|
243
|
+
unhealthy_threshold: Optional[int] = None):
|
|
244
|
+
"""
|
|
245
|
+
:param int health_check_connect_port: The port of the backend server used for health check.
|
|
246
|
+
|
|
247
|
+
Value range: **1 to 65535**.
|
|
248
|
+
|
|
249
|
+
Default value: `80`.
|
|
250
|
+
:param int health_check_connect_timeout: The maximum timeout period for health check responses.
|
|
251
|
+
|
|
252
|
+
Unit: seconds.
|
|
253
|
+
|
|
254
|
+
Value range: **1 to 300**.
|
|
255
|
+
|
|
256
|
+
Default value: `5`.
|
|
257
|
+
:param str health_check_domain: The domain name used for health checks. Value:
|
|
258
|
+
- **$SERVER_IP (default)**: Use the internal IP address of the backend server.
|
|
259
|
+
:param bool health_check_enabled: Whether to enable health check. Value:
|
|
260
|
+
- **true (default)**: enabled.
|
|
261
|
+
:param Sequence[str] health_check_http_codes: Health status return code list.
|
|
262
|
+
:param int health_check_interval: The time interval of the health check.
|
|
263
|
+
|
|
264
|
+
Unit: seconds.
|
|
265
|
+
|
|
266
|
+
Value range: **1~50**.
|
|
267
|
+
|
|
268
|
+
Default value: `10`.
|
|
269
|
+
:param str health_check_path: Health check path.
|
|
270
|
+
|
|
271
|
+
It can be 1 to 80 characters in length and can only use upper and lower case letters, digits, dashes (-), forward slashes (/), half-width periods (.), percent signs (%), and half-width question marks (?), Pound sign (#) and and(&) and extended character set_;~! ()*[]@$^: ',+ =
|
|
272
|
+
|
|
273
|
+
Must start with a forward slash (/).
|
|
274
|
+
|
|
275
|
+
> **NOTE:** This parameter takes effect only when the HealthCheckProtocol is HTTP.
|
|
276
|
+
:param str health_check_protocol: Health check protocol, value:
|
|
277
|
+
- `TCP` (default): Sends a SYN handshake packet to check whether the server port is alive.
|
|
278
|
+
- `HTTP`: Sends a GET request to simulate the access behavior of the browser to check whether the server application is healthy.
|
|
279
|
+
:param int healthy_threshold: After the number of consecutive successful health checks, the health check status of the backend server is determined as successful from failed.
|
|
280
|
+
|
|
281
|
+
Value range: **2 to 10**.
|
|
282
|
+
|
|
283
|
+
Default value: `2`.
|
|
284
|
+
:param int unhealthy_threshold: The number of consecutive failed health checks that determine the health check status of the backend server from success to failure.
|
|
285
|
+
|
|
286
|
+
Value range: **2 to 10**.
|
|
287
|
+
|
|
288
|
+
Default value: `2`.
|
|
289
|
+
"""
|
|
290
|
+
if health_check_connect_port is not None:
|
|
291
|
+
pulumi.set(__self__, "health_check_connect_port", health_check_connect_port)
|
|
292
|
+
if health_check_connect_timeout is not None:
|
|
293
|
+
pulumi.set(__self__, "health_check_connect_timeout", health_check_connect_timeout)
|
|
294
|
+
if health_check_domain is not None:
|
|
295
|
+
pulumi.set(__self__, "health_check_domain", health_check_domain)
|
|
296
|
+
if health_check_enabled is not None:
|
|
297
|
+
pulumi.set(__self__, "health_check_enabled", health_check_enabled)
|
|
298
|
+
if health_check_http_codes is not None:
|
|
299
|
+
pulumi.set(__self__, "health_check_http_codes", health_check_http_codes)
|
|
300
|
+
if health_check_interval is not None:
|
|
301
|
+
pulumi.set(__self__, "health_check_interval", health_check_interval)
|
|
302
|
+
if health_check_path is not None:
|
|
303
|
+
pulumi.set(__self__, "health_check_path", health_check_path)
|
|
304
|
+
if health_check_protocol is not None:
|
|
305
|
+
pulumi.set(__self__, "health_check_protocol", health_check_protocol)
|
|
306
|
+
if healthy_threshold is not None:
|
|
307
|
+
pulumi.set(__self__, "healthy_threshold", healthy_threshold)
|
|
308
|
+
if unhealthy_threshold is not None:
|
|
309
|
+
pulumi.set(__self__, "unhealthy_threshold", unhealthy_threshold)
|
|
310
|
+
|
|
311
|
+
@property
|
|
312
|
+
@pulumi.getter(name="healthCheckConnectPort")
|
|
313
|
+
def health_check_connect_port(self) -> Optional[int]:
|
|
314
|
+
"""
|
|
315
|
+
The port of the backend server used for health check.
|
|
316
|
+
|
|
317
|
+
Value range: **1 to 65535**.
|
|
318
|
+
|
|
319
|
+
Default value: `80`.
|
|
320
|
+
"""
|
|
321
|
+
return pulumi.get(self, "health_check_connect_port")
|
|
322
|
+
|
|
323
|
+
@property
|
|
324
|
+
@pulumi.getter(name="healthCheckConnectTimeout")
|
|
325
|
+
def health_check_connect_timeout(self) -> Optional[int]:
|
|
326
|
+
"""
|
|
327
|
+
The maximum timeout period for health check responses.
|
|
328
|
+
|
|
329
|
+
Unit: seconds.
|
|
330
|
+
|
|
331
|
+
Value range: **1 to 300**.
|
|
332
|
+
|
|
333
|
+
Default value: `5`.
|
|
334
|
+
"""
|
|
335
|
+
return pulumi.get(self, "health_check_connect_timeout")
|
|
336
|
+
|
|
337
|
+
@property
|
|
338
|
+
@pulumi.getter(name="healthCheckDomain")
|
|
339
|
+
def health_check_domain(self) -> Optional[str]:
|
|
340
|
+
"""
|
|
341
|
+
The domain name used for health checks. Value:
|
|
342
|
+
- **$SERVER_IP (default)**: Use the internal IP address of the backend server.
|
|
343
|
+
"""
|
|
344
|
+
return pulumi.get(self, "health_check_domain")
|
|
345
|
+
|
|
346
|
+
@property
|
|
347
|
+
@pulumi.getter(name="healthCheckEnabled")
|
|
348
|
+
def health_check_enabled(self) -> Optional[bool]:
|
|
349
|
+
"""
|
|
350
|
+
Whether to enable health check. Value:
|
|
351
|
+
- **true (default)**: enabled.
|
|
352
|
+
"""
|
|
353
|
+
return pulumi.get(self, "health_check_enabled")
|
|
354
|
+
|
|
355
|
+
@property
|
|
356
|
+
@pulumi.getter(name="healthCheckHttpCodes")
|
|
357
|
+
def health_check_http_codes(self) -> Optional[Sequence[str]]:
|
|
358
|
+
"""
|
|
359
|
+
Health status return code list.
|
|
360
|
+
"""
|
|
361
|
+
return pulumi.get(self, "health_check_http_codes")
|
|
362
|
+
|
|
363
|
+
@property
|
|
364
|
+
@pulumi.getter(name="healthCheckInterval")
|
|
365
|
+
def health_check_interval(self) -> Optional[int]:
|
|
366
|
+
"""
|
|
367
|
+
The time interval of the health check.
|
|
368
|
+
|
|
369
|
+
Unit: seconds.
|
|
370
|
+
|
|
371
|
+
Value range: **1~50**.
|
|
372
|
+
|
|
373
|
+
Default value: `10`.
|
|
374
|
+
"""
|
|
375
|
+
return pulumi.get(self, "health_check_interval")
|
|
376
|
+
|
|
377
|
+
@property
|
|
378
|
+
@pulumi.getter(name="healthCheckPath")
|
|
379
|
+
def health_check_path(self) -> Optional[str]:
|
|
380
|
+
"""
|
|
381
|
+
Health check path.
|
|
382
|
+
|
|
383
|
+
It can be 1 to 80 characters in length and can only use upper and lower case letters, digits, dashes (-), forward slashes (/), half-width periods (.), percent signs (%), and half-width question marks (?), Pound sign (#) and and(&) and extended character set_;~! ()*[]@$^: ',+ =
|
|
384
|
+
|
|
385
|
+
Must start with a forward slash (/).
|
|
386
|
+
|
|
387
|
+
> **NOTE:** This parameter takes effect only when the HealthCheckProtocol is HTTP.
|
|
388
|
+
"""
|
|
389
|
+
return pulumi.get(self, "health_check_path")
|
|
390
|
+
|
|
391
|
+
@property
|
|
392
|
+
@pulumi.getter(name="healthCheckProtocol")
|
|
393
|
+
def health_check_protocol(self) -> Optional[str]:
|
|
394
|
+
"""
|
|
395
|
+
Health check protocol, value:
|
|
396
|
+
- `TCP` (default): Sends a SYN handshake packet to check whether the server port is alive.
|
|
397
|
+
- `HTTP`: Sends a GET request to simulate the access behavior of the browser to check whether the server application is healthy.
|
|
398
|
+
"""
|
|
399
|
+
return pulumi.get(self, "health_check_protocol")
|
|
400
|
+
|
|
401
|
+
@property
|
|
402
|
+
@pulumi.getter(name="healthyThreshold")
|
|
403
|
+
def healthy_threshold(self) -> Optional[int]:
|
|
404
|
+
"""
|
|
405
|
+
After the number of consecutive successful health checks, the health check status of the backend server is determined as successful from failed.
|
|
406
|
+
|
|
407
|
+
Value range: **2 to 10**.
|
|
408
|
+
|
|
409
|
+
Default value: `2`.
|
|
410
|
+
"""
|
|
411
|
+
return pulumi.get(self, "healthy_threshold")
|
|
412
|
+
|
|
413
|
+
@property
|
|
414
|
+
@pulumi.getter(name="unhealthyThreshold")
|
|
415
|
+
def unhealthy_threshold(self) -> Optional[int]:
|
|
416
|
+
"""
|
|
417
|
+
The number of consecutive failed health checks that determine the health check status of the backend server from success to failure.
|
|
418
|
+
|
|
419
|
+
Value range: **2 to 10**.
|
|
420
|
+
|
|
421
|
+
Default value: `2`.
|
|
422
|
+
"""
|
|
423
|
+
return pulumi.get(self, "unhealthy_threshold")
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
@pulumi.output_type
|
|
427
|
+
class ServerGroupServer(dict):
|
|
428
|
+
@staticmethod
|
|
429
|
+
def __key_warning(key: str):
|
|
430
|
+
suggest = None
|
|
431
|
+
if key == "serverId":
|
|
432
|
+
suggest = "server_id"
|
|
433
|
+
elif key == "serverType":
|
|
434
|
+
suggest = "server_type"
|
|
435
|
+
elif key == "serverGroupId":
|
|
436
|
+
suggest = "server_group_id"
|
|
437
|
+
elif key == "serverIp":
|
|
438
|
+
suggest = "server_ip"
|
|
439
|
+
|
|
440
|
+
if suggest:
|
|
441
|
+
pulumi.log.warn(f"Key '{key}' not found in ServerGroupServer. Access the value via the '{suggest}' property getter instead.")
|
|
442
|
+
|
|
443
|
+
def __getitem__(self, key: str) -> Any:
|
|
444
|
+
ServerGroupServer.__key_warning(key)
|
|
445
|
+
return super().__getitem__(key)
|
|
446
|
+
|
|
447
|
+
def get(self, key: str, default = None) -> Any:
|
|
448
|
+
ServerGroupServer.__key_warning(key)
|
|
449
|
+
return super().get(key, default)
|
|
450
|
+
|
|
451
|
+
def __init__(__self__, *,
|
|
452
|
+
server_id: str,
|
|
453
|
+
server_type: str,
|
|
454
|
+
port: Optional[int] = None,
|
|
455
|
+
server_group_id: Optional[str] = None,
|
|
456
|
+
server_ip: Optional[str] = None,
|
|
457
|
+
status: Optional[str] = None):
|
|
458
|
+
"""
|
|
459
|
+
:param str server_id: The ID of the backend server.
|
|
460
|
+
:param str server_type: Backend server type. Valid values:
|
|
461
|
+
- `Ecs`: ECS instance.
|
|
462
|
+
- `Eni`: ENI instance.
|
|
463
|
+
- `Eci`: ECI elastic container.
|
|
464
|
+
- `Ip`: Ip address.
|
|
465
|
+
:param int port: The port used by the backend server.
|
|
466
|
+
:param str server_group_id: The server group ID.
|
|
467
|
+
:param str server_ip: Server ip.
|
|
468
|
+
:param str status: Server group status. Value:
|
|
469
|
+
"""
|
|
470
|
+
pulumi.set(__self__, "server_id", server_id)
|
|
471
|
+
pulumi.set(__self__, "server_type", server_type)
|
|
472
|
+
if port is not None:
|
|
473
|
+
pulumi.set(__self__, "port", port)
|
|
474
|
+
if server_group_id is not None:
|
|
475
|
+
pulumi.set(__self__, "server_group_id", server_group_id)
|
|
476
|
+
if server_ip is not None:
|
|
477
|
+
pulumi.set(__self__, "server_ip", server_ip)
|
|
478
|
+
if status is not None:
|
|
479
|
+
pulumi.set(__self__, "status", status)
|
|
480
|
+
|
|
481
|
+
@property
|
|
482
|
+
@pulumi.getter(name="serverId")
|
|
483
|
+
def server_id(self) -> str:
|
|
484
|
+
"""
|
|
485
|
+
The ID of the backend server.
|
|
486
|
+
"""
|
|
487
|
+
return pulumi.get(self, "server_id")
|
|
488
|
+
|
|
489
|
+
@property
|
|
490
|
+
@pulumi.getter(name="serverType")
|
|
491
|
+
def server_type(self) -> str:
|
|
492
|
+
"""
|
|
493
|
+
Backend server type. Valid values:
|
|
494
|
+
- `Ecs`: ECS instance.
|
|
495
|
+
- `Eni`: ENI instance.
|
|
496
|
+
- `Eci`: ECI elastic container.
|
|
497
|
+
- `Ip`: Ip address.
|
|
498
|
+
"""
|
|
499
|
+
return pulumi.get(self, "server_type")
|
|
500
|
+
|
|
501
|
+
@property
|
|
502
|
+
@pulumi.getter
|
|
503
|
+
def port(self) -> Optional[int]:
|
|
504
|
+
"""
|
|
505
|
+
The port used by the backend server.
|
|
506
|
+
"""
|
|
507
|
+
return pulumi.get(self, "port")
|
|
508
|
+
|
|
509
|
+
@property
|
|
510
|
+
@pulumi.getter(name="serverGroupId")
|
|
511
|
+
def server_group_id(self) -> Optional[str]:
|
|
512
|
+
"""
|
|
513
|
+
The server group ID.
|
|
514
|
+
"""
|
|
515
|
+
return pulumi.get(self, "server_group_id")
|
|
516
|
+
|
|
517
|
+
@property
|
|
518
|
+
@pulumi.getter(name="serverIp")
|
|
519
|
+
def server_ip(self) -> Optional[str]:
|
|
520
|
+
"""
|
|
521
|
+
Server ip.
|
|
522
|
+
"""
|
|
523
|
+
return pulumi.get(self, "server_ip")
|
|
524
|
+
|
|
525
|
+
@property
|
|
526
|
+
@pulumi.getter
|
|
527
|
+
def status(self) -> Optional[str]:
|
|
528
|
+
"""
|
|
529
|
+
Server group status. Value:
|
|
530
|
+
"""
|
|
531
|
+
return pulumi.get(self, "status")
|
|
532
|
+
|
|
533
|
+
|