(bucketName, xml)
| 19 | }; |
| 20 | |
| 21 | function getNotificationRequest(bucketName, xml) { |
| 22 | const request = { |
| 23 | bucketName, |
| 24 | headers: { |
| 25 | host: `${bucketName}.s3.amazonaws.com`, |
| 26 | }, |
| 27 | actionImplicitDenies: false, |
| 28 | }; |
| 29 | if (xml) { |
| 30 | request.post = xml; |
| 31 | } |
| 32 | return request; |
| 33 | } |
| 34 | |
| 35 | function getNotificationXml() { |
| 36 | const id = 'queue1'; |
no outgoing calls
no test coverage detected