in ses-plugin-server/src/main/kotlin/jetbrains/buildServer/sesPlugin/sqs/awsCommunication/QueueUrlProviderImpl.kt [10:21]
override fun getQueueUrl(amazonSQS: AmazonSQS, bean: SQSBean): String {
val queueName = bean.queueName
val accountId = bean.accountId
val queueUrlResult = try {
amazonSQS.getQueueUrl(GetQueueUrlRequest().withQueueName(queueName).withQueueOwnerAWSAccountId(accountId))
} catch (ex: Exception) {
throw AmazonSQSCommunicationException("Cannot get queue url with name $queueName and owner $accountId", ex)
}
return queueUrlResult.queueUrl
}