enum InvokeMode
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Lambda.InvokeMode |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#InvokeMode |
Java | software.amazon.awscdk.services.lambda.InvokeMode |
Python | aws_cdk.aws_lambda.InvokeMode |
TypeScript (source) | aws-cdk-lib » aws_lambda » InvokeMode |
The invoke modes for a Lambda function.
Example
declare const fn: lambda.Function;
fn.addFunctionUrl({
authType: lambda.FunctionUrlAuthType.NONE,
invokeMode: lambda.InvokeMode.RESPONSE_STREAM,
});
Members
Name | Description |
---|---|
BUFFERED | Default option. |
RESPONSE_STREAM | Your function streams payload results as they become available. |
BUFFERED
Default option.
Lambda invokes your function using the Invoke API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB.
RESPONSE_STREAM
Your function streams payload results as they become available.
Lambda invokes your function using the InvokeWithResponseStream API operation. The maximum response payload size is 20 MB, however, you can request a quota increase.