pulumi-alicloud 3.87.0a1760678219__py3-none-any.whl → 3.87.0a1760759066__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 +24 -0
- pulumi_alicloud/adb/resource_group.py +463 -3
- pulumi_alicloud/cloudsso/__init__.py +1 -0
- pulumi_alicloud/cloudsso/get_user_provisioning_events.py +226 -0
- pulumi_alicloud/cloudsso/outputs.py +228 -0
- pulumi_alicloud/cs/managed_kubernetes.py +6 -2
- pulumi_alicloud/ddos/domain_resource.py +89 -0
- pulumi_alicloud/ecs/elasticity_assurance.py +279 -20
- pulumi_alicloud/eflo/node.py +153 -15
- pulumi_alicloud/esa/__init__.py +1 -0
- pulumi_alicloud/esa/_inputs.py +2152 -0
- pulumi_alicloud/esa/outputs.py +1599 -0
- pulumi_alicloud/esa/waf_rule.py +510 -0
- pulumi_alicloud/ess/__init__.py +1 -0
- pulumi_alicloud/ess/_inputs.py +256 -0
- pulumi_alicloud/ess/instance_refresh.py +760 -0
- pulumi_alicloud/ess/outputs.py +203 -0
- pulumi_alicloud/expressconnect/traffic_qos.py +137 -31
- pulumi_alicloud/expressconnect/traffic_qos_queue.py +91 -66
- pulumi_alicloud/expressconnect/traffic_qos_rule.py +307 -261
- pulumi_alicloud/expressconnect/vbr_pconn_association.py +105 -59
- pulumi_alicloud/kvstore/account.py +14 -14
- pulumi_alicloud/log/_inputs.py +29 -9
- pulumi_alicloud/log/etl.py +56 -9
- pulumi_alicloud/log/outputs.py +18 -6
- pulumi_alicloud/polardb/__init__.py +1 -0
- pulumi_alicloud/polardb/zonal_db_cluster.py +1255 -0
- pulumi_alicloud/pulumi-plugin.json +1 -1
- pulumi_alicloud/resourcemanager/_inputs.py +54 -0
- pulumi_alicloud/resourcemanager/outputs.py +51 -0
- pulumi_alicloud/resourcemanager/resource_share.py +341 -11
- pulumi_alicloud/vpc/bgp_group.py +250 -53
- pulumi_alicloud/vpc/common_bandwith_package_attachment.py +30 -14
- pulumi_alicloud/vpc/get_enhanced_nat_available_zones.py +3 -3
- pulumi_alicloud/vpc/vbr_ha.py +127 -46
- {pulumi_alicloud-3.87.0a1760678219.dist-info → pulumi_alicloud-3.87.0a1760759066.dist-info}/METADATA +1 -1
- {pulumi_alicloud-3.87.0a1760678219.dist-info → pulumi_alicloud-3.87.0a1760759066.dist-info}/RECORD +39 -35
- {pulumi_alicloud-3.87.0a1760678219.dist-info → pulumi_alicloud-3.87.0a1760759066.dist-info}/WHEEL +0 -0
- {pulumi_alicloud-3.87.0a1760678219.dist-info → pulumi_alicloud-3.87.0a1760759066.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,760 @@
|
|
|
1
|
+
# coding=utf-8
|
|
2
|
+
# *** WARNING: this file was generated by pulumi-language-python. ***
|
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
|
|
5
|
+
import builtins as _builtins
|
|
6
|
+
import warnings
|
|
7
|
+
import sys
|
|
8
|
+
import pulumi
|
|
9
|
+
import pulumi.runtime
|
|
10
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
|
11
|
+
if sys.version_info >= (3, 11):
|
|
12
|
+
from typing import NotRequired, TypedDict, TypeAlias
|
|
13
|
+
else:
|
|
14
|
+
from typing_extensions import NotRequired, TypedDict, TypeAlias
|
|
15
|
+
from .. import _utilities
|
|
16
|
+
from . import outputs
|
|
17
|
+
from ._inputs import *
|
|
18
|
+
|
|
19
|
+
__all__ = ['InstanceRefreshArgs', 'InstanceRefresh']
|
|
20
|
+
|
|
21
|
+
@pulumi.input_type
|
|
22
|
+
class InstanceRefreshArgs:
|
|
23
|
+
def __init__(__self__, *,
|
|
24
|
+
scaling_group_id: pulumi.Input[_builtins.str],
|
|
25
|
+
checkpoint_pause_time: Optional[pulumi.Input[_builtins.int]] = None,
|
|
26
|
+
checkpoints: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshCheckpointArgs']]]] = None,
|
|
27
|
+
desired_configuration_containers: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationContainerArgs']]]] = None,
|
|
28
|
+
desired_configuration_image_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
29
|
+
desired_configuration_launch_template_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
30
|
+
desired_configuration_launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs']]]] = None,
|
|
31
|
+
desired_configuration_launch_template_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
32
|
+
max_healthy_percentage: Optional[pulumi.Input[_builtins.int]] = None,
|
|
33
|
+
min_healthy_percentage: Optional[pulumi.Input[_builtins.int]] = None,
|
|
34
|
+
skip_matching: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
35
|
+
status: Optional[pulumi.Input[_builtins.str]] = None):
|
|
36
|
+
"""
|
|
37
|
+
The set of arguments for constructing a InstanceRefresh resource.
|
|
38
|
+
:param pulumi.Input[_builtins.str] scaling_group_id: The ID of the scaling group.
|
|
39
|
+
:param pulumi.Input[_builtins.int] checkpoint_pause_time: The duration of the pause when the task reaches a checkpoint. Unit: minutes.
|
|
40
|
+
:param pulumi.Input[Sequence[pulumi.Input['InstanceRefreshCheckpointArgs']]] checkpoints: The checkpoints for the refresh task. The task automatically pauses for the duration specified by CheckpointPauseTime when the percentage of new instances reaches a specified value. See `checkpoints` below for details.
|
|
41
|
+
:param pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationContainerArgs']]] desired_configuration_containers: The list of containers in the instance. See `desired_configuration_containers` below for details.
|
|
42
|
+
:param pulumi.Input[_builtins.str] desired_configuration_image_id: The ID of the image file. This is the image resource used for automatic instance creation.
|
|
43
|
+
:param pulumi.Input[_builtins.str] desired_configuration_launch_template_id: The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
|
|
44
|
+
:param pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs']]] desired_configuration_launch_template_overrides: The instance type information in the launch template overrides. See `desired_configuration_launch_template_overrides` below for details.
|
|
45
|
+
:param pulumi.Input[_builtins.str] desired_configuration_launch_template_version: The version of the launch template.
|
|
46
|
+
:param pulumi.Input[_builtins.int] max_healthy_percentage: The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
|
|
47
|
+
:param pulumi.Input[_builtins.int] min_healthy_percentage: The percentage of instances that must be healthy in the scaling group during the instance refresh. The value is a percentage of the scaling group's capacity.
|
|
48
|
+
:param pulumi.Input[_builtins.bool] skip_matching: Indicates whether to skip instances that match the desired configuration.
|
|
49
|
+
:param pulumi.Input[_builtins.str] status: The current status of the instance refresh task. Possible values:
|
|
50
|
+
- Pending: The instance refresh task is created and waiting to be scheduled.
|
|
51
|
+
- InProgress: The instance refresh task is in progress.
|
|
52
|
+
- Paused: The instance refresh task is paused.
|
|
53
|
+
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
|
|
54
|
+
- Failed: The instance refresh task failed.
|
|
55
|
+
- Successful: The instance refresh task was successful.
|
|
56
|
+
- Cancelling: The instance refresh task is being canceled.
|
|
57
|
+
- RollbackInProgress: The instance refresh task is being rolled back.
|
|
58
|
+
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
|
|
59
|
+
- RollbackFailed: The rollback of the instance refresh task failed.
|
|
60
|
+
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
|
|
61
|
+
"""
|
|
62
|
+
pulumi.set(__self__, "scaling_group_id", scaling_group_id)
|
|
63
|
+
if checkpoint_pause_time is not None:
|
|
64
|
+
pulumi.set(__self__, "checkpoint_pause_time", checkpoint_pause_time)
|
|
65
|
+
if checkpoints is not None:
|
|
66
|
+
pulumi.set(__self__, "checkpoints", checkpoints)
|
|
67
|
+
if desired_configuration_containers is not None:
|
|
68
|
+
pulumi.set(__self__, "desired_configuration_containers", desired_configuration_containers)
|
|
69
|
+
if desired_configuration_image_id is not None:
|
|
70
|
+
pulumi.set(__self__, "desired_configuration_image_id", desired_configuration_image_id)
|
|
71
|
+
if desired_configuration_launch_template_id is not None:
|
|
72
|
+
pulumi.set(__self__, "desired_configuration_launch_template_id", desired_configuration_launch_template_id)
|
|
73
|
+
if desired_configuration_launch_template_overrides is not None:
|
|
74
|
+
pulumi.set(__self__, "desired_configuration_launch_template_overrides", desired_configuration_launch_template_overrides)
|
|
75
|
+
if desired_configuration_launch_template_version is not None:
|
|
76
|
+
pulumi.set(__self__, "desired_configuration_launch_template_version", desired_configuration_launch_template_version)
|
|
77
|
+
if max_healthy_percentage is not None:
|
|
78
|
+
pulumi.set(__self__, "max_healthy_percentage", max_healthy_percentage)
|
|
79
|
+
if min_healthy_percentage is not None:
|
|
80
|
+
pulumi.set(__self__, "min_healthy_percentage", min_healthy_percentage)
|
|
81
|
+
if skip_matching is not None:
|
|
82
|
+
pulumi.set(__self__, "skip_matching", skip_matching)
|
|
83
|
+
if status is not None:
|
|
84
|
+
pulumi.set(__self__, "status", status)
|
|
85
|
+
|
|
86
|
+
@_builtins.property
|
|
87
|
+
@pulumi.getter(name="scalingGroupId")
|
|
88
|
+
def scaling_group_id(self) -> pulumi.Input[_builtins.str]:
|
|
89
|
+
"""
|
|
90
|
+
The ID of the scaling group.
|
|
91
|
+
"""
|
|
92
|
+
return pulumi.get(self, "scaling_group_id")
|
|
93
|
+
|
|
94
|
+
@scaling_group_id.setter
|
|
95
|
+
def scaling_group_id(self, value: pulumi.Input[_builtins.str]):
|
|
96
|
+
pulumi.set(self, "scaling_group_id", value)
|
|
97
|
+
|
|
98
|
+
@_builtins.property
|
|
99
|
+
@pulumi.getter(name="checkpointPauseTime")
|
|
100
|
+
def checkpoint_pause_time(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
101
|
+
"""
|
|
102
|
+
The duration of the pause when the task reaches a checkpoint. Unit: minutes.
|
|
103
|
+
"""
|
|
104
|
+
return pulumi.get(self, "checkpoint_pause_time")
|
|
105
|
+
|
|
106
|
+
@checkpoint_pause_time.setter
|
|
107
|
+
def checkpoint_pause_time(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
108
|
+
pulumi.set(self, "checkpoint_pause_time", value)
|
|
109
|
+
|
|
110
|
+
@_builtins.property
|
|
111
|
+
@pulumi.getter
|
|
112
|
+
def checkpoints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshCheckpointArgs']]]]:
|
|
113
|
+
"""
|
|
114
|
+
The checkpoints for the refresh task. The task automatically pauses for the duration specified by CheckpointPauseTime when the percentage of new instances reaches a specified value. See `checkpoints` below for details.
|
|
115
|
+
"""
|
|
116
|
+
return pulumi.get(self, "checkpoints")
|
|
117
|
+
|
|
118
|
+
@checkpoints.setter
|
|
119
|
+
def checkpoints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshCheckpointArgs']]]]):
|
|
120
|
+
pulumi.set(self, "checkpoints", value)
|
|
121
|
+
|
|
122
|
+
@_builtins.property
|
|
123
|
+
@pulumi.getter(name="desiredConfigurationContainers")
|
|
124
|
+
def desired_configuration_containers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationContainerArgs']]]]:
|
|
125
|
+
"""
|
|
126
|
+
The list of containers in the instance. See `desired_configuration_containers` below for details.
|
|
127
|
+
"""
|
|
128
|
+
return pulumi.get(self, "desired_configuration_containers")
|
|
129
|
+
|
|
130
|
+
@desired_configuration_containers.setter
|
|
131
|
+
def desired_configuration_containers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationContainerArgs']]]]):
|
|
132
|
+
pulumi.set(self, "desired_configuration_containers", value)
|
|
133
|
+
|
|
134
|
+
@_builtins.property
|
|
135
|
+
@pulumi.getter(name="desiredConfigurationImageId")
|
|
136
|
+
def desired_configuration_image_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
137
|
+
"""
|
|
138
|
+
The ID of the image file. This is the image resource used for automatic instance creation.
|
|
139
|
+
"""
|
|
140
|
+
return pulumi.get(self, "desired_configuration_image_id")
|
|
141
|
+
|
|
142
|
+
@desired_configuration_image_id.setter
|
|
143
|
+
def desired_configuration_image_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
144
|
+
pulumi.set(self, "desired_configuration_image_id", value)
|
|
145
|
+
|
|
146
|
+
@_builtins.property
|
|
147
|
+
@pulumi.getter(name="desiredConfigurationLaunchTemplateId")
|
|
148
|
+
def desired_configuration_launch_template_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
149
|
+
"""
|
|
150
|
+
The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
|
|
151
|
+
"""
|
|
152
|
+
return pulumi.get(self, "desired_configuration_launch_template_id")
|
|
153
|
+
|
|
154
|
+
@desired_configuration_launch_template_id.setter
|
|
155
|
+
def desired_configuration_launch_template_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
156
|
+
pulumi.set(self, "desired_configuration_launch_template_id", value)
|
|
157
|
+
|
|
158
|
+
@_builtins.property
|
|
159
|
+
@pulumi.getter(name="desiredConfigurationLaunchTemplateOverrides")
|
|
160
|
+
def desired_configuration_launch_template_overrides(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs']]]]:
|
|
161
|
+
"""
|
|
162
|
+
The instance type information in the launch template overrides. See `desired_configuration_launch_template_overrides` below for details.
|
|
163
|
+
"""
|
|
164
|
+
return pulumi.get(self, "desired_configuration_launch_template_overrides")
|
|
165
|
+
|
|
166
|
+
@desired_configuration_launch_template_overrides.setter
|
|
167
|
+
def desired_configuration_launch_template_overrides(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs']]]]):
|
|
168
|
+
pulumi.set(self, "desired_configuration_launch_template_overrides", value)
|
|
169
|
+
|
|
170
|
+
@_builtins.property
|
|
171
|
+
@pulumi.getter(name="desiredConfigurationLaunchTemplateVersion")
|
|
172
|
+
def desired_configuration_launch_template_version(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
173
|
+
"""
|
|
174
|
+
The version of the launch template.
|
|
175
|
+
"""
|
|
176
|
+
return pulumi.get(self, "desired_configuration_launch_template_version")
|
|
177
|
+
|
|
178
|
+
@desired_configuration_launch_template_version.setter
|
|
179
|
+
def desired_configuration_launch_template_version(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
180
|
+
pulumi.set(self, "desired_configuration_launch_template_version", value)
|
|
181
|
+
|
|
182
|
+
@_builtins.property
|
|
183
|
+
@pulumi.getter(name="maxHealthyPercentage")
|
|
184
|
+
def max_healthy_percentage(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
185
|
+
"""
|
|
186
|
+
The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
|
|
187
|
+
"""
|
|
188
|
+
return pulumi.get(self, "max_healthy_percentage")
|
|
189
|
+
|
|
190
|
+
@max_healthy_percentage.setter
|
|
191
|
+
def max_healthy_percentage(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
192
|
+
pulumi.set(self, "max_healthy_percentage", value)
|
|
193
|
+
|
|
194
|
+
@_builtins.property
|
|
195
|
+
@pulumi.getter(name="minHealthyPercentage")
|
|
196
|
+
def min_healthy_percentage(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
197
|
+
"""
|
|
198
|
+
The percentage of instances that must be healthy in the scaling group during the instance refresh. The value is a percentage of the scaling group's capacity.
|
|
199
|
+
"""
|
|
200
|
+
return pulumi.get(self, "min_healthy_percentage")
|
|
201
|
+
|
|
202
|
+
@min_healthy_percentage.setter
|
|
203
|
+
def min_healthy_percentage(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
204
|
+
pulumi.set(self, "min_healthy_percentage", value)
|
|
205
|
+
|
|
206
|
+
@_builtins.property
|
|
207
|
+
@pulumi.getter(name="skipMatching")
|
|
208
|
+
def skip_matching(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
209
|
+
"""
|
|
210
|
+
Indicates whether to skip instances that match the desired configuration.
|
|
211
|
+
"""
|
|
212
|
+
return pulumi.get(self, "skip_matching")
|
|
213
|
+
|
|
214
|
+
@skip_matching.setter
|
|
215
|
+
def skip_matching(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
216
|
+
pulumi.set(self, "skip_matching", value)
|
|
217
|
+
|
|
218
|
+
@_builtins.property
|
|
219
|
+
@pulumi.getter
|
|
220
|
+
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
221
|
+
"""
|
|
222
|
+
The current status of the instance refresh task. Possible values:
|
|
223
|
+
- Pending: The instance refresh task is created and waiting to be scheduled.
|
|
224
|
+
- InProgress: The instance refresh task is in progress.
|
|
225
|
+
- Paused: The instance refresh task is paused.
|
|
226
|
+
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
|
|
227
|
+
- Failed: The instance refresh task failed.
|
|
228
|
+
- Successful: The instance refresh task was successful.
|
|
229
|
+
- Cancelling: The instance refresh task is being canceled.
|
|
230
|
+
- RollbackInProgress: The instance refresh task is being rolled back.
|
|
231
|
+
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
|
|
232
|
+
- RollbackFailed: The rollback of the instance refresh task failed.
|
|
233
|
+
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
|
|
234
|
+
"""
|
|
235
|
+
return pulumi.get(self, "status")
|
|
236
|
+
|
|
237
|
+
@status.setter
|
|
238
|
+
def status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
239
|
+
pulumi.set(self, "status", value)
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
@pulumi.input_type
|
|
243
|
+
class _InstanceRefreshState:
|
|
244
|
+
def __init__(__self__, *,
|
|
245
|
+
checkpoint_pause_time: Optional[pulumi.Input[_builtins.int]] = None,
|
|
246
|
+
checkpoints: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshCheckpointArgs']]]] = None,
|
|
247
|
+
desired_configuration_containers: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationContainerArgs']]]] = None,
|
|
248
|
+
desired_configuration_image_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
249
|
+
desired_configuration_launch_template_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
250
|
+
desired_configuration_launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs']]]] = None,
|
|
251
|
+
desired_configuration_launch_template_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
252
|
+
max_healthy_percentage: Optional[pulumi.Input[_builtins.int]] = None,
|
|
253
|
+
min_healthy_percentage: Optional[pulumi.Input[_builtins.int]] = None,
|
|
254
|
+
scaling_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
255
|
+
skip_matching: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
256
|
+
status: Optional[pulumi.Input[_builtins.str]] = None):
|
|
257
|
+
"""
|
|
258
|
+
Input properties used for looking up and filtering InstanceRefresh resources.
|
|
259
|
+
:param pulumi.Input[_builtins.int] checkpoint_pause_time: The duration of the pause when the task reaches a checkpoint. Unit: minutes.
|
|
260
|
+
:param pulumi.Input[Sequence[pulumi.Input['InstanceRefreshCheckpointArgs']]] checkpoints: The checkpoints for the refresh task. The task automatically pauses for the duration specified by CheckpointPauseTime when the percentage of new instances reaches a specified value. See `checkpoints` below for details.
|
|
261
|
+
:param pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationContainerArgs']]] desired_configuration_containers: The list of containers in the instance. See `desired_configuration_containers` below for details.
|
|
262
|
+
:param pulumi.Input[_builtins.str] desired_configuration_image_id: The ID of the image file. This is the image resource used for automatic instance creation.
|
|
263
|
+
:param pulumi.Input[_builtins.str] desired_configuration_launch_template_id: The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
|
|
264
|
+
:param pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs']]] desired_configuration_launch_template_overrides: The instance type information in the launch template overrides. See `desired_configuration_launch_template_overrides` below for details.
|
|
265
|
+
:param pulumi.Input[_builtins.str] desired_configuration_launch_template_version: The version of the launch template.
|
|
266
|
+
:param pulumi.Input[_builtins.int] max_healthy_percentage: The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
|
|
267
|
+
:param pulumi.Input[_builtins.int] min_healthy_percentage: The percentage of instances that must be healthy in the scaling group during the instance refresh. The value is a percentage of the scaling group's capacity.
|
|
268
|
+
:param pulumi.Input[_builtins.str] scaling_group_id: The ID of the scaling group.
|
|
269
|
+
:param pulumi.Input[_builtins.bool] skip_matching: Indicates whether to skip instances that match the desired configuration.
|
|
270
|
+
:param pulumi.Input[_builtins.str] status: The current status of the instance refresh task. Possible values:
|
|
271
|
+
- Pending: The instance refresh task is created and waiting to be scheduled.
|
|
272
|
+
- InProgress: The instance refresh task is in progress.
|
|
273
|
+
- Paused: The instance refresh task is paused.
|
|
274
|
+
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
|
|
275
|
+
- Failed: The instance refresh task failed.
|
|
276
|
+
- Successful: The instance refresh task was successful.
|
|
277
|
+
- Cancelling: The instance refresh task is being canceled.
|
|
278
|
+
- RollbackInProgress: The instance refresh task is being rolled back.
|
|
279
|
+
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
|
|
280
|
+
- RollbackFailed: The rollback of the instance refresh task failed.
|
|
281
|
+
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
|
|
282
|
+
"""
|
|
283
|
+
if checkpoint_pause_time is not None:
|
|
284
|
+
pulumi.set(__self__, "checkpoint_pause_time", checkpoint_pause_time)
|
|
285
|
+
if checkpoints is not None:
|
|
286
|
+
pulumi.set(__self__, "checkpoints", checkpoints)
|
|
287
|
+
if desired_configuration_containers is not None:
|
|
288
|
+
pulumi.set(__self__, "desired_configuration_containers", desired_configuration_containers)
|
|
289
|
+
if desired_configuration_image_id is not None:
|
|
290
|
+
pulumi.set(__self__, "desired_configuration_image_id", desired_configuration_image_id)
|
|
291
|
+
if desired_configuration_launch_template_id is not None:
|
|
292
|
+
pulumi.set(__self__, "desired_configuration_launch_template_id", desired_configuration_launch_template_id)
|
|
293
|
+
if desired_configuration_launch_template_overrides is not None:
|
|
294
|
+
pulumi.set(__self__, "desired_configuration_launch_template_overrides", desired_configuration_launch_template_overrides)
|
|
295
|
+
if desired_configuration_launch_template_version is not None:
|
|
296
|
+
pulumi.set(__self__, "desired_configuration_launch_template_version", desired_configuration_launch_template_version)
|
|
297
|
+
if max_healthy_percentage is not None:
|
|
298
|
+
pulumi.set(__self__, "max_healthy_percentage", max_healthy_percentage)
|
|
299
|
+
if min_healthy_percentage is not None:
|
|
300
|
+
pulumi.set(__self__, "min_healthy_percentage", min_healthy_percentage)
|
|
301
|
+
if scaling_group_id is not None:
|
|
302
|
+
pulumi.set(__self__, "scaling_group_id", scaling_group_id)
|
|
303
|
+
if skip_matching is not None:
|
|
304
|
+
pulumi.set(__self__, "skip_matching", skip_matching)
|
|
305
|
+
if status is not None:
|
|
306
|
+
pulumi.set(__self__, "status", status)
|
|
307
|
+
|
|
308
|
+
@_builtins.property
|
|
309
|
+
@pulumi.getter(name="checkpointPauseTime")
|
|
310
|
+
def checkpoint_pause_time(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
311
|
+
"""
|
|
312
|
+
The duration of the pause when the task reaches a checkpoint. Unit: minutes.
|
|
313
|
+
"""
|
|
314
|
+
return pulumi.get(self, "checkpoint_pause_time")
|
|
315
|
+
|
|
316
|
+
@checkpoint_pause_time.setter
|
|
317
|
+
def checkpoint_pause_time(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
318
|
+
pulumi.set(self, "checkpoint_pause_time", value)
|
|
319
|
+
|
|
320
|
+
@_builtins.property
|
|
321
|
+
@pulumi.getter
|
|
322
|
+
def checkpoints(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshCheckpointArgs']]]]:
|
|
323
|
+
"""
|
|
324
|
+
The checkpoints for the refresh task. The task automatically pauses for the duration specified by CheckpointPauseTime when the percentage of new instances reaches a specified value. See `checkpoints` below for details.
|
|
325
|
+
"""
|
|
326
|
+
return pulumi.get(self, "checkpoints")
|
|
327
|
+
|
|
328
|
+
@checkpoints.setter
|
|
329
|
+
def checkpoints(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshCheckpointArgs']]]]):
|
|
330
|
+
pulumi.set(self, "checkpoints", value)
|
|
331
|
+
|
|
332
|
+
@_builtins.property
|
|
333
|
+
@pulumi.getter(name="desiredConfigurationContainers")
|
|
334
|
+
def desired_configuration_containers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationContainerArgs']]]]:
|
|
335
|
+
"""
|
|
336
|
+
The list of containers in the instance. See `desired_configuration_containers` below for details.
|
|
337
|
+
"""
|
|
338
|
+
return pulumi.get(self, "desired_configuration_containers")
|
|
339
|
+
|
|
340
|
+
@desired_configuration_containers.setter
|
|
341
|
+
def desired_configuration_containers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationContainerArgs']]]]):
|
|
342
|
+
pulumi.set(self, "desired_configuration_containers", value)
|
|
343
|
+
|
|
344
|
+
@_builtins.property
|
|
345
|
+
@pulumi.getter(name="desiredConfigurationImageId")
|
|
346
|
+
def desired_configuration_image_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
347
|
+
"""
|
|
348
|
+
The ID of the image file. This is the image resource used for automatic instance creation.
|
|
349
|
+
"""
|
|
350
|
+
return pulumi.get(self, "desired_configuration_image_id")
|
|
351
|
+
|
|
352
|
+
@desired_configuration_image_id.setter
|
|
353
|
+
def desired_configuration_image_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
354
|
+
pulumi.set(self, "desired_configuration_image_id", value)
|
|
355
|
+
|
|
356
|
+
@_builtins.property
|
|
357
|
+
@pulumi.getter(name="desiredConfigurationLaunchTemplateId")
|
|
358
|
+
def desired_configuration_launch_template_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
359
|
+
"""
|
|
360
|
+
The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
|
|
361
|
+
"""
|
|
362
|
+
return pulumi.get(self, "desired_configuration_launch_template_id")
|
|
363
|
+
|
|
364
|
+
@desired_configuration_launch_template_id.setter
|
|
365
|
+
def desired_configuration_launch_template_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
366
|
+
pulumi.set(self, "desired_configuration_launch_template_id", value)
|
|
367
|
+
|
|
368
|
+
@_builtins.property
|
|
369
|
+
@pulumi.getter(name="desiredConfigurationLaunchTemplateOverrides")
|
|
370
|
+
def desired_configuration_launch_template_overrides(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs']]]]:
|
|
371
|
+
"""
|
|
372
|
+
The instance type information in the launch template overrides. See `desired_configuration_launch_template_overrides` below for details.
|
|
373
|
+
"""
|
|
374
|
+
return pulumi.get(self, "desired_configuration_launch_template_overrides")
|
|
375
|
+
|
|
376
|
+
@desired_configuration_launch_template_overrides.setter
|
|
377
|
+
def desired_configuration_launch_template_overrides(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs']]]]):
|
|
378
|
+
pulumi.set(self, "desired_configuration_launch_template_overrides", value)
|
|
379
|
+
|
|
380
|
+
@_builtins.property
|
|
381
|
+
@pulumi.getter(name="desiredConfigurationLaunchTemplateVersion")
|
|
382
|
+
def desired_configuration_launch_template_version(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
383
|
+
"""
|
|
384
|
+
The version of the launch template.
|
|
385
|
+
"""
|
|
386
|
+
return pulumi.get(self, "desired_configuration_launch_template_version")
|
|
387
|
+
|
|
388
|
+
@desired_configuration_launch_template_version.setter
|
|
389
|
+
def desired_configuration_launch_template_version(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
390
|
+
pulumi.set(self, "desired_configuration_launch_template_version", value)
|
|
391
|
+
|
|
392
|
+
@_builtins.property
|
|
393
|
+
@pulumi.getter(name="maxHealthyPercentage")
|
|
394
|
+
def max_healthy_percentage(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
395
|
+
"""
|
|
396
|
+
The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
|
|
397
|
+
"""
|
|
398
|
+
return pulumi.get(self, "max_healthy_percentage")
|
|
399
|
+
|
|
400
|
+
@max_healthy_percentage.setter
|
|
401
|
+
def max_healthy_percentage(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
402
|
+
pulumi.set(self, "max_healthy_percentage", value)
|
|
403
|
+
|
|
404
|
+
@_builtins.property
|
|
405
|
+
@pulumi.getter(name="minHealthyPercentage")
|
|
406
|
+
def min_healthy_percentage(self) -> Optional[pulumi.Input[_builtins.int]]:
|
|
407
|
+
"""
|
|
408
|
+
The percentage of instances that must be healthy in the scaling group during the instance refresh. The value is a percentage of the scaling group's capacity.
|
|
409
|
+
"""
|
|
410
|
+
return pulumi.get(self, "min_healthy_percentage")
|
|
411
|
+
|
|
412
|
+
@min_healthy_percentage.setter
|
|
413
|
+
def min_healthy_percentage(self, value: Optional[pulumi.Input[_builtins.int]]):
|
|
414
|
+
pulumi.set(self, "min_healthy_percentage", value)
|
|
415
|
+
|
|
416
|
+
@_builtins.property
|
|
417
|
+
@pulumi.getter(name="scalingGroupId")
|
|
418
|
+
def scaling_group_id(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
419
|
+
"""
|
|
420
|
+
The ID of the scaling group.
|
|
421
|
+
"""
|
|
422
|
+
return pulumi.get(self, "scaling_group_id")
|
|
423
|
+
|
|
424
|
+
@scaling_group_id.setter
|
|
425
|
+
def scaling_group_id(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
426
|
+
pulumi.set(self, "scaling_group_id", value)
|
|
427
|
+
|
|
428
|
+
@_builtins.property
|
|
429
|
+
@pulumi.getter(name="skipMatching")
|
|
430
|
+
def skip_matching(self) -> Optional[pulumi.Input[_builtins.bool]]:
|
|
431
|
+
"""
|
|
432
|
+
Indicates whether to skip instances that match the desired configuration.
|
|
433
|
+
"""
|
|
434
|
+
return pulumi.get(self, "skip_matching")
|
|
435
|
+
|
|
436
|
+
@skip_matching.setter
|
|
437
|
+
def skip_matching(self, value: Optional[pulumi.Input[_builtins.bool]]):
|
|
438
|
+
pulumi.set(self, "skip_matching", value)
|
|
439
|
+
|
|
440
|
+
@_builtins.property
|
|
441
|
+
@pulumi.getter
|
|
442
|
+
def status(self) -> Optional[pulumi.Input[_builtins.str]]:
|
|
443
|
+
"""
|
|
444
|
+
The current status of the instance refresh task. Possible values:
|
|
445
|
+
- Pending: The instance refresh task is created and waiting to be scheduled.
|
|
446
|
+
- InProgress: The instance refresh task is in progress.
|
|
447
|
+
- Paused: The instance refresh task is paused.
|
|
448
|
+
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
|
|
449
|
+
- Failed: The instance refresh task failed.
|
|
450
|
+
- Successful: The instance refresh task was successful.
|
|
451
|
+
- Cancelling: The instance refresh task is being canceled.
|
|
452
|
+
- RollbackInProgress: The instance refresh task is being rolled back.
|
|
453
|
+
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
|
|
454
|
+
- RollbackFailed: The rollback of the instance refresh task failed.
|
|
455
|
+
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
|
|
456
|
+
"""
|
|
457
|
+
return pulumi.get(self, "status")
|
|
458
|
+
|
|
459
|
+
@status.setter
|
|
460
|
+
def status(self, value: Optional[pulumi.Input[_builtins.str]]):
|
|
461
|
+
pulumi.set(self, "status", value)
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
@pulumi.type_token("alicloud:ess/instanceRefresh:InstanceRefresh")
|
|
465
|
+
class InstanceRefresh(pulumi.CustomResource):
|
|
466
|
+
@overload
|
|
467
|
+
def __init__(__self__,
|
|
468
|
+
resource_name: str,
|
|
469
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
470
|
+
checkpoint_pause_time: Optional[pulumi.Input[_builtins.int]] = None,
|
|
471
|
+
checkpoints: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshCheckpointArgs', 'InstanceRefreshCheckpointArgsDict']]]]] = None,
|
|
472
|
+
desired_configuration_containers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshDesiredConfigurationContainerArgs', 'InstanceRefreshDesiredConfigurationContainerArgsDict']]]]] = None,
|
|
473
|
+
desired_configuration_image_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
474
|
+
desired_configuration_launch_template_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
475
|
+
desired_configuration_launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs', 'InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgsDict']]]]] = None,
|
|
476
|
+
desired_configuration_launch_template_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
477
|
+
max_healthy_percentage: Optional[pulumi.Input[_builtins.int]] = None,
|
|
478
|
+
min_healthy_percentage: Optional[pulumi.Input[_builtins.int]] = None,
|
|
479
|
+
scaling_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
480
|
+
skip_matching: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
481
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
482
|
+
__props__=None):
|
|
483
|
+
"""
|
|
484
|
+
## Import
|
|
485
|
+
|
|
486
|
+
ESS instance refresh can be imported using the id, e.g.
|
|
487
|
+
|
|
488
|
+
```sh
|
|
489
|
+
$ pulumi import alicloud:ess/instanceRefresh:InstanceRefresh example ir-abc123456
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
:param str resource_name: The name of the resource.
|
|
493
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
494
|
+
:param pulumi.Input[_builtins.int] checkpoint_pause_time: The duration of the pause when the task reaches a checkpoint. Unit: minutes.
|
|
495
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshCheckpointArgs', 'InstanceRefreshCheckpointArgsDict']]]] checkpoints: The checkpoints for the refresh task. The task automatically pauses for the duration specified by CheckpointPauseTime when the percentage of new instances reaches a specified value. See `checkpoints` below for details.
|
|
496
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshDesiredConfigurationContainerArgs', 'InstanceRefreshDesiredConfigurationContainerArgsDict']]]] desired_configuration_containers: The list of containers in the instance. See `desired_configuration_containers` below for details.
|
|
497
|
+
:param pulumi.Input[_builtins.str] desired_configuration_image_id: The ID of the image file. This is the image resource used for automatic instance creation.
|
|
498
|
+
:param pulumi.Input[_builtins.str] desired_configuration_launch_template_id: The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
|
|
499
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs', 'InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgsDict']]]] desired_configuration_launch_template_overrides: The instance type information in the launch template overrides. See `desired_configuration_launch_template_overrides` below for details.
|
|
500
|
+
:param pulumi.Input[_builtins.str] desired_configuration_launch_template_version: The version of the launch template.
|
|
501
|
+
:param pulumi.Input[_builtins.int] max_healthy_percentage: The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
|
|
502
|
+
:param pulumi.Input[_builtins.int] min_healthy_percentage: The percentage of instances that must be healthy in the scaling group during the instance refresh. The value is a percentage of the scaling group's capacity.
|
|
503
|
+
:param pulumi.Input[_builtins.str] scaling_group_id: The ID of the scaling group.
|
|
504
|
+
:param pulumi.Input[_builtins.bool] skip_matching: Indicates whether to skip instances that match the desired configuration.
|
|
505
|
+
:param pulumi.Input[_builtins.str] status: The current status of the instance refresh task. Possible values:
|
|
506
|
+
- Pending: The instance refresh task is created and waiting to be scheduled.
|
|
507
|
+
- InProgress: The instance refresh task is in progress.
|
|
508
|
+
- Paused: The instance refresh task is paused.
|
|
509
|
+
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
|
|
510
|
+
- Failed: The instance refresh task failed.
|
|
511
|
+
- Successful: The instance refresh task was successful.
|
|
512
|
+
- Cancelling: The instance refresh task is being canceled.
|
|
513
|
+
- RollbackInProgress: The instance refresh task is being rolled back.
|
|
514
|
+
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
|
|
515
|
+
- RollbackFailed: The rollback of the instance refresh task failed.
|
|
516
|
+
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
|
|
517
|
+
"""
|
|
518
|
+
...
|
|
519
|
+
@overload
|
|
520
|
+
def __init__(__self__,
|
|
521
|
+
resource_name: str,
|
|
522
|
+
args: InstanceRefreshArgs,
|
|
523
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
|
524
|
+
"""
|
|
525
|
+
## Import
|
|
526
|
+
|
|
527
|
+
ESS instance refresh can be imported using the id, e.g.
|
|
528
|
+
|
|
529
|
+
```sh
|
|
530
|
+
$ pulumi import alicloud:ess/instanceRefresh:InstanceRefresh example ir-abc123456
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
:param str resource_name: The name of the resource.
|
|
534
|
+
:param InstanceRefreshArgs args: The arguments to use to populate this resource's properties.
|
|
535
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
536
|
+
"""
|
|
537
|
+
...
|
|
538
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
|
539
|
+
resource_args, opts = _utilities.get_resource_args_opts(InstanceRefreshArgs, pulumi.ResourceOptions, *args, **kwargs)
|
|
540
|
+
if resource_args is not None:
|
|
541
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
|
542
|
+
else:
|
|
543
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
|
544
|
+
|
|
545
|
+
def _internal_init(__self__,
|
|
546
|
+
resource_name: str,
|
|
547
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
548
|
+
checkpoint_pause_time: Optional[pulumi.Input[_builtins.int]] = None,
|
|
549
|
+
checkpoints: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshCheckpointArgs', 'InstanceRefreshCheckpointArgsDict']]]]] = None,
|
|
550
|
+
desired_configuration_containers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshDesiredConfigurationContainerArgs', 'InstanceRefreshDesiredConfigurationContainerArgsDict']]]]] = None,
|
|
551
|
+
desired_configuration_image_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
552
|
+
desired_configuration_launch_template_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
553
|
+
desired_configuration_launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs', 'InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgsDict']]]]] = None,
|
|
554
|
+
desired_configuration_launch_template_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
555
|
+
max_healthy_percentage: Optional[pulumi.Input[_builtins.int]] = None,
|
|
556
|
+
min_healthy_percentage: Optional[pulumi.Input[_builtins.int]] = None,
|
|
557
|
+
scaling_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
558
|
+
skip_matching: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
559
|
+
status: Optional[pulumi.Input[_builtins.str]] = None,
|
|
560
|
+
__props__=None):
|
|
561
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
|
562
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
|
563
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
|
564
|
+
if opts.id is None:
|
|
565
|
+
if __props__ is not None:
|
|
566
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
|
567
|
+
__props__ = InstanceRefreshArgs.__new__(InstanceRefreshArgs)
|
|
568
|
+
|
|
569
|
+
__props__.__dict__["checkpoint_pause_time"] = checkpoint_pause_time
|
|
570
|
+
__props__.__dict__["checkpoints"] = checkpoints
|
|
571
|
+
__props__.__dict__["desired_configuration_containers"] = desired_configuration_containers
|
|
572
|
+
__props__.__dict__["desired_configuration_image_id"] = desired_configuration_image_id
|
|
573
|
+
__props__.__dict__["desired_configuration_launch_template_id"] = desired_configuration_launch_template_id
|
|
574
|
+
__props__.__dict__["desired_configuration_launch_template_overrides"] = desired_configuration_launch_template_overrides
|
|
575
|
+
__props__.__dict__["desired_configuration_launch_template_version"] = desired_configuration_launch_template_version
|
|
576
|
+
__props__.__dict__["max_healthy_percentage"] = max_healthy_percentage
|
|
577
|
+
__props__.__dict__["min_healthy_percentage"] = min_healthy_percentage
|
|
578
|
+
if scaling_group_id is None and not opts.urn:
|
|
579
|
+
raise TypeError("Missing required property 'scaling_group_id'")
|
|
580
|
+
__props__.__dict__["scaling_group_id"] = scaling_group_id
|
|
581
|
+
__props__.__dict__["skip_matching"] = skip_matching
|
|
582
|
+
__props__.__dict__["status"] = status
|
|
583
|
+
super(InstanceRefresh, __self__).__init__(
|
|
584
|
+
'alicloud:ess/instanceRefresh:InstanceRefresh',
|
|
585
|
+
resource_name,
|
|
586
|
+
__props__,
|
|
587
|
+
opts)
|
|
588
|
+
|
|
589
|
+
@staticmethod
|
|
590
|
+
def get(resource_name: str,
|
|
591
|
+
id: pulumi.Input[str],
|
|
592
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
|
593
|
+
checkpoint_pause_time: Optional[pulumi.Input[_builtins.int]] = None,
|
|
594
|
+
checkpoints: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshCheckpointArgs', 'InstanceRefreshCheckpointArgsDict']]]]] = None,
|
|
595
|
+
desired_configuration_containers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshDesiredConfigurationContainerArgs', 'InstanceRefreshDesiredConfigurationContainerArgsDict']]]]] = None,
|
|
596
|
+
desired_configuration_image_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
597
|
+
desired_configuration_launch_template_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
598
|
+
desired_configuration_launch_template_overrides: Optional[pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs', 'InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgsDict']]]]] = None,
|
|
599
|
+
desired_configuration_launch_template_version: Optional[pulumi.Input[_builtins.str]] = None,
|
|
600
|
+
max_healthy_percentage: Optional[pulumi.Input[_builtins.int]] = None,
|
|
601
|
+
min_healthy_percentage: Optional[pulumi.Input[_builtins.int]] = None,
|
|
602
|
+
scaling_group_id: Optional[pulumi.Input[_builtins.str]] = None,
|
|
603
|
+
skip_matching: Optional[pulumi.Input[_builtins.bool]] = None,
|
|
604
|
+
status: Optional[pulumi.Input[_builtins.str]] = None) -> 'InstanceRefresh':
|
|
605
|
+
"""
|
|
606
|
+
Get an existing InstanceRefresh resource's state with the given name, id, and optional extra
|
|
607
|
+
properties used to qualify the lookup.
|
|
608
|
+
|
|
609
|
+
:param str resource_name: The unique name of the resulting resource.
|
|
610
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
|
611
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
|
612
|
+
:param pulumi.Input[_builtins.int] checkpoint_pause_time: The duration of the pause when the task reaches a checkpoint. Unit: minutes.
|
|
613
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshCheckpointArgs', 'InstanceRefreshCheckpointArgsDict']]]] checkpoints: The checkpoints for the refresh task. The task automatically pauses for the duration specified by CheckpointPauseTime when the percentage of new instances reaches a specified value. See `checkpoints` below for details.
|
|
614
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshDesiredConfigurationContainerArgs', 'InstanceRefreshDesiredConfigurationContainerArgsDict']]]] desired_configuration_containers: The list of containers in the instance. See `desired_configuration_containers` below for details.
|
|
615
|
+
:param pulumi.Input[_builtins.str] desired_configuration_image_id: The ID of the image file. This is the image resource used for automatic instance creation.
|
|
616
|
+
:param pulumi.Input[_builtins.str] desired_configuration_launch_template_id: The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
|
|
617
|
+
:param pulumi.Input[Sequence[pulumi.Input[Union['InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs', 'InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgsDict']]]] desired_configuration_launch_template_overrides: The instance type information in the launch template overrides. See `desired_configuration_launch_template_overrides` below for details.
|
|
618
|
+
:param pulumi.Input[_builtins.str] desired_configuration_launch_template_version: The version of the launch template.
|
|
619
|
+
:param pulumi.Input[_builtins.int] max_healthy_percentage: The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
|
|
620
|
+
:param pulumi.Input[_builtins.int] min_healthy_percentage: The percentage of instances that must be healthy in the scaling group during the instance refresh. The value is a percentage of the scaling group's capacity.
|
|
621
|
+
:param pulumi.Input[_builtins.str] scaling_group_id: The ID of the scaling group.
|
|
622
|
+
:param pulumi.Input[_builtins.bool] skip_matching: Indicates whether to skip instances that match the desired configuration.
|
|
623
|
+
:param pulumi.Input[_builtins.str] status: The current status of the instance refresh task. Possible values:
|
|
624
|
+
- Pending: The instance refresh task is created and waiting to be scheduled.
|
|
625
|
+
- InProgress: The instance refresh task is in progress.
|
|
626
|
+
- Paused: The instance refresh task is paused.
|
|
627
|
+
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
|
|
628
|
+
- Failed: The instance refresh task failed.
|
|
629
|
+
- Successful: The instance refresh task was successful.
|
|
630
|
+
- Cancelling: The instance refresh task is being canceled.
|
|
631
|
+
- RollbackInProgress: The instance refresh task is being rolled back.
|
|
632
|
+
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
|
|
633
|
+
- RollbackFailed: The rollback of the instance refresh task failed.
|
|
634
|
+
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
|
|
635
|
+
"""
|
|
636
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
|
637
|
+
|
|
638
|
+
__props__ = _InstanceRefreshState.__new__(_InstanceRefreshState)
|
|
639
|
+
|
|
640
|
+
__props__.__dict__["checkpoint_pause_time"] = checkpoint_pause_time
|
|
641
|
+
__props__.__dict__["checkpoints"] = checkpoints
|
|
642
|
+
__props__.__dict__["desired_configuration_containers"] = desired_configuration_containers
|
|
643
|
+
__props__.__dict__["desired_configuration_image_id"] = desired_configuration_image_id
|
|
644
|
+
__props__.__dict__["desired_configuration_launch_template_id"] = desired_configuration_launch_template_id
|
|
645
|
+
__props__.__dict__["desired_configuration_launch_template_overrides"] = desired_configuration_launch_template_overrides
|
|
646
|
+
__props__.__dict__["desired_configuration_launch_template_version"] = desired_configuration_launch_template_version
|
|
647
|
+
__props__.__dict__["max_healthy_percentage"] = max_healthy_percentage
|
|
648
|
+
__props__.__dict__["min_healthy_percentage"] = min_healthy_percentage
|
|
649
|
+
__props__.__dict__["scaling_group_id"] = scaling_group_id
|
|
650
|
+
__props__.__dict__["skip_matching"] = skip_matching
|
|
651
|
+
__props__.__dict__["status"] = status
|
|
652
|
+
return InstanceRefresh(resource_name, opts=opts, __props__=__props__)
|
|
653
|
+
|
|
654
|
+
@_builtins.property
|
|
655
|
+
@pulumi.getter(name="checkpointPauseTime")
|
|
656
|
+
def checkpoint_pause_time(self) -> pulumi.Output[_builtins.int]:
|
|
657
|
+
"""
|
|
658
|
+
The duration of the pause when the task reaches a checkpoint. Unit: minutes.
|
|
659
|
+
"""
|
|
660
|
+
return pulumi.get(self, "checkpoint_pause_time")
|
|
661
|
+
|
|
662
|
+
@_builtins.property
|
|
663
|
+
@pulumi.getter
|
|
664
|
+
def checkpoints(self) -> pulumi.Output[Optional[Sequence['outputs.InstanceRefreshCheckpoint']]]:
|
|
665
|
+
"""
|
|
666
|
+
The checkpoints for the refresh task. The task automatically pauses for the duration specified by CheckpointPauseTime when the percentage of new instances reaches a specified value. See `checkpoints` below for details.
|
|
667
|
+
"""
|
|
668
|
+
return pulumi.get(self, "checkpoints")
|
|
669
|
+
|
|
670
|
+
@_builtins.property
|
|
671
|
+
@pulumi.getter(name="desiredConfigurationContainers")
|
|
672
|
+
def desired_configuration_containers(self) -> pulumi.Output[Optional[Sequence['outputs.InstanceRefreshDesiredConfigurationContainer']]]:
|
|
673
|
+
"""
|
|
674
|
+
The list of containers in the instance. See `desired_configuration_containers` below for details.
|
|
675
|
+
"""
|
|
676
|
+
return pulumi.get(self, "desired_configuration_containers")
|
|
677
|
+
|
|
678
|
+
@_builtins.property
|
|
679
|
+
@pulumi.getter(name="desiredConfigurationImageId")
|
|
680
|
+
def desired_configuration_image_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
681
|
+
"""
|
|
682
|
+
The ID of the image file. This is the image resource used for automatic instance creation.
|
|
683
|
+
"""
|
|
684
|
+
return pulumi.get(self, "desired_configuration_image_id")
|
|
685
|
+
|
|
686
|
+
@_builtins.property
|
|
687
|
+
@pulumi.getter(name="desiredConfigurationLaunchTemplateId")
|
|
688
|
+
def desired_configuration_launch_template_id(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
689
|
+
"""
|
|
690
|
+
The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
|
|
691
|
+
"""
|
|
692
|
+
return pulumi.get(self, "desired_configuration_launch_template_id")
|
|
693
|
+
|
|
694
|
+
@_builtins.property
|
|
695
|
+
@pulumi.getter(name="desiredConfigurationLaunchTemplateOverrides")
|
|
696
|
+
def desired_configuration_launch_template_overrides(self) -> pulumi.Output[Optional[Sequence['outputs.InstanceRefreshDesiredConfigurationLaunchTemplateOverride']]]:
|
|
697
|
+
"""
|
|
698
|
+
The instance type information in the launch template overrides. See `desired_configuration_launch_template_overrides` below for details.
|
|
699
|
+
"""
|
|
700
|
+
return pulumi.get(self, "desired_configuration_launch_template_overrides")
|
|
701
|
+
|
|
702
|
+
@_builtins.property
|
|
703
|
+
@pulumi.getter(name="desiredConfigurationLaunchTemplateVersion")
|
|
704
|
+
def desired_configuration_launch_template_version(self) -> pulumi.Output[Optional[_builtins.str]]:
|
|
705
|
+
"""
|
|
706
|
+
The version of the launch template.
|
|
707
|
+
"""
|
|
708
|
+
return pulumi.get(self, "desired_configuration_launch_template_version")
|
|
709
|
+
|
|
710
|
+
@_builtins.property
|
|
711
|
+
@pulumi.getter(name="maxHealthyPercentage")
|
|
712
|
+
def max_healthy_percentage(self) -> pulumi.Output[_builtins.int]:
|
|
713
|
+
"""
|
|
714
|
+
The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
|
|
715
|
+
"""
|
|
716
|
+
return pulumi.get(self, "max_healthy_percentage")
|
|
717
|
+
|
|
718
|
+
@_builtins.property
|
|
719
|
+
@pulumi.getter(name="minHealthyPercentage")
|
|
720
|
+
def min_healthy_percentage(self) -> pulumi.Output[_builtins.int]:
|
|
721
|
+
"""
|
|
722
|
+
The percentage of instances that must be healthy in the scaling group during the instance refresh. The value is a percentage of the scaling group's capacity.
|
|
723
|
+
"""
|
|
724
|
+
return pulumi.get(self, "min_healthy_percentage")
|
|
725
|
+
|
|
726
|
+
@_builtins.property
|
|
727
|
+
@pulumi.getter(name="scalingGroupId")
|
|
728
|
+
def scaling_group_id(self) -> pulumi.Output[_builtins.str]:
|
|
729
|
+
"""
|
|
730
|
+
The ID of the scaling group.
|
|
731
|
+
"""
|
|
732
|
+
return pulumi.get(self, "scaling_group_id")
|
|
733
|
+
|
|
734
|
+
@_builtins.property
|
|
735
|
+
@pulumi.getter(name="skipMatching")
|
|
736
|
+
def skip_matching(self) -> pulumi.Output[_builtins.bool]:
|
|
737
|
+
"""
|
|
738
|
+
Indicates whether to skip instances that match the desired configuration.
|
|
739
|
+
"""
|
|
740
|
+
return pulumi.get(self, "skip_matching")
|
|
741
|
+
|
|
742
|
+
@_builtins.property
|
|
743
|
+
@pulumi.getter
|
|
744
|
+
def status(self) -> pulumi.Output[_builtins.str]:
|
|
745
|
+
"""
|
|
746
|
+
The current status of the instance refresh task. Possible values:
|
|
747
|
+
- Pending: The instance refresh task is created and waiting to be scheduled.
|
|
748
|
+
- InProgress: The instance refresh task is in progress.
|
|
749
|
+
- Paused: The instance refresh task is paused.
|
|
750
|
+
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
|
|
751
|
+
- Failed: The instance refresh task failed.
|
|
752
|
+
- Successful: The instance refresh task was successful.
|
|
753
|
+
- Cancelling: The instance refresh task is being canceled.
|
|
754
|
+
- RollbackInProgress: The instance refresh task is being rolled back.
|
|
755
|
+
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
|
|
756
|
+
- RollbackFailed: The rollback of the instance refresh task failed.
|
|
757
|
+
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
|
|
758
|
+
"""
|
|
759
|
+
return pulumi.get(self, "status")
|
|
760
|
+
|