aws-arn-splitter
v1.0.0
Published
A simple tool to split Amazon Resource Name.
Downloads
5
Readme
aws-arn-splitter
A simple tool to split Amazon Resource Name.
example
var splitter = require('aws-arn-splitter');
var awsArn = 'arn:aws:lambda:us-east-1:123456789012:function:ProcessKinesisRecords';
var splitedArn = splitter(awsArn);
console.log(splitedArn);
// will show
{ partition: 'aws',
service: 'lambda',
region: 'us-east-1',
account_id: '123456789012',
path: 'function:ProcessKinesisRecords' }
install
With npm do:
npm install aws-arn-splitter