aws-sqs-geturl
Retrieve SQS url
Install
$ npm install --save aws-sqs-geturl
Usage
const awsGetSqsUrl = require('aws-sqs-geturl');
awsGetSqsUrl('somequeue').then(url => {
console.log(url);
});
awsGetSqsUrl('anotherqueue', {awsAccountId: '123456789012'}).then(url => {
console.log(url);
});
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