This will enable your Lambda function to be called by an Alexa Smart Home Skill.
amzn1.ask.skill.xx-xx-xx-xx
is an application ID for Alexa Smart Home. You need to sign up Amazon Developer Console and get your application ID.
After deploying, add your deployed Lambda function ARN to which this event is attached to the Service Endpoint under Configuration on Amazon Developer Console.
Please see Steps to Create a Smart Home Skill for more info.
functions:
mySkill:
handler: mySkill.handler
events:
- alexaSmartHome: amzn1.ask.skill.xx-xx-xx-xx
Note: alexaSmartHome
events are enabled by default.
This will create and attach a alexaSmartHome event for the mySkill
function which is disabled. If enabled it will call
the mySkill
function by an Alexa Smart Home Skill.
functions:
mySkill:
handler: mySkill.handler
events:
- alexaSmartHome:
appId: amzn1.ask.skill.xx-xx-xx-xx
enabled: false