pulumi-alicloud 3.59.1a1721928270__py3-none-any.whl → 3.60.0a1720848019__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pulumi-alicloud might be problematic. Click here for more details.

Files changed (123) hide show
  1. pulumi_alicloud/_utilities.py +4 -3
  2. pulumi_alicloud/adb/_inputs.py +0 -14
  3. pulumi_alicloud/adb/outputs.py +0 -14
  4. pulumi_alicloud/alb/_inputs.py +0 -224
  5. pulumi_alicloud/alb/outputs.py +0 -260
  6. pulumi_alicloud/arms/_inputs.py +0 -438
  7. pulumi_alicloud/arms/outputs.py +0 -442
  8. pulumi_alicloud/bp/_inputs.py +0 -14
  9. pulumi_alicloud/bp/outputs.py +0 -14
  10. pulumi_alicloud/cas/outputs.py +0 -4
  11. pulumi_alicloud/cddc/outputs.py +0 -6
  12. pulumi_alicloud/cen/get_transit_router_service.py +2 -2
  13. pulumi_alicloud/cfg/_inputs.py +0 -20
  14. pulumi_alicloud/cfg/outputs.py +0 -20
  15. pulumi_alicloud/clickhouse/outputs.py +0 -4
  16. pulumi_alicloud/cloudfirewall/_inputs.py +0 -40
  17. pulumi_alicloud/cloudfirewall/control_policy_order.py +44 -60
  18. pulumi_alicloud/cloudfirewall/outputs.py +0 -40
  19. pulumi_alicloud/cloudmonitor/_inputs.py +0 -18
  20. pulumi_alicloud/cloudmonitor/outputs.py +0 -18
  21. pulumi_alicloud/cms/_inputs.py +0 -188
  22. pulumi_alicloud/cms/outputs.py +0 -228
  23. pulumi_alicloud/compute/_inputs.py +0 -4
  24. pulumi_alicloud/compute/outputs.py +0 -4
  25. pulumi_alicloud/cs/_inputs.py +0 -22
  26. pulumi_alicloud/cs/node_pool.py +7 -7
  27. pulumi_alicloud/cs/outputs.py +0 -22
  28. pulumi_alicloud/databasegateway/outputs.py +0 -42
  29. pulumi_alicloud/dcdn/_inputs.py +27 -555
  30. pulumi_alicloud/dcdn/domain.py +217 -366
  31. pulumi_alicloud/dcdn/outputs.py +22 -550
  32. pulumi_alicloud/ddos/_inputs.py +0 -162
  33. pulumi_alicloud/ddos/outputs.py +0 -162
  34. pulumi_alicloud/directmail/get_domains.py +24 -31
  35. pulumi_alicloud/directmail/outputs.py +32 -131
  36. pulumi_alicloud/ebs/_inputs.py +0 -22
  37. pulumi_alicloud/ebs/outputs.py +0 -22
  38. pulumi_alicloud/eci/_inputs.py +0 -100
  39. pulumi_alicloud/eci/outputs.py +0 -100
  40. pulumi_alicloud/ecs/_inputs.py +8 -110
  41. pulumi_alicloud/ecs/ecs_disk.py +0 -7
  42. pulumi_alicloud/ecs/instance.py +102 -304
  43. pulumi_alicloud/ecs/outputs.py +9 -217
  44. pulumi_alicloud/edas/_inputs.py +0 -28
  45. pulumi_alicloud/edas/outputs.py +0 -28
  46. pulumi_alicloud/ehpc/_inputs.py +0 -6
  47. pulumi_alicloud/ehpc/outputs.py +0 -6
  48. pulumi_alicloud/emr/_inputs.py +0 -134
  49. pulumi_alicloud/emr/outputs.py +0 -148
  50. pulumi_alicloud/emrv2/_inputs.py +0 -224
  51. pulumi_alicloud/emrv2/outputs.py +0 -224
  52. pulumi_alicloud/ess/_inputs.py +0 -24
  53. pulumi_alicloud/ess/outputs.py +0 -24
  54. pulumi_alicloud/eventbridge/_inputs.py +0 -156
  55. pulumi_alicloud/eventbridge/outputs.py +0 -156
  56. pulumi_alicloud/expressconnect/_inputs.py +0 -12
  57. pulumi_alicloud/expressconnect/outputs.py +0 -12
  58. pulumi_alicloud/fc/_inputs.py +0 -32
  59. pulumi_alicloud/fc/outputs.py +0 -32
  60. pulumi_alicloud/ga/_inputs.py +0 -24
  61. pulumi_alicloud/ga/outputs.py +0 -24
  62. pulumi_alicloud/gpdb/_inputs.py +0 -48
  63. pulumi_alicloud/gpdb/outputs.py +0 -60
  64. pulumi_alicloud/hbr/_inputs.py +0 -68
  65. pulumi_alicloud/hbr/outputs.py +0 -68
  66. pulumi_alicloud/imp/_inputs.py +0 -14
  67. pulumi_alicloud/imp/outputs.py +0 -14
  68. pulumi_alicloud/log/_inputs.py +0 -14
  69. pulumi_alicloud/log/outputs.py +0 -14
  70. pulumi_alicloud/maxcompute/_inputs.py +34 -54
  71. pulumi_alicloud/maxcompute/outputs.py +34 -54
  72. pulumi_alicloud/maxcompute/project.py +66 -230
  73. pulumi_alicloud/mongodb/_inputs.py +0 -14
  74. pulumi_alicloud/mongodb/outputs.py +0 -14
  75. pulumi_alicloud/oss/_inputs.py +0 -100
  76. pulumi_alicloud/oss/outputs.py +0 -100
  77. pulumi_alicloud/ots/_inputs.py +0 -60
  78. pulumi_alicloud/ots/outputs.py +0 -60
  79. pulumi_alicloud/polardb/_inputs.py +0 -10
  80. pulumi_alicloud/polardb/cluster.py +28 -28
  81. pulumi_alicloud/polardb/outputs.py +0 -10
  82. pulumi_alicloud/pulumi-plugin.json +1 -1
  83. pulumi_alicloud/pvtz/outputs.py +0 -18
  84. pulumi_alicloud/quotas/_inputs.py +0 -10
  85. pulumi_alicloud/quotas/outputs.py +0 -10
  86. pulumi_alicloud/ram/_inputs.py +0 -24
  87. pulumi_alicloud/ram/outputs.py +0 -24
  88. pulumi_alicloud/rdc/organization.py +2 -2
  89. pulumi_alicloud/realtimecompute/_inputs.py +0 -6
  90. pulumi_alicloud/realtimecompute/outputs.py +0 -6
  91. pulumi_alicloud/rocketmq/_inputs.py +0 -36
  92. pulumi_alicloud/rocketmq/outputs.py +0 -36
  93. pulumi_alicloud/ros/_inputs.py +0 -72
  94. pulumi_alicloud/ros/outputs.py +0 -72
  95. pulumi_alicloud/sae/_inputs.py +0 -118
  96. pulumi_alicloud/sae/outputs.py +0 -118
  97. pulumi_alicloud/scdn/_inputs.py +0 -56
  98. pulumi_alicloud/scdn/outputs.py +0 -56
  99. pulumi_alicloud/servicecatalog/_inputs.py +0 -10
  100. pulumi_alicloud/servicecatalog/outputs.py +0 -10
  101. pulumi_alicloud/servicemesh/_inputs.py +0 -150
  102. pulumi_alicloud/servicemesh/outputs.py +0 -154
  103. pulumi_alicloud/slb/_inputs.py +8 -8
  104. pulumi_alicloud/slb/outputs.py +8 -8
  105. pulumi_alicloud/slb/server_group.py +84 -140
  106. pulumi_alicloud/sls/_inputs.py +0 -186
  107. pulumi_alicloud/sls/outputs.py +0 -186
  108. pulumi_alicloud/threatdetection/_inputs.py +0 -32
  109. pulumi_alicloud/threatdetection/outputs.py +0 -32
  110. pulumi_alicloud/vod/_inputs.py +0 -18
  111. pulumi_alicloud/vod/outputs.py +0 -18
  112. pulumi_alicloud/vpc/_inputs.py +12 -50
  113. pulumi_alicloud/vpc/network.py +134 -332
  114. pulumi_alicloud/vpc/outputs.py +12 -50
  115. pulumi_alicloud/vpc/public_ip_address_pool.py +10 -118
  116. pulumi_alicloud/vpn/_inputs.py +0 -10
  117. pulumi_alicloud/vpn/outputs.py +0 -14
  118. pulumi_alicloud/wafv3/_inputs.py +0 -10
  119. pulumi_alicloud/wafv3/outputs.py +0 -10
  120. {pulumi_alicloud-3.59.1a1721928270.dist-info → pulumi_alicloud-3.60.0a1720848019.dist-info}/METADATA +1 -1
  121. {pulumi_alicloud-3.59.1a1721928270.dist-info → pulumi_alicloud-3.60.0a1720848019.dist-info}/RECORD +123 -123
  122. {pulumi_alicloud-3.59.1a1721928270.dist-info → pulumi_alicloud-3.60.0a1720848019.dist-info}/WHEEL +1 -1
  123. {pulumi_alicloud-3.59.1a1721928270.dist-info → pulumi_alicloud-3.60.0a1720848019.dist-info}/top_level.txt +0 -0
