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 |
Creates a message template for messages that are sent through the email channel.
Synopsis
- data CreateEmailTemplate = CreateEmailTemplate' {}
- newCreateEmailTemplate :: Text -> EmailTemplateRequest -> CreateEmailTemplate
- createEmailTemplate_templateName :: Lens' CreateEmailTemplate Text
- createEmailTemplate_emailTemplateRequest :: Lens' CreateEmailTemplate EmailTemplateRequest
- data CreateEmailTemplateResponse = CreateEmailTemplateResponse' {}
- newCreateEmailTemplateResponse :: Int -> CreateTemplateMessageBody -> CreateEmailTemplateResponse
- createEmailTemplateResponse_httpStatus :: Lens' CreateEmailTemplateResponse Int
- createEmailTemplateResponse_createTemplateMessageBody :: Lens' CreateEmailTemplateResponse CreateTemplateMessageBody
Creating a Request
data CreateEmailTemplate Source #
See: newCreateEmailTemplate
smart constructor.
CreateEmailTemplate' | |
|
Instances
newCreateEmailTemplate Source #
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:
$sel:templateName:CreateEmailTemplate'
, createEmailTemplate_templateName
- The name of the message template. A template name must start with an
alphanumeric character and can contain a maximum of 128 characters. The
characters can be alphanumeric characters, underscores (_), or hyphens
(-). Template names are case sensitive.
$sel:emailTemplateRequest:CreateEmailTemplate'
, createEmailTemplate_emailTemplateRequest
- Undocumented member.
Request Lenses
createEmailTemplate_templateName :: Lens' CreateEmailTemplate Text Source #
The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
createEmailTemplate_emailTemplateRequest :: Lens' CreateEmailTemplate EmailTemplateRequest Source #
Undocumented member.
Destructuring the Response
data CreateEmailTemplateResponse Source #
See: newCreateEmailTemplateResponse
smart constructor.
CreateEmailTemplateResponse' | |
|
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.
$sel:createTemplateMessageBody:CreateEmailTemplateResponse'
, createEmailTemplateResponse_createTemplateMessageBody
- Undocumented member.
Response Lenses
createEmailTemplateResponse_httpStatus :: Lens' CreateEmailTemplateResponse Int Source #
The response's http status code.