You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+144Lines changed: 144 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,27 @@
5
5
6
6
This Serverless Framewrok plugin supports the AWS service proxy integration feature of API Gateway. You can directly connect API Gateway to AWS services without Lambda.
The (DynamoDB Operation)[https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_Operations.html] is automatically mapped by the `method` with following HTTP specification if you omit the `action`.
229
+
230
+
| Method | Mapped action | Note |
231
+
----|----|----
232
+
| post | PutItem | hashkey is set apigateway requestid automatically by default |
233
+
| put | PutItem | hashkey is set `pathParam` or `queryStringParam` |
234
+
| patch | UpdateItem ||
235
+
| get | GetItem ||
236
+
| delete | DeleteItem ||
237
+
238
+
Sample syntax for DynamoDB proxy in `serverless.yml`.
239
+
240
+
```yaml
241
+
custom:
242
+
apiGatewayServiceProxies:
243
+
- dynamodb:
244
+
path: /dynamodb
245
+
method: post
246
+
tableName: { Ref: 'YourTable' }
247
+
hashKey: 'id' # You must define hashKey attribute with `post` method
0 commit comments