| 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 |
Amazonka.Pinpoint.CreatePushTemplate
Description
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.
Constructors
| CreatePushTemplate' | |
Fields
| |
Instances
newCreatePushTemplate Source #
Arguments
| :: Text | |
| -> PushNotificationTemplateRequest | |
| -> CreatePushTemplate |
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:
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.
Constructors
| CreatePushTemplateResponse' | |
Fields
| |
Instances
newCreatePushTemplateResponse Source #
Arguments
| :: Int | |
| -> CreateTemplateMessageBody | |
| -> CreatePushTemplateResponse |
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.