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 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.
CreateSmsTemplate' | |
|
Instances
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:
$sel:templateName: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.
CreateSmsTemplateResponse' | |
|
Instances
newCreateSmsTemplateResponse Source #
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.