lightbulbSwitch Sample AWS Lambda function to use AWS IoT Device Shadow to switch a connected lightbulb ON or OFF To get your endpoint for the Device Shadow API, you can use the AWS CLI: aws iot describe-endpoint