mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
aws-lambda Authorizer response context only allows booleans, numbers and strings (#33437)
* Context only allows booleans, numbers and strings * add richardcornelissen as contributor
This commit is contained in:
parent
a142998ff0
commit
eed96d4372
5
types/aws-lambda/index.d.ts
vendored
5
types/aws-lambda/index.d.ts
vendored
@ -27,6 +27,7 @@
|
||||
// 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>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@ -536,10 +537,10 @@ export type StatementResource = MaybeStatementPrincipal & ({ Resource: string |
|
||||
export type StatementPrincipal = MaybeStatementResource & ({ Principal: PrincipalValue } | { NotPrincipal: PrincipalValue });
|
||||
/**
|
||||
* API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement.
|
||||
* http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
|
||||
* https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html
|
||||
*/
|
||||
export interface AuthResponseContext {
|
||||
[name: string]: any;
|
||||
[name: string]: boolean | number | string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user