alicloud.ess.InstanceRefresh
Import
ESS instance refresh can be imported using the id, e.g.
$ pulumi import alicloud:ess/instanceRefresh:InstanceRefresh example ir-abc123456
Create InstanceRefresh Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InstanceRefresh(name: string, args: InstanceRefreshArgs, opts?: CustomResourceOptions);
@overload
def InstanceRefresh(resource_name: str,
args: InstanceRefreshArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InstanceRefresh(resource_name: str,
opts: Optional[ResourceOptions] = None,
scaling_group_id: Optional[str] = None,
checkpoint_pause_time: Optional[int] = None,
checkpoints: Optional[Sequence[InstanceRefreshCheckpointArgs]] = None,
desired_configuration_containers: Optional[Sequence[InstanceRefreshDesiredConfigurationContainerArgs]] = None,
desired_configuration_image_id: Optional[str] = None,
desired_configuration_launch_template_id: Optional[str] = None,
desired_configuration_launch_template_overrides: Optional[Sequence[InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs]] = None,
desired_configuration_launch_template_version: Optional[str] = None,
max_healthy_percentage: Optional[int] = None,
min_healthy_percentage: Optional[int] = None,
skip_matching: Optional[bool] = None,
status: Optional[str] = None)
func NewInstanceRefresh(ctx *Context, name string, args InstanceRefreshArgs, opts ...ResourceOption) (*InstanceRefresh, error)
public InstanceRefresh(string name, InstanceRefreshArgs args, CustomResourceOptions? opts = null)
public InstanceRefresh(String name, InstanceRefreshArgs args)
public InstanceRefresh(String name, InstanceRefreshArgs args, CustomResourceOptions options)
type: alicloud:ess:InstanceRefresh
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args InstanceRefreshArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args InstanceRefreshArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args InstanceRefreshArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InstanceRefreshArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InstanceRefreshArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var instanceRefreshResource = new AliCloud.Ess.InstanceRefresh("instanceRefreshResource", new()
{
ScalingGroupId = "string",
CheckpointPauseTime = 0,
Checkpoints = new[]
{
new AliCloud.Ess.Inputs.InstanceRefreshCheckpointArgs
{
Percentage = 0,
},
},
DesiredConfigurationContainers = new[]
{
new AliCloud.Ess.Inputs.InstanceRefreshDesiredConfigurationContainerArgs
{
Args = new[]
{
"string",
},
Commands = new[]
{
"string",
},
EnvironmentVars = new[]
{
new AliCloud.Ess.Inputs.InstanceRefreshDesiredConfigurationContainerEnvironmentVarArgs
{
FieldRefFieldPath = "string",
Key = "string",
Value = "string",
},
},
Image = "string",
Name = "string",
},
},
DesiredConfigurationImageId = "string",
DesiredConfigurationLaunchTemplateId = "string",
DesiredConfigurationLaunchTemplateOverrides = new[]
{
new AliCloud.Ess.Inputs.InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs
{
InstanceType = "string",
},
},
DesiredConfigurationLaunchTemplateVersion = "string",
MaxHealthyPercentage = 0,
MinHealthyPercentage = 0,
SkipMatching = false,
Status = "string",
});
example, err := ess.NewInstanceRefresh(ctx, "instanceRefreshResource", &ess.InstanceRefreshArgs{
ScalingGroupId: pulumi.String("string"),
CheckpointPauseTime: pulumi.Int(0),
Checkpoints: ess.InstanceRefreshCheckpointArray{
&ess.InstanceRefreshCheckpointArgs{
Percentage: pulumi.Int(0),
},
},
DesiredConfigurationContainers: ess.InstanceRefreshDesiredConfigurationContainerArray{
&ess.InstanceRefreshDesiredConfigurationContainerArgs{
Args: pulumi.StringArray{
pulumi.String("string"),
},
Commands: pulumi.StringArray{
pulumi.String("string"),
},
EnvironmentVars: ess.InstanceRefreshDesiredConfigurationContainerEnvironmentVarArray{
&ess.InstanceRefreshDesiredConfigurationContainerEnvironmentVarArgs{
FieldRefFieldPath: pulumi.String("string"),
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Image: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
DesiredConfigurationImageId: pulumi.String("string"),
DesiredConfigurationLaunchTemplateId: pulumi.String("string"),
DesiredConfigurationLaunchTemplateOverrides: ess.InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArray{
&ess.InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs{
InstanceType: pulumi.String("string"),
},
},
DesiredConfigurationLaunchTemplateVersion: pulumi.String("string"),
MaxHealthyPercentage: pulumi.Int(0),
MinHealthyPercentage: pulumi.Int(0),
SkipMatching: pulumi.Bool(false),
Status: pulumi.String("string"),
})
var instanceRefreshResource = new InstanceRefresh("instanceRefreshResource", InstanceRefreshArgs.builder()
.scalingGroupId("string")
.checkpointPauseTime(0)
.checkpoints(InstanceRefreshCheckpointArgs.builder()
.percentage(0)
.build())
.desiredConfigurationContainers(InstanceRefreshDesiredConfigurationContainerArgs.builder()
.args("string")
.commands("string")
.environmentVars(InstanceRefreshDesiredConfigurationContainerEnvironmentVarArgs.builder()
.fieldRefFieldPath("string")
.key("string")
.value("string")
.build())
.image("string")
.name("string")
.build())
.desiredConfigurationImageId("string")
.desiredConfigurationLaunchTemplateId("string")
.desiredConfigurationLaunchTemplateOverrides(InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs.builder()
.instanceType("string")
.build())
.desiredConfigurationLaunchTemplateVersion("string")
.maxHealthyPercentage(0)
.minHealthyPercentage(0)
.skipMatching(false)
.status("string")
.build());
instance_refresh_resource = alicloud.ess.InstanceRefresh("instanceRefreshResource",
scaling_group_id="string",
checkpoint_pause_time=0,
checkpoints=[{
"percentage": 0,
}],
desired_configuration_containers=[{
"args": ["string"],
"commands": ["string"],
"environment_vars": [{
"field_ref_field_path": "string",
"key": "string",
"value": "string",
}],
"image": "string",
"name": "string",
}],
desired_configuration_image_id="string",
desired_configuration_launch_template_id="string",
desired_configuration_launch_template_overrides=[{
"instance_type": "string",
}],
desired_configuration_launch_template_version="string",
max_healthy_percentage=0,
min_healthy_percentage=0,
skip_matching=False,
status="string")
const instanceRefreshResource = new alicloud.ess.InstanceRefresh("instanceRefreshResource", {
scalingGroupId: "string",
checkpointPauseTime: 0,
checkpoints: [{
percentage: 0,
}],
desiredConfigurationContainers: [{
args: ["string"],
commands: ["string"],
environmentVars: [{
fieldRefFieldPath: "string",
key: "string",
value: "string",
}],
image: "string",
name: "string",
}],
desiredConfigurationImageId: "string",
desiredConfigurationLaunchTemplateId: "string",
desiredConfigurationLaunchTemplateOverrides: [{
instanceType: "string",
}],
desiredConfigurationLaunchTemplateVersion: "string",
maxHealthyPercentage: 0,
minHealthyPercentage: 0,
skipMatching: false,
status: "string",
});
type: alicloud:ess:InstanceRefresh
properties:
checkpointPauseTime: 0
checkpoints:
- percentage: 0
desiredConfigurationContainers:
- args:
- string
commands:
- string
environmentVars:
- fieldRefFieldPath: string
key: string
value: string
image: string
name: string
desiredConfigurationImageId: string
desiredConfigurationLaunchTemplateId: string
desiredConfigurationLaunchTemplateOverrides:
- instanceType: string
desiredConfigurationLaunchTemplateVersion: string
maxHealthyPercentage: 0
minHealthyPercentage: 0
scalingGroupId: string
skipMatching: false
status: string
InstanceRefresh Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The InstanceRefresh resource accepts the following input properties:
- Scaling
Group stringId - The ID of the scaling group.
- Checkpoint
Pause intTime - The duration of the pause when the task reaches a checkpoint. Unit: minutes.
- Checkpoints
List<Pulumi.
Ali Cloud. Ess. Inputs. Instance Refresh Checkpoint> - 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. - Desired
Configuration List<Pulumi.Containers Ali Cloud. Ess. Inputs. Instance Refresh Desired Configuration Container> - The list of containers in the instance. See
desired_configuration_containers
below for details. - Desired
Configuration stringImage Id - The ID of the image file. This is the image resource used for automatic instance creation.
- Desired
Configuration stringLaunch Template Id - The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
- Desired
Configuration List<Pulumi.Launch Template Overrides Ali Cloud. Ess. Inputs. Instance Refresh Desired Configuration Launch Template Override> - The instance type information in the launch template overrides. See
desired_configuration_launch_template_overrides
below for details. - Desired
Configuration stringLaunch Template Version - The version of the launch template.
- Max
Healthy intPercentage - The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
- Min
Healthy intPercentage - 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.
- Skip
Matching bool - Indicates whether to skip instances that match the desired configuration.
- Status string
- The current status of the instance refresh task. Possible values:
- Pending: The instance refresh task is created and waiting to be scheduled.
- InProgress: The instance refresh task is in progress.
- Paused: The instance refresh task is paused.
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
- Failed: The instance refresh task failed.
- Successful: The instance refresh task was successful.
- Cancelling: The instance refresh task is being canceled.
- RollbackInProgress: The instance refresh task is being rolled back.
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
- RollbackFailed: The rollback of the instance refresh task failed.
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
- Scaling
Group stringId - The ID of the scaling group.
- Checkpoint
Pause intTime - The duration of the pause when the task reaches a checkpoint. Unit: minutes.
- Checkpoints
[]Instance
Refresh Checkpoint Args - 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. - Desired
Configuration []InstanceContainers Refresh Desired Configuration Container Args - The list of containers in the instance. See
desired_configuration_containers
below for details. - Desired
Configuration stringImage Id - The ID of the image file. This is the image resource used for automatic instance creation.
- Desired
Configuration stringLaunch Template Id - The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
- Desired
Configuration []InstanceLaunch Template Overrides Refresh Desired Configuration Launch Template Override Args - The instance type information in the launch template overrides. See
desired_configuration_launch_template_overrides
below for details. - Desired
Configuration stringLaunch Template Version - The version of the launch template.
- Max
Healthy intPercentage - The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
- Min
Healthy intPercentage - 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.
- Skip
Matching bool - Indicates whether to skip instances that match the desired configuration.
- Status string
- The current status of the instance refresh task. Possible values:
- Pending: The instance refresh task is created and waiting to be scheduled.
- InProgress: The instance refresh task is in progress.
- Paused: The instance refresh task is paused.
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
- Failed: The instance refresh task failed.
- Successful: The instance refresh task was successful.
- Cancelling: The instance refresh task is being canceled.
- RollbackInProgress: The instance refresh task is being rolled back.
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
- RollbackFailed: The rollback of the instance refresh task failed.
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
- scaling
Group StringId - The ID of the scaling group.
- checkpoint
Pause IntegerTime - The duration of the pause when the task reaches a checkpoint. Unit: minutes.
- checkpoints
List<Instance
Refresh Checkpoint> - 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. - desired
Configuration List<InstanceContainers Refresh Desired Configuration Container> - The list of containers in the instance. See
desired_configuration_containers
below for details. - desired
Configuration StringImage Id - The ID of the image file. This is the image resource used for automatic instance creation.
- desired
Configuration StringLaunch Template Id - The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
- desired
Configuration List<InstanceLaunch Template Overrides Refresh Desired Configuration Launch Template Override> - The instance type information in the launch template overrides. See
desired_configuration_launch_template_overrides
below for details. - desired
Configuration StringLaunch Template Version - The version of the launch template.
- max
Healthy IntegerPercentage - The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
- min
Healthy IntegerPercentage - 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.
- skip
Matching Boolean - Indicates whether to skip instances that match the desired configuration.
- status String
- The current status of the instance refresh task. Possible values:
- Pending: The instance refresh task is created and waiting to be scheduled.
- InProgress: The instance refresh task is in progress.
- Paused: The instance refresh task is paused.
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
- Failed: The instance refresh task failed.
- Successful: The instance refresh task was successful.
- Cancelling: The instance refresh task is being canceled.
- RollbackInProgress: The instance refresh task is being rolled back.
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
- RollbackFailed: The rollback of the instance refresh task failed.
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
- scaling
Group stringId - The ID of the scaling group.
- checkpoint
Pause numberTime - The duration of the pause when the task reaches a checkpoint. Unit: minutes.
- checkpoints
Instance
Refresh Checkpoint[] - 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. - desired
Configuration InstanceContainers Refresh Desired Configuration Container[] - The list of containers in the instance. See
desired_configuration_containers
below for details. - desired
Configuration stringImage Id - The ID of the image file. This is the image resource used for automatic instance creation.
- desired
Configuration stringLaunch Template Id - The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
- desired
Configuration InstanceLaunch Template Overrides Refresh Desired Configuration Launch Template Override[] - The instance type information in the launch template overrides. See
desired_configuration_launch_template_overrides
below for details. - desired
Configuration stringLaunch Template Version - The version of the launch template.
- max
Healthy numberPercentage - The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
- min
Healthy numberPercentage - 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.
- skip
Matching boolean - Indicates whether to skip instances that match the desired configuration.
- status string
- The current status of the instance refresh task. Possible values:
- Pending: The instance refresh task is created and waiting to be scheduled.
- InProgress: The instance refresh task is in progress.
- Paused: The instance refresh task is paused.
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
- Failed: The instance refresh task failed.
- Successful: The instance refresh task was successful.
- Cancelling: The instance refresh task is being canceled.
- RollbackInProgress: The instance refresh task is being rolled back.
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
- RollbackFailed: The rollback of the instance refresh task failed.
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
- scaling_
group_ strid - The ID of the scaling group.
- checkpoint_
pause_ inttime - The duration of the pause when the task reaches a checkpoint. Unit: minutes.
- checkpoints
Sequence[Instance
Refresh Checkpoint Args] - 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. - desired_
configuration_ Sequence[Instancecontainers Refresh Desired Configuration Container Args] - The list of containers in the instance. See
desired_configuration_containers
below for details. - desired_
configuration_ strimage_ id - The ID of the image file. This is the image resource used for automatic instance creation.
- desired_
configuration_ strlaunch_ template_ id - The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
- desired_
configuration_ Sequence[Instancelaunch_ template_ overrides Refresh Desired Configuration Launch Template Override Args] - The instance type information in the launch template overrides. See
desired_configuration_launch_template_overrides
below for details. - desired_
configuration_ strlaunch_ template_ version - The version of the launch template.
- max_
healthy_ intpercentage - The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
- min_
healthy_ intpercentage - 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.
- skip_
matching bool - Indicates whether to skip instances that match the desired configuration.
- status str
- The current status of the instance refresh task. Possible values:
- Pending: The instance refresh task is created and waiting to be scheduled.
- InProgress: The instance refresh task is in progress.
- Paused: The instance refresh task is paused.
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
- Failed: The instance refresh task failed.
- Successful: The instance refresh task was successful.
- Cancelling: The instance refresh task is being canceled.
- RollbackInProgress: The instance refresh task is being rolled back.
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
- RollbackFailed: The rollback of the instance refresh task failed.
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
- scaling
Group StringId - The ID of the scaling group.
- checkpoint
Pause NumberTime - The duration of the pause when the task reaches a checkpoint. Unit: minutes.
- checkpoints List<Property Map>
- 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. - desired
Configuration List<Property Map>Containers - The list of containers in the instance. See
desired_configuration_containers
below for details. - desired
Configuration StringImage Id - The ID of the image file. This is the image resource used for automatic instance creation.
- desired
Configuration StringLaunch Template Id - The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
- desired
Configuration List<Property Map>Launch Template Overrides - The instance type information in the launch template overrides. See
desired_configuration_launch_template_overrides
below for details. - desired
Configuration StringLaunch Template Version - The version of the launch template.
- max
Healthy NumberPercentage - The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
- min
Healthy NumberPercentage - 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.
- skip
Matching Boolean - Indicates whether to skip instances that match the desired configuration.
- status String
- The current status of the instance refresh task. Possible values:
- Pending: The instance refresh task is created and waiting to be scheduled.
- InProgress: The instance refresh task is in progress.
- Paused: The instance refresh task is paused.
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
- Failed: The instance refresh task failed.
- Successful: The instance refresh task was successful.
- Cancelling: The instance refresh task is being canceled.
- RollbackInProgress: The instance refresh task is being rolled back.
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
- RollbackFailed: The rollback of the instance refresh task failed.
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
Outputs
All input properties are implicitly available as output properties. Additionally, the InstanceRefresh resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing InstanceRefresh Resource
Get an existing InstanceRefresh resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: InstanceRefreshState, opts?: CustomResourceOptions): InstanceRefresh
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
checkpoint_pause_time: Optional[int] = None,
checkpoints: Optional[Sequence[InstanceRefreshCheckpointArgs]] = None,
desired_configuration_containers: Optional[Sequence[InstanceRefreshDesiredConfigurationContainerArgs]] = None,
desired_configuration_image_id: Optional[str] = None,
desired_configuration_launch_template_id: Optional[str] = None,
desired_configuration_launch_template_overrides: Optional[Sequence[InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs]] = None,
desired_configuration_launch_template_version: Optional[str] = None,
max_healthy_percentage: Optional[int] = None,
min_healthy_percentage: Optional[int] = None,
scaling_group_id: Optional[str] = None,
skip_matching: Optional[bool] = None,
status: Optional[str] = None) -> InstanceRefresh
func GetInstanceRefresh(ctx *Context, name string, id IDInput, state *InstanceRefreshState, opts ...ResourceOption) (*InstanceRefresh, error)
public static InstanceRefresh Get(string name, Input<string> id, InstanceRefreshState? state, CustomResourceOptions? opts = null)
public static InstanceRefresh get(String name, Output<String> id, InstanceRefreshState state, CustomResourceOptions options)
resources: _: type: alicloud:ess:InstanceRefresh get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Checkpoint
Pause intTime - The duration of the pause when the task reaches a checkpoint. Unit: minutes.
- Checkpoints
List<Pulumi.
Ali Cloud. Ess. Inputs. Instance Refresh Checkpoint> - 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. - Desired
Configuration List<Pulumi.Containers Ali Cloud. Ess. Inputs. Instance Refresh Desired Configuration Container> - The list of containers in the instance. See
desired_configuration_containers
below for details. - Desired
Configuration stringImage Id - The ID of the image file. This is the image resource used for automatic instance creation.
- Desired
Configuration stringLaunch Template Id - The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
- Desired
Configuration List<Pulumi.Launch Template Overrides Ali Cloud. Ess. Inputs. Instance Refresh Desired Configuration Launch Template Override> - The instance type information in the launch template overrides. See
desired_configuration_launch_template_overrides
below for details. - Desired
Configuration stringLaunch Template Version - The version of the launch template.
- Max
Healthy intPercentage - The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
- Min
Healthy intPercentage - 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.
- Scaling
Group stringId - The ID of the scaling group.
- Skip
Matching bool - Indicates whether to skip instances that match the desired configuration.
- Status string
- The current status of the instance refresh task. Possible values:
- Pending: The instance refresh task is created and waiting to be scheduled.
- InProgress: The instance refresh task is in progress.
- Paused: The instance refresh task is paused.
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
- Failed: The instance refresh task failed.
- Successful: The instance refresh task was successful.
- Cancelling: The instance refresh task is being canceled.
- RollbackInProgress: The instance refresh task is being rolled back.
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
- RollbackFailed: The rollback of the instance refresh task failed.
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
- Checkpoint
Pause intTime - The duration of the pause when the task reaches a checkpoint. Unit: minutes.
- Checkpoints
[]Instance
Refresh Checkpoint Args - 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. - Desired
Configuration []InstanceContainers Refresh Desired Configuration Container Args - The list of containers in the instance. See
desired_configuration_containers
below for details. - Desired
Configuration stringImage Id - The ID of the image file. This is the image resource used for automatic instance creation.
- Desired
Configuration stringLaunch Template Id - The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
- Desired
Configuration []InstanceLaunch Template Overrides Refresh Desired Configuration Launch Template Override Args - The instance type information in the launch template overrides. See
desired_configuration_launch_template_overrides
below for details. - Desired
Configuration stringLaunch Template Version - The version of the launch template.
- Max
Healthy intPercentage - The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
- Min
Healthy intPercentage - 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.
- Scaling
Group stringId - The ID of the scaling group.
- Skip
Matching bool - Indicates whether to skip instances that match the desired configuration.
- Status string
- The current status of the instance refresh task. Possible values:
- Pending: The instance refresh task is created and waiting to be scheduled.
- InProgress: The instance refresh task is in progress.
- Paused: The instance refresh task is paused.
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
- Failed: The instance refresh task failed.
- Successful: The instance refresh task was successful.
- Cancelling: The instance refresh task is being canceled.
- RollbackInProgress: The instance refresh task is being rolled back.
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
- RollbackFailed: The rollback of the instance refresh task failed.
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
- checkpoint
Pause IntegerTime - The duration of the pause when the task reaches a checkpoint. Unit: minutes.
- checkpoints
List<Instance
Refresh Checkpoint> - 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. - desired
Configuration List<InstanceContainers Refresh Desired Configuration Container> - The list of containers in the instance. See
desired_configuration_containers
below for details. - desired
Configuration StringImage Id - The ID of the image file. This is the image resource used for automatic instance creation.
- desired
Configuration StringLaunch Template Id - The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
- desired
Configuration List<InstanceLaunch Template Overrides Refresh Desired Configuration Launch Template Override> - The instance type information in the launch template overrides. See
desired_configuration_launch_template_overrides
below for details. - desired
Configuration StringLaunch Template Version - The version of the launch template.
- max
Healthy IntegerPercentage - The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
- min
Healthy IntegerPercentage - 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.
- scaling
Group StringId - The ID of the scaling group.
- skip
Matching Boolean - Indicates whether to skip instances that match the desired configuration.
- status String
- The current status of the instance refresh task. Possible values:
- Pending: The instance refresh task is created and waiting to be scheduled.
- InProgress: The instance refresh task is in progress.
- Paused: The instance refresh task is paused.
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
- Failed: The instance refresh task failed.
- Successful: The instance refresh task was successful.
- Cancelling: The instance refresh task is being canceled.
- RollbackInProgress: The instance refresh task is being rolled back.
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
- RollbackFailed: The rollback of the instance refresh task failed.
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
- checkpoint
Pause numberTime - The duration of the pause when the task reaches a checkpoint. Unit: minutes.
- checkpoints
Instance
Refresh Checkpoint[] - 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. - desired
Configuration InstanceContainers Refresh Desired Configuration Container[] - The list of containers in the instance. See
desired_configuration_containers
below for details. - desired
Configuration stringImage Id - The ID of the image file. This is the image resource used for automatic instance creation.
- desired
Configuration stringLaunch Template Id - The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
- desired
Configuration InstanceLaunch Template Overrides Refresh Desired Configuration Launch Template Override[] - The instance type information in the launch template overrides. See
desired_configuration_launch_template_overrides
below for details. - desired
Configuration stringLaunch Template Version - The version of the launch template.
- max
Healthy numberPercentage - The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
- min
Healthy numberPercentage - 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.
- scaling
Group stringId - The ID of the scaling group.
- skip
Matching boolean - Indicates whether to skip instances that match the desired configuration.
- status string
- The current status of the instance refresh task. Possible values:
- Pending: The instance refresh task is created and waiting to be scheduled.
- InProgress: The instance refresh task is in progress.
- Paused: The instance refresh task is paused.
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
- Failed: The instance refresh task failed.
- Successful: The instance refresh task was successful.
- Cancelling: The instance refresh task is being canceled.
- RollbackInProgress: The instance refresh task is being rolled back.
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
- RollbackFailed: The rollback of the instance refresh task failed.
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
- checkpoint_
pause_ inttime - The duration of the pause when the task reaches a checkpoint. Unit: minutes.
- checkpoints
Sequence[Instance
Refresh Checkpoint Args] - 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. - desired_
configuration_ Sequence[Instancecontainers Refresh Desired Configuration Container Args] - The list of containers in the instance. See
desired_configuration_containers
below for details. - desired_
configuration_ strimage_ id - The ID of the image file. This is the image resource used for automatic instance creation.
- desired_
configuration_ strlaunch_ template_ id - The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
- desired_
configuration_ Sequence[Instancelaunch_ template_ overrides Refresh Desired Configuration Launch Template Override Args] - The instance type information in the launch template overrides. See
desired_configuration_launch_template_overrides
below for details. - desired_
configuration_ strlaunch_ template_ version - The version of the launch template.
- max_
healthy_ intpercentage - The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
- min_
healthy_ intpercentage - 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.
- scaling_
group_ strid - The ID of the scaling group.
- skip_
matching bool - Indicates whether to skip instances that match the desired configuration.
- status str
- The current status of the instance refresh task. Possible values:
- Pending: The instance refresh task is created and waiting to be scheduled.
- InProgress: The instance refresh task is in progress.
- Paused: The instance refresh task is paused.
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
- Failed: The instance refresh task failed.
- Successful: The instance refresh task was successful.
- Cancelling: The instance refresh task is being canceled.
- RollbackInProgress: The instance refresh task is being rolled back.
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
- RollbackFailed: The rollback of the instance refresh task failed.
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
- checkpoint
Pause NumberTime - The duration of the pause when the task reaches a checkpoint. Unit: minutes.
- checkpoints List<Property Map>
- 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. - desired
Configuration List<Property Map>Containers - The list of containers in the instance. See
desired_configuration_containers
below for details. - desired
Configuration StringImage Id - The ID of the image file. This is the image resource used for automatic instance creation.
- desired
Configuration StringLaunch Template Id - The ID of the launch template. The scaling group uses this template to obtain launch configuration information.
- desired
Configuration List<Property Map>Launch Template Overrides - The instance type information in the launch template overrides. See
desired_configuration_launch_template_overrides
below for details. - desired
Configuration StringLaunch Template Version - The version of the launch template.
- max
Healthy NumberPercentage - The percentage by which the number of instances in the scaling group can exceed the group's capacity during the instance refresh.
- min
Healthy NumberPercentage - 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.
- scaling
Group StringId - The ID of the scaling group.
- skip
Matching Boolean - Indicates whether to skip instances that match the desired configuration.
- status String
- The current status of the instance refresh task. Possible values:
- Pending: The instance refresh task is created and waiting to be scheduled.
- InProgress: The instance refresh task is in progress.
- Paused: The instance refresh task is paused.
- CheckpointPause: The task is paused because it has reached a checkpoint (Checkpoint.Percentage).
- Failed: The instance refresh task failed.
- Successful: The instance refresh task was successful.
- Cancelling: The instance refresh task is being canceled.
- RollbackInProgress: The instance refresh task is being rolled back.
- RollbackSuccessful: The instance refresh task was rolled back successfully. Set RollbackSuccessful to rollback the instance refresh task.
- RollbackFailed: The rollback of the instance refresh task failed.
- Cancelled: The instance refresh task is canceled. Set Cancelled to cancel the instance refresh task.
Supporting Types
InstanceRefreshCheckpoint, InstanceRefreshCheckpointArgs
- Percentage int
- The percentage of new instances out of the total instances in the scaling group. The task automatically pauses when this percentage is reached.
- Percentage int
- The percentage of new instances out of the total instances in the scaling group. The task automatically pauses when this percentage is reached.
- percentage Integer
- The percentage of new instances out of the total instances in the scaling group. The task automatically pauses when this percentage is reached.
- percentage number
- The percentage of new instances out of the total instances in the scaling group. The task automatically pauses when this percentage is reached.
- percentage int
- The percentage of new instances out of the total instances in the scaling group. The task automatically pauses when this percentage is reached.
- percentage Number
- The percentage of new instances out of the total instances in the scaling group. The task automatically pauses when this percentage is reached.
InstanceRefreshDesiredConfigurationContainer, InstanceRefreshDesiredConfigurationContainerArgs
- Args List<string>
- The arguments for the container startup command.
- Commands List<string>
- The container startup command.
- Environment
Vars List<Pulumi.Ali Cloud. Ess. Inputs. Instance Refresh Desired Configuration Container Environment Var> - Information about the environment variables. See
environment_vars
below for details. - Image string
- The container image.
- Name string
- The custom name of the container.
- Args []string
- The arguments for the container startup command.
- Commands []string
- The container startup command.
- Environment
Vars []InstanceRefresh Desired Configuration Container Environment Var - Information about the environment variables. See
environment_vars
below for details. - Image string
- The container image.
- Name string
- The custom name of the container.
- args List<String>
- The arguments for the container startup command.
- commands List<String>
- The container startup command.
- environment
Vars List<InstanceRefresh Desired Configuration Container Environment Var> - Information about the environment variables. See
environment_vars
below for details. - image String
- The container image.
- name String
- The custom name of the container.
- args string[]
- The arguments for the container startup command.
- commands string[]
- The container startup command.
- environment
Vars InstanceRefresh Desired Configuration Container Environment Var[] - Information about the environment variables. See
environment_vars
below for details. - image string
- The container image.
- name string
- The custom name of the container.
- args Sequence[str]
- The arguments for the container startup command.
- commands Sequence[str]
- The container startup command.
- environment_
vars Sequence[InstanceRefresh Desired Configuration Container Environment Var] - Information about the environment variables. See
environment_vars
below for details. - image str
- The container image.
- name str
- The custom name of the container.
- args List<String>
- The arguments for the container startup command.
- commands List<String>
- The container startup command.
- environment
Vars List<Property Map> - Information about the environment variables. See
environment_vars
below for details. - image String
- The container image.
- name String
- The custom name of the container.
InstanceRefreshDesiredConfigurationContainerEnvironmentVar, InstanceRefreshDesiredConfigurationContainerEnvironmentVarArgs
- Field
Ref stringField Path - This parameter is not available for use.
- Key string
- The name of the environment variable.
- Value string
- The value of the environment variable.
- Field
Ref stringField Path - This parameter is not available for use.
- Key string
- The name of the environment variable.
- Value string
- The value of the environment variable.
- field
Ref StringField Path - This parameter is not available for use.
- key String
- The name of the environment variable.
- value String
- The value of the environment variable.
- field
Ref stringField Path - This parameter is not available for use.
- key string
- The name of the environment variable.
- value string
- The value of the environment variable.
- field_
ref_ strfield_ path - This parameter is not available for use.
- key str
- The name of the environment variable.
- value str
- The value of the environment variable.
- field
Ref StringField Path - This parameter is not available for use.
- key String
- The name of the environment variable.
- value String
- The value of the environment variable.
InstanceRefreshDesiredConfigurationLaunchTemplateOverride, InstanceRefreshDesiredConfigurationLaunchTemplateOverrideArgs
- Instance
Type string - The specified instance type, which overwrites the instance type in the launch template.
- Instance
Type string - The specified instance type, which overwrites the instance type in the launch template.
- instance
Type String - The specified instance type, which overwrites the instance type in the launch template.
- instance
Type string - The specified instance type, which overwrites the instance type in the launch template.
- instance_
type str - The specified instance type, which overwrites the instance type in the launch template.
- instance
Type String - The specified instance type, which overwrites the instance type in the launch template.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.