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,537 @@
|
|
|
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
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = ['LoadBalancerArgs', 'LoadBalancer']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class LoadBalancerArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
vpc_id: pulumi.Input[str],
|
|
25
|
+
zone_mappings: pulumi.Input[Sequence[pulumi.Input['LoadBalancerZoneMappingArgs']]],
|
|
26
|
+
address_ip_version: Optional[pulumi.Input[str]] = None,
|
|
27
|
+
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
28
|
+
load_balancer_name: Optional[pulumi.Input[str]] = None,
|
|
29
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
30
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
|
|
31
|
+
"""
|
|
32
|
+
The set of arguments for constructing a LoadBalancer resource.
|
|
33
|
+
:param pulumi.Input[str] vpc_id: The ID of the VPC which the Gateway Load Balancer instance belongs.
|
|
34
|
+
:param pulumi.Input[Sequence[pulumi.Input['LoadBalancerZoneMappingArgs']]] zone_mappings: The List of zones and vSwitches mapped. You must add at least one zone and a maximum of 20 zones. If the current region supports two or more zones, we recommend that you add two or more zones. See `zone_mappings` below.
|
|
35
|
+
:param pulumi.Input[str] address_ip_version: The protocol version. Value:
|
|
36
|
+
- Ipv4: Ipv4 type
|
|
37
|
+
:param pulumi.Input[bool] dry_run: Specifies whether to perform only a dry run, without performing the actual request.
|
|
38
|
+
:param pulumi.Input[str] load_balancer_name: The name of the Gateway Load Balancer instance.
|
|
39
|
+
|
|
40
|
+
It must be 2 to 128 English or Chinese characters in length. It must start with a letter or a Chinese character and can contain digits, half-width periods (.), underscores (_), and dashes (-).
|
|
41
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group
|
|
42
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The list of tags.
|
|
43
|
+
"""
|
|
44
|
+
pulumi.set(__self__, "vpc_id", vpc_id)
|
|
45
|
+
pulumi.set(__self__, "zone_mappings", zone_mappings)
|
|
46
|
+
if address_ip_version is not None:
|
|
47
|
+
pulumi.set(__self__, "address_ip_version", address_ip_version)
|
|
48
|
+
if dry_run is not None:
|
|
49
|
+
pulumi.set(__self__, "dry_run", dry_run)
|
|
50
|
+
if load_balancer_name is not None:
|
|
51
|
+
pulumi.set(__self__, "load_balancer_name", load_balancer_name)
|
|
52
|
+
if resource_group_id is not None:
|
|
53
|
+
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
54
|
+
if tags is not None:
|
|
55
|
+
pulumi.set(__self__, "tags", tags)
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
@pulumi.getter(name="vpcId")
|
|
59
|
+
def vpc_id(self) -> pulumi.Input[str]:
|
|
60
|
+
"""
|
|
61
|
+
The ID of the VPC which the Gateway Load Balancer instance belongs.
|
|
62
|
+
"""
|
|
63
|
+
return pulumi.get(self, "vpc_id")
|
|
64
|
+
|
|
65
|
+
@vpc_id.setter
|
|
66
|
+
def vpc_id(self, value: pulumi.Input[str]):
|
|
67
|
+
pulumi.set(self, "vpc_id", value)
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
@pulumi.getter(name="zoneMappings")
|
|
71
|
+
def zone_mappings(self) -> pulumi.Input[Sequence[pulumi.Input['LoadBalancerZoneMappingArgs']]]:
|
|
72
|
+
"""
|
|
73
|
+
The List of zones and vSwitches mapped. You must add at least one zone and a maximum of 20 zones. If the current region supports two or more zones, we recommend that you add two or more zones. See `zone_mappings` below.
|
|
74
|
+
"""
|
|
75
|
+
return pulumi.get(self, "zone_mappings")
|
|
76
|
+
|
|
77
|
+
@zone_mappings.setter
|
|
78
|
+
def zone_mappings(self, value: pulumi.Input[Sequence[pulumi.Input['LoadBalancerZoneMappingArgs']]]):
|
|
79
|
+
pulumi.set(self, "zone_mappings", value)
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
@pulumi.getter(name="addressIpVersion")
|
|
83
|
+
def address_ip_version(self) -> Optional[pulumi.Input[str]]:
|
|
84
|
+
"""
|
|
85
|
+
The protocol version. Value:
|
|
86
|
+
- Ipv4: Ipv4 type
|
|
87
|
+
"""
|
|
88
|
+
return pulumi.get(self, "address_ip_version")
|
|
89
|
+
|
|
90
|
+
@address_ip_version.setter
|
|
91
|
+
def address_ip_version(self, value: Optional[pulumi.Input[str]]):
|
|
92
|
+
pulumi.set(self, "address_ip_version", value)
|
|
93
|
+
|
|
94
|
+
@property
|
|
95
|
+
@pulumi.getter(name="dryRun")
|
|
96
|
+
def dry_run(self) -> Optional[pulumi.Input[bool]]:
|
|
97
|
+
"""
|
|
98
|
+
Specifies whether to perform only a dry run, without performing the actual request.
|
|
99
|
+
"""
|
|
100
|
+
return pulumi.get(self, "dry_run")
|
|
101
|
+
|
|
102
|
+
@dry_run.setter
|
|
103
|
+
def dry_run(self, value: Optional[pulumi.Input[bool]]):
|
|
104
|
+
pulumi.set(self, "dry_run", value)
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
@pulumi.getter(name="loadBalancerName")
|
|
108
|
+
def load_balancer_name(self) -> Optional[pulumi.Input[str]]:
|
|
109
|
+
"""
|
|
110
|
+
The name of the Gateway Load Balancer instance.
|
|
111
|
+
|
|
112
|
+
It must be 2 to 128 English or Chinese characters in length. It must start with a letter or a Chinese character and can contain digits, half-width periods (.), underscores (_), and dashes (-).
|
|
113
|
+
"""
|
|
114
|
+
return pulumi.get(self, "load_balancer_name")
|
|
115
|
+
|
|
116
|
+
@load_balancer_name.setter
|
|
117
|
+
def load_balancer_name(self, value: Optional[pulumi.Input[str]]):
|
|
118
|
+
pulumi.set(self, "load_balancer_name", value)
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
@pulumi.getter(name="resourceGroupId")
|
|
122
|
+
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
123
|
+
"""
|
|
124
|
+
The ID of the resource group
|
|
125
|
+
"""
|
|
126
|
+
return pulumi.get(self, "resource_group_id")
|
|
127
|
+
|
|
128
|
+
@resource_group_id.setter
|
|
129
|
+
def resource_group_id(self, value: Optional[pulumi.Input[str]]):
|
|
130
|
+
pulumi.set(self, "resource_group_id", value)
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
@pulumi.getter
|
|
134
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
135
|
+
"""
|
|
136
|
+
The list of tags.
|
|
137
|
+
"""
|
|
138
|
+
return pulumi.get(self, "tags")
|
|
139
|
+
|
|
140
|
+
@tags.setter
|
|
141
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
142
|
+
pulumi.set(self, "tags", value)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
@pulumi.input_type
|
|
146
|
+
class _LoadBalancerState:
|
|
147
|
+
def __init__(__self__, *,
|
|
148
|
+
address_ip_version: Optional[pulumi.Input[str]] = None,
|
|
149
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
150
|
+
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
151
|
+
load_balancer_name: Optional[pulumi.Input[str]] = None,
|
|
152
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
153
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
154
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
155
|
+
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
156
|
+
zone_mappings: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerZoneMappingArgs']]]] = None):
|
|
157
|
+
"""
|
|
158
|
+
Input properties used for looking up and filtering LoadBalancer resources.
|
|
159
|
+
:param pulumi.Input[str] address_ip_version: The protocol version. Value:
|
|
160
|
+
- Ipv4: Ipv4 type
|
|
161
|
+
:param pulumi.Input[str] create_time: The resource creation time, in Greenwich Mean Time, in the format of **yyyy-MM-ddTHH:mm:ssZ**.
|
|
162
|
+
:param pulumi.Input[bool] dry_run: Specifies whether to perform only a dry run, without performing the actual request.
|
|
163
|
+
:param pulumi.Input[str] load_balancer_name: The name of the Gateway Load Balancer instance.
|
|
164
|
+
|
|
165
|
+
It must be 2 to 128 English or Chinese characters in length. It must start with a letter or a Chinese character and can contain digits, half-width periods (.), underscores (_), and dashes (-).
|
|
166
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group
|
|
167
|
+
:param pulumi.Input[str] status: The status of the Gateway load Balancer instance. Value:, indicating that the instance listener will no longer forward traffic.
|
|
168
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The list of tags.
|
|
169
|
+
:param pulumi.Input[str] vpc_id: The ID of the VPC which the Gateway Load Balancer instance belongs.
|
|
170
|
+
:param pulumi.Input[Sequence[pulumi.Input['LoadBalancerZoneMappingArgs']]] zone_mappings: The List of zones and vSwitches mapped. You must add at least one zone and a maximum of 20 zones. If the current region supports two or more zones, we recommend that you add two or more zones. See `zone_mappings` below.
|
|
171
|
+
"""
|
|
172
|
+
if address_ip_version is not None:
|
|
173
|
+
pulumi.set(__self__, "address_ip_version", address_ip_version)
|
|
174
|
+
if create_time is not None:
|
|
175
|
+
pulumi.set(__self__, "create_time", create_time)
|
|
176
|
+
if dry_run is not None:
|
|
177
|
+
pulumi.set(__self__, "dry_run", dry_run)
|
|
178
|
+
if load_balancer_name is not None:
|
|
179
|
+
pulumi.set(__self__, "load_balancer_name", load_balancer_name)
|
|
180
|
+
if resource_group_id is not None:
|
|
181
|
+
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
182
|
+
if status is not None:
|
|
183
|
+
pulumi.set(__self__, "status", status)
|
|
184
|
+
if tags is not None:
|
|
185
|
+
pulumi.set(__self__, "tags", tags)
|
|
186
|
+
if vpc_id is not None:
|
|
187
|
+
pulumi.set(__self__, "vpc_id", vpc_id)
|
|
188
|
+
if zone_mappings is not None:
|
|
189
|
+
pulumi.set(__self__, "zone_mappings", zone_mappings)
|
|
190
|
+
|
|
191
|
+
@property
|
|
192
|
+
@pulumi.getter(name="addressIpVersion")
|
|
193
|
+
def address_ip_version(self) -> Optional[pulumi.Input[str]]:
|
|
194
|
+
"""
|
|
195
|
+
The protocol version. Value:
|
|
196
|
+
- Ipv4: Ipv4 type
|
|
197
|
+
"""
|
|
198
|
+
return pulumi.get(self, "address_ip_version")
|
|
199
|
+
|
|
200
|
+
@address_ip_version.setter
|
|
201
|
+
def address_ip_version(self, value: Optional[pulumi.Input[str]]):
|
|
202
|
+
pulumi.set(self, "address_ip_version", value)
|
|
203
|
+
|
|
204
|
+
@property
|
|
205
|
+
@pulumi.getter(name="createTime")
|
|
206
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
|
207
|
+
"""
|
|
208
|
+
The resource creation time, in Greenwich Mean Time, in the format of **yyyy-MM-ddTHH:mm:ssZ**.
|
|
209
|
+
"""
|
|
210
|
+
return pulumi.get(self, "create_time")
|
|
211
|
+
|
|
212
|
+
@create_time.setter
|
|
213
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
|
214
|
+
pulumi.set(self, "create_time", value)
|
|
215
|
+
|
|
216
|
+
@property
|
|
217
|
+
@pulumi.getter(name="dryRun")
|
|
218
|
+
def dry_run(self) -> Optional[pulumi.Input[bool]]:
|
|
219
|
+
"""
|
|
220
|
+
Specifies whether to perform only a dry run, without performing the actual request.
|
|
221
|
+
"""
|
|
222
|
+
return pulumi.get(self, "dry_run")
|
|
223
|
+
|
|
224
|
+
@dry_run.setter
|
|
225
|
+
def dry_run(self, value: Optional[pulumi.Input[bool]]):
|
|
226
|
+
pulumi.set(self, "dry_run", value)
|
|
227
|
+
|
|
228
|
+
@property
|
|
229
|
+
@pulumi.getter(name="loadBalancerName")
|
|
230
|
+
def load_balancer_name(self) -> Optional[pulumi.Input[str]]:
|
|
231
|
+
"""
|
|
232
|
+
The name of the Gateway Load Balancer instance.
|
|
233
|
+
|
|
234
|
+
It must be 2 to 128 English or Chinese characters in length. It must start with a letter or a Chinese character and can contain digits, half-width periods (.), underscores (_), and dashes (-).
|
|
235
|
+
"""
|
|
236
|
+
return pulumi.get(self, "load_balancer_name")
|
|
237
|
+
|
|
238
|
+
@load_balancer_name.setter
|
|
239
|
+
def load_balancer_name(self, value: Optional[pulumi.Input[str]]):
|
|
240
|
+
pulumi.set(self, "load_balancer_name", value)
|
|
241
|
+
|
|
242
|
+
@property
|
|
243
|
+
@pulumi.getter(name="resourceGroupId")
|
|
244
|
+
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
245
|
+
"""
|
|
246
|
+
The ID of the resource group
|
|
247
|
+
"""
|
|
248
|
+
return pulumi.get(self, "resource_group_id")
|
|
249
|
+
|
|
250
|
+
@resource_group_id.setter
|
|
251
|
+
def resource_group_id(self, value: Optional[pulumi.Input[str]]):
|
|
252
|
+
pulumi.set(self, "resource_group_id", value)
|
|
253
|
+
|
|
254
|
+
@property
|
|
255
|
+
@pulumi.getter
|
|
256
|
+
def status(self) -> Optional[pulumi.Input[str]]:
|
|
257
|
+
"""
|
|
258
|
+
The status of the Gateway load Balancer instance. Value:, indicating that the instance listener will no longer forward traffic.
|
|
259
|
+
"""
|
|
260
|
+
return pulumi.get(self, "status")
|
|
261
|
+
|
|
262
|
+
@status.setter
|
|
263
|
+
def status(self, value: Optional[pulumi.Input[str]]):
|
|
264
|
+
pulumi.set(self, "status", value)
|
|
265
|
+
|
|
266
|
+
@property
|
|
267
|
+
@pulumi.getter
|
|
268
|
+
def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
|
269
|
+
"""
|
|
270
|
+
The list of tags.
|
|
271
|
+
"""
|
|
272
|
+
return pulumi.get(self, "tags")
|
|
273
|
+
|
|
274
|
+
@tags.setter
|
|
275
|
+
def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
|
276
|
+
pulumi.set(self, "tags", value)
|
|
277
|
+
|
|
278
|
+
@property
|
|
279
|
+
@pulumi.getter(name="vpcId")
|
|
280
|
+
def vpc_id(self) -> Optional[pulumi.Input[str]]:
|
|
281
|
+
"""
|
|
282
|
+
The ID of the VPC which the Gateway Load Balancer instance belongs.
|
|
283
|
+
"""
|
|
284
|
+
return pulumi.get(self, "vpc_id")
|
|
285
|
+
|
|
286
|
+
@vpc_id.setter
|
|
287
|
+
def vpc_id(self, value: Optional[pulumi.Input[str]]):
|
|
288
|
+
pulumi.set(self, "vpc_id", value)
|
|
289
|
+
|
|
290
|
+
@property
|
|
291
|
+
@pulumi.getter(name="zoneMappings")
|
|
292
|
+
def zone_mappings(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerZoneMappingArgs']]]]:
|
|
293
|
+
"""
|
|
294
|
+
The List of zones and vSwitches mapped. You must add at least one zone and a maximum of 20 zones. If the current region supports two or more zones, we recommend that you add two or more zones. See `zone_mappings` below.
|
|
295
|
+
"""
|
|
296
|
+
return pulumi.get(self, "zone_mappings")
|
|
297
|
+
|
|
298
|
+
@zone_mappings.setter
|
|
299
|
+
def zone_mappings(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['LoadBalancerZoneMappingArgs']]]]):
|
|
300
|
+
pulumi.set(self, "zone_mappings", value)
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
class LoadBalancer(pulumi.CustomResource):
|
|
304
|
+
@overload
|
|
305
|
+
def __init__(__self__,
|
|
306
|
+
resource_name: str,
|
|
307
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
308
|
+
address_ip_version: Optional[pulumi.Input[str]] = None,
|
|
309
|
+
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
310
|
+
load_balancer_name: Optional[pulumi.Input[str]] = None,
|
|
311
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
312
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
313
|
+
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
314
|
+
zone_mappings: Optional[pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerZoneMappingArgs', 'LoadBalancerZoneMappingArgsDict']]]]] = None,
|
|
315
|
+
__props__=None):
|
|
316
|
+
"""
|
|
317
|
+
Provides a GWLB Load Balancer resource.
|
|
318
|
+
|
|
319
|
+
For information about GWLB Load Balancer and how to use it, see [What is Load Balancer](https://www.alibabacloud.com/help/en/).
|
|
320
|
+
|
|
321
|
+
> **NOTE:** Available since v1.234.0.
|
|
322
|
+
|
|
323
|
+
## Import
|
|
324
|
+
|
|
325
|
+
GWLB Load Balancer can be imported using the id, e.g.
|
|
326
|
+
|
|
327
|
+
```sh
|
|
328
|
+
$ pulumi import alicloud:gwlb/loadBalancer:LoadBalancer example <id>
|
|
329
|
+
```
|
|
330
|
+
|
|
331
|
+
:param str resource_name: The name of the resource.
|
|
332
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
333
|
+
:param pulumi.Input[str] address_ip_version: The protocol version. Value:
|
|
334
|
+
- Ipv4: Ipv4 type
|
|
335
|
+
:param pulumi.Input[bool] dry_run: Specifies whether to perform only a dry run, without performing the actual request.
|
|
336
|
+
:param pulumi.Input[str] load_balancer_name: The name of the Gateway Load Balancer instance.
|
|
337
|
+
|
|
338
|
+
It must be 2 to 128 English or Chinese characters in length. It must start with a letter or a Chinese character and can contain digits, half-width periods (.), underscores (_), and dashes (-).
|
|
339
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group
|
|
340
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The list of tags.
|
|
341
|
+
:param pulumi.Input[str] vpc_id: The ID of the VPC which the Gateway Load Balancer instance belongs.
|
|
342
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerZoneMappingArgs', 'LoadBalancerZoneMappingArgsDict']]]] zone_mappings: The List of zones and vSwitches mapped. You must add at least one zone and a maximum of 20 zones. If the current region supports two or more zones, we recommend that you add two or more zones. See `zone_mappings` below.
|
|
343
|
+
"""
|
|
344
|
+
...
|
|
345
|
+
@overload
|
|
346
|
+
def __init__(__self__,
|
|
347
|
+
resource_name: str,
|
|
348
|
+
args: LoadBalancerArgs,
|
|
349
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
350
|
+
"""
|
|
351
|
+
Provides a GWLB Load Balancer resource.
|
|
352
|
+
|
|
353
|
+
For information about GWLB Load Balancer and how to use it, see [What is Load Balancer](https://www.alibabacloud.com/help/en/).
|
|
354
|
+
|
|
355
|
+
> **NOTE:** Available since v1.234.0.
|
|
356
|
+
|
|
357
|
+
## Import
|
|
358
|
+
|
|
359
|
+
GWLB Load Balancer can be imported using the id, e.g.
|
|
360
|
+
|
|
361
|
+
```sh
|
|
362
|
+
$ pulumi import alicloud:gwlb/loadBalancer:LoadBalancer example <id>
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
:param str resource_name: The name of the resource.
|
|
366
|
+
:param LoadBalancerArgs args: The arguments to use to populate this resource's properties.
|
|
367
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
368
|
+
"""
|
|
369
|
+
...
|
|
370
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
371
|
+
resource_args, opts = _utilities.get_resource_args_opts(LoadBalancerArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
372
|
+
if resource_args is not None:
|
|
373
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
374
|
+
else:
|
|
375
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
376
|
+
|
|
377
|
+
def _internal_init(__self__,
|
|
378
|
+
resource_name: str,
|
|
379
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
380
|
+
address_ip_version: Optional[pulumi.Input[str]] = None,
|
|
381
|
+
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
382
|
+
load_balancer_name: Optional[pulumi.Input[str]] = None,
|
|
383
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
384
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
385
|
+
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
386
|
+
zone_mappings: Optional[pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerZoneMappingArgs', 'LoadBalancerZoneMappingArgsDict']]]]] = None,
|
|
387
|
+
__props__=None):
|
|
388
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
389
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
390
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
391
|
+
if opts.id is None:
|
|
392
|
+
if __props__ is not None:
|
|
393
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
394
|
+
__props__ = LoadBalancerArgs.__new__(LoadBalancerArgs)
|
|
395
|
+
|
|
396
|
+
__props__.__dict__["address_ip_version"] = address_ip_version
|
|
397
|
+
__props__.__dict__["dry_run"] = dry_run
|
|
398
|
+
__props__.__dict__["load_balancer_name"] = load_balancer_name
|
|
399
|
+
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
400
|
+
__props__.__dict__["tags"] = tags
|
|
401
|
+
if vpc_id is None and not opts.urn:
|
|
402
|
+
raise TypeError("Missing required property 'vpc_id'")
|
|
403
|
+
__props__.__dict__["vpc_id"] = vpc_id
|
|
404
|
+
if zone_mappings is None and not opts.urn:
|
|
405
|
+
raise TypeError("Missing required property 'zone_mappings'")
|
|
406
|
+
__props__.__dict__["zone_mappings"] = zone_mappings
|
|
407
|
+
__props__.__dict__["create_time"] = None
|
|
408
|
+
__props__.__dict__["status"] = None
|
|
409
|
+
super(LoadBalancer, __self__).__init__(
|
|
410
|
+
'alicloud:gwlb/loadBalancer:LoadBalancer',
|
|
411
|
+
resource_name,
|
|
412
|
+
__props__,
|
|
413
|
+
opts)
|
|
414
|
+
|
|
415
|
+
@staticmethod
|
|
416
|
+
def get(resource_name: str,
|
|
417
|
+
id: pulumi.Input[str],
|
|
418
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
419
|
+
address_ip_version: Optional[pulumi.Input[str]] = None,
|
|
420
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
|
421
|
+
dry_run: Optional[pulumi.Input[bool]] = None,
|
|
422
|
+
load_balancer_name: Optional[pulumi.Input[str]] = None,
|
|
423
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
424
|
+
status: Optional[pulumi.Input[str]] = None,
|
|
425
|
+
tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
|
426
|
+
vpc_id: Optional[pulumi.Input[str]] = None,
|
|
427
|
+
zone_mappings: Optional[pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerZoneMappingArgs', 'LoadBalancerZoneMappingArgsDict']]]]] = None) -> 'LoadBalancer':
|
|
428
|
+
"""
|
|
429
|
+
Get an existing LoadBalancer resource's state with the given name, id, and optional extra
|
|
430
|
+
properties used to qualify the lookup.
|
|
431
|
+
|
|
432
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
433
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
434
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
435
|
+
:param pulumi.Input[str] address_ip_version: The protocol version. Value:
|
|
436
|
+
- Ipv4: Ipv4 type
|
|
437
|
+
:param pulumi.Input[str] create_time: The resource creation time, in Greenwich Mean Time, in the format of **yyyy-MM-ddTHH:mm:ssZ**.
|
|
438
|
+
:param pulumi.Input[bool] dry_run: Specifies whether to perform only a dry run, without performing the actual request.
|
|
439
|
+
:param pulumi.Input[str] load_balancer_name: The name of the Gateway Load Balancer instance.
|
|
440
|
+
|
|
441
|
+
It must be 2 to 128 English or Chinese characters in length. It must start with a letter or a Chinese character and can contain digits, half-width periods (.), underscores (_), and dashes (-).
|
|
442
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group
|
|
443
|
+
:param pulumi.Input[str] status: The status of the Gateway load Balancer instance. Value:, indicating that the instance listener will no longer forward traffic.
|
|
444
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] tags: The list of tags.
|
|
445
|
+
:param pulumi.Input[str] vpc_id: The ID of the VPC which the Gateway Load Balancer instance belongs.
|
|
446
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['LoadBalancerZoneMappingArgs', 'LoadBalancerZoneMappingArgsDict']]]] zone_mappings: The List of zones and vSwitches mapped. You must add at least one zone and a maximum of 20 zones. If the current region supports two or more zones, we recommend that you add two or more zones. See `zone_mappings` below.
|
|
447
|
+
"""
|
|
448
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
449
|
+
|
|
450
|
+
__props__ = _LoadBalancerState.__new__(_LoadBalancerState)
|
|
451
|
+
|
|
452
|
+
__props__.__dict__["address_ip_version"] = address_ip_version
|
|
453
|
+
__props__.__dict__["create_time"] = create_time
|
|
454
|
+
__props__.__dict__["dry_run"] = dry_run
|
|
455
|
+
__props__.__dict__["load_balancer_name"] = load_balancer_name
|
|
456
|
+
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
457
|
+
__props__.__dict__["status"] = status
|
|
458
|
+
__props__.__dict__["tags"] = tags
|
|
459
|
+
__props__.__dict__["vpc_id"] = vpc_id
|
|
460
|
+
__props__.__dict__["zone_mappings"] = zone_mappings
|
|
461
|
+
return LoadBalancer(resource_name, opts=opts, __props__=__props__)
|
|
462
|
+
|
|
463
|
+
@property
|
|
464
|
+
@pulumi.getter(name="addressIpVersion")
|
|
465
|
+
def address_ip_version(self) -> pulumi.Output[str]:
|
|
466
|
+
"""
|
|
467
|
+
The protocol version. Value:
|
|
468
|
+
- Ipv4: Ipv4 type
|
|
469
|
+
"""
|
|
470
|
+
return pulumi.get(self, "address_ip_version")
|
|
471
|
+
|
|
472
|
+
@property
|
|
473
|
+
@pulumi.getter(name="createTime")
|
|
474
|
+
def create_time(self) -> pulumi.Output[str]:
|
|
475
|
+
"""
|
|
476
|
+
The resource creation time, in Greenwich Mean Time, in the format of **yyyy-MM-ddTHH:mm:ssZ**.
|
|
477
|
+
"""
|
|
478
|
+
return pulumi.get(self, "create_time")
|
|
479
|
+
|
|
480
|
+
@property
|
|
481
|
+
@pulumi.getter(name="dryRun")
|
|
482
|
+
def dry_run(self) -> pulumi.Output[Optional[bool]]:
|
|
483
|
+
"""
|
|
484
|
+
Specifies whether to perform only a dry run, without performing the actual request.
|
|
485
|
+
"""
|
|
486
|
+
return pulumi.get(self, "dry_run")
|
|
487
|
+
|
|
488
|
+
@property
|
|
489
|
+
@pulumi.getter(name="loadBalancerName")
|
|
490
|
+
def load_balancer_name(self) -> pulumi.Output[Optional[str]]:
|
|
491
|
+
"""
|
|
492
|
+
The name of the Gateway Load Balancer instance.
|
|
493
|
+
|
|
494
|
+
It must be 2 to 128 English or Chinese characters in length. It must start with a letter or a Chinese character and can contain digits, half-width periods (.), underscores (_), and dashes (-).
|
|
495
|
+
"""
|
|
496
|
+
return pulumi.get(self, "load_balancer_name")
|
|
497
|
+
|
|
498
|
+
@property
|
|
499
|
+
@pulumi.getter(name="resourceGroupId")
|
|
500
|
+
def resource_group_id(self) -> pulumi.Output[str]:
|
|
501
|
+
"""
|
|
502
|
+
The ID of the resource group
|
|
503
|
+
"""
|
|
504
|
+
return pulumi.get(self, "resource_group_id")
|
|
505
|
+
|
|
506
|
+
@property
|
|
507
|
+
@pulumi.getter
|
|
508
|
+
def status(self) -> pulumi.Output[str]:
|
|
509
|
+
"""
|
|
510
|
+
The status of the Gateway load Balancer instance. Value:, indicating that the instance listener will no longer forward traffic.
|
|
511
|
+
"""
|
|
512
|
+
return pulumi.get(self, "status")
|
|
513
|
+
|
|
514
|
+
@property
|
|
515
|
+
@pulumi.getter
|
|
516
|
+
def tags(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
|
517
|
+
"""
|
|
518
|
+
The list of tags.
|
|
519
|
+
"""
|
|
520
|
+
return pulumi.get(self, "tags")
|
|
521
|
+
|
|
522
|
+
@property
|
|
523
|
+
@pulumi.getter(name="vpcId")
|
|
524
|
+
def vpc_id(self) -> pulumi.Output[str]:
|
|
525
|
+
"""
|
|
526
|
+
The ID of the VPC which the Gateway Load Balancer instance belongs.
|
|
527
|
+
"""
|
|
528
|
+
return pulumi.get(self, "vpc_id")
|
|
529
|
+
|
|
530
|
+
@property
|
|
531
|
+
@pulumi.getter(name="zoneMappings")
|
|
532
|
+
def zone_mappings(self) -> pulumi.Output[Sequence['outputs.LoadBalancerZoneMapping']]:
|
|
533
|
+
"""
|
|
534
|
+
The List of zones and vSwitches mapped. You must add at least one zone and a maximum of 20 zones. If the current region supports two or more zones, we recommend that you add two or more zones. See `zone_mappings` below.
|
|
535
|
+
"""
|
|
536
|
+
return pulumi.get(self, "zone_mappings")
|
|
537
|
+
|