Class InvokeMode
The invoke modes for a Lambda function.
Inheritance
System.Object
InvokeMode
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class InvokeMode : Enum
Syntax (vb)
Public NotInheritable Class InvokeMode
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
Function fn;
fn.AddFunctionUrl(new FunctionUrlOptions {
AuthType = FunctionUrlAuthType.NONE,
InvokeMode = InvokeMode.RESPONSE_STREAM
});
Synopsis
Fields
BUFFERED | Default option. |
RESPONSE_STREAM | Your function streams payload results as they become available. |
value__ |
Fields
BUFFERED
Default option.
public const InvokeMode BUFFERED
Field Value
Type | Description |
---|---|
InvokeMode |
Remarks
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.
public const InvokeMode RESPONSE_STREAM
Field Value
Type | Description |
---|---|
InvokeMode |
Remarks
Lambda invokes your function using the InvokeWithResponseStream API operation. The maximum response payload size is 20 MB, however, you can request a quota increase.
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |