createReplaceRootVolumeTask
inline suspend fun Ec2Client.createReplaceRootVolumeTask(crossinline block: CreateReplaceRootVolumeTaskRequest.Builder.() -> Unit): CreateReplaceRootVolumeTaskResponse
Replaces the EBS-backed root volume for a running
instance with a new volume that is restored to the original root volume's launch state, that is restored to a specific snapshot taken from the original root volume, or that is restored from an AMI that has the same key characteristics as that of the instance.
For more information, see Replace a root volume in the Amazon EC2 User Guide.