File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -189,8 +189,20 @@ declare namespace Aws {
189189 audience : string [ ] ;
190190 }
191191
192+ interface CustomAuthorizer {
193+ type : "request" ;
194+ functionName ?: string ;
195+ functionArn ?: string ;
196+ name ?: string ;
197+ resultTtlInSeconds ?: number ;
198+ enableSimpleResponses ?: boolean ;
199+ payloadVersion ?: string ;
200+ identitySource ?: string [ ] ;
201+ managedExternally ?: boolean ;
202+ }
203+
192204 interface Authorizers {
193- [ key : string ] : CognitoAuthorizer | OidcAuthorizer | JwtAuthorizer ;
205+ [ key : string ] : CognitoAuthorizer | OidcAuthorizer | JwtAuthorizer | CustomAuthorizer ;
194206 }
195207
196208 interface Alb {
Original file line number Diff line number Diff line change @@ -392,6 +392,10 @@ const awsServerless: Aws.Serverless = {
392392 issuerUrl : "testissuerUrl" ,
393393 audience : [ "testaudience" ] ,
394394 } ,
395+ testCustomAuthorizer : {
396+ type : "request" ,
397+ functionName : "testCustomAuthorizer"
398+ }
395399 } ,
396400 useProviderTags : true ,
397401 metrics : true ,
@@ -953,6 +957,9 @@ const awsServerless: Aws.Serverless = {
953957 authorizer : "aws_iam" ,
954958 } ,
955959 } ,
960+ testCustomAuthorizer : {
961+ handler : "testauthorizer" ,
962+ }
956963 } ,
957964 layers : {
958965 testLayer : {
You can’t perform that action at this time.
0 commit comments