-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathserverless-appsync-api.yml
39 lines (38 loc) · 1.18 KB
/
serverless-appsync-api.yml
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
31
32
33
34
35
36
37
38
39
name: test-graphql
schema: schema.api.graphql
authenticationType: API_KEY
apiKeys:
- apiKey
mappingTemplatesLocation: mapping-templates
mappingTemplates: ${file(./Resources/AppSyncResources/AppSyncMappingTemplates.yml)}
dataSources:
- type: AWS_LAMBDA
name: createProduct
description: 'Lambda'
config:
functionName: createProduct
iamRoleStatements: ${file(./Resources/AppSyncResources/AppSyncRole.yml)}
- type: AWS_LAMBDA
name: getProduct
description: 'Lambda'
config:
functionName: getProduct
iamRoleStatements: ${file(./Resources/AppSyncResources/AppSyncRole.yml)}
- type: AWS_LAMBDA
name: getAllProduct
description: 'Lambda'
config:
functionName: getAllProduct
iamRoleStatements: ${file(./Resources/AppSyncResources/AppSyncRole.yml)}
- type: AWS_LAMBDA
name: updateProduct
description: 'Lambda'
config:
functionName: updateProduct
iamRoleStatements: ${file(./Resources/AppSyncResources/AppSyncRole.yml)}
- type: AWS_LAMBDA
name: deleteProduct
description: 'Lambda'
config:
functionName: deleteProduct
iamRoleStatements: ${file(./Resources/AppSyncResources/AppSyncRole.yml)}