pulumi-alicloud 3.58.0a1719359875__py3-none-any.whl → 3.58.0a1719465542__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 (29) hide show
  1. pulumi_alicloud/_inputs.py +9 -9
  2. pulumi_alicloud/cddc/dedicated_host_account.py +4 -0
  3. pulumi_alicloud/cddc/dedicated_host_group.py +4 -0
  4. pulumi_alicloud/config/outputs.py +6 -6
  5. pulumi_alicloud/cs/kubernetes_addon.py +2 -2
  6. pulumi_alicloud/cs/node_pool.py +7 -7
  7. pulumi_alicloud/ddos/bgp_ip.py +53 -2
  8. pulumi_alicloud/eci/_inputs.py +12 -0
  9. pulumi_alicloud/eci/outputs.py +8 -0
  10. pulumi_alicloud/ecs/ecs_disk.py +7 -7
  11. pulumi_alicloud/ecs/eip.py +1 -1
  12. pulumi_alicloud/ecs/eip_address.py +495 -299
  13. pulumi_alicloud/ecs/eip_association.py +205 -58
  14. pulumi_alicloud/ecs/eip_segment_address.py +311 -133
  15. pulumi_alicloud/ecs/instance.py +20 -6
  16. pulumi_alicloud/ess/_inputs.py +88 -0
  17. pulumi_alicloud/ess/alarm.py +132 -38
  18. pulumi_alicloud/ess/outputs.py +87 -0
  19. pulumi_alicloud/ess/scaling_group.py +148 -7
  20. pulumi_alicloud/log/oss_shipper.py +4 -0
  21. pulumi_alicloud/mongodb/sharding_instance.py +54 -7
  22. pulumi_alicloud/pulumi-plugin.json +1 -1
  23. pulumi_alicloud/rds/instance.py +21 -0
  24. pulumi_alicloud/vpc/common_bandwith_package.py +197 -120
  25. pulumi_alicloud/vpc/common_bandwith_package_attachment.py +58 -30
  26. {pulumi_alicloud-3.58.0a1719359875.dist-info → pulumi_alicloud-3.58.0a1719465542.dist-info}/METADATA +1 -1
  27. {pulumi_alicloud-3.58.0a1719359875.dist-info → pulumi_alicloud-3.58.0a1719465542.dist-info}/RECORD +29 -29
  28. {pulumi_alicloud-3.58.0a1719359875.dist-info → pulumi_alicloud-3.58.0a1719465542.dist-info}/WHEEL +0 -0
  29. {pulumi_alicloud-3.58.0a1719359875.dist-info → pulumi_alicloud-3.58.0a1719465542.dist-info}/top_level.txt +0 -0
@@ -19,6 +19,8 @@ class ScalingGroupArgs:
19
19
  max_size: pulumi.Input[int],
20
20
  min_size: pulumi.Input[int],
21
21
  alb_server_groups: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupAlbServerGroupArgs']]]] = None,
22
+ allocation_strategy: Optional[pulumi.Input[str]] = None,
23
+ az_balance: Optional[pulumi.Input[bool]] = None,
22
24
  db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
23
25
  default_cooldown: Optional[pulumi.Input[int]] = None,
24
26
  desired_capacity: Optional[pulumi.Input[int]] = None,
@@ -36,6 +38,7 @@ class ScalingGroupArgs:
36
38
  removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
37
39
  resource_group_id: Optional[pulumi.Input[str]] = None,
38
40
  scaling_group_name: Optional[pulumi.Input[str]] = None,
41
+ spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
39
42
  spot_instance_pools: Optional[pulumi.Input[int]] = None,
40
43
  spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
41
44
  tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
@@ -48,6 +51,8 @@ class ScalingGroupArgs:
48
51
  :param pulumi.Input[int] min_size: Minimum number of ECS instances in the scaling group. Value range: [0, 2000].
49
52
  **NOTE:** From version 1.204.1, `min_size` can be set to `2000`.
50
53
  :param pulumi.Input[Sequence[pulumi.Input['ScalingGroupAlbServerGroupArgs']]] alb_server_groups: If a Serve ALB instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server ALB instance. See `alb_server_group` below for details.