@@ -19,16 +19,13 @@ class ServerGroupArgs:
19
19
  load_balancer_id: pulumi.Input[str],
20
20
  delete_protection_validation: Optional[pulumi.Input[bool]] = None,
21
21
  name: Optional[pulumi.Input[str]] = None,
22
- servers: Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]] = None,
23
- tags: Optional[pulumi.Input[Mapping[str, Any]]] = None):
22
+ servers: Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]] = None):
24
23
  """
25
24
  The set of arguments for constructing a ServerGroup resource.
26
- :param pulumi.Input[str] load_balancer_id: The ID of the Server Load Balancer (SLB) instance.
27
- :param pulumi.Input[bool] delete_protection_validation: Checking DeleteProtection of SLB instance before deleting. Default value: `false`. If `delete_protection_validation` is set to `true`, this resource will not be deleted when its SLB instance enabled DeleteProtection.
28
- :param pulumi.Input[str] name: The name of the vServer group. Default value: `tf-server-group`.
29
- :param pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]] servers: The list of backend servers to be added. See `servers` below.
30
- > **NOTE:** Field `servers` has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.
31
- :param pulumi.Input[Mapping[str, Any]] tags: A mapping of tags to assign to the resource.
25
+ :param pulumi.Input[str] load_balancer_id: The Load Balancer ID which is used to launch a new virtual server group.
26
+ :param pulumi.Input[bool] delete_protection_validation: Checking DeleteProtection of SLB instance before deleting. If true, this resource will not be deleted when its SLB instance enabled DeleteProtection. Default to false.
27
+ :param pulumi.Input[str] name: Name of the virtual server group. Our plugin provides a default name: "tf-server-group".
28
+ :param pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]] servers: A list of ECS instances to be added. **NOTE:** Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'. At most 20 ECS instances can be supported in one resource. It contains three sub-fields as `Block server` follows. See `servers` below for details.
32
29
  """
