Passing cognito identity to api/lambda

Hi,
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 ?

“identity”:{“cognitoIdentityPoolId”:"",“accountId”:"",“cognitoIdentityId”:"",“caller”:"",“apiKey”:"",“sourceIp”:"",“cognitoAuthenticationType”:"",“cognitoAuthenticationProvider”:"",“userArn”:"",

1 Like

how do i set below properties on api ?

Properties:
AuthorizationType: AWS_IAM #sets authorization to AWS_IAM