Creates sample Lambda function payloads for different types of events.
serverless generate-event --type eventType
--type
or-t
The type of the event to generate payload for. Required.--body
or-b
The body for the message, request, or stream event.
- aws:alexaSkill
- aws:alexaSmartHome
- aws:apiGateway
- aws:cloudWatch
- aws:cloudWatchLog
- aws:cognitoUserPool
- aws:dynamo
- aws:iot
- aws:kinesis
- aws:s3
- aws:sns
- aws:sqs
- aws:websocket
serverless generate-event -t aws:sqs
serverless generate-event -t aws:kinesis -b '{"foo": "bar"}'
serverless generate-event -t aws:sqs > event.json