aws-lambda: Make ALBResult.body optional (#41700)

This commit is contained in:
David Sommerich 2020-01-21 07:41:55 +11:00 committed by Eli Barzilay
parent 0a88aa1d56
commit 2e3ed02258
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ num = albRes.statusCode;
str = albRes.statusDescription;
boolOrNumOrStr = albRes.headers!['example'];
boolOrNumOrStr = albRes.multiValueHeaders!['example'][0];
str = albRes.body;
strOrUndefined = albRes.body;
bool = albRes.isBase64Encoded;
/* API Gateway CustomAuthorizer Event */

View File

@ -579,7 +579,7 @@ export interface ALBResult {
statusDescription: string;
headers?: { [header: string]: boolean | number | string };
multiValueHeaders?: { [header: string]: Array<boolean | number | string> };
body: string;
body?: string;
isBase64Encoded: boolean;
}