0.0.14 • Published 2 years ago

@quirionit/ses v0.0.14

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@quirionit/ses

@quirionit/ses provides extensions to AWS SES such as an API to create nested templates and an extension to send attachments.

Getting Started

Install or update @quirionit/ses from npm

npm i @quirionit/ses

create the SesTemplateApi like

import { SesTemplateApi } from '@quirionit/ses';

new SesTemplateApi(this, 'TemplateApi')

or create the SesTemplateEmailSender like

import { SesTemplateEmailSender } from '@quirionit/ses';

new SesTemplateEmailSender(this, 'EmailSender', {
    eventBusName: eventBus.eventBusName,
    eventPattern: {
        source: ['example.email-sender'],
        detailType: ['template.send-email'],
    },
    documentBucketName: bucket.bucketName,
});

Examples

For using the examples clone the repository

$ git clone git@github.com:quirionit/ses.git

for SesTemplateApi

$ cd ses/examples/template-api
$ npm install
$ cdk deploy

for SesTemplateEmailSender

$ cd ses/examples/email-sender
$ npm install
$ cdk deploy

to delete the created services

$ cdk destroy