Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Updates 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 UpdateEmailTemplate = UpdateEmailTemplate' {}
- newUpdateEmailTemplate :: Text -> EmailTemplateContent -> UpdateEmailTemplate
- updateEmailTemplate_templateName :: Lens' UpdateEmailTemplate Text
- updateEmailTemplate_templateContent :: Lens' UpdateEmailTemplate EmailTemplateContent
- data UpdateEmailTemplateResponse = UpdateEmailTemplateResponse' {
- httpStatus :: Int
- newUpdateEmailTemplateResponse :: Int -> UpdateEmailTemplateResponse
- updateEmailTemplateResponse_httpStatus :: Lens' UpdateEmailTemplateResponse Int
Creating a Request
data UpdateEmailTemplate Source #
Represents a request to update an email template. For more information, see the Amazon SES Developer Guide.
See: newUpdateEmailTemplate
smart constructor.
UpdateEmailTemplate' | |
|
Instances
newUpdateEmailTemplate Source #
Create a value of UpdateEmailTemplate
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:templateName:UpdateEmailTemplate'
, updateEmailTemplate_templateName
- The name of the template.
$sel:templateContent:UpdateEmailTemplate'
, updateEmailTemplate_templateContent
- The content of the email template, composed of a subject line, an HTML
part, and a text-only part.
Request Lenses
updateEmailTemplate_templateName :: Lens' UpdateEmailTemplate Text Source #
The name of the template.
updateEmailTemplate_templateContent :: Lens' UpdateEmailTemplate 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 UpdateEmailTemplateResponse Source #
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
See: newUpdateEmailTemplateResponse
smart constructor.
UpdateEmailTemplateResponse' | |
|
Instances
newUpdateEmailTemplateResponse Source #
Create a value of UpdateEmailTemplateResponse
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:UpdateEmailTemplateResponse'
, updateEmailTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
updateEmailTemplateResponse_httpStatus :: Lens' UpdateEmailTemplateResponse Int Source #
The response's http status code.