54
+ :param pulumi.Input[str] allocation_strategy: The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The policy can be applied to pay-as-you-go instances and preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
55
+ :param pulumi.Input[bool] az_balance: Specifies whether to evenly distribute instances in the scaling group across multiple zones. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
51
56
  :param pulumi.Input[Sequence[pulumi.Input[str]]] db_instance_ids: If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.
52
57
  - The specified RDS instance must be in running status.
53
58
  - The specified RDS instance’s whitelist must have room for more IP addresses.
@@ -65,7 +70,7 @@ class ScalingGroupArgs:
65
70
  targeting your `slb.Listener` in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
66
71
  - The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
67
72
  - The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
68
- :param pulumi.Input[str] multi_az_policy: Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
73
+ :param pulumi.Input[str] multi_az_policy: Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, COMPOSABLE, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
69
74
  :param pulumi.Input[int] on_demand_base_capacity: The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.
70
75
  :param pulumi.Input[int] on_demand_percentage_above_base_capacity: Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.
71
76
  :param pulumi.Input[Sequence[pulumi.Input[str]]] protected_instances: Set or unset instances within group into protected status.
@@ -76,6 +81,7 @@ class ScalingGroupArgs:
76
81
  - Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
77
82
  :param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to add the scaling group.
78
83
  :param pulumi.Input[str] scaling_group_name: Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores `_`, hyphens `-`, and decimal points `.`. If this parameter is not specified, the default value is ScalingGroupId.
84
+ :param pulumi.Input[str] spot_allocation_strategy: The allocation policy of preemptible instances. You can use this parameter to individually specify the allocation policy for preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
79
85
  :param pulumi.Input[int] spot_instance_pools: The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.
80
86
  :param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
81
87
  :param pulumi.Input[Mapping[str, Any]] tags: A mapping of tags to assign to the resource.
@@ -88,6 +94,10 @@ class ScalingGroupArgs:
88
94
  pulumi.set(__self__, "min_size", min_size)
89
95
  if alb_server_groups is not None:
90
96
  pulumi.set(__self__, "alb_server_groups", alb_server_groups)
97
+ if allocation_strategy is not None:
98
+ pulumi.set(__self__, "allocation_strategy", allocation_strategy)
99
+ if az_balance is not None:
100
+ pulumi.set(__self__, "az_balance", az_balance)
91
101
  if db_instance_ids is not None:
92
102
  pulumi.set(__self__, "db_instance_ids", db_instance_ids)
93
103
  if default_cooldown is not None:
@@ -122,6 +132,8 @@ class ScalingGroupArgs:
122
132
  pulumi.set(__self__, "resource_group_id", resource_group_id)
123
133
  if scaling_group_name is not None:
124
134
  pulumi.set(__self__, "scaling_group_name", scaling_group_name)
135
+ if spot_allocation_strategy is not None:
136
+ pulumi.set(__self__, "spot_allocation_strategy", spot_allocation_strategy)
125
137
  if spot_instance_pools is not None:
126
138
  pulumi.set(__self__, "spot_instance_pools", spot_instance_pools)
127
139
  if spot_instance_remedy is not None:
@@ -174,6 +186,30 @@ class ScalingGroupArgs:
174
186
  def alb_server_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupAlbServerGroupArgs']]]]):
175
187
  pulumi.set(self, "alb_server_groups", value)
176
188
 
189
+ @property
190
+ @pulumi.getter(name="allocationStrategy")
191
+ def allocation_strategy(self) -> Optional[pulumi.Input[str]]:
192
+ """
193
+ The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The policy can be applied to pay-as-you-go instances and preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
194
+ """
195
+ return pulumi.get(self, "allocation_strategy")
196
+
197
+ @allocation_strategy.setter
198
+ def allocation_strategy(self, value: Optional[pulumi.Input[str]]):
199
+ pulumi.set(self, "allocation_strategy", value)
200
+
201
+ @property
202
+ @pulumi.getter(name="azBalance")
203
+ def az_balance(self) -> Optional[pulumi.Input[bool]]:
204
+ """
205
+ Specifies whether to evenly distribute instances in the scaling group across multiple zones. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
206
+ """
207
+ return pulumi.get(self, "az_balance")
208
+
209
+ @az_balance.setter
210
+ def az_balance(self, value: Optional[pulumi.Input[bool]]):
211
+ pulumi.set(self, "az_balance", value)
212
+
177
213
  @property