33
30
  pulumi.set(__self__, "load_balancer_id", load_balancer_id)
34
31
  if delete_protection_validation is not None:
@@ -36,18 +33,16 @@ class ServerGroupArgs:
36
33
  if name is not None:
37
34
  pulumi.set(__self__, "name", name)
38
35
  if servers is not None:
39
- warnings.warn("""Field `servers` has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.""", DeprecationWarning)
40
- pulumi.log.warn("""servers is deprecated: Field `servers` has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.""")
36
+ warnings.warn("""Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'.""", DeprecationWarning)
37
+ pulumi.log.warn("""servers is deprecated: Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'.""")
41
38
  if servers is not None:
42
39
  pulumi.set(__self__, "servers", servers)
43
- if tags is not None:
44
- pulumi.set(__self__, "tags", tags)
45
40
 
46
41
  @property
47
42
  @pulumi.getter(name="loadBalancerId")
48
43
  def load_balancer_id(self) -> pulumi.Input[str]:
49
44
  """
50
- The ID of the Server Load Balancer (SLB) instance.
45
+ The Load Balancer ID which is used to launch a new virtual server group.
51
46
  """
52
47
  return pulumi.get(self, "load_balancer_id")
53
48
 
@@ -59,7 +54,7 @@ class ServerGroupArgs:
59
54
  @pulumi.getter(name="deleteProtectionValidation")
60
55
  def delete_protection_validation(self) -> Optional[pulumi.Input[bool]]:
61
56
  """
62
- Checking DeleteProtection of SLB instance before deleting. Default value: `false`. If `delete_protection_validation` is set to `true`, this resource will not be deleted when its SLB instance enabled DeleteProtection.
57
+ Checking DeleteProtection of SLB instance before deleting. If true, this resource will not be deleted when its SLB instance enabled DeleteProtection. Default to false.
63
58
  """
64
59
  return pulumi.get(self, "delete_protection_validation")
65
60
 
@@ -71,7 +66,7 @@ class ServerGroupArgs:
71
66
  @pulumi.getter
72
67
  def name(self) -> Optional[pulumi.Input[str]]:
73
68
  """
74
- The name of the vServer group. Default value: `tf-server-group`.
69
+ Name of the virtual server group. Our plugin provides a default name: "tf-server-group".
75
70
  """
76
71
  return pulumi.get(self, "name")
77
72
 
