This page provides a reference for AWS Simple Email Service (SES) actions available in the workflow automation actions catalog. Use these actions to create, update, retrieve, and delete email templates, and to send emails through Amazon SES.
Prerequisites
For prerequisites and credentials setup, see Set up AWS credentials.
Create a template
The action identifier is aws.ses.createTemplate.
Creates an email template in Amazon SES for sending templated emails.
重要
At least one of textPart or htmlPart must be provided. SES requires the template to have body content in at least one format.
The following table describes the input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
| String | Optional. IAM role ARN to assume for AWS API calls. |
|
| String | Optional. AWS access key ID. Pass as a secret. |
|
| String | Optional. AWS secret access key. Pass as a secret. |
|
| String | Optional. Temporary session token for STS authentication. Pass as a secret. |
|
| String | Required. AWS region where the template will be created. |
|
| String | Required. Name of the template to create. |
|
| String | Required. Subject line for emails sent with this template. Supports template variables using |
|
| String | Optional. Plain text version of the email body. At least one of |
|
| String | Optional. HTML version of the email body. At least one of |
|
| List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes the output fields for this action.
Output | Type | Example |
|---|---|---|
| Object | See the create_template boto3 reference. Returns an empty object |
| Boolean |
|
| String |
|
Example workflow
name: create-ses-templatedescription: 'Create an email template in Amazon SES'steps: - name: createWelcomeTemplate type: action action: aws.ses.createTemplate version: '1' inputs: awsRoleArn: "arn:aws:iam::123456789012:role/my-workflow-role" region: us-east-2 templateName: WelcomeEmailTemplate subjectPart: "Welcome to Our Service" textPart: "Hello, welcome aboard." htmlPart: "<h1>Hello</h1><p>Welcome aboard.</p>" next: endUpdate a template
The action identifier is aws.ses.updateTemplate.
Updates an existing email template in Amazon SES. The template must already exist.
重要
At least one of textPart or htmlPart must be provided. SES requires the template to have body content in at least one format.
The following table describes the input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
| String | Optional. IAM role ARN to assume for AWS API calls. |
|
| String | Optional. AWS access key ID. Pass as a secret. |
|
| String | Optional. AWS secret access key. Pass as a secret. |
|
| String | Optional. Temporary session token for STS authentication. Pass as a secret. |
|
| String | Required. AWS region where the template exists. |
|
| String | Required. Name of the template to update. Must already exist. |
|
| String | Required. Updated subject line. Supports template variables using |
|
| String | Optional. Updated plain text version of the email body. At least one of |
|
| String | Optional. Updated HTML version of the email body. At least one of |
|
| List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes the output fields for this action.
Output | Type | Example |
|---|---|---|
| Object | See the update_template boto3 reference. Returns an empty object |
| Boolean |
|
| String |
|
Example workflow
name: update-ses-templatedescription: 'Update an email template in Amazon SES'steps: - name: updateWelcomeTemplate type: action action: aws.ses.updateTemplate version: '1' inputs: awsRoleArn: "arn:aws:iam::123456789012:role/my-workflow-role" region: us-east-2 templateName: WelcomeEmailTemplate subjectPart: "Welcome to Our Service (Updated)" textPart: "Hi, thanks again for signing up." htmlPart: "<h1>Welcome!</h1><p>Thanks again for signing up.</p>" next: endDelete a template
The action identifier is aws.ses.deleteTemplate.
Deletes an email template from Amazon SES. This action is idempotent — it succeeds even if the named template does not exist.
The following table describes the input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
| String | Optional. IAM role ARN to assume for AWS API calls. |
|
| String | Optional. AWS access key ID. Pass as a secret. |
|
| String | Optional. AWS secret access key. Pass as a secret. |
|
| String | Optional. Temporary session token for STS authentication. Pass as a secret. |
|
| String | Required. AWS region where the template exists. |
|
| String | Required. Name of the template to delete. |
|
| List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes the output fields for this action.
Output | Type | Example |
|---|---|---|
| Object | See the delete_template boto3 reference. Returns an empty object |
| Boolean |
|
| String |
|
Example workflow
name: delete-ses-templatedescription: 'Delete an email template from Amazon SES'steps: - name: deleteWelcomeTemplate type: action action: aws.ses.deleteTemplate version: '1' inputs: awsRoleArn: "arn:aws:iam::123456789012:role/my-workflow-role" region: us-east-2 templateName: WelcomeEmailTemplate next: endGet a template
The action identifier is aws.ses.getTemplate.
Retrieves an existing email template from Amazon SES, including its subject, plain text body, and HTML body.
The following table describes the input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
| String | Optional. IAM role ARN to assume for AWS API calls. |
|
| String | Optional. AWS access key ID. Pass as a secret. |
|
| String | Optional. AWS secret access key. Pass as a secret. |
|
| String | Optional. Temporary session token for STS authentication. Pass as a secret. |
|
| String | Required. AWS region where the template exists. |
|
| String | Required. Name of the template to retrieve. |
|
| List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes the output fields for this action.
Output | Type | Example |
|---|---|---|
| Object | See the get_template boto3 reference. Contains a |
| Boolean |
|
| String |
|
Example workflow
name: get-ses-templatedescription: 'Retrieve an email template from Amazon SES'steps: - name: getWelcomeTemplate type: action action: aws.ses.getTemplate version: '1' inputs: awsRoleArn: "arn:aws:iam::123456789012:role/my-workflow-role" region: us-east-2 templateName: WelcomeEmailTemplate selectors: - name: template expression: ".response.Template" next: endList templates
The action identifier is aws.ses.listTemplates.
Lists the email templates present in your Amazon SES account in the current region.
The following table describes the input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
| String | Optional. IAM role ARN to assume for AWS API calls. |
|
| String | Optional. AWS access key ID. Pass as a secret. |
|
| String | Optional. AWS secret access key. Pass as a secret. |
|
| String | Optional. Temporary session token for STS authentication. Pass as a secret. |
|
| String | Required. AWS region to list templates from. |
|
| Integer | Optional. Maximum number of templates to return per page. Must be between 1 and 100. Defaults to 10. |
|
| String | Optional. Pagination token from a previous response to retrieve the next page of results. |
|
| List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes the output fields for this action.
Output | Type | Example |
|---|---|---|
| Object | See the list_templates boto3 reference. Contains a |
| Boolean |
|
| String |
|
Example workflow
name: list-ses-templatesdescription: 'List email templates in Amazon SES'steps: - name: listSesTemplates type: action action: aws.ses.listTemplates version: '1' inputs: awsRoleArn: "arn:aws:iam::123456789012:role/my-workflow-role" region: us-east-2 maxItems: 50 selectors: - name: templates expression: ".response.TemplatesMetadata" next: endSend an email
The action identifier is aws.ses.sendEmail.
Sends an email through Amazon SES. The source address must be a verified SES identity.
重要
At least one of toAddresses, ccAddresses, or bccAddresses must be provided, and at least one of bodyText or bodyHtml must be provided. The combined recipient count across all three address fields cannot exceed 50. All email addresses must be 7-bit ASCII — Unicode domains must be Punycode-encoded.
The following table describes the input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
| String | Optional. IAM role ARN to assume for AWS API calls. |
|
| String | Optional. AWS access key ID. Pass as a secret. |
|
| String | Optional. AWS secret access key. Pass as a secret. |
|
| String | Optional. Temporary session token for STS authentication. Pass as a secret. |
|
| String | Required. AWS region to send the email from. |
|
| String | Required. Sender email address. Must be a verified SES identity. |
|
| String | Required. Email subject line. |
|
| List | Optional. List of To recipient addresses. At least one of |
|
| List | Optional. List of CC recipient addresses. At least one of |
|
| List | Optional. List of BCC recipient addresses. At least one of |
|
| String | Optional. Plain text email body. At least one of |
|
| String | Optional. HTML email body. At least one of |
|
| String | Optional. Character set for the subject. Defaults to |
|
| String | Optional. Character set for the plain text body. Defaults to |
|
| String | Optional. Character set for the HTML body. Defaults to |
|
| List | Optional. Reply-to addresses. |
|
| String | Optional. Email address for bounce and complaint notifications. |
|
| String | Optional. ARN of a verified identity to use for sending authorization. |
|
| String | Optional. ARN of a verified identity associated with |
|
| String | Optional. Name of a configuration set to use for this send. |
|
| List | Optional. Message tags as a list of |
|
| List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes the output fields for this action.
Output | Type | Example |
|---|---|---|
| Object | See the send_email boto3 reference. Contains a |
| Boolean |
|
| String |
|
Example workflow
name: send-ses-emaildescription: 'Send an email through Amazon SES'steps: - name: sendWelcomeEmail type: action action: aws.ses.sendEmail version: '1' inputs: awsRoleArn: "arn:aws:iam::123456789012:role/my-workflow-role" region: us-east-2 source: no-reply@example.com toAddresses: - recipient@example.com subject: "Welcome to Our Service" bodyText: "Hi there, thanks for signing up." bodyHtml: "<h1>Welcome!</h1><p>Thanks for signing up.</p>" selectors: - name: messageId expression: ".response.MessageId" next: endSend a templated email
The action identifier is aws.ses.sendTemplatedEmail.
Sends an email using an existing Amazon SES template, substituting placeholder values from templateData into the template. The source address and the referenced template must already exist.
重要
At least one of toAddresses, ccAddresses, or bccAddresses must be provided. Omitting all three results in an AWS API error at send time. The combined recipient count cannot exceed 50, and templateData cannot exceed 262,144 characters.
The following table describes the input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
| String | Optional. IAM role ARN to assume for AWS API calls. |
|
| String | Optional. AWS access key ID. Pass as a secret. |
|
| String | Optional. AWS secret access key. Pass as a secret. |
|
| String | Optional. Temporary session token for STS authentication. Pass as a secret. |
|
| String | Required. AWS region to send the email from. |
|
| String | Required. Sender email address. Must be a verified SES identity. |
|
| String | Required. Name of the SES template to use. Must already exist. |
|
| String | Required. JSON string of key/value pairs to substitute into the template's placeholders. Maximum 262,144 characters. |
|
| List | Optional. List of To recipient addresses. At least one of |
|
| List | Optional. List of CC recipient addresses. At least one of |
|
| List | Optional. List of BCC recipient addresses. At least one of |
|
| List | Optional. Reply-to addresses. |
|
| String | Optional. Email address for bounce and complaint notifications. |
|
| String | Optional. ARN of a verified identity to use for sending authorization. |
|
| String | Optional. ARN of a verified identity associated with |
|
| String | Optional. Cross-account ARN of the template, as an alternative to |
|
| String | Optional. Name of a configuration set to use for this send. |
|
| List | Optional. Message tags as a list of |
|
| List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes the output fields for this action.
Output | Type | Example |
|---|---|---|
| Object | See the send_templated_email boto3 reference. Contains a |
| Boolean |
|
| String |
|
Example workflow
name: send-ses-templated-emaildescription: 'Send a templated email through Amazon SES'steps: - name: sendWelcomeTemplatedEmail type: action action: aws.ses.sendTemplatedEmail version: '1' inputs: awsRoleArn: "arn:aws:iam::123456789012:role/my-workflow-role" region: us-east-2 source: no-reply@example.com template: WelcomeEmailTemplate templateData: '{"name": "Alice"}' toAddresses: - recipient@example.com selectors: - name: messageId expression: ".response.MessageId" next: endSend bulk templated emails
The action identifier is aws.ses.sendBulkTemplatedEmail.
Sends a templated email to multiple recipients in a single call, with per-recipient template data substitution. The source address and the referenced template must already exist.
重要
AWS limits this action to 50 destinations entries per call, with up to 50 recipients (combined To/Cc/Bcc) per destination, and a maximum generated message size of 10 MB. Exceeding any of these limits produces an AWS API error at send time.
Each entry in destinations accepts the following fields:
destination— Required. Object withtoAddresses,ccAddresses, and/orbccAddresses(each a list of strings).replacementTemplateData— Optional. JSON string of per-recipient placeholder values. OverridesdefaultTemplateDatafor this recipient.replacementTags— Optional. List of{"name": "...", "value": "..."}objects that overridedefaultTagsfor this recipient.
The following table describes the input fields for this action.
Input | Type | Description | Example |
|---|---|---|---|
| String | Optional. IAM role ARN to assume for AWS API calls. |
|
| String | Optional. AWS access key ID. Pass as a secret. |
|
| String | Optional. AWS secret access key. Pass as a secret. |
|
| String | Optional. Temporary session token for STS authentication. Pass as a secret. |
|
| String | Required. AWS region to send the emails from. |
|
| String | Required. Sender email address. Must be a verified SES identity. |
|
| String | Required. Name of the SES template to use. Must already exist. |
|
| String | Required. JSON string of fallback placeholder values used for any destination that does not supply its own |
|
| List | Required. List of per-recipient destination objects. Each entry requires a |
|
| List | Optional. Reply-to addresses applied to all destinations. |
|
| String | Optional. Email address for bounce and complaint notifications. |
|
| String | Optional. ARN of a verified identity to use for sending authorization. |
|
| String | Optional. ARN of a verified identity associated with |
|
| String | Optional. Cross-account ARN of the template, as an alternative to |
|
| String | Optional. Name of a configuration set to use for this send. |
|
| List | Optional. Default message tags applied to all destinations as a list of |
|
| List | Optional. JQ selectors to extract specific fields from the action output. |
|
The following table describes the output fields for this action.
Output | Type | Example |
|---|---|---|
| Object | See the send_bulk_templated_email boto3 reference. Contains a |
| Boolean |
|
| String |
|
Example workflow
name: send-ses-bulk-templated-emaildescription: 'Send bulk templated emails through Amazon SES'steps: - name: sendBulkWelcomeEmail type: action action: aws.ses.sendBulkTemplatedEmail version: '1' inputs: awsRoleArn: "arn:aws:iam::123456789012:role/my-workflow-role" region: us-east-2 source: no-reply@example.com template: WelcomeEmailTemplate defaultTemplateData: '{"name": "Guest"}' destinations: - destination: toAddresses: - alice@example.com replacementTemplateData: '{"name": "Alice"}' - destination: toAddresses: - bob@example.com replacementTemplateData: '{"name": "Bob"}' selectors: - name: sendStatuses expression: ".response.Status" next: end