InvokeMode
- class aws_cdk.aws_lambda.InvokeMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
The invoke modes for a Lambda function.
- ExampleMetadata:
infused
Example:
# fn: lambda.Function fn.add_function_url( auth_type=lambda_.FunctionUrlAuthType.NONE, invoke_mode=lambda_.InvokeMode.RESPONSE_STREAM )
Attributes
- 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.