Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Lists the email templates present in your Amazon SES account.
You can execute this operation no more than once per second.
- listTemplates :: ListTemplates
- data ListTemplates
- ltNextToken :: Lens' ListTemplates (Maybe Text)
- ltMaxItems :: Lens' ListTemplates (Maybe Int)
- listTemplatesResponse :: Int -> ListTemplatesResponse
- data ListTemplatesResponse
- ltrsTemplatesMetadata :: Lens' ListTemplatesResponse [TemplateMetadata]
- ltrsNextToken :: Lens' ListTemplatesResponse (Maybe Text)
- ltrsResponseStatus :: Lens' ListTemplatesResponse Int
Creating a Request
listTemplates :: ListTemplates Source #
Creates a value of ListTemplates
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltNextToken
- A token returned from a previous call toListTemplates
to indicate the position in the list of email templates.ltMaxItems
- The maximum number of templates to return. This value must be at least 1 and less than or equal to 10. If you do not specify a value, or if you specify a value less than 1 or greater than 10, the operation will return up to 10 results.
data ListTemplates Source #
See: listTemplates
smart constructor.
Request Lenses
ltNextToken :: Lens' ListTemplates (Maybe Text) Source #
A token returned from a previous call to ListTemplates
to indicate the position in the list of email templates.
ltMaxItems :: Lens' ListTemplates (Maybe Int) Source #
The maximum number of templates to return. This value must be at least 1 and less than or equal to 10. If you do not specify a value, or if you specify a value less than 1 or greater than 10, the operation will return up to 10 results.
Destructuring the Response
listTemplatesResponse Source #
Creates a value of ListTemplatesResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltrsTemplatesMetadata
- An array the contains the name and creation time stamp for each template in your Amazon SES account.ltrsNextToken
- A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent call toListTemplates
to retrieve the next 50 email templates.ltrsResponseStatus
- -- | The response status code.
data ListTemplatesResponse Source #
See: listTemplatesResponse
smart constructor.
Response Lenses
ltrsTemplatesMetadata :: Lens' ListTemplatesResponse [TemplateMetadata] Source #
An array the contains the name and creation time stamp for each template in your Amazon SES account.
ltrsNextToken :: Lens' ListTemplatesResponse (Maybe Text) Source #
A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent call to ListTemplates
to retrieve the next 50 email templates.
ltrsResponseStatus :: Lens' ListTemplatesResponse Int Source #
- - | The response status code.