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 Amazon Web Services Region.
You can execute this operation no more than once per second.
Synopsis
- data ListEmailTemplates = ListEmailTemplates' {}
- newListEmailTemplates :: ListEmailTemplates
- listEmailTemplates_nextToken :: Lens' ListEmailTemplates (Maybe Text)
- listEmailTemplates_pageSize :: Lens' ListEmailTemplates (Maybe Int)
- data ListEmailTemplatesResponse = ListEmailTemplatesResponse' {}
- newListEmailTemplatesResponse :: Int -> ListEmailTemplatesResponse
- listEmailTemplatesResponse_templatesMetadata :: Lens' ListEmailTemplatesResponse (Maybe [EmailTemplateMetadata])
- listEmailTemplatesResponse_nextToken :: Lens' ListEmailTemplatesResponse (Maybe Text)
- listEmailTemplatesResponse_httpStatus :: Lens' ListEmailTemplatesResponse Int
Creating a Request
data ListEmailTemplates Source #
Represents a request to list the email templates present in your Amazon SES account in the current Amazon Web Services Region. For more information, see the Amazon SES Developer Guide.
See: newListEmailTemplates
smart constructor.
ListEmailTemplates' | |
|
Instances
newListEmailTemplates :: ListEmailTemplates Source #
Create a value of ListEmailTemplates
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:ListEmailTemplates'
, listEmailTemplates_nextToken
- A token returned from a previous call to ListEmailTemplates
to
indicate the position in the list of email templates.
$sel:pageSize:ListEmailTemplates'
, listEmailTemplates_pageSize
- The number of results to show in a single call to ListEmailTemplates
.
If the number of results is larger than the number you specified in this
parameter, then the response includes a NextToken
element, which you
can use to obtain additional results.
The value you specify has to be at least 1, and can be no more than 10.
Request Lenses
listEmailTemplates_nextToken :: Lens' ListEmailTemplates (Maybe Text) Source #
A token returned from a previous call to ListEmailTemplates
to
indicate the position in the list of email templates.
listEmailTemplates_pageSize :: Lens' ListEmailTemplates (Maybe Int) Source #
The number of results to show in a single call to ListEmailTemplates
.
If the number of results is larger than the number you specified in this
parameter, then the response includes a NextToken
element, which you
can use to obtain additional results.
The value you specify has to be at least 1, and can be no more than 10.
Destructuring the Response
data ListEmailTemplatesResponse Source #
The following elements are returned by the service.
See: newListEmailTemplatesResponse
smart constructor.
ListEmailTemplatesResponse' | |
|
Instances
newListEmailTemplatesResponse Source #
Create a value of ListEmailTemplatesResponse
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:ListEmailTemplatesResponse'
, listEmailTemplatesResponse_templatesMetadata
- An array the contains the name and creation time stamp for each template
in your Amazon SES account.
$sel:nextToken:ListEmailTemplates'
, listEmailTemplatesResponse_nextToken
- A token indicating that there are additional email templates available
to be listed. Pass this token to a subsequent ListEmailTemplates
call
to retrieve the next 10 email templates.
$sel:httpStatus:ListEmailTemplatesResponse'
, listEmailTemplatesResponse_httpStatus
- The response's http status code.
Response Lenses
listEmailTemplatesResponse_templatesMetadata :: Lens' ListEmailTemplatesResponse (Maybe [EmailTemplateMetadata]) Source #
An array the contains the name and creation time stamp for each template in your Amazon SES account.
listEmailTemplatesResponse_nextToken :: Lens' ListEmailTemplatesResponse (Maybe Text) Source #
A token indicating that there are additional email templates available
to be listed. Pass this token to a subsequent ListEmailTemplates
call
to retrieve the next 10 email templates.
listEmailTemplatesResponse_httpStatus :: Lens' ListEmailTemplatesResponse Int Source #
The response's http status code.