pulumi-alicloud 3.66.0a1731672315__py3-none-any.whl → 3.67.0__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 (44) hide show
  1. pulumi_alicloud/__init__.py +16 -0
  2. pulumi_alicloud/cen/flow_log.py +373 -58
  3. pulumi_alicloud/cen/transit_router_ecr_attachment.py +4 -4
  4. pulumi_alicloud/cr/registry_enterprise_instance.py +474 -90
  5. pulumi_alicloud/ecs/ecs_image_component.py +221 -48
  6. pulumi_alicloud/ess/_inputs.py +94 -0
  7. pulumi_alicloud/ess/eci_scaling_configuration.py +42 -14
  8. pulumi_alicloud/ess/outputs.py +79 -0
  9. pulumi_alicloud/ess/scaling_configuration.py +47 -0
  10. pulumi_alicloud/expressconnect/router_vbr_child_instance.py +86 -25
  11. pulumi_alicloud/kms/key.py +1 -1
  12. pulumi_alicloud/kvstore/account.py +24 -24
  13. pulumi_alicloud/kvstore/audit_log_config.py +4 -4
  14. pulumi_alicloud/kvstore/backup_policy.py +2 -2
  15. pulumi_alicloud/kvstore/connection.py +8 -8
  16. pulumi_alicloud/kvstore/get_accounts.py +4 -4
  17. pulumi_alicloud/kvstore/get_connections.py +5 -5
  18. pulumi_alicloud/kvstore/get_instance_classes.py +12 -12
  19. pulumi_alicloud/kvstore/get_instance_engines.py +7 -7
  20. pulumi_alicloud/kvstore/get_permission.py +10 -10
  21. pulumi_alicloud/kvstore/get_zones.py +4 -4
  22. pulumi_alicloud/kvstore/outputs.py +2 -2
  23. pulumi_alicloud/mongodb/instance.py +47 -0
  24. pulumi_alicloud/mongodb/sharding_instance.py +47 -0
  25. pulumi_alicloud/polardb/cluster.py +7 -7
  26. pulumi_alicloud/privatelink/vpc_endpoint_service.py +42 -91
  27. pulumi_alicloud/privatelink/vpc_endpoint_service_connection.py +27 -23
  28. pulumi_alicloud/privatelink/vpc_endpoint_service_resource.py +34 -37
  29. pulumi_alicloud/privatelink/vpc_endpoint_zone.py +28 -0
  30. pulumi_alicloud/pulumi-plugin.json +1 -1
  31. pulumi_alicloud/rds/__init__.py +2 -0
  32. pulumi_alicloud/rds/_inputs.py +146 -0
  33. pulumi_alicloud/rds/custom.py +1630 -0
  34. pulumi_alicloud/rds/custom_deployment_set.py +525 -0
  35. pulumi_alicloud/rds/outputs.py +105 -0
  36. pulumi_alicloud/redis/tair_instance.py +76 -1
  37. pulumi_alicloud/vpc/_inputs.py +54 -0
  38. pulumi_alicloud/vpc/nat_gateway.py +175 -14
  39. pulumi_alicloud/vpc/outputs.py +51 -0
  40. pulumi_alicloud/vpn/gateway_vco_route.py +68 -21
  41. {pulumi_alicloud-3.66.0a1731672315.dist-info → pulumi_alicloud-3.67.0.dist-info}/METADATA +5 -5
  42. {pulumi_alicloud-3.66.0a1731672315.dist-info → pulumi_alicloud-3.67.0.dist-info}/RECORD +44 -42
  43. {pulumi_alicloud-3.66.0a1731672315.dist-info → pulumi_alicloud-3.67.0.dist-info}/WHEEL +1 -1
  44. {pulumi_alicloud-3.66.0a1731672315.dist-info → pulumi_alicloud-3.67.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,525 @@
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
+
17
+ __all__ = ['CustomDeploymentSetArgs', 'CustomDeploymentSet']
18
+
19
+ @pulumi.input_type
20
+ class CustomDeploymentSetArgs:
21
+ def __init__(__self__, *,
22
+ custom_deployment_set_name: Optional[pulumi.Input[str]] = None,
23
+ description: Optional[pulumi.Input[str]] = None,
24
+ group_count: Optional[pulumi.Input[int]] = None,
25
+ on_unable_to_redeploy_failed_instance: Optional[pulumi.Input[str]] = None,
26
+ strategy: Optional[pulumi.Input[str]] = None):
27
+ """
28
+ The set of arguments for constructing a CustomDeploymentSet resource.
29
+ :param pulumi.Input[str] custom_deployment_set_name: The name of the resource
30
+ :param pulumi.Input[str] description: Deployment set description information. It must be 2 to 256 characters in length and cannot start with http:// or https.
31
+ :param pulumi.Input[int] group_count: Set the number of groups for the deployment set group high availability policy. Value range: 1~7.
32
+
33
+ Default value: 3
34
+
35
+ > **NOTE:** This parameter takes effect only when 'Strategy = AvailabilityGroup.
36
+ :param pulumi.Input[str] on_unable_to_redeploy_failed_instance: After the instance in the deployment set is down and migrated, there is no emergency solution for the scattered instance inventory. Value range:
37
+ - `CancelMembershipAndStart`: removes the instance from the deployment set and starts the instance immediately after the instance is down and migrated.
38
+ - `KeepStopped`: The deployment set of the instance is maintained. The instance remains in the stopped state.
39
+
40
+ Default value: CancelMembershipAndStart.
41
+ :param pulumi.Input[str] strategy: Deployment strategy. Value range:
42
+ - `Availability`: High Availability policy.
43
+ - `AvailabilityGroup`: the high availability policy of the deployment set group.
44
+ - `LowLatency`: Network low latency policy.
45
+
46
+ Default value: Availability.
47
+ """
48
+ if custom_deployment_set_name is not None:
49
+ pulumi.set(__self__, "custom_deployment_set_name", custom_deployment_set_name)
50
+ if description is not None:
51
+ pulumi.set(__self__, "description", description)
52
+ if group_count is not None:
53
+ pulumi.set(__self__, "group_count", group_count)
54
+ if on_unable_to_redeploy_failed_instance is not None:
55
+ pulumi.set(__self__, "on_unable_to_redeploy_failed_instance", on_unable_to_redeploy_failed_instance)
56
+ if strategy is not None:
57
+ pulumi.set(__self__, "strategy", strategy)
58
+
59
+ @property
60
+ @pulumi.getter(name="customDeploymentSetName")
61
+ def custom_deployment_set_name(self) -> Optional[pulumi.Input[str]]:
62
+ """
63
+ The name of the resource
64
+ """
65
+ return pulumi.get(self, "custom_deployment_set_name")
66
+
67
+ @custom_deployment_set_name.setter
68
+ def custom_deployment_set_name(self, value: Optional[pulumi.Input[str]]):
69
+ pulumi.set(self, "custom_deployment_set_name", value)
70
+
71
+ @property
72
+ @pulumi.getter
73
+ def description(self) -> Optional[pulumi.Input[str]]:
74
+ """
75
+ Deployment set description information. It must be 2 to 256 characters in length and cannot start with http:// or https.
76
+ """
77
+ return pulumi.get(self, "description")
78
+
79
+ @description.setter
80
+ def description(self, value: Optional[pulumi.Input[str]]):
81
+ pulumi.set(self, "description", value)
82
+
83
+ @property
84
+ @pulumi.getter(name="groupCount")
85
+ def group_count(self) -> Optional[pulumi.Input[int]]:
86
+ """
87
+ Set the number of groups for the deployment set group high availability policy. Value range: 1~7.
88
+
89
+ Default value: 3
90
+
91
+ > **NOTE:** This parameter takes effect only when 'Strategy = AvailabilityGroup.
92
+ """
93
+ return pulumi.get(self, "group_count")
94
+
95
+ @group_count.setter
96
+ def group_count(self, value: Optional[pulumi.Input[int]]):
97
+ pulumi.set(self, "group_count", value)
98
+
99
+ @property
100
+ @pulumi.getter(name="onUnableToRedeployFailedInstance")
101
+ def on_unable_to_redeploy_failed_instance(self) -> Optional[pulumi.Input[str]]:
102
+ """
103
+ After the instance in the deployment set is down and migrated, there is no emergency solution for the scattered instance inventory. Value range:
104
+ - `CancelMembershipAndStart`: removes the instance from the deployment set and starts the instance immediately after the instance is down and migrated.
105
+ - `KeepStopped`: The deployment set of the instance is maintained. The instance remains in the stopped state.
106
+
107
+ Default value: CancelMembershipAndStart.
108
+ """
109
+ return pulumi.get(self, "on_unable_to_redeploy_failed_instance")
110
+
111
+ @on_unable_to_redeploy_failed_instance.setter
112
+ def on_unable_to_redeploy_failed_instance(self, value: Optional[pulumi.Input[str]]):
113
+ pulumi.set(self, "on_unable_to_redeploy_failed_instance", value)
114
+
115
+ @property
116
+ @pulumi.getter
117
+ def strategy(self) -> Optional[pulumi.Input[str]]:
118
+ """
119
+ Deployment strategy. Value range:
120
+ - `Availability`: High Availability policy.
121
+ - `AvailabilityGroup`: the high availability policy of the deployment set group.
122
+ - `LowLatency`: Network low latency policy.
123
+
124
+ Default value: Availability.
125
+ """
126
+ return pulumi.get(self, "strategy")
127
+
128
+ @strategy.setter
129
+ def strategy(self, value: Optional[pulumi.Input[str]]):
130
+ pulumi.set(self, "strategy", value)
131
+
132
+
133
+ @pulumi.input_type
134
+ class _CustomDeploymentSetState:
135
+ def __init__(__self__, *,
136
+ custom_deployment_set_name: Optional[pulumi.Input[str]] = None,
137
+ description: Optional[pulumi.Input[str]] = None,
138
+ group_count: Optional[pulumi.Input[int]] = None,
139
+ on_unable_to_redeploy_failed_instance: Optional[pulumi.Input[str]] = None,
140
+ status: Optional[pulumi.Input[str]] = None,
141
+ strategy: Optional[pulumi.Input[str]] = None):
142
+ """
143
+ Input properties used for looking up and filtering CustomDeploymentSet resources.
144
+ :param pulumi.Input[str] custom_deployment_set_name: The name of the resource
145
+ :param pulumi.Input[str] description: Deployment set description information. It must be 2 to 256 characters in length and cannot start with http:// or https.
146
+ :param pulumi.Input[int] group_count: Set the number of groups for the deployment set group high availability policy. Value range: 1~7.
147
+
148
+ Default value: 3
149
+
150
+ > **NOTE:** This parameter takes effect only when 'Strategy = AvailabilityGroup.
151
+ :param pulumi.Input[str] on_unable_to_redeploy_failed_instance: After the instance in the deployment set is down and migrated, there is no emergency solution for the scattered instance inventory. Value range:
152
+ - `CancelMembershipAndStart`: removes the instance from the deployment set and starts the instance immediately after the instance is down and migrated.
153
+ - `KeepStopped`: The deployment set of the instance is maintained. The instance remains in the stopped state.
154
+
155
+ Default value: CancelMembershipAndStart.
156
+ :param pulumi.Input[str] status: The status of the resource
157
+ :param pulumi.Input[str] strategy: Deployment strategy. Value range:
158
+ - `Availability`: High Availability policy.
159
+ - `AvailabilityGroup`: the high availability policy of the deployment set group.
160
+ - `LowLatency`: Network low latency policy.
161
+
162
+ Default value: Availability.
163
+ """
164
+ if custom_deployment_set_name is not None:
165
+ pulumi.set(__self__, "custom_deployment_set_name", custom_deployment_set_name)
166
+ if description is not None:
167
+ pulumi.set(__self__, "description", description)
168
+ if group_count is not None:
169
+ pulumi.set(__self__, "group_count", group_count)
170
+ if on_unable_to_redeploy_failed_instance is not None:
171
+ pulumi.set(__self__, "on_unable_to_redeploy_failed_instance", on_unable_to_redeploy_failed_instance)
172
+ if status is not None:
173
+ pulumi.set(__self__, "status", status)
174
+ if strategy is not None:
175
+ pulumi.set(__self__, "strategy", strategy)
176
+
177
+ @property
178
+ @pulumi.getter(name="customDeploymentSetName")
179
+ def custom_deployment_set_name(self) -> Optional[pulumi.Input[str]]:
180
+ """
181
+ The name of the resource
182
+ """
183
+ return pulumi.get(self, "custom_deployment_set_name")
184
+
185
+ @custom_deployment_set_name.setter
186
+ def custom_deployment_set_name(self, value: Optional[pulumi.Input[str]]):
187
+ pulumi.set(self, "custom_deployment_set_name", value)
188
+
189
+ @property
190
+ @pulumi.getter
191
+ def description(self) -> Optional[pulumi.Input[str]]:
192
+ """
193
+ Deployment set description information. It must be 2 to 256 characters in length and cannot start with http:// or https.
194
+ """
195
+ return pulumi.get(self, "description")
196
+
197
+ @description.setter
198
+ def description(self, value: Optional[pulumi.Input[str]]):
199
+ pulumi.set(self, "description", value)
200
+
201
+ @property
202
+ @pulumi.getter(name="groupCount")
203
+ def group_count(self) -> Optional[pulumi.Input[int]]:
204
+ """
205
+ Set the number of groups for the deployment set group high availability policy. Value range: 1~7.
206
+
207
+ Default value: 3
208
+
209
+ > **NOTE:** This parameter takes effect only when 'Strategy = AvailabilityGroup.
210
+ """
211
+ return pulumi.get(self, "group_count")
212
+
213
+ @group_count.setter
214
+ def group_count(self, value: Optional[pulumi.Input[int]]):
215
+ pulumi.set(self, "group_count", value)
216
+
217
+ @property
218
+ @pulumi.getter(name="onUnableToRedeployFailedInstance")
219
+ def on_unable_to_redeploy_failed_instance(self) -> Optional[pulumi.Input[str]]:
220
+ """
221
+ After the instance in the deployment set is down and migrated, there is no emergency solution for the scattered instance inventory. Value range:
222
+ - `CancelMembershipAndStart`: removes the instance from the deployment set and starts the instance immediately after the instance is down and migrated.
223
+ - `KeepStopped`: The deployment set of the instance is maintained. The instance remains in the stopped state.
224
+
225
+ Default value: CancelMembershipAndStart.
226
+ """
227
+ return pulumi.get(self, "on_unable_to_redeploy_failed_instance")
228
+
229
+ @on_unable_to_redeploy_failed_instance.setter
230
+ def on_unable_to_redeploy_failed_instance(self, value: Optional[pulumi.Input[str]]):
231
+ pulumi.set(self, "on_unable_to_redeploy_failed_instance", value)
232
+
233
+ @property
234
+ @pulumi.getter
235
+ def status(self) -> Optional[pulumi.Input[str]]:
236
+ """
237
+ The status of the resource
238
+ """
239
+ return pulumi.get(self, "status")
240
+
241
+ @status.setter
242
+ def status(self, value: Optional[pulumi.Input[str]]):
243
+ pulumi.set(self, "status", value)
244
+
245
+ @property
246
+ @pulumi.getter
247
+ def strategy(self) -> Optional[pulumi.Input[str]]:
248
+ """
249
+ Deployment strategy. Value range:
250
+ - `Availability`: High Availability policy.
251
+ - `AvailabilityGroup`: the high availability policy of the deployment set group.
252
+ - `LowLatency`: Network low latency policy.
253
+
254
+ Default value: Availability.
255
+ """
256
+ return pulumi.get(self, "strategy")
257
+
258
+ @strategy.setter
259
+ def strategy(self, value: Optional[pulumi.Input[str]]):
260
+ pulumi.set(self, "strategy", value)
261
+
262
+
263
+ class CustomDeploymentSet(pulumi.CustomResource):
264
+ @overload
265
+ def __init__(__self__,
266
+ resource_name: str,
267
+ opts: Optional[pulumi.ResourceOptions] = None,
268
+ custom_deployment_set_name: Optional[pulumi.Input[str]] = None,
269
+ description: Optional[pulumi.Input[str]] = None,
270
+ group_count: Optional[pulumi.Input[int]] = None,
271
+ on_unable_to_redeploy_failed_instance: Optional[pulumi.Input[str]] = None,
272
+ strategy: Optional[pulumi.Input[str]] = None,
273
+ __props__=None):
274
+ """
275
+ Provides a RDS Custom Deployment Set resource.
276
+
277
+ Custom Deployment set.
278
+
279
+ For information about RDS Custom Deployment Set and how to use it, see [What is Custom Deployment Set](https://www.alibabacloud.com/help/en/).
280
+
281
+ > **NOTE:** Available since v1.235.0.
282
+
283
+ ## Example Usage
284
+
285
+ Basic Usage
286
+
287
+ ```python
288
+ import pulumi
289
+ import pulumi_alicloud as alicloud
290
+
291
+ config = pulumi.Config()
292
+ name = config.get("name")
293
+ if name is None:
294
+ name = "terraform-example"
295
+ default = alicloud.rds.CustomDeploymentSet("default",
296
+ on_unable_to_redeploy_failed_instance="CancelMembershipAndStart",
297
+ custom_deployment_set_name=name,
298
+ description="2024:11:19 1010:1111:0808",
299
+ group_count=3,
300
+ strategy="Availability")
301
+ ```
302
+
303
+ ## Import
304
+
305
+ RDS Custom Deployment Set can be imported using the id, e.g.
306
+
307
+ ```sh
308
+ $ pulumi import alicloud:rds/customDeploymentSet:CustomDeploymentSet example <id>
309
+ ```
310
+
311
+ :param str resource_name: The name of the resource.
312
+ :param pulumi.ResourceOptions opts: Options for the resource.
313
+ :param pulumi.Input[str] custom_deployment_set_name: The name of the resource
314
+ :param pulumi.Input[str] description: Deployment set description information. It must be 2 to 256 characters in length and cannot start with http:// or https.
315
+ :param pulumi.Input[int] group_count: Set the number of groups for the deployment set group high availability policy. Value range: 1~7.
316
+
317
+ Default value: 3
318
+
319
+ > **NOTE:** This parameter takes effect only when 'Strategy = AvailabilityGroup.
320
+ :param pulumi.Input[str] on_unable_to_redeploy_failed_instance: After the instance in the deployment set is down and migrated, there is no emergency solution for the scattered instance inventory. Value range:
321
+ - `CancelMembershipAndStart`: removes the instance from the deployment set and starts the instance immediately after the instance is down and migrated.
322
+ - `KeepStopped`: The deployment set of the instance is maintained. The instance remains in the stopped state.
323
+
324
+ Default value: CancelMembershipAndStart.
325
+ :param pulumi.Input[str] strategy: Deployment strategy. Value range:
326
+ - `Availability`: High Availability policy.
327
+ - `AvailabilityGroup`: the high availability policy of the deployment set group.
328
+ - `LowLatency`: Network low latency policy.
329
+
330
+ Default value: Availability.
331
+ """
332
+ ...
333
+ @overload
334
+ def __init__(__self__,
335
+ resource_name: str,
336
+ args: Optional[CustomDeploymentSetArgs] = None,
337
+ opts: Optional[pulumi.ResourceOptions] = None):
338
+ """
339
+ Provides a RDS Custom Deployment Set resource.
340
+
341
+ Custom Deployment set.
342
+
343
+ For information about RDS Custom Deployment Set and how to use it, see [What is Custom Deployment Set](https://www.alibabacloud.com/help/en/).
344
+
345
+ > **NOTE:** Available since v1.235.0.
346
+
347
+ ## Example Usage
348
+
349
+ Basic Usage
350
+
351
+ ```python
352
+ import pulumi
353
+ import pulumi_alicloud as alicloud
354
+
355
+ config = pulumi.Config()
356
+ name = config.get("name")
357
+ if name is None:
358
+ name = "terraform-example"
359
+ default = alicloud.rds.CustomDeploymentSet("default",
360
+ on_unable_to_redeploy_failed_instance="CancelMembershipAndStart",
361
+ custom_deployment_set_name=name,
362
+ description="2024:11:19 1010:1111:0808",
363
+ group_count=3,
364
+ strategy="Availability")
365
+ ```
366
+
367
+ ## Import
368
+
369
+ RDS Custom Deployment Set can be imported using the id, e.g.
370
+
371
+ ```sh
372
+ $ pulumi import alicloud:rds/customDeploymentSet:CustomDeploymentSet example <id>
373
+ ```
374
+
375
+ :param str resource_name: The name of the resource.
376
+ :param CustomDeploymentSetArgs args: The arguments to use to populate this resource's properties.
377
+ :param pulumi.ResourceOptions opts: Options for the resource.
378
+ """
379
+ ...
380
+ def __init__(__self__, resource_name: str, *args, **kwargs):
381
+ resource_args, opts = _utilities.get_resource_args_opts(CustomDeploymentSetArgs, pulumi.ResourceOptions, *args, **kwargs)
382
+ if resource_args is not None:
383
+ __self__._internal_init(resource_name, opts, **resource_args.__dict__)
384
+ else:
385
+ __self__._internal_init(resource_name, *args, **kwargs)
386
+
387
+ def _internal_init(__self__,
388
+ resource_name: str,
389
+ opts: Optional[pulumi.ResourceOptions] = None,
390
+ custom_deployment_set_name: Optional[pulumi.Input[str]] = None,
391
+ description: Optional[pulumi.Input[str]] = None,
392
+ group_count: Optional[pulumi.Input[int]] = None,
393
+ on_unable_to_redeploy_failed_instance: Optional[pulumi.Input[str]] = None,
394
+ strategy: Optional[pulumi.Input[str]] = None,
395
+ __props__=None):
396
+ opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
397
+ if not isinstance(opts, pulumi.ResourceOptions):
398
+ raise TypeError('Expected resource options to be a ResourceOptions instance')
399
+ if opts.id is None:
400
+ if __props__ is not None:
401
+ raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
402
+ __props__ = CustomDeploymentSetArgs.__new__(CustomDeploymentSetArgs)
403
+
404
+ __props__.__dict__["custom_deployment_set_name"] = custom_deployment_set_name
405
+ __props__.__dict__["description"] = description
406
+ __props__.__dict__["group_count"] = group_count
407
+ __props__.__dict__["on_unable_to_redeploy_failed_instance"] = on_unable_to_redeploy_failed_instance
408
+ __props__.__dict__["strategy"] = strategy
409
+ __props__.__dict__["status"] = None
410
+ super(CustomDeploymentSet, __self__).__init__(
411
+ 'alicloud:rds/customDeploymentSet:CustomDeploymentSet',
412
+ resource_name,
413
+ __props__,
414
+ opts)
415
+
416
+ @staticmethod
417
+ def get(resource_name: str,
418
+ id: pulumi.Input[str],
419
+ opts: Optional[pulumi.ResourceOptions] = None,
420
+ custom_deployment_set_name: Optional[pulumi.Input[str]] = None,
421
+ description: Optional[pulumi.Input[str]] = None,
422
+ group_count: Optional[pulumi.Input[int]] = None,
423
+ on_unable_to_redeploy_failed_instance: Optional[pulumi.Input[str]] = None,
424
+ status: Optional[pulumi.Input[str]] = None,
425
+ strategy: Optional[pulumi.Input[str]] = None) -> 'CustomDeploymentSet':
426
+ """
427
+ Get an existing CustomDeploymentSet resource's state with the given name, id, and optional extra
428
+ properties used to qualify the lookup.
429
+
430
+ :param str resource_name: The unique name of the resulting resource.
431
+ :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
432
+ :param pulumi.ResourceOptions opts: Options for the resource.
433
+ :param pulumi.Input[str] custom_deployment_set_name: The name of the resource
434
+ :param pulumi.Input[str] description: Deployment set description information. It must be 2 to 256 characters in length and cannot start with http:// or https.
435
+ :param pulumi.Input[int] group_count: Set the number of groups for the deployment set group high availability policy. Value range: 1~7.
436
+
437
+ Default value: 3
438
+
439
+ > **NOTE:** This parameter takes effect only when 'Strategy = AvailabilityGroup.
440
+ :param pulumi.Input[str] on_unable_to_redeploy_failed_instance: After the instance in the deployment set is down and migrated, there is no emergency solution for the scattered instance inventory. Value range:
441
+ - `CancelMembershipAndStart`: removes the instance from the deployment set and starts the instance immediately after the instance is down and migrated.
442
+ - `KeepStopped`: The deployment set of the instance is maintained. The instance remains in the stopped state.
443
+
444
+ Default value: CancelMembershipAndStart.
445
+ :param pulumi.Input[str] status: The status of the resource
446
+ :param pulumi.Input[str] strategy: Deployment strategy. Value range:
447
+ - `Availability`: High Availability policy.
448
+ - `AvailabilityGroup`: the high availability policy of the deployment set group.
449
+ - `LowLatency`: Network low latency policy.
450
+
451
+ Default value: Availability.
452
+ """
453
+ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
454
+
455
+ __props__ = _CustomDeploymentSetState.__new__(_CustomDeploymentSetState)
456
+
457
+ __props__.__dict__["custom_deployment_set_name"] = custom_deployment_set_name
458
+ __props__.__dict__["description"] = description
459
+ __props__.__dict__["group_count"] = group_count
460
+ __props__.__dict__["on_unable_to_redeploy_failed_instance"] = on_unable_to_redeploy_failed_instance
461
+ __props__.__dict__["status"] = status
462
+ __props__.__dict__["strategy"] = strategy
463
+ return CustomDeploymentSet(resource_name, opts=opts, __props__=__props__)
464
+
465
+ @property
466
+ @pulumi.getter(name="customDeploymentSetName")
467
+ def custom_deployment_set_name(self) -> pulumi.Output[Optional[str]]:
468
+ """
469
+ The name of the resource
470
+ """
471
+ return pulumi.get(self, "custom_deployment_set_name")
472
+
473
+ @property
474
+ @pulumi.getter
475
+ def description(self) -> pulumi.Output[Optional[str]]:
476
+ """
477
+ Deployment set description information. It must be 2 to 256 characters in length and cannot start with http:// or https.
478
+ """
479
+ return pulumi.get(self, "description")
480
+
481
+ @property
482
+ @pulumi.getter(name="groupCount")
483
+ def group_count(self) -> pulumi.Output[Optional[int]]:
484
+ """
485
+ Set the number of groups for the deployment set group high availability policy. Value range: 1~7.
486
+
487
+ Default value: 3
488
+
489
+ > **NOTE:** This parameter takes effect only when 'Strategy = AvailabilityGroup.
490
+ """
491
+ return pulumi.get(self, "group_count")
492
+
493
+ @property
494
+ @pulumi.getter(name="onUnableToRedeployFailedInstance")
495
+ def on_unable_to_redeploy_failed_instance(self) -> pulumi.Output[Optional[str]]:
496
+ """
497
+ After the instance in the deployment set is down and migrated, there is no emergency solution for the scattered instance inventory. Value range:
498
+ - `CancelMembershipAndStart`: removes the instance from the deployment set and starts the instance immediately after the instance is down and migrated.
499
+ - `KeepStopped`: The deployment set of the instance is maintained. The instance remains in the stopped state.
500
+
501
+ Default value: CancelMembershipAndStart.
502
+ """
503
+ return pulumi.get(self, "on_unable_to_redeploy_failed_instance")
504
+
505
+ @property
506
+ @pulumi.getter
507
+ def status(self) -> pulumi.Output[str]:
508
+ """
509
+ The status of the resource
510
+ """
511
+ return pulumi.get(self, "status")
512
+
513
+ @property
514
+ @pulumi.getter
515
+ def strategy(self) -> pulumi.Output[str]:
516
+ """
517
+ Deployment strategy. Value range:
518
+ - `Availability`: High Availability policy.
519
+ - `AvailabilityGroup`: the high availability policy of the deployment set group.
520
+ - `LowLatency`: Network low latency policy.
521
+
522
+ Default value: Availability.
523
+ """
524
+ return pulumi.get(self, "strategy")
525
+
@@ -16,6 +16,8 @@ from .. import _utilities
16
16
  from . import outputs
17
17
 
18
18
  __all__ = [
19
+ 'CustomDataDisk',
20
+ 'CustomSystemDisk',
19
21
  'DbInstanceEndpointNodeItem',
20
22
  'DdrInstanceParameter',
21
23
  'DdrInstancePgHbaConf',
@@ -53,6 +55,109 @@ __all__ = [
53
55
  'GetZonesZoneResult',
54
56
  ]
55
57
 
58
+ @pulumi.output_type
59
+ class CustomDataDisk(dict):
60
+ @staticmethod
61
+ def __key_warning(key: str):
62
+ suggest = None
63
+ if key == "performanceLevel":
64
+ suggest = "performance_level"
65
+
66
+ if suggest:
67
+ pulumi.log.warn(f"Key '{key}' not found in CustomDataDisk. Access the value via the '{suggest}' property getter instead.")
68
+
69
+ def __getitem__(self, key: str) -> Any:
70
+ CustomDataDisk.__key_warning(key)
71
+ return super().__getitem__(key)
72
+
73
+ def get(self, key: str, default = None) -> Any:
74
+ CustomDataDisk.__key_warning(key)
75
+ return super().get(key, default)
76
+
77
+ def __init__(__self__, *,
78
+ category: Optional[str] = None,
79
+ performance_level: Optional[str] = None,
80
+ size: Optional[int] = None):
81
+ """
82
+ :param str category: Instance storage type
83
+
84
+ local_ssd: local SSD disk
85
+
86
+ cloud_essd:ESSD PL1 cloud disk
87
+ :param str performance_level: Cloud Disk Performance
88
+
89
+ Currently only supports PL1
90
+ :param int size: Instance storage space. Unit: GB.
91
+ """
92
+ if category is not None:
93
+ pulumi.set(__self__, "category", category)
94
+ if performance_level is not None:
95
+ pulumi.set(__self__, "performance_level", performance_level)
96
+ if size is not None:
97
+ pulumi.set(__self__, "size", size)
98
+
99
+ @property
100
+ @pulumi.getter
101
+ def category(self) -> Optional[str]:
102
+ """
103
+ Instance storage type
104
+
105
+ local_ssd: local SSD disk
106
+
107
+ cloud_essd:ESSD PL1 cloud disk
108
+ """
109
+ return pulumi.get(self, "category")
110
+
111
+ @property
112
+ @pulumi.getter(name="performanceLevel")
113
+ def performance_level(self) -> Optional[str]:
114
+ """
115
+ Cloud Disk Performance
116
+
117
+ Currently only supports PL1
118
+ """
119
+ return pulumi.get(self, "performance_level")
120
+
121
+ @property
122
+ @pulumi.getter
123
+ def size(self) -> Optional[int]:
124
+ """
125
+ Instance storage space. Unit: GB.
126
+ """
127
+ return pulumi.get(self, "size")
128
+
129
+
130
+ @pulumi.output_type
131
+ class CustomSystemDisk(dict):
132
+ def __init__(__self__, *,
133
+ category: Optional[str] = None,
134
+ size: Optional[str] = None):
135
+ """
136
+ :param str category: The cloud disk type of the system disk. Currently, only `cloud_essd`(ESSD cloud disk) is supported.
137
+ :param str size: System disk size, unit: GiB. Only ESSD PL1 is supported. Valid values range from 20 to 2048.
138
+ """
139
+ if category is not None:
140
+ pulumi.set(__self__, "category", category)
141
+ if size is not None:
142
+ pulumi.set(__self__, "size", size)
143
+
144
+ @property
145
+ @pulumi.getter
146
+ def category(self) -> Optional[str]:
147
+ """
148
+ The cloud disk type of the system disk. Currently, only `cloud_essd`(ESSD cloud disk) is supported.
149
+ """
150
+ return pulumi.get(self, "category")
151
+
152
+ @property
153
+ @pulumi.getter
154
+ def size(self) -> Optional[str]:
155
+ """
156
+ System disk size, unit: GiB. Only ESSD PL1 is supported. Valid values range from 20 to 2048.
157
+ """
158
+ return pulumi.get(self, "size")
159
+
160
+
56
161
  @pulumi.output_type
57
162
  class DbInstanceEndpointNodeItem(dict):
58
163
  @staticmethod