Passing cognito identity to api/lambda

how do I pass cognito identity to lambda functions ?
I have cognito setup and user is logged in.
I am using JavaScript browser sdk with angular2
tried setting header with identity object but it says header field identity is not allowed.
I want all my http request to pick up identity automatically from cognito, is it possible ?


1 Like

how do i set below properties on api ?

AuthorizationType: AWS_IAM #sets authorization to AWS_IAM