ResponseTransferMode

class aws_cdk.aws_apigateway.ResponseTransferMode(*values)

Bases: Enum

The response transfer mode of the integration.

ExampleMetadata:

infused

Example:

# handler: lambda.Function

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

Attributes

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.

This is only supported for AWS_PROXY and HTTP_PROXY integration types.