All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.elasticmq.rest.sqs.ArnSupport.scala Maven / Gradle / Ivy

There is a newer version: 1.6.11
Show newest version
package org.elasticmq.rest.sqs

trait ArnSupport {

  private val ArnPattern = "(?:.+:(.+)?:(.+)?:)?(.+)".r

  def extractQueueName(arn: String): String =
    arn match {
      case ArnPattern(_, _, queueName) => queueName
      case _                           => throw SQSException.invalidAttributeValue()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy