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 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.
Instances
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.
CreateTemplateResponse' | |
|
Instances
Eq CreateTemplateResponse Source # | |
Defined in Amazonka.SES.CreateTemplate | |
Read CreateTemplateResponse Source # | |
Show CreateTemplateResponse Source # | |
Defined in Amazonka.SES.CreateTemplate showsPrec :: Int -> CreateTemplateResponse -> ShowS # show :: CreateTemplateResponse -> String # showList :: [CreateTemplateResponse] -> ShowS # | |
Generic CreateTemplateResponse Source # | |
Defined in Amazonka.SES.CreateTemplate type Rep CreateTemplateResponse :: Type -> Type # | |
NFData CreateTemplateResponse Source # | |
Defined in Amazonka.SES.CreateTemplate rnf :: CreateTemplateResponse -> () # | |
type Rep CreateTemplateResponse Source # | |
Defined in Amazonka.SES.CreateTemplate type Rep CreateTemplateResponse = D1 ('MetaData "CreateTemplateResponse" "Amazonka.SES.CreateTemplate" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "CreateTemplateResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.