178
214
  @pulumi.getter(name="dbInstanceIds")
179
215
  def db_instance_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
@@ -305,7 +341,7 @@ class ScalingGroupArgs:
305
341
  @pulumi.getter(name="multiAzPolicy")
306
342
  def multi_az_policy(self) -> Optional[pulumi.Input[str]]:
307
343
  """
308
- Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
344
+ Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, COMPOSABLE, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
309
345
  """
310
346
  return pulumi.get(self, "multi_az_policy")
311
347
 
@@ -389,6 +425,18 @@ class ScalingGroupArgs:
389
425
  def scaling_group_name(self, value: Optional[pulumi.Input[str]]):
390
426
  pulumi.set(self, "scaling_group_name", value)
391
427
 
428
+ @property
429
+ @pulumi.getter(name="spotAllocationStrategy")
430
+ def spot_allocation_strategy(self) -> Optional[pulumi.Input[str]]:
431
+ """
432
+ The allocation policy of preemptible instances. You can use this parameter to individually specify the allocation policy for preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
433
+ """
434
+ return pulumi.get(self, "spot_allocation_strategy")
435
+
436
+ @spot_allocation_strategy.setter
437
+ def spot_allocation_strategy(self, value: Optional[pulumi.Input[str]]):
438
+ pulumi.set(self, "spot_allocation_strategy", value)
439
+
392
440
  @property
393
441
  @pulumi.getter(name="spotInstancePools")
394
442
  def spot_instance_pools(self) -> Optional[pulumi.Input[int]]:
@@ -457,6 +505,8 @@ class ScalingGroupArgs:
457
505
  class _ScalingGroupState:
