1
0
Files
terraform.examples/ApigwAuthExample/api_body.json
T
2026-02-13 15:44:24 +08:00

43 lines
1.3 KiB
JSON

{
"openapi" : "3.0.1",
"paths" : {
"/" : {
"get" : {
"responses" : {
"default" : {
"description" : "Default response for GET /"
}
},
"security" : [ {
"SampleAuthorizer" : [ ]
} ],
"x-amazon-apigateway-integration" : {
"payloadFormatVersion" : "2.0",
"type" : "aws_proxy",
"httpMethod" : "POST",
"uri" : "arn:aws:apigateway:ap-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:ap-east-1:040216112220:function:EchoFunction/invocations",
"connectionType" : "INTERNET"
}
}
}
},
"components" : {
"securitySchemes" : {
"SampleAuthorizer" : {
"type" : "apiKey",
"name" : "Authorization",
"in" : "header",
"x-amazon-apigateway-authorizer" : {
"identitySource" : "$request.header.Authorization",
"authorizerUri" : "arn:aws:apigateway:ap-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:ap-east-1:040216112220:function:SampleAuthorizer/invocations",
"authorizerPayloadFormatVersion" : "2.0",
"authorizerResultTtlInSeconds" : 0,
"type" : "request",
"enableSimpleResponses" : true
}
}
}
},
"x-amazon-apigateway-importexport-version" : "1.0"
}