forked from aws-samples/serverless-patterns
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.yaml
More file actions
30 lines (29 loc) · 727 Bytes
/
Copy pathapi.yaml
File metadata and controls
30 lines (29 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
openapi: "3.0.1"
info:
title: "Queue Based Leveling Example"
version: "2021-03-31 17:32:29UTC"
paths:
/submit:
post:
responses:
default:
description: "Response for POST /"
x-amazon-apigateway-integration:
type: "aws_proxy"
integrationSubtype: "SQS-SendMessage"
credentials:
Fn::GetAtt: [MyHttpApiRole, Arn]
connectionType: "INTERNET"
payloadFormatVersion: "1.0"
requestParameters:
MessageBody: "$request.body"
QueueUrl:
Ref: MySqsQueue
x-amazon-apigateway-cors:
allowMethods:
- "*"
maxAge: 0
allowCredentials: false
allowOrigins:
- "*"
x-amazon-apigateway-importexport-version: "1.0"