@@ -81,11 +76,10 @@ class ServerGroupArgs:
81
76
 
82
77
  @property
83
78
  @pulumi.getter
84
- @_utilities.deprecated("""Field `servers` has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.""")
79
+ @_utilities.deprecated("""Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'.""")
85
80
  def servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]]:
86
81
  """
87
- The list of backend servers to be added. See `servers` below.
88
- > **NOTE:** Field `servers` has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.
82
+ A list of ECS instances to be added. **NOTE:** Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'. At most 20 ECS instances can be supported in one resource. It contains three sub-fields as `Block server` follows. See `servers` below for details.
89
83
  """
90
84
  return pulumi.get(self, "servers")
91
85
 
@@ -93,18 +87,6 @@ class ServerGroupArgs:
93
87
  def servers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]]):
94
88
  pulumi.set(self, "servers", value)
95
89
 
96
- @property
97
- @pulumi.getter
98
- def tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
99
- """
100
- A mapping of tags to assign to the resource.
101
- """
102
- return pulumi.get(self, "tags")
103
-
104
- @tags.setter
105
- def tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
106
- pulumi.set(self, "tags", value)
107
-
108
90
 
109
91
  @pulumi.input_type
110
92
  class _ServerGroupState:
@@ -112,16 +94,13 @@ class _ServerGroupState:
112
94
  delete_protection_validation: Optional[pulumi.Input[bool]] = None,
113
95
  load_balancer_id: Optional[pulumi.Input[str]] = None,
114
96
  name: Optional[pulumi.Input[str]] = None,
115
- servers: Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]] = None,
116
- tags: Optional[pulumi.Input[Mapping[str, Any]]] = None):
97
+ servers: Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]] = None):
117
98
  """
118
99
  Input properties used for looking up and filtering ServerGroup resources.
119
- :param pulumi.Input[bool] delete_protection_validation: Checking DeleteProtection of SLB instance before deleting. Default value: `false`. If `delete_protection_validation` is set to `true`, this resource will not be deleted when its SLB instance enabled DeleteProtection.
120
- :param pulumi.Input[str] load_balancer_id: The ID of the Server Load Balancer (SLB) instance.
121
- :param pulumi.Input[str] name: The name of the vServer group. Default value: `tf-server-group`.
122
- :param pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]] servers: The list of backend servers to be added. See `servers` below.
123
- > **NOTE:** Field `servers` has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.
124
- :param pulumi.Input[Mapping[str, Any]] tags: A mapping of tags to assign to the resource.
100
+ :param pulumi.Input[bool] delete_protection_validation: Checking DeleteProtection of SLB instance before deleting. If true, this resource will not be deleted when its SLB instance enabled DeleteProtection. Default to false.
101
+ :param pulumi.Input[str] load_balancer_id: The Load Balancer ID which is used to launch a new virtual server group.
102
+ :param pulumi.Input[str] name: Name of the virtual server group. Our plugin provides a default name: "tf-server-group".
103
+ :param pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]] servers: A list of ECS instances to be added. **NOTE:** Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'. At most 20 ECS instances can be supported in one resource. It contains three sub-fields as `Block server` follows. See `servers` below for details.
125
104
  """
126
105
  if delete_protection_validation is not None:
127
106
  pulumi.set(__self__, "delete_protection_validation", delete_protection_validation)
@@ -130,18 +109,16 @@ class _ServerGroupState:
130
109
  if name is not None:
131
110
  pulumi.set(__self__, "name", name)
132
111
  if servers is not None:
133
- warnings.warn("""Field `servers` has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.""", DeprecationWarning)
134
- pulumi.log.warn("""servers is deprecated: Field `servers` has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.""")
112
+ warnings.warn("""Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'.""", DeprecationWarning)
113
+ pulumi.log.warn("""servers is deprecated: Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'.""")
135
114
  if servers is not None:
136
115
  pulumi.set(__self__, "servers", servers)
137
- if tags is not None:
138
- pulumi.set(__self__, "tags", tags)
139
116
 
140
117
  @property
141
118
  @pulumi.getter(name="deleteProtectionValidation")
142
119
  def delete_protection_validation(self) -> Optional[pulumi.Input[bool]]:
143
120
  """
144
- Checking DeleteProtection of SLB instance before deleting. Default value: `false`. If `delete_protection_validation` is set to `true`, this resource will not be deleted when its SLB instance enabled DeleteProtection.
121
+ Checking DeleteProtection of SLB instance before deleting. If true, this resource will not be deleted when its SLB instance enabled DeleteProtection. Default to false.
145
122
  """
