# ResponseTransferMode

The response transfer mode of the integration.

- Source: [`aws-apigateway/lib/integration.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-apigateway/lib/integration.ts#L13)
- Type last changed: v2.230.0 · 26 Nov 2025

## Example

TypeScript:

```ts
declare const handler: lambda.Function;
new apigateway.LambdaIntegration(handler, {
  responseTransferMode: apigateway.ResponseTransferMode.STREAM,
});
```

Python:

```python
# handler: lambda.Function

apigateway.LambdaIntegration(handler,
    response_transfer_mode=apigateway.ResponseTransferMode.STREAM
)
```

Java:

```java
Function handler;

LambdaIntegration.Builder.create(handler)
        .responseTransferMode(ResponseTransferMode.STREAM)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
Function handler;

new LambdaIntegration(handler, new LambdaIntegrationOptions {
    ResponseTransferMode = ResponseTransferMode.STREAM
});
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
var handler Function

apigateway.NewLambdaIntegration(handler, &LambdaIntegrationOptions{
	ResponseTransferMode: apigateway.ResponseTransferMode_STREAM,
})
```

## Members

| Member | Description |
| --- | --- |
| `BUFFERED` | API Gateway waits to receive the complete response before beginning transmission. |
| `STREAM` | API Gateway streams the response back to you as it is received from the integration. |

## Referenced by

- [`IntegrationOptions`](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.IntegrationOptions.html).responseTransferMode
