in hq/app/db/IamRemediationDb.scala [68:81]
private def put(request: PutItemRequest)(implicit ec: ExecutionContext): Attempt[PutItemResponse] = {
try {
Attempt.Right(client.putItem(request))
} catch {
case NonFatal(e) =>
Attempt.Left(
Failure(s"unable to put item to dynamoDB table",
s"I haven't been able to put the item into the dynamo table for the vulnerable user job",
500,
throwable = Some(e)
)
)
}
}