Slide 11
Slide 11 text
Edit amplify-plugin.json
• Set the name attribute to
functionTemplate
• Define the functionTemplate
attribut
e
• The conditions attribute defines the
conditions to which the template
applie
s
• The templates attribute defines a list
of user-selectable templates on the CLI
{
"name": "functionTemplate",
"type": “util",
"commands": [],
"eventHandlers": [],
"functionTemplate": {
"conditions": {
"provider": "awscloudformation",
"services": ["Lambda"],
"runtime": "nodejs"
},
"templates": [
{
"name": "AppSync Lambda Resolver",
"value": "resolver"
}
]
}
}