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 GetTemplate = GetTemplate' {
- templateName :: Text
- newGetTemplate :: Text -> GetTemplate
- getTemplate_templateName :: Lens' GetTemplate Text
- data GetTemplateResponse = GetTemplateResponse' {
- template :: Maybe Template
- httpStatus :: Int
- newGetTemplateResponse :: Int -> GetTemplateResponse
- getTemplateResponse_template :: Lens' GetTemplateResponse (Maybe Template)
- getTemplateResponse_httpStatus :: Lens' GetTemplateResponse Int
Creating a Request
data GetTemplate Source #
See: newGetTemplate
smart constructor.
GetTemplate' | |
|
Instances
Create a value of GetTemplate
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:GetTemplate'
, getTemplate_templateName
- The name of the template you want to retrieve.
Request Lenses
getTemplate_templateName :: Lens' GetTemplate Text Source #
The name of the template you want to retrieve.
Destructuring the Response
data GetTemplateResponse Source #
See: newGetTemplateResponse
smart constructor.
GetTemplateResponse' | |
|
Instances
newGetTemplateResponse Source #
Create a value of GetTemplateResponse
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:GetTemplateResponse'
, getTemplateResponse_template
- Undocumented member.
$sel:httpStatus:GetTemplateResponse'
, getTemplateResponse_httpStatus
- The response's http status code.
Response Lenses
getTemplateResponse_template :: Lens' GetTemplateResponse (Maybe Template) Source #
Undocumented member.
getTemplateResponse_httpStatus :: Lens' GetTemplateResponse Int Source #
The response's http status code.