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 versions of a specific message template.
Synopsis
- data ListTemplateVersions = ListTemplateVersions' {
- nextToken :: Maybe Text
- pageSize :: Maybe Text
- templateName :: Text
- templateType :: Text
- newListTemplateVersions :: Text -> Text -> ListTemplateVersions
- listTemplateVersions_nextToken :: Lens' ListTemplateVersions (Maybe Text)
- listTemplateVersions_pageSize :: Lens' ListTemplateVersions (Maybe Text)
- listTemplateVersions_templateName :: Lens' ListTemplateVersions Text
- listTemplateVersions_templateType :: Lens' ListTemplateVersions Text
- data ListTemplateVersionsResponse = ListTemplateVersionsResponse' {}
- newListTemplateVersionsResponse :: Int -> TemplateVersionsResponse -> ListTemplateVersionsResponse
- listTemplateVersionsResponse_httpStatus :: Lens' ListTemplateVersionsResponse Int
- listTemplateVersionsResponse_templateVersionsResponse :: Lens' ListTemplateVersionsResponse TemplateVersionsResponse
Creating a Request
data ListTemplateVersions Source #
See: newListTemplateVersions
smart constructor.
ListTemplateVersions' | |
|
Instances
newListTemplateVersions Source #
:: Text | |
-> Text | |
-> ListTemplateVersions |
Create a value of ListTemplateVersions
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:ListTemplateVersions'
, listTemplateVersions_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:ListTemplateVersions'
, listTemplateVersions_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.
$sel:templateName:ListTemplateVersions'
, listTemplateVersions_templateName
- The name of the message template. A template name must start with an
alphanumeric character and can contain a maximum of 128 characters. The
characters can be alphanumeric characters, underscores (_), or hyphens
(-). Template names are case sensitive.
$sel:templateType:ListTemplateVersions'
, listTemplateVersions_templateType
- The type of channel that the message template is designed for. Valid
values are: EMAIL, PUSH, SMS, and VOICE.
Request Lenses
listTemplateVersions_nextToken :: Lens' ListTemplateVersions (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.
listTemplateVersions_pageSize :: Lens' ListTemplateVersions (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.
listTemplateVersions_templateName :: Lens' ListTemplateVersions Text Source #
The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.
listTemplateVersions_templateType :: Lens' ListTemplateVersions Text Source #
The type of channel that the message template is designed for. Valid values are: EMAIL, PUSH, SMS, and VOICE.
Destructuring the Response
data ListTemplateVersionsResponse Source #
See: newListTemplateVersionsResponse
smart constructor.
ListTemplateVersionsResponse' | |
|
Instances
newListTemplateVersionsResponse Source #
Create a value of ListTemplateVersionsResponse
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:ListTemplateVersionsResponse'
, listTemplateVersionsResponse_httpStatus
- The response's http status code.
$sel:templateVersionsResponse:ListTemplateVersionsResponse'
, listTemplateVersionsResponse_templateVersionsResponse
- Undocumented member.
Response Lenses
listTemplateVersionsResponse_httpStatus :: Lens' ListTemplateVersionsResponse Int Source #
The response's http status code.