458
506
  def __init__(__self__, *,
459
507
  alb_server_groups: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupAlbServerGroupArgs']]]] = None,
508
+ allocation_strategy: Optional[pulumi.Input[str]] = None,
509
+ az_balance: Optional[pulumi.Input[bool]] = None,
460
510
  db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
461
511
  default_cooldown: Optional[pulumi.Input[int]] = None,
462
512
  desired_capacity: Optional[pulumi.Input[int]] = None,
@@ -476,6 +526,7 @@ class _ScalingGroupState:
476
526
  removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
477
527
  resource_group_id: Optional[pulumi.Input[str]] = None,
478
528
  scaling_group_name: Optional[pulumi.Input[str]] = None,
529
+ spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
479
530
  spot_instance_pools: Optional[pulumi.Input[int]] = None,
480
531
  spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
481
532
  tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
@@ -484,6 +535,8 @@ class _ScalingGroupState:
484
535
  """
485
536
  Input properties used for looking up and filtering ScalingGroup resources.
486
537
  :param pulumi.Input[Sequence[pulumi.Input['ScalingGroupAlbServerGroupArgs']]] alb_server_groups: If a Serve ALB instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server ALB instance. See `alb_server_group` below for details.
538
+ :param pulumi.Input[str] allocation_strategy: The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The policy can be applied to pay-as-you-go instances and preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
539
+ :param pulumi.Input[bool] az_balance: Specifies whether to evenly distribute instances in the scaling group across multiple zones. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
487
540
  :param pulumi.Input[Sequence[pulumi.Input[str]]] db_instance_ids: If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.
488
541
  - The specified RDS instance must be in running status.
489
542
  - The specified RDS instance’s whitelist must have room for more IP addresses.
@@ -505,7 +558,7 @@ class _ScalingGroupState:
505
558
  **NOTE:** From version 1.204.1, `max_size` can be set to `2000`.
506
559
  :param pulumi.Input[int] min_size: Minimum number of ECS instances in the scaling group. Value range: [0, 2000].
507
560
  **NOTE:** From version 1.204.1, `min_size` can be set to `2000`.
508
- :param pulumi.Input[str] multi_az_policy: Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
561
+ :param pulumi.Input[str] multi_az_policy: Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, COMPOSABLE, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
509
562
  :param pulumi.Input[int] on_demand_base_capacity: The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.
510
563
  :param pulumi.Input[int] on_demand_percentage_above_base_capacity: Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.
511
564
  :param pulumi.Input[Sequence[pulumi.Input[str]]] protected_instances: Set or unset instances within group into protected status.
@@ -516,6 +569,7 @@ class _ScalingGroupState:
516
569
  - Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
517
570
  :param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to add the scaling group.
518
571
  :param pulumi.Input[str] scaling_group_name: Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores `_`, hyphens `-`, and decimal points `.`. If this parameter is not specified, the default value is ScalingGroupId.
572
+ :param pulumi.Input[str] spot_allocation_strategy: The allocation policy of preemptible instances. You can use this parameter to individually specify the allocation policy for preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
519
573
  :param pulumi.Input[int] spot_instance_pools: The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.
520
574
  :param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
521
575
  :param pulumi.Input[Mapping[str, Any]] tags: A mapping of tags to assign to the resource.
@@ -526,6 +580,10 @@ class _ScalingGroupState:
526
580
  """
527
581
  if alb_server_groups is not None:
528
582
  pulumi.set(__self__, "alb_server_groups", alb_server_groups)
583
+ if allocation_strategy is not None:
584
+ pulumi.set(__self__, "allocation_strategy", allocation_strategy)
585
+ if az_balance is not None:
586
+ pulumi.set(__self__, "az_balance", az_balance)
529
587
  if db_instance_ids is not None:
530
588
  pulumi.set(__self__, "db_instance_ids", db_instance_ids)
531
589
  if default_cooldown is not None:
@@ -564,6 +622,8 @@ class _ScalingGroupState:
564
622
  pulumi.set(__self__, "resource_group_id", resource_group_id)
565
623
  if scaling_group_name is not None:
566
624
  pulumi.set(__self__, "scaling_group_name", scaling_group_name)
625
+ if spot_allocation_strategy is not None:
626
+ pulumi.set(__self__, "spot_allocation_strategy", spot_allocation_strategy)
567
627
  if spot_instance_pools is not None:
568
628
  pulumi.set(__self__, "spot_instance_pools", spot_instance_pools)
569
629
  if spot_instance_remedy is not None:
@@ -590,6 +650,30 @@ class _ScalingGroupState:
590
650
  def alb_server_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupAlbServerGroupArgs']]]]):
591
651
  pulumi.set(self, "alb_server_groups", value)
592
652
 
653
+ @property
654
+ @pulumi.getter(name="allocationStrategy")
655
+ def allocation_strategy(self) -> Optional[pulumi.Input[str]]:
656
+ """
657
+ The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The policy can be applied to pay-as-you-go instances and preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
658
+ """
659
+ return pulumi.get(self, "allocation_strategy")
660
+
661
+ @allocation_strategy.setter
662
+ def allocation_strategy(self, value: Optional[pulumi.Input[str]]):
663
+ pulumi.set(self, "allocation_strategy", value)
664
+
665
+ @property
666
+ @pulumi.getter(name="azBalance")
667
+ def az_balance(self) -> Optional[pulumi.Input[bool]]:
668
+ """
669
+ Specifies whether to evenly distribute instances in the scaling group across multiple zones. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
670
+ """
671
+ return pulumi.get(self, "az_balance")
672
+
673
+ @az_balance.setter
674
+ def az_balance(self, value: Optional[pulumi.Input[bool]]):
675
+ pulumi.set(self, "az_balance", value)
676
+
593
677
  @property
594
678
  @pulumi.getter(name="dbInstanceIds")
595
679
  def db_instance_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
@@ -747,7 +831,7 @@ class _ScalingGroupState:
747
831
  @pulumi.getter(name="multiAzPolicy")
748
832
  def multi_az_policy(self) -> Optional[pulumi.Input[str]]:
749
833
  """
750
- Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
834
+ Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, COMPOSABLE, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
751
835
  """
752
836
  return pulumi.get(self, "multi_az_policy")
753
837
 
@@ -831,6 +915,18 @@ class _ScalingGroupState:
831
915
  def scaling_group_name(self, value: Optional[pulumi.Input[str]]):
832
916
  pulumi.set(self, "scaling_group_name", value)
833
917
 
918
+ @property
919
+ @pulumi.getter(name="spotAllocationStrategy")
920
+ def spot_allocation_strategy(self) -> Optional[pulumi.Input[str]]:
921
+ """
922
+ The allocation policy of preemptible instances. You can use this parameter to individually specify the allocation policy for preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
923
+ """
924
+ return pulumi.get(self, "spot_allocation_strategy")
925
+
926
+ @spot_allocation_strategy.setter
927
+ def spot_allocation_strategy(self, value: Optional[pulumi.Input[str]]):
928
+ pulumi.set(self, "spot_allocation_strategy", value)
929
+
834
930
  @property
835
931
  @pulumi.getter(name="spotInstancePools")
836
932
  def spot_instance_pools(self) -> Optional[pulumi.Input[int]]:
@@ -901,6 +997,8 @@ class ScalingGroup(pulumi.CustomResource):
901
997
  resource_name: str,
902
998
  opts: Optional[pulumi.ResourceOptions] = None,
903
999
  alb_server_groups: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupAlbServerGroupArgs']]]]] = None,
1000
+ allocation_strategy: Optional[pulumi.Input[str]] = None,
1001
+ az_balance: Optional[pulumi.Input[bool]] = None,
904
1002
  db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
905
1003
  default_cooldown: Optional[pulumi.Input[int]] = None,
906
1004
  desired_capacity: Optional[pulumi.Input[int]] = None,
@@ -920,6 +1018,7 @@ class ScalingGroup(pulumi.CustomResource):
920
1018
  removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
921
1019
  resource_group_id: Optional[pulumi.Input[str]] = None,
922
1020
  scaling_group_name: Optional[pulumi.Input[str]] = None,
1021
+ spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
923
1022
  spot_instance_pools: Optional[pulumi.Input[int]] = None,
924
1023
  spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
925
1024
  tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
@@ -1016,6 +1115,8 @@ class ScalingGroup(pulumi.CustomResource):
1016
1115
  :param str resource_name: The name of the resource.
1017
1116
  :param pulumi.ResourceOptions opts: Options for the resource.
1018
1117
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupAlbServerGroupArgs']]]] alb_server_groups: If a Serve ALB instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server ALB instance. See `alb_server_group` below for details.
1118
+ :param pulumi.Input[str] allocation_strategy: The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The policy can be applied to pay-as-you-go instances and preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
1119
+ :param pulumi.Input[bool] az_balance: Specifies whether to evenly distribute instances in the scaling group across multiple zones. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
1019
1120
  :param pulumi.Input[Sequence[pulumi.Input[str]]] db_instance_ids: If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.
1020
1121
  - The specified RDS instance must be in running status.
1021
1122
  - The specified RDS instance’s whitelist must have room for more IP addresses.
@@ -1037,7 +1138,7 @@ class ScalingGroup(pulumi.CustomResource):
1037
1138
  **NOTE:** From version 1.204.1, `max_size` can be set to `2000`.
1038
1139
  :param pulumi.Input[int] min_size: Minimum number of ECS instances in the scaling group. Value range: [0, 2000].
1039
1140
  **NOTE:** From version 1.204.1, `min_size` can be set to `2000`.
1040
- :param pulumi.Input[str] multi_az_policy: Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
1141
+ :param pulumi.Input[str] multi_az_policy: Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, COMPOSABLE, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
1041
1142
  :param pulumi.Input[int] on_demand_base_capacity: The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.
1042
1143
  :param pulumi.Input[int] on_demand_percentage_above_base_capacity: Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.
1043
1144
  :param pulumi.Input[Sequence[pulumi.Input[str]]] protected_instances: Set or unset instances within group into protected status.
@@ -1048,6 +1149,7 @@ class ScalingGroup(pulumi.CustomResource):
1048
1149
  - Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
1049
1150
  :param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to add the scaling group.
1050
1151
  :param pulumi.Input[str] scaling_group_name: Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores `_`, hyphens `-`, and decimal points `.`. If this parameter is not specified, the default value is ScalingGroupId.
1152
+ :param pulumi.Input[str] spot_allocation_strategy: The allocation policy of preemptible instances. You can use this parameter to individually specify the allocation policy for preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
1051
1153
  :param pulumi.Input[int] spot_instance_pools: The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.
1052
1154
  :param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
1053
1155
  :param pulumi.Input[Mapping[str, Any]] tags: A mapping of tags to assign to the resource.
@@ -1165,6 +1267,8 @@ class ScalingGroup(pulumi.CustomResource):
1165
1267
  resource_name: str,
1166
1268
  opts: Optional[pulumi.ResourceOptions] = None,
1167
1269
  alb_server_groups: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupAlbServerGroupArgs']]]]] = None,
1270
+ allocation_strategy: Optional[pulumi.Input[str]] = None,
1271
+ az_balance: Optional[pulumi.Input[bool]] = None,
1168
1272
  db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1169
1273
  default_cooldown: Optional[pulumi.Input[int]] = None,
1170
1274
  desired_capacity: Optional[pulumi.Input[int]] = None,
@@ -1184,6 +1288,7 @@ class ScalingGroup(pulumi.CustomResource):
1184
1288
  removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1185
1289
  resource_group_id: Optional[pulumi.Input[str]] = None,
1186
1290
  scaling_group_name: Optional[pulumi.Input[str]] = None,
1291
+ spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
1187
1292
  spot_instance_pools: Optional[pulumi.Input[int]] = None,
1188
1293
  spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
1189
1294
  tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
@@ -1199,6 +1304,8 @@ class ScalingGroup(pulumi.CustomResource):
1199
1304
  __props__ = ScalingGroupArgs.__new__(ScalingGroupArgs)
1200
1305
 
1201
1306
  __props__.__dict__["alb_server_groups"] = alb_server_groups
1307
+ __props__.__dict__["allocation_strategy"] = allocation_strategy
1308
+ __props__.__dict__["az_balance"] = az_balance
1202
1309
  __props__.__dict__["db_instance_ids"] = db_instance_ids
1203
1310
  __props__.__dict__["default_cooldown"] = default_cooldown
1204
1311
  __props__.__dict__["desired_capacity"] = desired_capacity
@@ -1222,6 +1329,7 @@ class ScalingGroup(pulumi.CustomResource):
1222
1329
  __props__.__dict__["removal_policies"] = removal_policies
1223
1330
  __props__.__dict__["resource_group_id"] = resource_group_id
1224
1331
  __props__.__dict__["scaling_group_name"] = scaling_group_name
1332
+ __props__.__dict__["spot_allocation_strategy"] = spot_allocation_strategy
1225
1333
  __props__.__dict__["spot_instance_pools"] = spot_instance_pools
1226
1334
  __props__.__dict__["spot_instance_remedy"] = spot_instance_remedy
1227
1335
  __props__.__dict__["tags"] = tags
@@ -1238,6 +1346,8 @@ class ScalingGroup(pulumi.CustomResource):
1238
1346
  id: pulumi.Input[str],
1239
1347
  opts: Optional[pulumi.ResourceOptions] = None,
1240
1348
  alb_server_groups: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupAlbServerGroupArgs']]]]] = None,
1349
+ allocation_strategy: Optional[pulumi.Input[str]] = None,
1350
+ az_balance: Optional[pulumi.Input[bool]] = None,
1241
1351
  db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1242
1352
  default_cooldown: Optional[pulumi.Input[int]] = None,
1243
1353
  desired_capacity: Optional[pulumi.Input[int]] = None,
@@ -1257,6 +1367,7 @@ class ScalingGroup(pulumi.CustomResource):
1257
1367
  removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
1258
1368
  resource_group_id: Optional[pulumi.Input[str]] = None,
1259
1369
  scaling_group_name: Optional[pulumi.Input[str]] = None,
1370
+ spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
1260
1371
  spot_instance_pools: Optional[pulumi.Input[int]] = None,
1261
1372
  spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
1262
1373
  tags: Optional[pulumi.Input[Mapping[str, Any]]] = None,
@@ -1270,6 +1381,8 @@ class ScalingGroup(pulumi.CustomResource):
1270
1381
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
1271
1382
  :param pulumi.ResourceOptions opts: Options for the resource.
1272
1383
  :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupAlbServerGroupArgs']]]] alb_server_groups: If a Serve ALB instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server ALB instance. See `alb_server_group` below for details.
1384
+ :param pulumi.Input[str] allocation_strategy: The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The policy can be applied to pay-as-you-go instances and preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
1385
+ :param pulumi.Input[bool] az_balance: Specifies whether to evenly distribute instances in the scaling group across multiple zones. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
1273
1386
  :param pulumi.Input[Sequence[pulumi.Input[str]]] db_instance_ids: If an RDS instance is specified in the scaling group, the scaling group automatically attaches the Intranet IP addresses of its ECS instances to the RDS access whitelist.
1274
1387
  - The specified RDS instance must be in running status.
1275
1388
  - The specified RDS instance’s whitelist must have room for more IP addresses.
@@ -1291,7 +1404,7 @@ class ScalingGroup(pulumi.CustomResource):
1291
1404
  **NOTE:** From version 1.204.1, `max_size` can be set to `2000`.
1292
1405
  :param pulumi.Input[int] min_size: Minimum number of ECS instances in the scaling group. Value range: [0, 2000].
1293
1406
  **NOTE:** From version 1.204.1, `min_size` can be set to `2000`.
1294
- :param pulumi.Input[str] multi_az_policy: Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
1407
+ :param pulumi.Input[str] multi_az_policy: Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, COMPOSABLE, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
1295
1408
  :param pulumi.Input[int] on_demand_base_capacity: The minimum amount of the Auto Scaling group's capacity that must be fulfilled by On-Demand Instances. This base portion is provisioned first as your group scales.
1296
1409
  :param pulumi.Input[int] on_demand_percentage_above_base_capacity: Controls the percentages of On-Demand Instances and Spot Instances for your additional capacity beyond OnDemandBaseCapacity.
1297
1410
  :param pulumi.Input[Sequence[pulumi.Input[str]]] protected_instances: Set or unset instances within group into protected status.
@@ -1302,6 +1415,7 @@ class ScalingGroup(pulumi.CustomResource):
1302
1415
  - Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
1303
1416
  :param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to add the scaling group.
1304
1417
  :param pulumi.Input[str] scaling_group_name: Name shown for the scaling group, which must contain 2-64 characters (English or Chinese), starting with numbers, English letters or Chinese characters, and can contain numbers, underscores `_`, hyphens `-`, and decimal points `.`. If this parameter is not specified, the default value is ScalingGroupId.
1418
+ :param pulumi.Input[str] spot_allocation_strategy: The allocation policy of preemptible instances. You can use this parameter to individually specify the allocation policy for preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
1305
1419
  :param pulumi.Input[int] spot_instance_pools: The number of Spot pools to use to allocate your Spot capacity. The Spot pools is composed of instance types of lowest price.
1306
1420
  :param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
1307
1421
  :param pulumi.Input[Mapping[str, Any]] tags: A mapping of tags to assign to the resource.
@@ -1315,6 +1429,8 @@ class ScalingGroup(pulumi.CustomResource):
1315
1429
  __props__ = _ScalingGroupState.__new__(_ScalingGroupState)
1316
1430
 
1317
1431
  __props__.__dict__["alb_server_groups"] = alb_server_groups
1432
+ __props__.__dict__["allocation_strategy"] = allocation_strategy
1433
+ __props__.__dict__["az_balance"] = az_balance
1318
1434
  __props__.__dict__["db_instance_ids"] = db_instance_ids
1319
1435
  __props__.__dict__["default_cooldown"] = default_cooldown
1320
1436
  __props__.__dict__["desired_capacity"] = desired_capacity
@@ -1334,6 +1450,7 @@ class ScalingGroup(pulumi.CustomResource):
1334
1450
  __props__.__dict__["removal_policies"] = removal_policies
1335
1451
  __props__.__dict__["resource_group_id"] = resource_group_id
1336
1452
  __props__.__dict__["scaling_group_name"] = scaling_group_name
1453
+ __props__.__dict__["spot_allocation_strategy"] = spot_allocation_strategy
1337
1454
  __props__.__dict__["spot_instance_pools"] = spot_instance_pools
1338
1455
  __props__.__dict__["spot_instance_remedy"] = spot_instance_remedy
1339
1456
  __props__.__dict__["tags"] = tags
@@ -1349,6 +1466,22 @@ class ScalingGroup(pulumi.CustomResource):
1349
1466
  """
1350
1467
  return pulumi.get(self, "alb_server_groups")
1351
1468
 
1469
+ @property
1470
+ @pulumi.getter(name="allocationStrategy")
1471
+ def allocation_strategy(self) -> pulumi.Output[str]:
1472
+ """
1473
+ The allocation policy of instances. Auto Scaling selects instance types based on the allocation policy to create instances. The policy can be applied to pay-as-you-go instances and preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
1474
+ """
1475
+ return pulumi.get(self, "allocation_strategy")
1476
+
1477
+ @property
1478
+ @pulumi.getter(name="azBalance")
1479
+ def az_balance(self) -> pulumi.Output[Optional[bool]]:
1480
+ """
1481
+ Specifies whether to evenly distribute instances in the scaling group across multiple zones. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
1482
+ """
1483
+ return pulumi.get(self, "az_balance")
1484
+
1352
1485
  @property
1353
1486
  @pulumi.getter(name="dbInstanceIds")
1354
1487
  def db_instance_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
@@ -1458,7 +1591,7 @@ class ScalingGroup(pulumi.CustomResource):
1458
1591
  @pulumi.getter(name="multiAzPolicy")
1459
1592
  def multi_az_policy(self) -> pulumi.Output[Optional[str]]:
1460
1593
  """
1461
- Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
1594
+ Multi-AZ scaling group ECS instance expansion and contraction strategy. PRIORITY, COMPOSABLE, BALANCE or COST_OPTIMIZED(Available since v1.54.0).
1462
1595
  """
1463
1596
  return pulumi.get(self, "multi_az_policy")
1464
1597
 
@@ -1514,6 +1647,14 @@ class ScalingGroup(pulumi.CustomResource):
1514
1647
  """
1515
1648
  return pulumi.get(self, "scaling_group_name")
1516
1649
 
1650
+ @property
1651
+ @pulumi.getter(name="spotAllocationStrategy")
1652
+ def spot_allocation_strategy(self) -> pulumi.Output[str]:
1653
+ """
1654
+ The allocation policy of preemptible instances. You can use this parameter to individually specify the allocation policy for preemptible instances. This parameter takes effect only if you set MultiAZPolicy to COMPOSABLE.
1655
+ """
1656
+ return pulumi.get(self, "spot_allocation_strategy")
1657
+
1517
1658
  @property
1518
1659
  @pulumi.getter(name="spotInstancePools")
1519
1660
  def spot_instance_pools(self) -> pulumi.Output[int]:
@@ -652,6 +652,8 @@ class OssShipper(pulumi.CustomResource):
652
652
 
653
653
  > **NOTE:** Available in 1.121.0+
654
654
 
655
+ > **DEPRECATED:** This resource has been deprecated from version `1.215.0`. Please use new resource alicloud_log_oss_export.
656
+
655
657
  ## Example Usage
656
658
 
657
659
  Basic Usage
@@ -740,6 +742,8 @@ class OssShipper(pulumi.CustomResource):
740
742
 
741
743
  > **NOTE:** Available in 1.121.0+
742
744
 
745
+ > **DEPRECATED:** This resource has been deprecated from version `1.215.0`. Please use new resource alicloud_log_oss_export.
746
+
743
747
  ## Example Usage
744
748
 
745
749
  Basic Usage