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 |
Retrieves information about all the message templates that are associated with your Amazon Pinpoint account.
Synopsis
- data ListTemplates = ListTemplates' {}
- newListTemplates :: ListTemplates
- listTemplates_templateType :: Lens' ListTemplates (Maybe Text)
- listTemplates_prefix :: Lens' ListTemplates (Maybe Text)
- listTemplates_nextToken :: Lens' ListTemplates (Maybe Text)
- listTemplates_pageSize :: Lens' ListTemplates (Maybe Text)
- data ListTemplatesResponse = ListTemplatesResponse' {}
- newListTemplatesResponse :: Int -> TemplatesResponse -> ListTemplatesResponse
- listTemplatesResponse_httpStatus :: Lens' ListTemplatesResponse Int
- listTemplatesResponse_templatesResponse :: Lens' ListTemplatesResponse TemplatesResponse
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:templateType:ListTemplates'
, listTemplates_templateType
- The type of message template to include in the results. Valid values
are: EMAIL, PUSH, SMS, and VOICE. To include all types of templates in
the results, don't include this parameter in your request.
$sel:prefix:ListTemplates'
, listTemplates_prefix
- The substring to match in the names of the message templates to include
in the results. If you specify this value, Amazon Pinpoint returns only
those templates whose names begin with the value that you specify.
$sel:nextToken:ListTemplates'
, listTemplates_nextToken
- The string that specifies which page of results to return in a paginated
response. This parameter is not supported for application, campaign, and
journey metrics.
$sel:pageSize:ListTemplates'
, listTemplates_pageSize
- The maximum number of items to include in each page of a paginated
response. This parameter is not supported for application, campaign, and
journey metrics.
Request Lenses
listTemplates_templateType :: Lens' ListTemplates (Maybe Text) Source #
The type of message template to include in the results. Valid values are: EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, don't include this parameter in your request.
listTemplates_prefix :: Lens' ListTemplates (Maybe Text) Source #
The substring to match in the names of the message templates to include in the results. If you specify this value, Amazon Pinpoint returns only those templates whose names begin with the value that you specify.
listTemplates_nextToken :: Lens' ListTemplates (Maybe Text) Source #
The string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.
listTemplates_pageSize :: Lens' ListTemplates (Maybe Text) Source #
The maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
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:httpStatus:ListTemplatesResponse'
, listTemplatesResponse_httpStatus
- The response's http status code.
$sel:templatesResponse:ListTemplatesResponse'
, listTemplatesResponse_templatesResponse
- Undocumented member.
Response Lenses
listTemplatesResponse_httpStatus :: Lens' ListTemplatesResponse Int Source #
The response's http status code.
listTemplatesResponse_templatesResponse :: Lens' ListTemplatesResponse TemplatesResponse Source #
Undocumented member.