aws-sqs-geturl
v1.0.0
Published
Retrieve SQS url
Downloads
103
Readme
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);
//=> 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