in src/main/scala/com/gu/ssm/aws/SSM.scala [70:95]
def commandStatus(statusDetail: String): CommandStatus = {
statusDetail match {
case "Pending" =>
Pending
case "InProgress" =>
InProgress
case "Delayed" =>
Delayed
case "Success" =>
Success
case "DeliveryTimedOut" =>
DeliveryTimedOut
case "ExecutionTimedOut" =>
ExecutionTimedOut
case "Failed" =>
Failed
case "Canceled" =>
Canceled
case "Undeliverable" =>
Undeliverable
case "Terminated" =>
Terminated
case _ =>
throw new RuntimeException(s"Unexpected command status $statusDetail")
}
}