(event)
| 17 | const eventbridge = new EventBridgeClient({ apiVersion: '2015-10-07' }); |
| 18 | |
| 19 | async function buildAttachments(event) { |
| 20 | const blocks = await statusBlocks(event); |
| 21 | |
| 22 | return [ |
| 23 | { |
| 24 | color: statusColor(event), |
| 25 | // TODO fallback: '', |
| 26 | blocks, |
| 27 | }, |
| 28 | ]; |
| 29 | } |
| 30 | |
| 31 | export const handler = async (event) => { |
| 32 | console.log(JSON.stringify(event)); |
no test coverage detected