open-index/open-npm huggingface dataset:
npm package: @quirionit/ses
Description: SES extensions
Author: Mark Kirchner
Latest version: 0.0.14

# @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
```console
npm i @quirionit/ses
```

create the *SesTemplateApi* like

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

new SesTemplateApi(this, 'TemplateApi')
```

or create the *SesTemplateEmailSender* like

```ts
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
```bash
$ git clone git@github.com:quirionit/ses.git
```

for *SesTemplateApi* 
```bash
$ cd ses/examples/template-api
$ npm install
$ cdk deploy
```

for *SesTemplateEmailSender*
```bash
$ cd ses/examples/email-sender
$ npm install
$ cdk deploy
```

to delete the created services
```bash
$ cdk destroy
```