aws-sqs-geturl

1.0.0 • Public • Published

aws-sqs-geturl Build Status

Retrieve SQS url

Install

$ npm install --save aws-sqs-geturl

Usage

const awsGetSqsUrl = require('aws-sqs-geturl');

awsGetSqsUrl('somequeue').then(url => {
	console.log(url);
	//=> https://sqs.eu-west-1.amazonaws.com/123456789111/somequeue
});

awsGetSqsUrl('anotherqueue', {awsAccountId: '123456789012'}).then(url => {
	console.log(url);
	//=> https://sqs.us-west-1.amazonaws.com/123456789012/anotherqueue
});

API

awsGetSqsUrl(queueName, [options])

Returns a Promise for the queue URL.

queueName

Type: string

Name of queue

options

options.awsAccountId

Type: string
Default: caller account

AWS account ID of the account that created the queue.

License

MIT © Simon Jang

Readme

Keywords

Package Sidebar

Install

npm i aws-sqs-geturl

Weekly Downloads

151

Version

1.0.0

License

MIT

Last publish

Collaborators

  • simonja