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 |
Creates a message template for messages that are sent through a push notification channel.
Synopsis
- data CreatePushTemplate = CreatePushTemplate' {}
- newCreatePushTemplate :: Text -> PushNotificationTemplateRequest -> CreatePushTemplate
- createPushTemplate_templateName :: Lens' CreatePushTemplate Text
- createPushTemplate_pushNotificationTemplateRequest :: Lens' CreatePushTemplate PushNotificationTemplateRequest
- data CreatePushTemplateResponse = CreatePushTemplateResponse' {}
- newCreatePushTemplateResponse :: Int -> CreateTemplateMessageBody -> CreatePushTemplateResponse
- createPushTemplateResponse_httpStatus :: Lens' CreatePushTemplateResponse Int
- createPushTemplateResponse_createTemplateMessageBody :: Lens' CreatePushTemplateResponse CreateTemplateMessageBody
Creating a Request
data CreatePushTemplate Source #
See: newCreatePushTemplate
smart constructor.
CreatePushTemplate' | |
|
Instances
newCreatePushTemplate Source #
Create a value of CreatePushTemplate
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:templateName:CreatePushTemplate'
, createPushTemplate_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:pushNotificationTemplateRequest:CreatePushTemplate'
, createPushTemplate_pushNotificationTemplateRequest
- Undocumented member.
Request Lenses
createPushTemplate_templateName :: Lens' CreatePushTemplate 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.
createPushTemplate_pushNotificationTemplateRequest :: Lens' CreatePushTemplate PushNotificationTemplateRequest Source #
Undocumented member.
Destructuring the Response
data CreatePushTemplateResponse Source #
See: newCreatePushTemplateResponse
smart constructor.
CreatePushTemplateResponse' | |
|
Instances
newCreatePushTemplateResponse Source #
Create a value of CreatePushTemplateResponse
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:CreatePushTemplateResponse'
, createPushTemplateResponse_httpStatus
- The response's http status code.
$sel:createTemplateMessageBody:CreatePushTemplateResponse'
, createPushTemplateResponse_createTemplateMessageBody
- Undocumented member.
Response Lenses
createPushTemplateResponse_httpStatus :: Lens' CreatePushTemplateResponse Int Source #
The response's http status code.