Skip to content

EC2  >  Structures  >  ReplaceRootVolumeTask

ReplaceRootVolumeTask

Structure Class

ReplaceRootVolumeTask dataclass

Bases: _SerdeShape

Information about a root volume replacement task.

Attributes

complete_time class-attribute instance-attribute
complete_time: str | None = ...

The time the task completed.

delete_replaced_root_volume class-attribute instance-attribute
delete_replaced_root_volume: bool | None = ...

Indicates whether the original root volume is to be deleted after the root volume replacement task completes.

image_id class-attribute instance-attribute
image_id: str | None = ...

The ID of the AMI used to create the replacement root volume.

instance_id class-attribute instance-attribute
instance_id: str | None = ...

The ID of the instance for which the root volume replacement task was created.

replace_root_volume_task_id class-attribute instance-attribute
replace_root_volume_task_id: str | None = ...

The ID of the root volume replacement task.

snapshot_id class-attribute instance-attribute
snapshot_id: str | None = ...

The ID of the snapshot used to create the replacement root volume.

start_time class-attribute instance-attribute
start_time: str | None = ...

The time the task was started.

tags class-attribute instance-attribute
tags: list[Tag] | None = ...

The tags assigned to the task.

task_state class-attribute instance-attribute
task_state: str | None = ...

The state of the task. The task can be in one of the following states:

  • pending - the replacement volume is being created.

  • in-progress - the original volume is being detached and the replacement volume is being attached.

  • succeeded - the replacement volume has been successfully attached to the instance and the instance is available.

  • failing - the replacement task is in the process of failing.

  • failed - the replacement task has failed but the original root volume is still attached.

  • failing-detached - the replacement task is in the process of failing. The instance might have no root volume attached.

  • failed-detached - the replacement task has failed and the instance has no root volume attached.