| 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.CreateSmsTemplate
Description
Creates a message template for messages that are sent through the SMS channel.
Synopsis
- data CreateSmsTemplate = CreateSmsTemplate' {}
- newCreateSmsTemplate :: Text -> SMSTemplateRequest -> CreateSmsTemplate
- createSmsTemplate_templateName :: Lens' CreateSmsTemplate Text
- createSmsTemplate_sMSTemplateRequest :: Lens' CreateSmsTemplate SMSTemplateRequest
- data CreateSmsTemplateResponse = CreateSmsTemplateResponse' {}
- newCreateSmsTemplateResponse :: Int -> CreateTemplateMessageBody -> CreateSmsTemplateResponse
- createSmsTemplateResponse_httpStatus :: Lens' CreateSmsTemplateResponse Int
- createSmsTemplateResponse_createTemplateMessageBody :: Lens' CreateSmsTemplateResponse CreateTemplateMessageBody
Creating a Request
data CreateSmsTemplate Source #
See: newCreateSmsTemplate smart constructor.
Constructors
| CreateSmsTemplate' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> SMSTemplateRequest | |
| -> CreateSmsTemplate |
Create a value of CreateSmsTemplate 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:
CreateSmsTemplate, createSmsTemplate_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:sMSTemplateRequest:CreateSmsTemplate', createSmsTemplate_sMSTemplateRequest - Undocumented member.
Request Lenses
createSmsTemplate_templateName :: Lens' CreateSmsTemplate 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.
createSmsTemplate_sMSTemplateRequest :: Lens' CreateSmsTemplate SMSTemplateRequest Source #
Undocumented member.
Destructuring the Response
data CreateSmsTemplateResponse Source #
See: newCreateSmsTemplateResponse smart constructor.
Constructors
| CreateSmsTemplateResponse' | |
Fields
| |
Instances
newCreateSmsTemplateResponse Source #
Arguments
| :: Int | |
| -> CreateTemplateMessageBody | |
| -> CreateSmsTemplateResponse |
Create a value of CreateSmsTemplateResponse 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:CreateSmsTemplateResponse', createSmsTemplateResponse_httpStatus - The response's http status code.
$sel:createTemplateMessageBody:CreateSmsTemplateResponse', createSmsTemplateResponse_createTemplateMessageBody - Undocumented member.
Response Lenses
createSmsTemplateResponse_httpStatus :: Lens' CreateSmsTemplateResponse Int Source #
The response's http status code.