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

This commit is contained in:
David Sommerich
2020-01-20 15:41:55 -05:00
committed by Eli Barzilay
parent 0a88aa1d56
commit 2e3ed02258
2 changed files with 2 additions and 2 deletions
+1 -1
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 */
+1 -1
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;
}