aws-samples / amazon-guardduty-to-slack

Demonstrates integrating Amazon GuardDuty with your Slack Channel
MIT No Attribution
132 stars 66 forks source link

How to add functions in Lambda? #20

Closed btmndkh closed 4 years ago

btmndkh commented 4 years ago

I try to add some functions in lambda processEvent. For example, tags actionType domain RemoteIpDetails etc.

btmndkh commented 4 years ago

found some solutions here const tags = message.detail.resource.instanceDetails.tags; const actionType = message.detail.service.action.actionType; const domain = message.detail.service.action.dnsRequestAction.domain; const awsApiCallAction = message.detail.service.action.awsApiCallAction.remoteIpDetails.ipAddressV4; const networkConnectionAction = message.detail.service.action.networkConnectionAction.remoteIpDetails.ipAddressV4;