Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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_maxItems :: Lens' ListTemplates (Maybe Int)
- listTemplates_nextToken :: Lens' ListTemplates (Maybe Text)
- data ListTemplatesResponse = ListTemplatesResponse' {}
- newListTemplatesResponse :: Int -> ListTemplatesResponse
- listTemplatesResponse_nextToken :: Lens' ListTemplatesResponse (Maybe Text)
- listTemplatesResponse_templatesMetadata :: Lens' ListTemplatesResponse (Maybe [TemplateMetadata])
- 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: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.
ListTemplates
, listTemplates_nextToken
- A token returned from a previous call to ListTemplates
to indicate the
position in the list of email templates.
Request Lenses
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.
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.
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:
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:templatesMetadata:ListTemplatesResponse'
, listTemplatesResponse_templatesMetadata
- An array the contains the name and creation time stamp for each template
in your Amazon SES account.
$sel:httpStatus:ListTemplatesResponse'
, listTemplatesResponse_httpStatus
- The response's http status code.
Response Lenses
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_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_httpStatus :: Lens' ListTemplatesResponse Int Source #
The response's http status code.