pulumi-alicloud 3.56.0a1717132537__py3-none-any.whl → 3.56.0a1717175543__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 +96 -0
- pulumi_alicloud/alikafka/instance.py +47 -0
- pulumi_alicloud/apigateway/__init__.py +1 -0
- pulumi_alicloud/apigateway/_inputs.py +40 -0
- pulumi_alicloud/apigateway/access_control_list.py +322 -0
- pulumi_alicloud/apigateway/get_apis.py +96 -23
- pulumi_alicloud/apigateway/outputs.py +72 -14
- pulumi_alicloud/apigateway/plugin.py +225 -73
- pulumi_alicloud/cen/get_transit_router_vpc_attachments.py +171 -18
- pulumi_alicloud/cen/outputs.py +51 -22
- pulumi_alicloud/cloudfirewall/__init__.py +2 -0
- pulumi_alicloud/cloudfirewall/_inputs.py +68 -0
- pulumi_alicloud/cloudfirewall/nat_firewall.py +811 -0
- pulumi_alicloud/cloudfirewall/nat_firewall_control_policy.py +1589 -0
- pulumi_alicloud/cloudfirewall/outputs.py +75 -0
- pulumi_alicloud/ecs/security_group_rule.py +75 -53
- pulumi_alicloud/ess/_inputs.py +56 -0
- pulumi_alicloud/ess/outputs.py +61 -0
- pulumi_alicloud/ess/scaling_group.py +101 -7
- pulumi_alicloud/kms/key.py +251 -333
- pulumi_alicloud/kms/secret.py +210 -125
- pulumi_alicloud/nas/__init__.py +2 -0
- pulumi_alicloud/nas/_inputs.py +126 -0
- pulumi_alicloud/nas/access_point.py +743 -0
- pulumi_alicloud/nas/outputs.py +128 -0
- pulumi_alicloud/oss/__init__.py +7 -0
- pulumi_alicloud/oss/account_public_access_block.py +200 -0
- pulumi_alicloud/oss/bucket_access_monitor.py +206 -0
- pulumi_alicloud/oss/bucket_data_redundancy_transition.py +290 -0
- pulumi_alicloud/oss/bucket_meta_query.py +270 -0
- pulumi_alicloud/oss/bucket_public_access_block.py +258 -0
- pulumi_alicloud/oss/bucket_transfer_acceleration.py +205 -0
- pulumi_alicloud/oss/bucket_user_defined_log_fields.py +328 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/redis/tair_instance.py +188 -0
- pulumi_alicloud/sls/__init__.py +1 -0
- pulumi_alicloud/sls/_inputs.py +384 -0
- pulumi_alicloud/sls/outputs.py +358 -0
- pulumi_alicloud/sls/scheduled_sql.py +523 -0
- {pulumi_alicloud-3.56.0a1717132537.dist-info → pulumi_alicloud-3.56.0a1717175543.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.56.0a1717132537.dist-info → pulumi_alicloud-3.56.0a1717175543.dist-info}/RECORD +43 -30
- {pulumi_alicloud-3.56.0a1717132537.dist-info → pulumi_alicloud-3.56.0a1717175543.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.56.0a1717132537.dist-info → pulumi_alicloud-3.56.0a1717175543.dist-info}/top_level.txt +0 -0
|
@@ -18,6 +18,7 @@ class ScalingGroupArgs:
|
|
|
18
18
|
def __init__(__self__, *,
|
|
19
19
|
max_size: pulumi.Input[int],
|
|
20
20
|
min_size: pulumi.Input[int],
|
|
21
|
+
alb_server_groups: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupAlbServerGroupArgs']]]] = None,
|
|
21
22
|
db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
22
23
|
default_cooldown: Optional[pulumi.Input[int]] = None,
|
|
23
24
|
desired_capacity: Optional[pulumi.Input[int]] = None,
|
|
@@ -33,6 +34,7 @@ class ScalingGroupArgs:
|
|
|
33
34
|
on_demand_percentage_above_base_capacity: Optional[pulumi.Input[int]] = None,
|
|
34
35
|
protected_instances: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
35
36
|
removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
37
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
36
38
|
scaling_group_name: Optional[pulumi.Input[str]] = None,
|
|
37
39
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
38
40
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
@@ -45,6 +47,7 @@ class ScalingGroupArgs:
|
|
|
45
47
|
**NOTE:** From version 1.204.1, `max_size` can be set to `2000`.
|
|
46
48
|
:param pulumi.Input[int] min_size: Minimum number of ECS instances in the scaling group. Value range: [0, 2000].
|
|
47
49
|
**NOTE:** From version 1.204.1, `min_size` can be set to `2000`.
|
|
50
|
+
: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.
|
|
48
51
|
: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.
|
|
49
52
|
- The specified RDS instance must be in running status.
|
|
50
53
|
- The specified RDS instance’s whitelist must have room for more IP addresses.
|
|
@@ -54,7 +57,7 @@ class ScalingGroupArgs:
|
|
|
54
57
|
:param pulumi.Input[str] group_type: Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.
|
|
55
58
|
:param pulumi.Input[str] health_check_type: Resource type within scaling group. Optional values: ECS, NONE, LOAD_BALANCER. Default to ECS.
|
|
56
59
|
:param pulumi.Input[str] launch_template_id: Instance launch template ID, scaling group obtains launch configuration from instance launch template, see [Launch Template](https://www.alibabacloud.com/help/doc-detail/73916.html). Creating scaling group from launch template enable group automatically.
|
|
57
|
-
:param pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]] launch_template_overrides: The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature
|
|
60
|
+
:param pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]] launch_template_overrides: The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature. See `launch_template_override` below for details.
|
|
58
61
|
:param pulumi.Input[str] launch_template_version: The version number of the launch template. Valid values are the version number, `Latest`, or `Default`, Default value: `Default`.
|
|
59
62
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] loadbalancer_ids: If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.
|
|
60
63
|
- The Server Load Balancer instance must be enabled.
|
|
@@ -71,6 +74,7 @@ class ScalingGroupArgs:
|
|
|
71
74
|
- NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
|
|
72
75
|
- OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
|
|
73
76
|
- Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
|
|
77
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to add the scaling group.
|
|
74
78
|
: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.
|
|
75
79
|
: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.
|
|
76
80
|
:param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
|
|
@@ -82,6 +86,8 @@ class ScalingGroupArgs:
|
|
|
82
86
|
"""
|
|
83
87
|
pulumi.set(__self__, "max_size", max_size)
|
|
84
88
|
pulumi.set(__self__, "min_size", min_size)
|
|
89
|
+
if alb_server_groups is not None:
|
|
90
|
+
pulumi.set(__self__, "alb_server_groups", alb_server_groups)
|
|
85
91
|
if db_instance_ids is not None:
|
|
86
92
|
pulumi.set(__self__, "db_instance_ids", db_instance_ids)
|
|
87
93
|
if default_cooldown is not None:
|
|
@@ -112,6 +118,8 @@ class ScalingGroupArgs:
|
|
|
112
118
|
pulumi.set(__self__, "protected_instances", protected_instances)
|
|
113
119
|
if removal_policies is not None:
|
|
114
120
|
pulumi.set(__self__, "removal_policies", removal_policies)
|
|
121
|
+
if resource_group_id is not None:
|
|
122
|
+
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
115
123
|
if scaling_group_name is not None:
|
|
116
124
|
pulumi.set(__self__, "scaling_group_name", scaling_group_name)
|
|
117
125
|
if spot_instance_pools is not None:
|
|
@@ -154,6 +162,18 @@ class ScalingGroupArgs:
|
|
|
154
162
|
def min_size(self, value: pulumi.Input[int]):
|
|
155
163
|
pulumi.set(self, "min_size", value)
|
|
156
164
|
|
|
165
|
+
@property
|
|
166
|
+
@pulumi.getter(name="albServerGroups")
|
|
167
|
+
def alb_server_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupAlbServerGroupArgs']]]]:
|
|
168
|
+
"""
|
|
169
|
+
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.
|
|
170
|
+
"""
|
|
171
|
+
return pulumi.get(self, "alb_server_groups")
|
|
172
|
+
|
|
173
|
+
@alb_server_groups.setter
|
|
174
|
+
def alb_server_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupAlbServerGroupArgs']]]]):
|
|
175
|
+
pulumi.set(self, "alb_server_groups", value)
|
|
176
|
+
|
|
157
177
|
@property
|
|
158
178
|
@pulumi.getter(name="dbInstanceIds")
|
|
159
179
|
def db_instance_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
@@ -244,7 +264,7 @@ class ScalingGroupArgs:
|
|
|
244
264
|
@pulumi.getter(name="launchTemplateOverrides")
|
|
245
265
|
def launch_template_overrides(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]]]:
|
|
246
266
|
"""
|
|
247
|
-
The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature
|
|
267
|
+
The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature. See `launch_template_override` below for details.
|
|
248
268
|
"""
|
|
249
269
|
return pulumi.get(self, "launch_template_overrides")
|
|
250
270
|
|
|
@@ -345,6 +365,18 @@ class ScalingGroupArgs:
|
|
|
345
365
|
def removal_policies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
346
366
|
pulumi.set(self, "removal_policies", value)
|
|
347
367
|
|
|
368
|
+
@property
|
|
369
|
+
@pulumi.getter(name="resourceGroupId")
|
|
370
|
+
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
371
|
+
"""
|
|
372
|
+
The ID of the resource group to which you want to add the scaling group.
|
|
373
|
+
"""
|
|
374
|
+
return pulumi.get(self, "resource_group_id")
|
|
375
|
+
|
|
376
|
+
@resource_group_id.setter
|
|
377
|
+
def resource_group_id(self, value: Optional[pulumi.Input[str]]):
|
|
378
|
+
pulumi.set(self, "resource_group_id", value)
|
|
379
|
+
|
|
348
380
|
@property
|
|
349
381
|
@pulumi.getter(name="scalingGroupName")
|
|
350
382
|
def scaling_group_name(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -426,6 +458,7 @@ class ScalingGroupArgs:
|
|
|
426
458
|
@pulumi.input_type
|
|
427
459
|
class _ScalingGroupState:
|
|
428
460
|
def __init__(__self__, *,
|
|
461
|
+
alb_server_groups: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupAlbServerGroupArgs']]]] = None,
|
|
429
462
|
db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
430
463
|
default_cooldown: Optional[pulumi.Input[int]] = None,
|
|
431
464
|
desired_capacity: Optional[pulumi.Input[int]] = None,
|
|
@@ -443,6 +476,7 @@ class _ScalingGroupState:
|
|
|
443
476
|
on_demand_percentage_above_base_capacity: Optional[pulumi.Input[int]] = None,
|
|
444
477
|
protected_instances: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
445
478
|
removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
479
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
446
480
|
scaling_group_name: Optional[pulumi.Input[str]] = None,
|
|
447
481
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
448
482
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
@@ -451,6 +485,7 @@ class _ScalingGroupState:
|
|
|
451
485
|
vswitch_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None):
|
|
452
486
|
"""
|
|
453
487
|
Input properties used for looking up and filtering ScalingGroup resources.
|
|
488
|
+
: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.
|
|
454
489
|
: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.
|
|
455
490
|
- The specified RDS instance must be in running status.
|
|
456
491
|
- The specified RDS instance’s whitelist must have room for more IP addresses.
|
|
@@ -460,7 +495,7 @@ class _ScalingGroupState:
|
|
|
460
495
|
:param pulumi.Input[str] group_type: Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.
|
|
461
496
|
:param pulumi.Input[str] health_check_type: Resource type within scaling group. Optional values: ECS, NONE, LOAD_BALANCER. Default to ECS.
|
|
462
497
|
:param pulumi.Input[str] launch_template_id: Instance launch template ID, scaling group obtains launch configuration from instance launch template, see [Launch Template](https://www.alibabacloud.com/help/doc-detail/73916.html). Creating scaling group from launch template enable group automatically.
|
|
463
|
-
:param pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]] launch_template_overrides: The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature
|
|
498
|
+
:param pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]] launch_template_overrides: The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature. See `launch_template_override` below for details.
|
|
464
499
|
:param pulumi.Input[str] launch_template_version: The version number of the launch template. Valid values are the version number, `Latest`, or `Default`, Default value: `Default`.
|
|
465
500
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] loadbalancer_ids: If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.
|
|
466
501
|
- The Server Load Balancer instance must be enabled.
|
|
@@ -481,6 +516,7 @@ class _ScalingGroupState:
|
|
|
481
516
|
- NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
|
|
482
517
|
- OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
|
|
483
518
|
- Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
|
|
519
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to add the scaling group.
|
|
484
520
|
: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.
|
|
485
521
|
: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.
|
|
486
522
|
:param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
|
|
@@ -490,6 +526,8 @@ class _ScalingGroupState:
|
|
|
490
526
|
:param pulumi.Input[str] vswitch_id: It has been deprecated from version 1.7.1 and new field 'vswitch_ids' replaces it.
|
|
491
527
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] vswitch_ids: List of virtual switch IDs in which the ecs instances to be launched.
|
|
492
528
|
"""
|
|
529
|
+
if alb_server_groups is not None:
|
|
530
|
+
pulumi.set(__self__, "alb_server_groups", alb_server_groups)
|
|
493
531
|
if db_instance_ids is not None:
|
|
494
532
|
pulumi.set(__self__, "db_instance_ids", db_instance_ids)
|
|
495
533
|
if default_cooldown is not None:
|
|
@@ -524,6 +562,8 @@ class _ScalingGroupState:
|
|
|
524
562
|
pulumi.set(__self__, "protected_instances", protected_instances)
|
|
525
563
|
if removal_policies is not None:
|
|
526
564
|
pulumi.set(__self__, "removal_policies", removal_policies)
|
|
565
|
+
if resource_group_id is not None:
|
|
566
|
+
pulumi.set(__self__, "resource_group_id", resource_group_id)
|
|
527
567
|
if scaling_group_name is not None:
|
|
528
568
|
pulumi.set(__self__, "scaling_group_name", scaling_group_name)
|
|
529
569
|
if spot_instance_pools is not None:
|
|
@@ -540,6 +580,18 @@ class _ScalingGroupState:
|
|
|
540
580
|
if vswitch_ids is not None:
|
|
541
581
|
pulumi.set(__self__, "vswitch_ids", vswitch_ids)
|
|
542
582
|
|
|
583
|
+
@property
|
|
584
|
+
@pulumi.getter(name="albServerGroups")
|
|
585
|
+
def alb_server_groups(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupAlbServerGroupArgs']]]]:
|
|
586
|
+
"""
|
|
587
|
+
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.
|
|
588
|
+
"""
|
|
589
|
+
return pulumi.get(self, "alb_server_groups")
|
|
590
|
+
|
|
591
|
+
@alb_server_groups.setter
|
|
592
|
+
def alb_server_groups(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupAlbServerGroupArgs']]]]):
|
|
593
|
+
pulumi.set(self, "alb_server_groups", value)
|
|
594
|
+
|
|
543
595
|
@property
|
|
544
596
|
@pulumi.getter(name="dbInstanceIds")
|
|
545
597
|
def db_instance_ids(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
|
@@ -630,7 +682,7 @@ class _ScalingGroupState:
|
|
|
630
682
|
@pulumi.getter(name="launchTemplateOverrides")
|
|
631
683
|
def launch_template_overrides(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ScalingGroupLaunchTemplateOverrideArgs']]]]:
|
|
632
684
|
"""
|
|
633
|
-
The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature
|
|
685
|
+
The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature. See `launch_template_override` below for details.
|
|
634
686
|
"""
|
|
635
687
|
return pulumi.get(self, "launch_template_overrides")
|
|
636
688
|
|
|
@@ -757,6 +809,18 @@ class _ScalingGroupState:
|
|
|
757
809
|
def removal_policies(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
|
758
810
|
pulumi.set(self, "removal_policies", value)
|
|
759
811
|
|
|
812
|
+
@property
|
|
813
|
+
@pulumi.getter(name="resourceGroupId")
|
|
814
|
+
def resource_group_id(self) -> Optional[pulumi.Input[str]]:
|
|
815
|
+
"""
|
|
816
|
+
The ID of the resource group to which you want to add the scaling group.
|
|
817
|
+
"""
|
|
818
|
+
return pulumi.get(self, "resource_group_id")
|
|
819
|
+
|
|
820
|
+
@resource_group_id.setter
|
|
821
|
+
def resource_group_id(self, value: Optional[pulumi.Input[str]]):
|
|
822
|
+
pulumi.set(self, "resource_group_id", value)
|
|
823
|
+
|
|
760
824
|
@property
|
|
761
825
|
@pulumi.getter(name="scalingGroupName")
|
|
762
826
|
def scaling_group_name(self) -> Optional[pulumi.Input[str]]:
|
|
@@ -840,6 +904,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
840
904
|
def __init__(__self__,
|
|
841
905
|
resource_name: str,
|
|
842
906
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
907
|
+
alb_server_groups: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupAlbServerGroupArgs']]]]] = None,
|
|
843
908
|
db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
844
909
|
default_cooldown: Optional[pulumi.Input[int]] = None,
|
|
845
910
|
desired_capacity: Optional[pulumi.Input[int]] = None,
|
|
@@ -857,6 +922,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
857
922
|
on_demand_percentage_above_base_capacity: Optional[pulumi.Input[int]] = None,
|
|
858
923
|
protected_instances: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
859
924
|
removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
925
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
860
926
|
scaling_group_name: Optional[pulumi.Input[str]] = None,
|
|
861
927
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
862
928
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
@@ -953,6 +1019,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
953
1019
|
|
|
954
1020
|
:param str resource_name: The name of the resource.
|
|
955
1021
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1022
|
+
: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.
|
|
956
1023
|
: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.
|
|
957
1024
|
- The specified RDS instance must be in running status.
|
|
958
1025
|
- The specified RDS instance’s whitelist must have room for more IP addresses.
|
|
@@ -962,7 +1029,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
962
1029
|
:param pulumi.Input[str] group_type: Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.
|
|
963
1030
|
:param pulumi.Input[str] health_check_type: Resource type within scaling group. Optional values: ECS, NONE, LOAD_BALANCER. Default to ECS.
|
|
964
1031
|
:param pulumi.Input[str] launch_template_id: Instance launch template ID, scaling group obtains launch configuration from instance launch template, see [Launch Template](https://www.alibabacloud.com/help/doc-detail/73916.html). Creating scaling group from launch template enable group automatically.
|
|
965
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupLaunchTemplateOverrideArgs']]]] launch_template_overrides: The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature
|
|
1032
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupLaunchTemplateOverrideArgs']]]] launch_template_overrides: The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature. See `launch_template_override` below for details.
|
|
966
1033
|
:param pulumi.Input[str] launch_template_version: The version number of the launch template. Valid values are the version number, `Latest`, or `Default`, Default value: `Default`.
|
|
967
1034
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] loadbalancer_ids: If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.
|
|
968
1035
|
- The Server Load Balancer instance must be enabled.
|
|
@@ -983,6 +1050,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
983
1050
|
- NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
|
|
984
1051
|
- OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
|
|
985
1052
|
- Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
|
|
1053
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to add the scaling group.
|
|
986
1054
|
: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.
|
|
987
1055
|
: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.
|
|
988
1056
|
:param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
|
|
@@ -1100,6 +1168,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1100
1168
|
def _internal_init(__self__,
|
|
1101
1169
|
resource_name: str,
|
|
1102
1170
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1171
|
+
alb_server_groups: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupAlbServerGroupArgs']]]]] = None,
|
|
1103
1172
|
db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1104
1173
|
default_cooldown: Optional[pulumi.Input[int]] = None,
|
|
1105
1174
|
desired_capacity: Optional[pulumi.Input[int]] = None,
|
|
@@ -1117,6 +1186,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1117
1186
|
on_demand_percentage_above_base_capacity: Optional[pulumi.Input[int]] = None,
|
|
1118
1187
|
protected_instances: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1119
1188
|
removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1189
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
1120
1190
|
scaling_group_name: Optional[pulumi.Input[str]] = None,
|
|
1121
1191
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
1122
1192
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
@@ -1132,6 +1202,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1132
1202
|
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
1133
1203
|
__props__ = ScalingGroupArgs.__new__(ScalingGroupArgs)
|
|
1134
1204
|
|
|
1205
|
+
__props__.__dict__["alb_server_groups"] = alb_server_groups
|
|
1135
1206
|
__props__.__dict__["db_instance_ids"] = db_instance_ids
|
|
1136
1207
|
__props__.__dict__["default_cooldown"] = default_cooldown
|
|
1137
1208
|
__props__.__dict__["desired_capacity"] = desired_capacity
|
|
@@ -1153,6 +1224,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1153
1224
|
__props__.__dict__["on_demand_percentage_above_base_capacity"] = on_demand_percentage_above_base_capacity
|
|
1154
1225
|
__props__.__dict__["protected_instances"] = protected_instances
|
|
1155
1226
|
__props__.__dict__["removal_policies"] = removal_policies
|
|
1227
|
+
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
1156
1228
|
__props__.__dict__["scaling_group_name"] = scaling_group_name
|
|
1157
1229
|
__props__.__dict__["spot_instance_pools"] = spot_instance_pools
|
|
1158
1230
|
__props__.__dict__["spot_instance_remedy"] = spot_instance_remedy
|
|
@@ -1169,6 +1241,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1169
1241
|
def get(resource_name: str,
|
|
1170
1242
|
id: pulumi.Input[str],
|
|
1171
1243
|
opts: Optional[pulumi.ResourceOptions] = None,
|
|
1244
|
+
alb_server_groups: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupAlbServerGroupArgs']]]]] = None,
|
|
1172
1245
|
db_instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1173
1246
|
default_cooldown: Optional[pulumi.Input[int]] = None,
|
|
1174
1247
|
desired_capacity: Optional[pulumi.Input[int]] = None,
|
|
@@ -1186,6 +1259,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1186
1259
|
on_demand_percentage_above_base_capacity: Optional[pulumi.Input[int]] = None,
|
|
1187
1260
|
protected_instances: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1188
1261
|
removal_policies: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
|
1262
|
+
resource_group_id: Optional[pulumi.Input[str]] = None,
|
|
1189
1263
|
scaling_group_name: Optional[pulumi.Input[str]] = None,
|
|
1190
1264
|
spot_instance_pools: Optional[pulumi.Input[int]] = None,
|
|
1191
1265
|
spot_instance_remedy: Optional[pulumi.Input[bool]] = None,
|
|
@@ -1199,6 +1273,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1199
1273
|
:param str resource_name: The unique name of the resulting resource.
|
|
1200
1274
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
1201
1275
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
1276
|
+
: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.
|
|
1202
1277
|
: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.
|
|
1203
1278
|
- The specified RDS instance must be in running status.
|
|
1204
1279
|
- The specified RDS instance’s whitelist must have room for more IP addresses.
|
|
@@ -1208,7 +1283,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1208
1283
|
:param pulumi.Input[str] group_type: Resource type within scaling group. Optional values: ECS, ECI. Default to ECS.
|
|
1209
1284
|
:param pulumi.Input[str] health_check_type: Resource type within scaling group. Optional values: ECS, NONE, LOAD_BALANCER. Default to ECS.
|
|
1210
1285
|
:param pulumi.Input[str] launch_template_id: Instance launch template ID, scaling group obtains launch configuration from instance launch template, see [Launch Template](https://www.alibabacloud.com/help/doc-detail/73916.html). Creating scaling group from launch template enable group automatically.
|
|
1211
|
-
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupLaunchTemplateOverrideArgs']]]] launch_template_overrides: The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature
|
|
1286
|
+
:param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ScalingGroupLaunchTemplateOverrideArgs']]]] launch_template_overrides: The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature. See `launch_template_override` below for details.
|
|
1212
1287
|
:param pulumi.Input[str] launch_template_version: The version number of the launch template. Valid values are the version number, `Latest`, or `Default`, Default value: `Default`.
|
|
1213
1288
|
:param pulumi.Input[Sequence[pulumi.Input[str]]] loadbalancer_ids: If a Server Load Balancer instance is specified in the scaling group, the scaling group automatically attaches its ECS instances to the Server Load Balancer instance.
|
|
1214
1289
|
- The Server Load Balancer instance must be enabled.
|
|
@@ -1229,6 +1304,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1229
1304
|
- NewestInstance: removes the ECS instance that is added to the scaling group at the latest point in time.
|
|
1230
1305
|
- OldestScalingConfiguration: removes the ECS instance that is created based on the earliest scaling configuration.
|
|
1231
1306
|
- Default values: Default value of RemovalPolicy.1: OldestScalingConfiguration. Default value of RemovalPolicy.2: OldestInstance.
|
|
1307
|
+
:param pulumi.Input[str] resource_group_id: The ID of the resource group to which you want to add the scaling group.
|
|
1232
1308
|
: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.
|
|
1233
1309
|
: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.
|
|
1234
1310
|
:param pulumi.Input[bool] spot_instance_remedy: Whether to replace spot instances with newly created spot/onDemand instance when receive a spot recycling message.
|
|
@@ -1242,6 +1318,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1242
1318
|
|
|
1243
1319
|
__props__ = _ScalingGroupState.__new__(_ScalingGroupState)
|
|
1244
1320
|
|
|
1321
|
+
__props__.__dict__["alb_server_groups"] = alb_server_groups
|
|
1245
1322
|
__props__.__dict__["db_instance_ids"] = db_instance_ids
|
|
1246
1323
|
__props__.__dict__["default_cooldown"] = default_cooldown
|
|
1247
1324
|
__props__.__dict__["desired_capacity"] = desired_capacity
|
|
@@ -1259,6 +1336,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1259
1336
|
__props__.__dict__["on_demand_percentage_above_base_capacity"] = on_demand_percentage_above_base_capacity
|
|
1260
1337
|
__props__.__dict__["protected_instances"] = protected_instances
|
|
1261
1338
|
__props__.__dict__["removal_policies"] = removal_policies
|
|
1339
|
+
__props__.__dict__["resource_group_id"] = resource_group_id
|
|
1262
1340
|
__props__.__dict__["scaling_group_name"] = scaling_group_name
|
|
1263
1341
|
__props__.__dict__["spot_instance_pools"] = spot_instance_pools
|
|
1264
1342
|
__props__.__dict__["spot_instance_remedy"] = spot_instance_remedy
|
|
@@ -1267,6 +1345,14 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1267
1345
|
__props__.__dict__["vswitch_ids"] = vswitch_ids
|
|
1268
1346
|
return ScalingGroup(resource_name, opts=opts, __props__=__props__)
|
|
1269
1347
|
|
|
1348
|
+
@property
|
|
1349
|
+
@pulumi.getter(name="albServerGroups")
|
|
1350
|
+
def alb_server_groups(self) -> pulumi.Output[Optional[Sequence['outputs.ScalingGroupAlbServerGroup']]]:
|
|
1351
|
+
"""
|
|
1352
|
+
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.
|
|
1353
|
+
"""
|
|
1354
|
+
return pulumi.get(self, "alb_server_groups")
|
|
1355
|
+
|
|
1270
1356
|
@property
|
|
1271
1357
|
@pulumi.getter(name="dbInstanceIds")
|
|
1272
1358
|
def db_instance_ids(self) -> pulumi.Output[Optional[Sequence[str]]]:
|
|
@@ -1329,7 +1415,7 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1329
1415
|
@pulumi.getter(name="launchTemplateOverrides")
|
|
1330
1416
|
def launch_template_overrides(self) -> pulumi.Output[Optional[Sequence['outputs.ScalingGroupLaunchTemplateOverride']]]:
|
|
1331
1417
|
"""
|
|
1332
|
-
The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature
|
|
1418
|
+
The details of the instance types that are specified by using the Extend Instance Type of Launch Template feature. See `launch_template_override` below for details.
|
|
1333
1419
|
"""
|
|
1334
1420
|
return pulumi.get(self, "launch_template_overrides")
|
|
1335
1421
|
|
|
@@ -1416,6 +1502,14 @@ class ScalingGroup(pulumi.CustomResource):
|
|
|
1416
1502
|
"""
|
|
1417
1503
|
return pulumi.get(self, "removal_policies")
|
|
1418
1504
|
|
|
1505
|
+
@property
|
|
1506
|
+
@pulumi.getter(name="resourceGroupId")
|
|
1507
|
+
def resource_group_id(self) -> pulumi.Output[str]:
|
|
1508
|
+
"""
|
|
1509
|
+
The ID of the resource group to which you want to add the scaling group.
|
|
1510
|
+
"""
|
|
1511
|
+
return pulumi.get(self, "resource_group_id")
|
|
1512
|
+
|
|
1419
1513
|
@property
|
|
1420
1514
|
@pulumi.getter(name="scalingGroupName")
|
|
1421
1515
|
def scaling_group_name(self) -> pulumi.Output[Optional[str]]:
|