# Type Alias: CreateAWSLambdaContextOptions<TEvent>

> 

> **CreateAWSLambdaContextOptions**\<`TEvent`\>: `object`

Defined in: [packages/server/src/adapters/aws-lambda/index.ts:32](https://github.com/trpc/trpc/blob/a357903312114c6c08952de2c9edc51c713367be/packages/server/src/adapters/aws-lambda/index.ts#L32)

What `createContext` gets in the AWS Lambda adapter: the event, the
Lambda context and the request's `info`.

## Type Parameters

| Type Parameter |
| ------ |
| `TEvent` *extends* `LambdaEvent` |

## Type declaration

### context

> **context**: `APIGWContext`

The Lambda invocation's context.

### event

> **event**: `TEvent`

The API Gateway or function URL event.

### info

> **info**: [`TRPCRequestInfo`](https://trpc.io/docs/typedoc/server/http/interfaces/TRPCRequestInfo.md)

## See

https://trpc.io/docs/server/adapters/aws-lambda#2-create-a-trpc-router
