# Type Alias: CreateAWSLambdaContextOptions<TEvent>

> 

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

Defined in: [packages/server/src/adapters/aws-lambda/index.ts:32](https://github.com/trpc/trpc/blob/7c907acfd8b31929214792e3b8c2ad7a8ac72563/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
