← ZIO SQS docs

Utils

zio.sqs.Utils
object Utils

Helpers for creating an SQS queue and finding its URL.

Attributes

Source
Utils.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Utils.type

Members list

Value members

Concrete methods

def createQueue(name: String, attributes: Map[QueueAttributeName, String] = ...): RIO[Sqs, Unit]

Creates an SQS queue with the given name and attributes.

Creates an SQS queue with the given name and attributes.

Value parameters

attributes

are the queue attributes to set when the queue is created

name

is the name of the queue

Attributes

Source
Utils.scala
def getQueueUrl(name: String): RIO[Sqs, String]

Returns the URL of the SQS queue with the given name. Fails with the error from SQS when the request fails.

Returns the URL of the SQS queue with the given name. Fails with the error from SQS when the request fails.

Value parameters

name

is the name of the queue

Attributes

Returns

the queue URL

Source
Utils.scala