146
123
  return pulumi.get(self, "delete_protection_validation")
147
124
 
@@ -153,7 +130,7 @@ class _ServerGroupState:
153
130
  @pulumi.getter(name="loadBalancerId")
154
131
  def load_balancer_id(self) -> Optional[pulumi.Input[str]]:
155
132
  """
156
- The ID of the Server Load Balancer (SLB) instance.
133
+ The Load Balancer ID which is used to launch a new virtual server group.
157
134
  """
158
135
  return pulumi.get(self, "load_balancer_id")
159
136
 
@@ -165,7 +142,7 @@ class _ServerGroupState:
165
142
  @pulumi.getter
166
143
  def name(self) -> Optional[pulumi.Input[str]]:
167
144
  """
168
- The name of the vServer group. Default value: `tf-server-group`.
145
+ Name of the virtual server group. Our plugin provides a default name: "tf-server-group".
169
146
  """
170
147
  return pulumi.get(self, "name")
171
148
 
@@ -175,11 +152,10 @@ class _ServerGroupState:
175
152
 
176
153
  @property
177
154
  @pulumi.getter
178
- @_utilities.deprecated("""Field `servers` has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.""")
155
+ @_utilities.deprecated("""Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'.""")
179
156
  def servers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]]:
180
157
  """
181
- The list of backend servers to be added. See `servers` below.
182
- > **NOTE:** Field `servers` has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.
158
+ A list of ECS instances to be added. **NOTE:** Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'. At most 20 ECS instances can be supported in one resource. It contains three sub-fields as `Block server` follows. See `servers` below for details.
183
159
  """
184
160
  return pulumi.get(self, "servers")
185
161
 
@@ -187,18 +163,6 @@ class _ServerGroupState:
187
163
  def servers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ServerGroupServerArgs']]]]):
188
164
  pulumi.set(self, "servers", value)
189
165
 
190
- @property
191
- @pulumi.getter
192
- def tags(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
193
- """
194
- A mapping of tags to assign to the resource.
195
- """
196
- return pulumi.get(self, "tags")
197
-
198
- @tags.setter
199
- def tags(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
200
- pulumi.set(self, "tags", value)
201
-
202
166
 
203
167
  class ServerGroup(pulumi.CustomResource):
204
168
  @overload
@@ -209,12 +173,10 @@ class ServerGroup(pulumi.CustomResource):
209
173
  load_balancer_id: Optional[pulumi.Input[str]] = None,
210
174
  name: Optional[pulumi.Input[str]] = None,
211
175
  servers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServerGroupServerArgs']]]]] = None,
212
- tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
213
176
  __props__=None):
214
177
  """
215
- Provides a Load Balancer Virtual Backend Server Group resource.
216
-
217
- For information about Load Balancer Virtual Backend Server Group and how to use it, see [What is Virtual Backend Server Group](https://www.alibabacloud.com/help/en/doc-detail/35215.html).
178
+ A virtual server group contains several ECS instances. The virtual server group can help you to define multiple listening dimension,
179
+ and to meet the personalized requirements of domain name and URL forwarding.
218
180
 
219
181
  > **NOTE:** Available since v1.6.0.
220
182
 
@@ -228,52 +190,50 @@ class ServerGroup(pulumi.CustomResource):
228
190
 
229
191
  > **NOTE:** One VPC load balancer, its virtual server group can only add the same VPC ECS instances.
230
192
 
231
- ## Example Usage
193
+ For information about server group and how to use it, see [Configure a server group](https://www.alibabacloud.com/help/en/doc-detail/35215.html).
232
194
 
233
- Basic Usage
195
+ ## Example Usage
234
196
 
235
197
  ```python
236
198
  import pulumi
237
199
  import pulumi_alicloud as alicloud
238
200
 
239
201
  config = pulumi.Config()
240
- name = config.get("name")
241
- if name is None:
242
- name = "tf-example"
243
- default = alicloud.get_zones(available_resource_creation="VSwitch")
244
- default_network = alicloud.vpc.Network("default",
245
- vpc_name=name,
202
+ slb_server_group_name = config.get("slbServerGroupName")
203
+ if slb_server_group_name is None:
204
+ slb_server_group_name = "forSlbServerGroup"
205
+ server_group = alicloud.get_zones(available_resource_creation="VSwitch")
206
+ server_group_network = alicloud.vpc.Network("server_group",
207
+ vpc_name=slb_server_group_name,
246
208
  cidr_block="172.16.0.0/16")
247
- default_switch = alicloud.vpc.Switch("default",
248
- vpc_id=default_network.id,
209
+ server_group_switch = alicloud.vpc.Switch("server_group",
210
+ vpc_id=server_group_network.id,
249
211
  cidr_block="172.16.0.0/16",
250
- zone_id=default.zones[0].id,
251
- vswitch_name=name)
252
- default_application_load_balancer = alicloud.slb.ApplicationLoadBalancer("default",
253
- load_balancer_name=name,
254
- vswitch_id=default_switch.id,
255
- load_balancer_spec="slb.s2.small")
256
- default_server_group = alicloud.slb.ServerGroup("default",
257
- load_balancer_id=default_application_load_balancer.id,
258
- name=name)
212
+ zone_id=server_group.zones[0].id,
213
+ vswitch_name=slb_server_group_name)
214
+ server_group_application_load_balancer = alicloud.slb.ApplicationLoadBalancer("server_group",
215
+ load_balancer_name=slb_server_group_name,
216
+ vswitch_id=server_group_switch.id,
217
+ instance_charge_type="PayByCLCU")
218
+ server_group_server_group = alicloud.slb.ServerGroup("server_group",
219
+ load_balancer_id=server_group_application_load_balancer.id,
220
+ name=slb_server_group_name)
259
221
  ```
260
222
 
261
223
  ## Import
262
224
 
263
- Load Balancer Virtual Backend Server Group can be imported using the id, e.g.
225
+ Load balancer backend server group can be imported using the id, e.g.
264
226
 
265
227
  ```sh
266
- $ pulumi import alicloud:slb/serverGroup:ServerGroup example <id>
228
+ $ pulumi import alicloud:slb/serverGroup:ServerGroup example abc123456
267
229
  ```
268
230
 
269
231
  :param str resource_name: The name of the resource.
270
232
  :param pulumi.ResourceOptions opts: Options for the resource.
271
- :param pulumi.Input[bool] delete_protection_validation: Checking DeleteProtection of SLB instance before deleting. Default value: `false`. If `delete_protection_validation` is set to `true`, this resource will not be deleted when its SLB instance enabled DeleteProtection.
272
- :param pulumi.Input[str] load_balancer_id: The ID of the Server Load Balancer (SLB) instance.
273
- :param pulumi.Input[str] name: The name of the vServer group. Default value: `tf-server-group`.
274
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServerGroupServerArgs']]]] servers: The list of backend servers to be added. See `servers` below.
275
- > **NOTE:** Field `servers` has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.
276
- :param pulumi.Input[Mapping[str, Any]] tags: A mapping of tags to assign to the resource.
233
+ :param pulumi.Input[bool] delete_protection_validation: Checking DeleteProtection of SLB instance before deleting. If true, this resource will not be deleted when its SLB instance enabled DeleteProtection. Default to false.
234
+ :param pulumi.Input[str] load_balancer_id: The Load Balancer ID which is used to launch a new virtual server group.
235
+ :param pulumi.Input[str] name: Name of the virtual server group. Our plugin provides a default name: "tf-server-group".
236
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServerGroupServerArgs']]]] servers: A list of ECS instances to be added. **NOTE:** Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'. At most 20 ECS instances can be supported in one resource. It contains three sub-fields as `Block server` follows. See `servers` below for details.
277
237
  """
278
238
  ...
279
239
  @overload
@@ -282,9 +242,8 @@ class ServerGroup(pulumi.CustomResource):
282
242
  args: ServerGroupArgs,
283
243
  opts: Optional[pulumi.ResourceOptions] = None):
