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 |
Creates a message template for messages that are sent through the voice channel.
Synopsis
- data CreateVoiceTemplate = CreateVoiceTemplate' {}
- newCreateVoiceTemplate :: Text -> VoiceTemplateRequest -> CreateVoiceTemplate
- createVoiceTemplate_templateName :: Lens' CreateVoiceTemplate Text
- createVoiceTemplate_voiceTemplateRequest :: Lens' CreateVoiceTemplate VoiceTemplateRequest
- data CreateVoiceTemplateResponse = CreateVoiceTemplateResponse' {}
- newCreateVoiceTemplateResponse :: Int -> CreateTemplateMessageBody -> CreateVoiceTemplateResponse
- createVoiceTemplateResponse_httpStatus :: Lens' CreateVoiceTemplateResponse Int
- createVoiceTemplateResponse_createTemplateMessageBody :: Lens' CreateVoiceTemplateResponse CreateTemplateMessageBody
Creating a Request
data CreateVoiceTemplate Source #
See: newCreateVoiceTemplate
smart constructor.
CreateVoiceTemplate' | |
|
Instances
newCreateVoiceTemplate Source #
Create a value of CreateVoiceTemplate
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:
CreateVoiceTemplate
, createVoiceTemplate_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:voiceTemplateRequest:CreateVoiceTemplate'
, createVoiceTemplate_voiceTemplateRequest
- Undocumented member.
Request Lenses
createVoiceTemplate_templateName :: Lens' CreateVoiceTemplate 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.
createVoiceTemplate_voiceTemplateRequest :: Lens' CreateVoiceTemplate VoiceTemplateRequest Source #
Undocumented member.
Destructuring the Response
data CreateVoiceTemplateResponse Source #
See: newCreateVoiceTemplateResponse
smart constructor.
CreateVoiceTemplateResponse' | |
|
Instances
newCreateVoiceTemplateResponse Source #
Create a value of CreateVoiceTemplateResponse
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:CreateVoiceTemplateResponse'
, createVoiceTemplateResponse_httpStatus
- The response's http status code.
$sel:createTemplateMessageBody:CreateVoiceTemplateResponse'
, createVoiceTemplateResponse_createTemplateMessageBody
- Undocumented member.
Response Lenses
createVoiceTemplateResponse_httpStatus :: Lens' CreateVoiceTemplateResponse Int Source #
The response's http status code.