UNPKG

osls

Version:

Open-source alternative to Serverless Framework

35 lines (26 loc) 1.19 kB
# Alexa Smart Home ## Event definition 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](https://developer.amazon.com/) 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](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/steps-to-create-a-smart-home-skill) for more info. ```yml functions: mySkill: handler: mySkill.handler events: - alexaSmartHome: amzn1.ask.skill.xx-xx-xx-xx ``` ## Enabling / Disabling **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. ```yaml functions: mySkill: handler: mySkill.handler events: - alexaSmartHome: appId: amzn1.ask.skill.xx-xx-xx-xx enabled: false ```