I am using the latest PHP Toolkit provided by Amazon to manipulate my EC2 Instances
I use the following code to check if the drive is available or not
$this->client->waitUntil('__VolumeStatus', array(
'VolumeIds' => array($volumeId),
'waiter.success.value' => VolumeState::AVAILABLE
));
Problem is that there is no status defined as DELETED. Only available options are given below
class VolumeState extends Enum
{
const CREATING = 'creating';
const AVAILABLE = 'available';
const IN_USE = 'in-use';
const DELETING = 'deleting';
const ERROR = 'error';
}
Is there a clean way to stop the PHP process until the drive is deleted?