MCPcopy Create free account
hub / github.com/aws/aws-lambda-go / parseCognitoIdentity

Function parseCognitoIdentity

lambda/invoke_loop.go:140–148  ·  view source on GitHub ↗
(invoke *invoke, out *lambdacontext.CognitoIdentity)

Source from the content-addressed store, hash-verified

138}
139
140func parseCognitoIdentity(invoke *invoke, out *lambdacontext.CognitoIdentity) error {
141 cognitoIdentityJSON := invoke.headers.Get(headerCognitoIdentity)
142 if cognitoIdentityJSON != "" {
143 if err := json.Unmarshal([]byte(cognitoIdentityJSON), out); err != nil {
144 return fmt.Errorf("failed to unmarshal cognito identity json: %v", err)
145 }
146 }
147 return nil
148}
149
150func parseClientContext(invoke *invoke, out *lambdacontext.ClientContext) error {
151 clientContextJSON := invoke.headers.Get(headerClientContext)

Callers 1

handleInvokeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…