Skip to content

Commit 7c0a331

Browse files
committed
feat(plugins/aws-lambda): add invoke_mode in schema
1 parent cf650fc commit 7c0a331

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

kong/plugins/aws-lambda/schema.lua

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,19 @@ return {
4949
description = "The qualifier to use when invoking the function."
5050
} },
5151
{ invocation_type = {
52-
description = "The InvocationType to use when invoking the function. Available types are RequestResponse, Event, DryRun.",
52+
description = "The InvocationType to use when invoking the function. Available types are RequestResponse, Event (only available when invoke_mode is BUFFERED), DryRun.",
5353
type = "string",
5454
required = true,
5555
default = "RequestResponse",
5656
one_of = { "RequestResponse", "Event", "DryRun" }
5757
} },
58+
{ invoke_mode = {
59+
type = "string",
60+
description = "The mode for the AWS Lambda function to returns responses.",
61+
required = true,
62+
default = "BUFFERED",
63+
one_of = { "BUFFERED", "RESPONSE_STREAM" }
64+
} },
5865
{ log_type = {
5966
description = "The LogType to use when invoking the function. By default, None and Tail are supported.",
6067
type = "string",

0 commit comments

Comments
 (0)