Closed KillDozerX2 closed 1 year ago
Describe the solution you'd like We should be able to use the parse function and use the methodArn to instantiate an object instead of parsing methodArn first.
For example, currently I have to do this:-
const arnParts = AuthorizerResponse.parseApiGatewayArn(event.methodArn) const response = new AuthorizerResponse( 'apigateway.amazonaws.com', arnParts.region, arnParts.awsAccountId, arnParts.apiId, arnParts.stage )
And I would like to have a single function to create from methodArn like so
const response = AuthorizerResponse.fromMethodArn('apigateway.amazonaws.com', event.methodArn)
@jappurohit041 this might prove to be even more useful for you.
Solved by #6
Feature Request
Describe the solution you'd like We should be able to use the parse function and use the methodArn to instantiate an object instead of parsing methodArn first.
For example, currently I have to do this:-
And I would like to have a single function to create from methodArn like so