284
244
  """
285
- Provides a Load Balancer Virtual Backend Server Group resource.
286
-
287
- For information about Load Balancer Virtual Backend Server Group and how to use it, see [What is Virtual Backend Server Group](https://www.alibabacloud.com/help/en/doc-detail/35215.html).
245
+ A virtual server group contains several ECS instances. The virtual server group can help you to define multiple listening dimension,
246
+ and to meet the personalized requirements of domain name and URL forwarding.
288
247
 
289
248
  > **NOTE:** Available since v1.6.0.
290
249
 
@@ -298,42 +257,42 @@ class ServerGroup(pulumi.CustomResource):
298
257
 
299
258
  > **NOTE:** One VPC load balancer, its virtual server group can only add the same VPC ECS instances.
300
259
 
301
- ## Example Usage
260
+ For information about server group and how to use it, see [Configure a server group](https://www.alibabacloud.com/help/en/doc-detail/35215.html).
302
261
 
303
- Basic Usage
262
+ ## Example Usage
304
263
 
305
264
  ```python
306
265
  import pulumi
307
266
  import pulumi_alicloud as alicloud
308
267
 
309
268
  config = pulumi.Config()
310
- name = config.get("name")
311
- if name is None:
312
- name = "tf-example"
313
- default = alicloud.get_zones(available_resource_creation="VSwitch")
314
- default_network = alicloud.vpc.Network("default",
315
- vpc_name=name,
269
+ slb_server_group_name = config.get("slbServerGroupName")
270
+ if slb_server_group_name is None:
271
+ slb_server_group_name = "forSlbServerGroup"
272
+ server_group = alicloud.get_zones(available_resource_creation="VSwitch")
273
+ server_group_network = alicloud.vpc.Network("server_group",
274
+ vpc_name=slb_server_group_name,
316
275
  cidr_block="172.16.0.0/16")
317
- default_switch = alicloud.vpc.Switch("default",
318
- vpc_id=default_network.id,
276
+ server_group_switch = alicloud.vpc.Switch("server_group",
277
+ vpc_id=server_group_network.id,
319
278
  cidr_block="172.16.0.0/16",
320
- zone_id=default.zones[0].id,
321
- vswitch_name=name)
322
- default_application_load_balancer = alicloud.slb.ApplicationLoadBalancer("default",
323
- load_balancer_name=name,
324
- vswitch_id=default_switch.id,
325
- load_balancer_spec="slb.s2.small")
326
- default_server_group = alicloud.slb.ServerGroup("default",
327
- load_balancer_id=default_application_load_balancer.id,
328
- name=name)
279
+ zone_id=server_group.zones[0].id,
280
+ vswitch_name=slb_server_group_name)
281
+ server_group_application_load_balancer = alicloud.slb.ApplicationLoadBalancer("server_group",
282
+ load_balancer_name=slb_server_group_name,
283
+ vswitch_id=server_group_switch.id,
284
+ instance_charge_type="PayByCLCU")
285
+ server_group_server_group = alicloud.slb.ServerGroup("server_group",
286
+ load_balancer_id=server_group_application_load_balancer.id,
287
+ name=slb_server_group_name)
329
288
  ```
330
289
 
331
290
  ## Import
332
291
 
333
- Load Balancer Virtual Backend Server Group can be imported using the id, e.g.
292
+ Load balancer backend server group can be imported using the id, e.g.
334
293
 
335
294
  ```sh
336
- $ pulumi import alicloud:slb/serverGroup:ServerGroup example <id>
295
+ $ pulumi import alicloud:slb/serverGroup:ServerGroup example abc123456
337
296
  ```
338
297
 
339
298
  :param str resource_name: The name of the resource.
@@ -355,7 +314,6 @@ class ServerGroup(pulumi.CustomResource):
355
314
  load_balancer_id: Optional[pulumi.Input[str]] = None,
356
315
  name: Optional[pulumi.Input[str]] = None,
357
316
  servers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServerGroupServerArgs']]]]] = None,
358
- tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
359
317
  __props__=None):
360
318
  opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
361
319
  if not isinstance(opts, pulumi.ResourceOptions):
@@ -371,7 +329,6 @@ class ServerGroup(pulumi.CustomResource):
371
329
  __props__.__dict__["load_balancer_id"] = load_balancer_id
372
330
  __props__.__dict__["name"] = name
373
331
  __props__.__dict__["servers"] = servers
374
- __props__.__dict__["tags"] = tags
375
332
  super(ServerGroup, __self__).__init__(
376
333
  'alicloud:slb/serverGroup:ServerGroup',
377
334
  resource_name,
@@ -385,8 +342,7 @@ class ServerGroup(pulumi.CustomResource):
385
342
  delete_protection_validation: Optional[pulumi.Input[bool]] = None,
386
343
  load_balancer_id: Optional[pulumi.Input[str]] = None,
387
344
  name: Optional[pulumi.Input[str]] = None,
388
- servers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServerGroupServerArgs']]]]] = None,
389
- tags: Optional[pulumi.Input[Mapping[str, Any]]] = None) -> 'ServerGroup':
345
+ servers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServerGroupServerArgs']]]]] = None) -> 'ServerGroup':
390
346
  """
391
347
  Get an existing ServerGroup resource's state with the given name, id, and optional extra
392
348
  properties used to qualify the lookup.
@@ -394,12 +350,10 @@ class ServerGroup(pulumi.CustomResource):
394
350
  :param str resource_name: The unique name of the resulting resource.
395
351
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
396
352
  :param pulumi.ResourceOptions opts: Options for the resource.
