Merge pull request #34456 from simonbuchan/revert-33437

Revert #33437 "aws-lambda Authorizer response context only allows booleans, …
This commit is contained in:
Benjamin Lichtman
2019-04-10 09:24:10 -07:00
committed by GitHub
+2 -3
View File
@@ -27,7 +27,6 @@
// Erik Dalén <https://github.com/dalen>
// Loïk Gaonac'h <https://github.com/loikg>
// Roberto Zen <https://github.com/skyzenr>
// Richard Cornelissen <https://github.com/richardcornelissen>
// Grzegorz Redlicki <https://github.com/redlickigrzegorz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
@@ -565,10 +564,10 @@ export type StatementResource = MaybeStatementPrincipal & ({ Resource: string |
export type StatementPrincipal = MaybeStatementResource & ({ Principal: PrincipalValue } | { NotPrincipal: PrincipalValue });
/**
* API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement.
* https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html
* http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
*/
export interface AuthResponseContext {
[name: string]: boolean | number | string;
[name: string]: any;
}
/**