Skip to content

Instantly share code, notes, and snippets.

View kazuhirosaji's full-sized avatar

kazuhirosaji kazuhirosaji

View GitHub Profile
@joawan
joawan / handler.js
Created April 27, 2022 08:51
Configuration of SES event destination
const response = require('cfn-response');
const AWS = require('aws-sdk');
const propertiesToParams = (props) => ({
ConfigurationSetName: props.ConfigSetName,
EventDestination: {
Name: props.ConfigSetEventDestinationName,
Enabled: props.Enabled || true,
MatchingEventTypes: ['send', 'reject', 'bounce', 'complaint', 'delivery', 'open'],
SNSDestination: {