pulumi-alicloud 3.58.0a1720026262__py3-none-any.whl → 3.59.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.
- pulumi_alicloud/__init__.py +48 -0
- pulumi_alicloud/adb/resource_group.py +115 -119
- pulumi_alicloud/clickhouse/get_regions.py +2 -2
- pulumi_alicloud/cloudstoragegateway/gateway_cache_disk.py +150 -27
- pulumi_alicloud/dfs/file_system.py +52 -19
- pulumi_alicloud/ecs/_inputs.py +132 -8
- pulumi_alicloud/ecs/image.py +607 -121
- pulumi_alicloud/ecs/outputs.py +131 -8
- pulumi_alicloud/emrv2/_inputs.py +490 -0
- pulumi_alicloud/emrv2/cluster.py +14 -14
- pulumi_alicloud/emrv2/outputs.py +500 -0
- pulumi_alicloud/ens/__init__.py +2 -0
- pulumi_alicloud/ens/eip_instance_attachment.py +480 -0
- pulumi_alicloud/ens/instance.py +16 -17
- pulumi_alicloud/ens/nat_gateway.py +458 -0
- pulumi_alicloud/ess/eci_scaling_configuration.py +94 -0
- pulumi_alicloud/ess/scaling_group.py +94 -0
- pulumi_alicloud/ga/bandwidth_package_attachment.py +34 -34
- pulumi_alicloud/ga/listener.py +122 -0
- pulumi_alicloud/gpdb/__init__.py +4 -0
- pulumi_alicloud/gpdb/external_data_service.py +485 -0
- pulumi_alicloud/gpdb/remote_adb_data_source.py +763 -0
- pulumi_alicloud/gpdb/streaming_data_service.py +481 -0
- pulumi_alicloud/gpdb/streaming_data_source.py +645 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/redis/tair_instance.py +161 -67
- {pulumi_alicloud-3.58.0a1720026262.dist-info → pulumi_alicloud-3.59.0.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.58.0a1720026262.dist-info → pulumi_alicloud-3.59.0.dist-info}/RECORD +30 -24
- {pulumi_alicloud-3.58.0a1720026262.dist-info → pulumi_alicloud-3.59.0.dist-info}/WHEEL +1 -1
- {pulumi_alicloud-3.58.0a1720026262.dist-info → pulumi_alicloud-3.59.0.dist-info}/top_level.txt +0 -0
|
@@ -31,6 +31,7 @@ class ScalingGroupArgs:
|
|
|
31
31
|
launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]]] = None,
|
|
32
32
|
launch_template_version: Optional[pulumi.Input[str]] = None,
|
|
33
33
|
loadbalancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
34
|
+
max_instance_lifetime: Optional[pulumi.Input[int]] = None,
|
|
34
35
|
multi_az_policy: Optional[pulumi.Input[str]] = None,
|
|
35
36
|
on_demand_base_capacity: Optional[pulumi.Input[int]] = None,
|
|
36
37
|
on_demand_percentage_above_base_capacity: Optional[pulumi.Input[int]] = None,
|
|
@@ -38,6 +39,7 @@ class ScalingGroupArgs:
|
|
|
38
39
|
removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
39
40
|
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
40
41
|
scaling_group_name: Optional[pulumi.Input[str]] = None,
|
|
42
|
+
scaling_policy: Optional[pulumi.Input[str]] = None,
|
|
41
43
|
spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
|
|
42
44
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
43
45
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
@@ -70,6 +72,7 @@ class ScalingGroupArgs:
|
|
|
70
72
|
targeting your `slb.Listener` in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
|
|
71
73
|
- The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
|
|
72
74
|
- The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
|
|
75
|
+
:param pulumi.Input[int] max_instance_lifetime: The maximum life span of an instance in the scaling group. Unit: seconds.
|
|
73
76
|
: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).
|
|
74
77
|
: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.
|
|
75
78
|
: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.
|
|
@@ -81,6 +84,7 @@ class ScalingGroupArgs:
|
|
|
81
84
|
- Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
|
|
82
85
|
:param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to add the scaling group.
|
|
83
86
|
: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.
|
|
87
|
+
:param pulumi.Input[str] scaling_policy: The reclaim mode of the scaling group. Optional values: recycle, release, forceRecycle, forceRelease.
|
|
84
88
|
: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.
|
|
85
89
|
: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.
|
|
86
90
|
:param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
|
|
@@ -118,6 +122,8 @@ class ScalingGroupArgs:
|
|
|
118
122
|
pulumi.set(__self__, "launch_template_version", launch_template_version)
|
|
119
123
|
if loadbalancer_ids is not None:
|
|
120
124
|
pulumi.set(__self__, "loadbalancer_ids", loadbalancer_ids)
|
|
125
|
+
if max_instance_lifetime is not None:
|
|
126
|
+
pulumi.set(__self__, "max_instance_lifetime", max_instance_lifetime)
|
|
121
127
|
if multi_az_policy is not None:
|
|
122
128
|
pulumi.set(__self__, "multi_az_policy", multi_az_policy)
|
|
123
129
|
if on_demand_base_capacity is not None:
|
|
@@ -132,6 +138,8 @@ class ScalingGroupArgs:
|
|
|
132
138
|
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
133
139
|
if scaling_group_name is not None:
|
|
134
140
|
pulumi.set(__self__, "scaling_group_name", scaling_group_name)
|
|
141
|
+
if scaling_policy is not None:
|
|
142
|
+
pulumi.set(__self__, "scaling_policy", scaling_policy)
|
|
135
143
|
if spot_allocation_strategy is not None:
|
|
136
144
|
pulumi.set(__self__, "spot_allocation_strategy", spot_allocation_strategy)
|
|
137
145
|
if spot_instance_pools is not None:
|
|
@@ -337,6 +345,18 @@ class ScalingGroupArgs:
|
|
|
337
345
|
def loadbalancer_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
338
346
|
pulumi.set(self, "loadbalancer_ids", value)
|
|
339
347
|
|
|
348
|
+
@property
|
|
349
|
+
@pulumi.getter(name="maxInstanceLifetime")
|
|
350
|
+
def max_instance_lifetime(self) -> Optional[pulumi.Input[int]]:
|
|
351
|
+
"""
|
|
352
|
+
The maximum life span of an instance in the scaling group. Unit: seconds.
|
|
353
|
+
"""
|
|
354
|
+
return pulumi.get(self, "max_instance_lifetime")
|
|
355
|
+
|
|
356
|
+
@max_instance_lifetime.setter
|
|
357
|
+
def max_instance_lifetime(self, value: Optional[pulumi.Input[int]]):
|
|
358
|
+
pulumi.set(self, "max_instance_lifetime", value)
|
|
359
|
+
|
|
340
360
|
@property
|
|
341
361
|
@pulumi.getter(name="multiAzPolicy")
|
|
342
362
|
def multi_az_policy(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -425,6 +445,18 @@ class ScalingGroupArgs:
|
|
|
425
445
|
def scaling_group_name(self, value: Optional[pulumi.Input[str]]):
|
|
426
446
|
pulumi.set(self, "scaling_group_name", value)
|
|
427
447
|
|
|
448
|
+
@property
|
|
449
|
+
@pulumi.getter(name="scalingPolicy")
|
|
450
|
+
def scaling_policy(self) -> Optional[pulumi.Input[str]]:
|
|
451
|
+
"""
|
|
452
|
+
The reclaim mode of the scaling group. Optional values: recycle, release, forceRecycle, forceRelease.
|
|
453
|
+
"""
|
|
454
|
+
return pulumi.get(self, "scaling_policy")
|
|
455
|
+
|
|
456
|
+
@scaling_policy.setter
|
|
457
|
+
def scaling_policy(self, value: Optional[pulumi.Input[str]]):
|
|
458
|
+
pulumi.set(self, "scaling_policy", value)
|
|
459
|
+
|
|
428
460
|
@property
|
|
429
461
|
@pulumi.getter(name="spotAllocationStrategy")
|
|
430
462
|
def spot_allocation_strategy(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -517,6 +549,7 @@ class _ScalingGroupState:
|
|
|
517
549
|
launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]]] = None,
|
|
518
550
|
launch_template_version: Optional[pulumi.Input[str]] = None,
|
|
519
551
|
loadbalancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
552
|
+
max_instance_lifetime: Optional[pulumi.Input[int]] = None,
|
|
520
553
|
max_size: Optional[pulumi.Input[int]] = None,
|
|
521
554
|
min_size: Optional[pulumi.Input[int]] = None,
|
|
522
555
|
multi_az_policy: Optional[pulumi.Input[str]] = None,
|
|
@@ -526,6 +559,7 @@ class _ScalingGroupState:
|
|
|
526
559
|
removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
527
560
|
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
528
561
|
scaling_group_name: Optional[pulumi.Input[str]] = None,
|
|
562
|
+
scaling_policy: Optional[pulumi.Input[str]] = None,
|
|
529
563
|
spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
|
|
530
564
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
531
565
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
@@ -554,6 +588,7 @@ class _ScalingGroupState:
|
|
|
554
588
|
targeting your `slb.Listener` in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
|
|
555
589
|
- The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
|
|
556
590
|
- The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
|
|
591
|
+
:param pulumi.Input[int] max_instance_lifetime: The maximum life span of an instance in the scaling group. Unit: seconds.
|
|
557
592
|
:param pulumi.Input[int] max_size: Maximum number of ECS instances in the scaling group. Value range: [0, 2000].
|
|
558
593
|
**NOTE:** From version 1.204.1, `max_size` can be set to `2000`.
|
|
559
594
|
:param pulumi.Input[int] min_size: Minimum number of ECS instances in the scaling group. Value range: [0, 2000].
|
|
@@ -569,6 +604,7 @@ class _ScalingGroupState:
|
|
|
569
604
|
- Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
|
|
570
605
|
:param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to add the scaling group.
|
|
571
606
|
: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.
|
|
607
|
+
:param pulumi.Input[str] scaling_policy: The reclaim mode of the scaling group. Optional values: recycle, release, forceRecycle, forceRelease.
|
|
572
608
|
: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.
|
|
573
609
|
: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.
|
|
574
610
|
:param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
|
|
@@ -604,6 +640,8 @@ class _ScalingGroupState:
|
|
|
604
640
|
pulumi.set(__self__, "launch_template_version", launch_template_version)
|
|
605
641
|
if loadbalancer_ids is not None:
|
|
606
642
|
pulumi.set(__self__, "loadbalancer_ids", loadbalancer_ids)
|
|
643
|
+
if max_instance_lifetime is not None:
|
|
644
|
+
pulumi.set(__self__, "max_instance_lifetime", max_instance_lifetime)
|
|
607
645
|
if max_size is not None:
|
|
608
646
|
pulumi.set(__self__, "max_size", max_size)
|
|
609
647
|
if min_size is not None:
|
|
@@ -622,6 +660,8 @@ class _ScalingGroupState:
|
|
|
622
660
|
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
623
661
|
if scaling_group_name is not None:
|
|
624
662
|
pulumi.set(__self__, "scaling_group_name", scaling_group_name)
|
|
663
|
+
if scaling_policy is not None:
|
|
664
|
+
pulumi.set(__self__, "scaling_policy", scaling_policy)
|
|
625
665
|
if spot_allocation_strategy is not None:
|
|
626
666
|
pulumi.set(__self__, "spot_allocation_strategy", spot_allocation_strategy)
|
|
627
667
|
if spot_instance_pools is not None:
|
|
@@ -801,6 +841,18 @@ class _ScalingGroupState:
|
|
|
801
841
|
def loadbalancer_ids(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
802
842
|
pulumi.set(self, "loadbalancer_ids", value)
|
|
803
843
|
|
|
844
|
+
@property
|
|
845
|
+
@pulumi.getter(name="maxInstanceLifetime")
|
|
846
|
+
def max_instance_lifetime(self) -> Optional[pulumi.Input[int]]:
|
|
847
|
+
"""
|
|
848
|
+
The maximum life span of an instance in the scaling group. Unit: seconds.
|
|
849
|
+
"""
|
|
850
|
+
return pulumi.get(self, "max_instance_lifetime")
|
|
851
|
+
|
|
852
|
+
@max_instance_lifetime.setter
|
|
853
|
+
def max_instance_lifetime(self, value: Optional[pulumi.Input[int]]):
|
|
854
|
+
pulumi.set(self, "max_instance_lifetime", value)
|
|
855
|
+
|
|
804
856
|
@property
|
|
805
857
|
@pulumi.getter(name="maxSize")
|
|
806
858
|
def max_size(self) -> Optional[pulumi.Input[int]]:
|
|
@@ -915,6 +967,18 @@ class _ScalingGroupState:
|
|
|
915
967
|
def scaling_group_name(self, value: Optional[pulumi.Input[str]]):
|
|
916
968
|
pulumi.set(self, "scaling_group_name", value)
|
|
917
969
|
|
|
970
|
+
@property
|
|
971
|
+
@pulumi.getter(name="scalingPolicy")
|
|
972
|
+
def scaling_policy(self) -> Optional[pulumi.Input[str]]:
|
|
973
|
+
"""
|
|
974
|
+
The reclaim mode of the scaling group. Optional values: recycle, release, forceRecycle, forceRelease.
|
|
975
|
+
"""
|
|
976
|
+
return pulumi.get(self, "scaling_policy")
|
|
977
|
+
|
|
978
|
+
@scaling_policy.setter
|
|
979
|
+
def scaling_policy(self, value: Optional[pulumi.Input[str]]):
|
|
980
|
+
pulumi.set(self, "scaling_policy", value)
|
|
981
|
+
|
|
918
982
|
@property
|
|
919
983
|
@pulumi.getter(name="spotAllocationStrategy")
|
|
920
984
|
def spot_allocation_strategy(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -1009,6 +1073,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1009
1073
|
launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupLaunchTemplateOverrideArgs']]]]] = None,
|
|
1010
1074
|
launch_template_version: Optional[pulumi.Input[str]] = None,
|
|
1011
1075
|
loadbalancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1076
|
+
max_instance_lifetime: Optional[pulumi.Input[int]] = None,
|
|
1012
1077
|
max_size: Optional[pulumi.Input[int]] = None,
|
|
1013
1078
|
min_size: Optional[pulumi.Input[int]] = None,
|
|
1014
1079
|
multi_az_policy: Optional[pulumi.Input[str]] = None,
|
|
@@ -1018,6 +1083,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1018
1083
|
removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1019
1084
|
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
1020
1085
|
scaling_group_name: Optional[pulumi.Input[str]] = None,
|
|
1086
|
+
scaling_policy: Optional[pulumi.Input[str]] = None,
|
|
1021
1087
|
spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
|
|
1022
1088
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
1023
1089
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
@@ -1134,6 +1200,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1134
1200
|
targeting your `slb.Listener` in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
|
|
1135
1201
|
- The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
|
|
1136
1202
|
- The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
|
|
1203
|
+
:param pulumi.Input[int] max_instance_lifetime: The maximum life span of an instance in the scaling group. Unit: seconds.
|
|
1137
1204
|
:param pulumi.Input[int] max_size: Maximum number of ECS instances in the scaling group. Value range: [0, 2000].
|
|
1138
1205
|
**NOTE:** From version 1.204.1, `max_size` can be set to `2000`.
|
|
1139
1206
|
:param pulumi.Input[int] min_size: Minimum number of ECS instances in the scaling group. Value range: [0, 2000].
|
|
@@ -1149,6 +1216,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1149
1216
|
- Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
|
|
1150
1217
|
:param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to add the scaling group.
|
|
1151
1218
|
: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.
|
|
1219
|
+
:param pulumi.Input[str] scaling_policy: The reclaim mode of the scaling group. Optional values: recycle, release, forceRecycle, forceRelease.
|
|
1152
1220
|
: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.
|
|
1153
1221
|
: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.
|
|
1154
1222
|
:param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
|
|
@@ -1279,6 +1347,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1279
1347
|
launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupLaunchTemplateOverrideArgs']]]]] = None,
|
|
1280
1348
|
launch_template_version: Optional[pulumi.Input[str]] = None,
|
|
1281
1349
|
loadbalancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1350
|
+
max_instance_lifetime: Optional[pulumi.Input[int]] = None,
|
|
1282
1351
|
max_size: Optional[pulumi.Input[int]] = None,
|
|
1283
1352
|
min_size: Optional[pulumi.Input[int]] = None,
|
|
1284
1353
|
multi_az_policy: Optional[pulumi.Input[str]] = None,
|
|
@@ -1288,6 +1357,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1288
1357
|
removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1289
1358
|
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
1290
1359
|
scaling_group_name: Optional[pulumi.Input[str]] = None,
|
|
1360
|
+
scaling_policy: Optional[pulumi.Input[str]] = None,
|
|
1291
1361
|
spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
|
|
1292
1362
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
1293
1363
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
@@ -1316,6 +1386,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1316
1386
|
__props__.__dict__["launch_template_overrides"] = launch_template_overrides
|
|
1317
1387
|
__props__.__dict__["launch_template_version"] = launch_template_version
|
|
1318
1388
|
__props__.__dict__["loadbalancer_ids"] = loadbalancer_ids
|
|
1389
|
+
__props__.__dict__["max_instance_lifetime"] = max_instance_lifetime
|
|
1319
1390
|
if max_size is None and not opts.urn:
|
|
1320
1391
|
raise TypeError("Missing required property 'max_size'")
|
|
1321
1392
|
__props__.__dict__["max_size"] = max_size
|
|
@@ -1329,6 +1400,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1329
1400
|
__props__.__dict__["removal_policies"] = removal_policies
|
|
1330
1401
|
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
1331
1402
|
__props__.__dict__["scaling_group_name"] = scaling_group_name
|
|
1403
|
+
__props__.__dict__["scaling_policy"] = scaling_policy
|
|
1332
1404
|
__props__.__dict__["spot_allocation_strategy"] = spot_allocation_strategy
|
|
1333
1405
|
__props__.__dict__["spot_instance_pools"] = spot_instance_pools
|
|
1334
1406
|
__props__.__dict__["spot_instance_remedy"] = spot_instance_remedy
|
|
@@ -1358,6 +1430,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1358
1430
|
launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupLaunchTemplateOverrideArgs']]]]] = None,
|
|
1359
1431
|
launch_template_version: Optional[pulumi.Input[str]] = None,
|
|
1360
1432
|
loadbalancer_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1433
|
+
max_instance_lifetime: Optional[pulumi.Input[int]] = None,
|
|
1361
1434
|
max_size: Optional[pulumi.Input[int]] = None,
|
|
1362
1435
|
min_size: Optional[pulumi.Input[int]] = None,
|
|
1363
1436
|
multi_az_policy: Optional[pulumi.Input[str]] = None,
|
|
@@ -1367,6 +1440,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1367
1440
|
removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1368
1441
|
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
1369
1442
|
scaling_group_name: Optional[pulumi.Input[str]] = None,
|
|
1443
|
+
scaling_policy: Optional[pulumi.Input[str]] = None,
|
|
1370
1444
|
spot_allocation_strategy: Optional[pulumi.Input[str]] = None,
|
|
1371
1445
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
1372
1446
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
@@ -1400,6 +1474,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1400
1474
|
targeting your `slb.Listener` in order to make sure the listener with its HealthCheck configuration is ready before creating your scaling group).
|
|
1401
1475
|
- The Server Load Balancer instance attached with VPC-type ECS instances cannot be attached to the scaling group.
|
|
1402
1476
|
- The default weight of an ECS instance attached to the Server Load Balancer instance is 50.
|
|
1477
|
+
:param pulumi.Input[int] max_instance_lifetime: The maximum life span of an instance in the scaling group. Unit: seconds.
|
|
1403
1478
|
:param pulumi.Input[int] max_size: Maximum number of ECS instances in the scaling group. Value range: [0, 2000].
|
|
1404
1479
|
**NOTE:** From version 1.204.1, `max_size` can be set to `2000`.
|
|
1405
1480
|
:param pulumi.Input[int] min_size: Minimum number of ECS instances in the scaling group. Value range: [0, 2000].
|
|
@@ -1415,6 +1490,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1415
1490
|
- Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
|
|
1416
1491
|
:param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to add the scaling group.
|
|
1417
1492
|
: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.
|
|
1493
|
+
:param pulumi.Input[str] scaling_policy: The reclaim mode of the scaling group. Optional values: recycle, release, forceRecycle, forceRelease.
|
|
1418
1494
|
: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.
|
|
1419
1495
|
: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.
|
|
1420
1496
|
:param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
|
|
@@ -1441,6 +1517,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1441
1517
|
__props__.__dict__["launch_template_overrides"] = launch_template_overrides
|
|
1442
1518
|
__props__.__dict__["launch_template_version"] = launch_template_version
|
|
1443
1519
|
__props__.__dict__["loadbalancer_ids"] = loadbalancer_ids
|
|
1520
|
+
__props__.__dict__["max_instance_lifetime"] = max_instance_lifetime
|
|
1444
1521
|
__props__.__dict__["max_size"] = max_size
|
|
1445
1522
|
__props__.__dict__["min_size"] = min_size
|
|
1446
1523
|
__props__.__dict__["multi_az_policy"] = multi_az_policy
|
|
@@ -1450,6 +1527,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1450
1527
|
__props__.__dict__["removal_policies"] = removal_policies
|
|
1451
1528
|
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
1452
1529
|
__props__.__dict__["scaling_group_name"] = scaling_group_name
|
|
1530
|
+
__props__.__dict__["scaling_policy"] = scaling_policy
|
|
1453
1531
|
__props__.__dict__["spot_allocation_strategy"] = spot_allocation_strategy
|
|
1454
1532
|
__props__.__dict__["spot_instance_pools"] = spot_instance_pools
|
|
1455
1533
|
__props__.__dict__["spot_instance_remedy"] = spot_instance_remedy
|
|
@@ -1569,6 +1647,14 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1569
1647
|
"""
|
|
1570
1648
|
return pulumi.get(self, "loadbalancer_ids")
|
|
1571
1649
|
|
|
1650
|
+
@property
|
|
1651
|
+
@pulumi.getter(name="maxInstanceLifetime")
|
|
1652
|
+
def max_instance_lifetime(self) -> pulumi.Output[Optional[int]]:
|
|
1653
|
+
"""
|
|
1654
|
+
The maximum life span of an instance in the scaling group. Unit: seconds.
|
|
1655
|
+
"""
|
|
1656
|
+
return pulumi.get(self, "max_instance_lifetime")
|
|
1657
|
+
|
|
1572
1658
|
@property
|
|
1573
1659
|
@pulumi.getter(name="maxSize")
|
|
1574
1660
|
def max_size(self) -> pulumi.Output[int]:
|
|
@@ -1647,6 +1733,14 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1647
1733
|
"""
|
|
1648
1734
|
return pulumi.get(self, "scaling_group_name")
|
|
1649
1735
|
|
|
1736
|
+
@property
|
|
1737
|
+
@pulumi.getter(name="scalingPolicy")
|
|
1738
|
+
def scaling_policy(self) -> pulumi.Output[str]:
|
|
1739
|
+
"""
|
|
1740
|
+
The reclaim mode of the scaling group. Optional values: recycle, release, forceRecycle, forceRelease.
|
|
1741
|
+
"""
|
|
1742
|
+
return pulumi.get(self, "scaling_policy")
|
|
1743
|
+
|
|
1650
1744
|
@property
|
|
1651
1745
|
@pulumi.getter(name="spotAllocationStrategy")
|
|
1652
1746
|
def spot_allocation_strategy(self) -> pulumi.Output[str]:
|
|
@@ -18,8 +18,8 @@ class BandwidthPackageAttachmentArgs:
|
|
|
18
18
|
bandwidth_package_id: pulumi.Input[str]):
|
|
19
19
|
"""
|
|
20
20
|
The set of arguments for constructing a BandwidthPackageAttachment resource.
|
|
21
|
-
:param pulumi.Input[str] accelerator_id: The ID of the Global Accelerator instance
|
|
22
|
-
:param pulumi.Input[str] bandwidth_package_id: The ID of the
|
|
21
|
+
:param pulumi.Input[str] accelerator_id: The ID of the Global Accelerator instance.
|
|
22
|
+
:param pulumi.Input[str] bandwidth_package_id: The ID of the Bandwidth Package. **NOTE:** From version 1.192.0, `bandwidth_package_id` can be modified.
|
|
23
23
|
"""
|
|
24
24
|
pulumi.set(__self__, "accelerator_id", accelerator_id)
|
|
25
25
|
pulumi.set(__self__, "bandwidth_package_id", bandwidth_package_id)
|
|
@@ -28,7 +28,7 @@ class BandwidthPackageAttachmentArgs:
|
|
|
28
28
|
@pulumi.getter(name="acceleratorId")
|
|
29
29
|
def accelerator_id(self) -> pulumi.Input[str]:
|
|
30
30
|
"""
|
|
31
|
-
The ID of the Global Accelerator instance
|
|
31
|
+
The ID of the Global Accelerator instance.
|
|
32
32
|
"""
|
|
33
33
|
return pulumi.get(self, "accelerator_id")
|
|
34
34
|
|
|
@@ -40,7 +40,7 @@ class BandwidthPackageAttachmentArgs:
|
|
|
40
40
|
@pulumi.getter(name="bandwidthPackageId")
|
|
41
41
|
def bandwidth_package_id(self) -> pulumi.Input[str]:
|
|
42
42
|
"""
|
|
43
|
-
The ID of the
|
|
43
|
+
The ID of the Bandwidth Package. **NOTE:** From version 1.192.0, `bandwidth_package_id` can be modified.
|
|
44
44
|
"""
|
|
45
45
|
return pulumi.get(self, "bandwidth_package_id")
|
|
46
46
|
|
|
@@ -58,9 +58,9 @@ class _BandwidthPackageAttachmentState:
|
|
|
58
58
|
status: Optional[pulumi.Input[str]] = None):
|
|
59
59
|
"""
|
|
60
60
|
Input properties used for looking up and filtering BandwidthPackageAttachment resources.
|
|
61
|
-
:param pulumi.Input[str] accelerator_id: The ID of the Global Accelerator instance
|
|
61
|
+
:param pulumi.Input[str] accelerator_id: The ID of the Global Accelerator instance.
|
|
62
62
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] accelerators: Accelerators bound with current Bandwidth Package.
|
|
63
|
-
:param pulumi.Input[str] bandwidth_package_id: The ID of the
|
|
63
|
+
:param pulumi.Input[str] bandwidth_package_id: The ID of the Bandwidth Package. **NOTE:** From version 1.192.0, `bandwidth_package_id` can be modified.
|
|
64
64
|
:param pulumi.Input[str] status: State of Bandwidth Package.
|
|
65
65
|
"""
|
|
66
66
|
if accelerator_id is not None:
|
|
@@ -76,7 +76,7 @@ class _BandwidthPackageAttachmentState:
|
|
|
76
76
|
@pulumi.getter(name="acceleratorId")
|
|
77
77
|
def accelerator_id(self) -> Optional[pulumi.Input[str]]:
|
|
78
78
|
"""
|
|
79
|
-
The ID of the Global Accelerator instance
|
|
79
|
+
The ID of the Global Accelerator instance.
|
|
80
80
|
"""
|
|
81
81
|
return pulumi.get(self, "accelerator_id")
|
|
82
82
|
|
|
@@ -100,7 +100,7 @@ class _BandwidthPackageAttachmentState:
|
|
|
100
100
|
@pulumi.getter(name="bandwidthPackageId")
|
|
101
101
|
def bandwidth_package_id(self) -> Optional[pulumi.Input[str]]:
|
|
102
102
|
"""
|
|
103
|
-
The ID of the
|
|
103
|
+
The ID of the Bandwidth Package. **NOTE:** From version 1.192.0, `bandwidth_package_id` can be modified.
|
|
104
104
|
"""
|
|
105
105
|
return pulumi.get(self, "bandwidth_package_id")
|
|
106
106
|
|
|
@@ -144,34 +144,34 @@ class BandwidthPackageAttachment(pulumi.CustomResource):
|
|
|
144
144
|
import pulumi
|
|
145
145
|
import pulumi_alicloud as alicloud
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
default = alicloud.ga.Accelerator("default",
|
|
148
148
|
duration=1,
|
|
149
149
|
auto_use_coupon=True,
|
|
150
150
|
spec="1")
|
|
151
|
-
|
|
152
|
-
bandwidth=
|
|
151
|
+
default_bandwidth_package = alicloud.ga.BandwidthPackage("default",
|
|
152
|
+
bandwidth=100,
|
|
153
153
|
type="Basic",
|
|
154
154
|
bandwidth_type="Basic",
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
payment_type="PayAsYouGo",
|
|
156
|
+
billing_type="PayBy95",
|
|
157
157
|
ratio=30)
|
|
158
|
-
|
|
159
|
-
accelerator_id=
|
|
160
|
-
bandwidth_package_id=
|
|
158
|
+
default_bandwidth_package_attachment = alicloud.ga.BandwidthPackageAttachment("default",
|
|
159
|
+
accelerator_id=default.id,
|
|
160
|
+
bandwidth_package_id=default_bandwidth_package.id)
|
|
161
161
|
```
|
|
162
162
|
|
|
163
163
|
## Import
|
|
164
164
|
|
|
165
|
-
Ga Bandwidth Package Attachment can be imported using the id
|
|
165
|
+
Ga Bandwidth Package Attachment can be imported using the id, e.g.
|
|
166
166
|
|
|
167
167
|
```sh
|
|
168
|
-
$ pulumi import alicloud:ga/bandwidthPackageAttachment:BandwidthPackageAttachment example
|
|
168
|
+
$ pulumi import alicloud:ga/bandwidthPackageAttachment:BandwidthPackageAttachment example <accelerator_id>:<bandwidth_package_id>
|
|
169
169
|
```
|
|
170
170
|
|
|
171
171
|
:param str resource_name: The name of the resource.
|
|
172
172
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
173
|
-
:param pulumi.Input[str] accelerator_id: The ID of the Global Accelerator instance
|
|
174
|
-
:param pulumi.Input[str] bandwidth_package_id: The ID of the
|
|
173
|
+
:param pulumi.Input[str] accelerator_id: The ID of the Global Accelerator instance.
|
|
174
|
+
:param pulumi.Input[str] bandwidth_package_id: The ID of the Bandwidth Package. **NOTE:** From version 1.192.0, `bandwidth_package_id` can be modified.
|
|
175
175
|
"""
|
|
176
176
|
...
|
|
177
177
|
@overload
|
|
@@ -194,28 +194,28 @@ class BandwidthPackageAttachment(pulumi.CustomResource):
|
|
|
194
194
|
import pulumi
|
|
195
195
|
import pulumi_alicloud as alicloud
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
default = alicloud.ga.Accelerator("default",
|
|
198
198
|
duration=1,
|
|
199
199
|
auto_use_coupon=True,
|
|
200
200
|
spec="1")
|
|
201
|
-
|
|
202
|
-
bandwidth=
|
|
201
|
+
default_bandwidth_package = alicloud.ga.BandwidthPackage("default",
|
|
202
|
+
bandwidth=100,
|
|
203
203
|
type="Basic",
|
|
204
204
|
bandwidth_type="Basic",
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
payment_type="PayAsYouGo",
|
|
206
|
+
billing_type="PayBy95",
|
|
207
207
|
ratio=30)
|
|
208
|
-
|
|
209
|
-
accelerator_id=
|
|
210
|
-
bandwidth_package_id=
|
|
208
|
+
default_bandwidth_package_attachment = alicloud.ga.BandwidthPackageAttachment("default",
|
|
209
|
+
accelerator_id=default.id,
|
|
210
|
+
bandwidth_package_id=default_bandwidth_package.id)
|
|
211
211
|
```
|
|
212
212
|
|
|
213
213
|
## Import
|
|
214
214
|
|
|
215
|
-
Ga Bandwidth Package Attachment can be imported using the id
|
|
215
|
+
Ga Bandwidth Package Attachment can be imported using the id, e.g.
|
|
216
216
|
|
|
217
217
|
```sh
|
|
218
|
-
$ pulumi import alicloud:ga/bandwidthPackageAttachment:BandwidthPackageAttachment example
|
|
218
|
+
$ pulumi import alicloud:ga/bandwidthPackageAttachment:BandwidthPackageAttachment example <accelerator_id>:<bandwidth_package_id>
|
|
219
219
|
```
|
|
220
220
|
|
|
221
221
|
:param str resource_name: The name of the resource.
|
|
@@ -273,9 +273,9 @@ class BandwidthPackageAttachment(pulumi.CustomResource):
|
|
|
273
273
|
:param str resource_name: The unique name of the resulting resource.
|
|
274
274
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
275
275
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
276
|
-
:param pulumi.Input[str] accelerator_id: The ID of the Global Accelerator instance
|
|
276
|
+
:param pulumi.Input[str] accelerator_id: The ID of the Global Accelerator instance.
|
|
277
277
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] accelerators: Accelerators bound with current Bandwidth Package.
|
|
278
|
-
:param pulumi.Input[str] bandwidth_package_id: The ID of the
|
|
278
|
+
:param pulumi.Input[str] bandwidth_package_id: The ID of the Bandwidth Package. **NOTE:** From version 1.192.0, `bandwidth_package_id` can be modified.
|
|
279
279
|
:param pulumi.Input[str] status: State of Bandwidth Package.
|
|
280
280
|
"""
|
|
281
281
|
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
@@ -292,7 +292,7 @@ class BandwidthPackageAttachment(pulumi.CustomResource):
|
|
|
292
292
|
@pulumi.getter(name="acceleratorId")
|
|
293
293
|
def accelerator_id(self) -> pulumi.Output[str]:
|
|
294
294
|
"""
|
|
295
|
-
The ID of the Global Accelerator instance
|
|
295
|
+
The ID of the Global Accelerator instance.
|
|
296
296
|
"""
|
|
297
297
|
return pulumi.get(self, "accelerator_id")
|
|
298
298
|
|
|
@@ -308,7 +308,7 @@ class BandwidthPackageAttachment(pulumi.CustomResource):
|
|
|
308
308
|
@pulumi.getter(name="bandwidthPackageId")
|
|
309
309
|
def bandwidth_package_id(self) -> pulumi.Output[str]:
|
|
310
310
|
"""
|
|
311
|
-
The ID of the
|
|
311
|
+
The ID of the Bandwidth Package. **NOTE:** From version 1.192.0, `bandwidth_package_id` can be modified.
|
|
312
312
|
"""
|
|
313
313
|
return pulumi.get(self, "bandwidth_package_id")
|
|
314
314
|
|