parse-aws-lambda-name
Parse an AWS Lambda function name into a name and a qualifier
The qualifier of an AWS Lambda function name is the version or alias of that function.
Install
$ npm install --save parse-aws-lambda-name
Usage
const parseName = ; ;//=> {functionName: 'foo'} ;//=> {functionName: 'foo', qualifier: 'bar'} ;//=> {functionName: 'foo', qualifier: '1'} ;//=> {functionName: '123456789876:foo'} ;//=> {functionName: '123456789876:foo', qualifier: 'bar'} ;//=> {functionName: 'arn:aws:lambda:eu-west-1:123456789876:function:foo'} ;//=> {functionName: 'arn:aws:lambda:eu-west-1:123456789876:function:foo', qualifier: 'bar'}
API
parseName(name)
name
Type: string
Function name to parse.
License
MIT © Sam Verschueren