| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.SESV2.CreateEmailTemplate
Description
Creates an email template. Email templates enable you to send personalized email to one or more destinations in a single API operation. For more information, see the Amazon SES Developer Guide.
You can execute this operation no more than once per second.
Synopsis
- data CreateEmailTemplate = CreateEmailTemplate' {}
- newCreateEmailTemplate :: Text -> EmailTemplateContent -> CreateEmailTemplate
- createEmailTemplate_templateName :: Lens' CreateEmailTemplate Text
- createEmailTemplate_templateContent :: Lens' CreateEmailTemplate EmailTemplateContent
- data CreateEmailTemplateResponse = CreateEmailTemplateResponse' {
- httpStatus :: Int
- newCreateEmailTemplateResponse :: Int -> CreateEmailTemplateResponse
- createEmailTemplateResponse_httpStatus :: Lens' CreateEmailTemplateResponse Int
Creating a Request
data CreateEmailTemplate Source #
Represents a request to create an email template. For more information, see the Amazon SES Developer Guide.
See: newCreateEmailTemplate smart constructor.
Constructors
| CreateEmailTemplate' | |
Fields
| |
Instances
newCreateEmailTemplate Source #
Arguments
| :: Text | |
| -> EmailTemplateContent | |
| -> CreateEmailTemplate |
Create a value of CreateEmailTemplate with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateEmailTemplate, createEmailTemplate_templateName - The name of the template.
$sel:templateContent:CreateEmailTemplate', createEmailTemplate_templateContent - The content of the email template, composed of a subject line, an HTML
part, and a text-only part.
Request Lenses
createEmailTemplate_templateName :: Lens' CreateEmailTemplate Text Source #
The name of the template.
createEmailTemplate_templateContent :: Lens' CreateEmailTemplate EmailTemplateContent Source #
The content of the email template, composed of a subject line, an HTML part, and a text-only part.
Destructuring the Response
data CreateEmailTemplateResponse Source #
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
See: newCreateEmailTemplateResponse smart constructor.
Constructors
| CreateEmailTemplateResponse' | |
Fields
| |
Instances
newCreateEmailTemplateResponse Source #
Create a value of CreateEmailTemplateResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateEmailTemplateResponse', createEmailTemplateResponse_httpStatus - The response's http status code.
Response Lenses
createEmailTemplateResponse_httpStatus :: Lens' CreateEmailTemplateResponse Int Source #
The response's http status code.