| 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.SES.CreateTemplate
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 CreateTemplate = CreateTemplate' {}
- newCreateTemplate :: Template -> CreateTemplate
- createTemplate_template :: Lens' CreateTemplate Template
- data CreateTemplateResponse = CreateTemplateResponse' {
- httpStatus :: Int
- newCreateTemplateResponse :: Int -> CreateTemplateResponse
- createTemplateResponse_httpStatus :: Lens' CreateTemplateResponse Int
Creating a Request
data CreateTemplate Source #
Represents a request to create an email template. For more information, see the Amazon SES Developer Guide.
See: newCreateTemplate smart constructor.
Constructors
| CreateTemplate' | |
Instances
Arguments
| :: Template | |
| -> CreateTemplate |
Create a value of CreateTemplate 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:template:CreateTemplate', createTemplate_template - The content of the email, composed of a subject line, an HTML part, and
a text-only part.
Request Lenses
createTemplate_template :: Lens' CreateTemplate Template Source #
The content of the email, composed of a subject line, an HTML part, and a text-only part.
Destructuring the Response
data CreateTemplateResponse Source #
See: newCreateTemplateResponse smart constructor.
Constructors
| CreateTemplateResponse' | |
Fields
| |
Instances
newCreateTemplateResponse Source #
Create a value of CreateTemplateResponse 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:CreateTemplateResponse', createTemplateResponse_httpStatus - The response's http status code.
Response Lenses
createTemplateResponse_httpStatus :: Lens' CreateTemplateResponse Int Source #
The response's http status code.