397
- :param pulumi.Input[bool] delete_protection_validation: Checking DeleteProtection of SLB instance before deleting. Default value: `false`. If `delete_protection_validation` is set to `true`, this resource will not be deleted when its SLB instance enabled DeleteProtection.
398
- :param pulumi.Input[str] load_balancer_id: The ID of the Server Load Balancer (SLB) instance.
399
- :param pulumi.Input[str] name: The name of the vServer group. Default value: `tf-server-group`.
400
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServerGroupServerArgs']]]] servers: The list of backend servers to be added. See `servers` below.
401
- > **NOTE:** Field `servers` has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.
402
- :param pulumi.Input[Mapping[str, Any]] tags: A mapping of tags to assign to the resource.
353
+ :param pulumi.Input[bool] delete_protection_validation: Checking DeleteProtection of SLB instance before deleting. If true, this resource will not be deleted when its SLB instance enabled DeleteProtection. Default to false.
354
+ :param pulumi.Input[str] load_balancer_id: The Load Balancer ID which is used to launch a new virtual server group.
355
+ :param pulumi.Input[str] name: Name of the virtual server group. Our plugin provides a default name: "tf-server-group".
356
+ :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ServerGroupServerArgs']]]] servers: A list of ECS instances to be added. **NOTE:** Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'. At most 20 ECS instances can be supported in one resource. It contains three sub-fields as `Block server` follows. See `servers` below for details.
403
357
  """
404
358
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
405
359
 
@@ -409,14 +363,13 @@ class ServerGroup(pulumi.CustomResource):
409
363
  __props__.__dict__["load_balancer_id"] = load_balancer_id
410
364
  __props__.__dict__["name"] = name
411
365
  __props__.__dict__["servers"] = servers
412
- __props__.__dict__["tags"] = tags
413
366
  return ServerGroup(resource_name, opts=opts, __props__=__props__)
414
367
 
415
368
  @property
416
369
  @pulumi.getter(name="deleteProtectionValidation")
417
370
  def delete_protection_validation(self) -> pulumi.Output[Optional[bool]]:
418
371
  """
419
- Checking DeleteProtection of SLB instance before deleting. Default value: `false`. If `delete_protection_validation` is set to `true`, this resource will not be deleted when its SLB instance enabled DeleteProtection.
372
+ Checking DeleteProtection of SLB instance before deleting. If true, this resource will not be deleted when its SLB instance enabled DeleteProtection. Default to false.
420
373
  """
421
374
  return pulumi.get(self, "delete_protection_validation")
422
375
 
@@ -424,7 +377,7 @@ class ServerGroup(pulumi.CustomResource):
424
377
  @pulumi.getter(name="loadBalancerId")
425
378
  def load_balancer_id(self) -> pulumi.Output[str]:
426
379
  """
427
- The ID of the Server Load Balancer (SLB) instance.
380
+ The Load Balancer ID which is used to launch a new virtual server group.
428
381
  """
429
382
  return pulumi.get(self, "load_balancer_id")
430
383
 
@@ -432,25 +385,16 @@ class ServerGroup(pulumi.CustomResource):
432
385
  @pulumi.getter
433
386
  def name(self) -> pulumi.Output[str]:
434
387
  """
435
- The name of the vServer group. Default value: `tf-server-group`.
388
+ Name of the virtual server group. Our plugin provides a default name: "tf-server-group".
436
389
  """
437
390
  return pulumi.get(self, "name")
438
391
 
439
392
  @property
440
393
  @pulumi.getter
441
- @_utilities.deprecated("""Field `servers` has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.""")
394
+ @_utilities.deprecated("""Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'.""")
442
395
  def servers(self) -> pulumi.Output[Sequence['outputs.ServerGroupServer']]:
443
396
  """
444
- The list of backend servers to be added. See `servers` below.
445
- > **NOTE:** Field `servers` has been deprecated from provider version 1.163.0, and it will be removed in the future version. Please use the new resource `slb.ServerGroupServerAttachment`.
397
+ A list of ECS instances to be added. **NOTE:** Field 'servers' has been deprecated from provider version 1.163.0 and it will be removed in the future version. Please use the new resource 'alicloud_slb_server_group_server_attachment'. At most 20 ECS instances can be supported in one resource. It contains three sub-fields as `Block server` follows. See `servers` below for details.
446
398
  """
447
399
  return pulumi.get(self, "servers")
448
400
 
449
- @property
450
- @pulumi.getter
451
- def tags(self) -> pulumi.Output[Optional[Mapping[str, Any]]]:
452
- """
453
- A mapping of tags to assign to the resource.
454
- """
455
- return pulumi.get(self, "tags")
456
-