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 |
Lists the email templates present in your Amazon SES account in the current AWS Region.
You can execute this operation no more than once per second.
This operation returns paginated results.
Synopsis
- data ListTemplates = ListTemplates' {}
- newListTemplates :: ListTemplates
- listTemplates_nextToken :: Lens' ListTemplates (Maybe Text)
- listTemplates_maxItems :: Lens' ListTemplates (Maybe Int)
- data ListTemplatesResponse = ListTemplatesResponse' {}
- newListTemplatesResponse :: Int -> ListTemplatesResponse
- listTemplatesResponse_templatesMetadata :: Lens' ListTemplatesResponse (Maybe [TemplateMetadata])
- listTemplatesResponse_nextToken :: Lens' ListTemplatesResponse (Maybe Text)
- listTemplatesResponse_httpStatus :: Lens' ListTemplatesResponse Int
Creating a Request
data ListTemplates Source #
See: newListTemplates
smart constructor.
ListTemplates' | |
|
Instances
newListTemplates :: ListTemplates Source #
Create a value of ListTemplates
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:nextToken:ListTemplates'
, listTemplates_nextToken
- A token returned from a previous call to ListTemplates
to indicate the
position in the list of email templates.
$sel:maxItems:ListTemplates'
, listTemplates_maxItems
- 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.
Request Lenses
listTemplates_nextToken :: Lens' ListTemplates (Maybe Text) Source #
A token returned from a previous call to ListTemplates
to indicate the
position in the list of email templates.
listTemplates_maxItems :: 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
data ListTemplatesResponse Source #
See: newListTemplatesResponse
smart constructor.
ListTemplatesResponse' | |
|
Instances
newListTemplatesResponse Source #
Create a value of ListTemplatesResponse
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:templatesMetadata:ListTemplatesResponse'
, listTemplatesResponse_templatesMetadata
- An array the contains the name and creation time stamp for each template
in your Amazon SES account.
$sel:nextToken:ListTemplates'
, listTemplatesResponse_nextToken
- 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.
$sel:httpStatus:ListTemplatesResponse'
, listTemplatesResponse_httpStatus
- The response's http status code.
Response Lenses
listTemplatesResponse_templatesMetadata :: Lens' ListTemplatesResponse (Maybe [TemplateMetadata]) Source #
An array the contains the name and creation time stamp for each template in your Amazon SES account.
listTemplatesResponse_nextToken :: 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.
listTemplatesResponse_httpStatus :: Lens' ListTemplatesResponse Int Source #
The response's http status code.