JSPM

aws-arn-parser

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 38695
  • Score
    100M100P100Q160516F
  • License MIT

Parser for Amazon Resource Name strings

Package Exports

  • aws-arn-parser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aws-arn-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

aws-arn-parser

Parser for Amazon Resource Name strings

Build Status

Does what it says on the tin! Parsers an Amazon Resource Name and gives it back as object. NOTE: this module is in early days, at some point later I might make it actually validate and normalize the returned object, or completely change how it works

example

thing.js

var parser = require('aws-arn-parser');
var myAwsString = "arn:aws:iam::123456789012:server-certificate/division_abc/subdivision_xyz/ProdServerCert";

var arn = parser(myAwsString);

console.log(arn);

and when we run it

$ node thing.js
{ arn: 'arn',
  aws: 'aws',
  service: 'iam',
  region: '',
  namespace: '123456789012',
  relativeId: 'server-certificate/division_abc/subdivision_xyz/ProdServerCert' }

install

With npm do:

npm install aws-arn-parser

license

MIT