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 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.
CreateInAppTemplate' | |
|
Instances
newCreateInAppTemplate Source #
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:
$sel:templateName: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.
CreateInAppTemplateResponse' | |
|
Instances
newCreateInAppTemplateResponse Source #
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.