| 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.CreateInAppTemplate
Description
Creates a new message template for messages using the in-app message channel.
Synopsis
- data CreateInAppTemplate = CreateInAppTemplate' {}
- newCreateInAppTemplate :: Text -> InAppTemplateRequest -> CreateInAppTemplate
- createInAppTemplate_templateName :: Lens' CreateInAppTemplate Text
- createInAppTemplate_inAppTemplateRequest :: Lens' CreateInAppTemplate InAppTemplateRequest
- data CreateInAppTemplateResponse = CreateInAppTemplateResponse' {}
- newCreateInAppTemplateResponse :: Int -> TemplateCreateMessageBody -> CreateInAppTemplateResponse
- createInAppTemplateResponse_httpStatus :: Lens' CreateInAppTemplateResponse Int
- createInAppTemplateResponse_templateCreateMessageBody :: Lens' CreateInAppTemplateResponse TemplateCreateMessageBody
Creating a Request
data CreateInAppTemplate Source #
See: newCreateInAppTemplate smart constructor.
Constructors
| CreateInAppTemplate' | |
Fields
| |
Instances
newCreateInAppTemplate Source #
Arguments
| :: Text | |
| -> InAppTemplateRequest | |
| -> CreateInAppTemplate |
Create a value of CreateInAppTemplate 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:
CreateInAppTemplate, createInAppTemplate_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:inAppTemplateRequest:CreateInAppTemplate', createInAppTemplate_inAppTemplateRequest - Undocumented member.
Request Lenses
createInAppTemplate_templateName :: Lens' CreateInAppTemplate 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.
createInAppTemplate_inAppTemplateRequest :: Lens' CreateInAppTemplate InAppTemplateRequest Source #
Undocumented member.
Destructuring the Response
data CreateInAppTemplateResponse Source #
See: newCreateInAppTemplateResponse smart constructor.
Constructors
| CreateInAppTemplateResponse' | |
Fields
| |
Instances
newCreateInAppTemplateResponse Source #
Arguments
| :: Int | |
| -> TemplateCreateMessageBody | |
| -> CreateInAppTemplateResponse |
Create a value of CreateInAppTemplateResponse 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:CreateInAppTemplateResponse', createInAppTemplateResponse_httpStatus - The response's http status code.
$sel:templateCreateMessageBody:CreateInAppTemplateResponse', createInAppTemplateResponse_templateCreateMessageBody - Undocumented member.
Response Lenses
createInAppTemplateResponse_httpStatus :: Lens' CreateInAppTemplateResponse Int Source #
The response's http status code.