# SES Abstraction over `@aws-sdk/client-sesv2`. Namespace: `aws.ses.` ## Index - [client](#client) - [`fn` deleteSuppressedDestination](#fn-deletesuppresseddestination) - [`fn` sendEmail](#fn-sendemail) ## Client The SDK's SESv2 client is instantiated with no options by default. To configure it, call the module as a _factory_ passing the client configuration (see [configuration](./index.md#configuration)): ```js // CJS const { aws: { ses } } = require( 'lambda-toolkit' ); // ESM import { aws } from 'lambda-toolkit'; const { ses } = aws; const client = ses( { region: 'eu-west-1' } ); ``` ## Members ### `fn` deleteSuppressedDestination Removes an address from the account suppression list. Abstracts the `DeleteSuppressedDestination`. Example: ```js // CJS const { aws: { ses } } = require( 'lambda-toolkit' ); // ESM import { aws } from 'lambda-toolkit'; const { ses } = aws; await ses.deleteSuppressedDestination( 'user@not-a-domain' ); ``` #### Arguments |Name|Type|Description|Default| |---|---|---|---| |address|String|The email address to remove from the suppression list|| #### Return The raw SDK [response](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sesv2/command/DeleteSuppressedDestinationCommand/). #### Permissions needed The AWS policy statement to use this function is: ```json { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "ses:DeleteSuppressedDestination" ], "Resource": [ "*" ] } ] } ``` ### `fn` sendEmail Send an email using `SendEmailCommand`. ```js // CJS const { aws: { ses } } = require( 'lambda-toolkit' ); // ESM import { aws } from 'lambda-toolkit'; const { ses } = aws; await ses.sendEmail( { to: [ 'email1@not-a-domain', 'email2@not-a-domain' ], from: 'noreply@not-a-domain', html: '