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 |
Displays the template object (which includes the subject line, HTML part and text part) for the template you specify.
You can execute this operation no more than once per second.
Synopsis
- data GetEmailTemplate = GetEmailTemplate' {
- templateName :: Text
- newGetEmailTemplate :: Text -> GetEmailTemplate
- getEmailTemplate_templateName :: Lens' GetEmailTemplate Text
- data GetEmailTemplateResponse = GetEmailTemplateResponse' {}
- newGetEmailTemplateResponse :: Int -> Text -> EmailTemplateContent -> GetEmailTemplateResponse
- getEmailTemplateResponse_httpStatus :: Lens' GetEmailTemplateResponse Int
- getEmailTemplateResponse_templateName :: Lens' GetEmailTemplateResponse Text
- getEmailTemplateResponse_templateContent :: Lens' GetEmailTemplateResponse EmailTemplateContent
Creating a Request
data GetEmailTemplate Source #
Represents a request to display the template object (which includes the subject line, HTML part and text part) for the template you specify.
See: newGetEmailTemplate
smart constructor.
GetEmailTemplate' | |
|
Instances
Create a value of GetEmailTemplate
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:GetEmailTemplate'
, getEmailTemplate_templateName
- The name of the template.
Request Lenses
getEmailTemplate_templateName :: Lens' GetEmailTemplate Text Source #
The name of the template.
Destructuring the Response
data GetEmailTemplateResponse Source #
The following element is returned by the service.
See: newGetEmailTemplateResponse
smart constructor.
GetEmailTemplateResponse' | |
|
Instances
newGetEmailTemplateResponse Source #
Create a value of GetEmailTemplateResponse
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:GetEmailTemplateResponse'
, getEmailTemplateResponse_httpStatus
- The response's http status code.
$sel:templateName:GetEmailTemplate'
, getEmailTemplateResponse_templateName
- The name of the template.
$sel:templateContent:GetEmailTemplateResponse'
, getEmailTemplateResponse_templateContent
- The content of the email template, composed of a subject line, an HTML
part, and a text-only part.
Response Lenses
getEmailTemplateResponse_httpStatus :: Lens' GetEmailTemplateResponse Int Source #
The response's http status code.
getEmailTemplateResponse_templateName :: Lens' GetEmailTemplateResponse Text Source #
The name of the template.
getEmailTemplateResponse_templateContent :: Lens' GetEmailTemplateResponse EmailTemplateContent Source #
The content of the email template, composed of a subject line, an HTML part, and a text-only part.