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 |
Synopsis
- data VoiceMessage = VoiceMessage' {}
- newVoiceMessage :: VoiceMessage
- voiceMessage_substitutions :: Lens' VoiceMessage (Maybe (HashMap Text [Text]))
- voiceMessage_languageCode :: Lens' VoiceMessage (Maybe Text)
- voiceMessage_originationNumber :: Lens' VoiceMessage (Maybe Text)
- voiceMessage_body :: Lens' VoiceMessage (Maybe Text)
- voiceMessage_voiceId :: Lens' VoiceMessage (Maybe Text)
Documentation
data VoiceMessage Source #
Specifies the settings for a one-time voice message that's sent directly to an endpoint through the voice channel.
See: newVoiceMessage
smart constructor.
VoiceMessage' | |
|
Instances
newVoiceMessage :: VoiceMessage Source #
Create a value of VoiceMessage
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:substitutions:VoiceMessage'
, voiceMessage_substitutions
- The default message variables to use in the voice message. You can
override the default variables with individual address variables.
$sel:languageCode:VoiceMessage'
, voiceMessage_languageCode
- The code for the language to use when synthesizing the text of the
message script. For a list of supported languages and the code for each
one, see the
Amazon Polly Developer Guide.
$sel:originationNumber:VoiceMessage'
, voiceMessage_originationNumber
- The long code to send the voice message from. This value should be one
of the dedicated long codes that's assigned to your AWS account.
Although it isn't required, we recommend that you specify the long code
in E.164 format, for example +12065550100, to ensure prompt and accurate
delivery of the message.
$sel:body:VoiceMessage'
, voiceMessage_body
- The text of the script to use for the voice message.
$sel:voiceId:VoiceMessage'
, voiceMessage_voiceId
- The name of the voice to use when delivering the message. For a list of
supported voices, see the
Amazon Polly Developer Guide.
voiceMessage_substitutions :: Lens' VoiceMessage (Maybe (HashMap Text [Text])) Source #
The default message variables to use in the voice message. You can override the default variables with individual address variables.
voiceMessage_languageCode :: Lens' VoiceMessage (Maybe Text) Source #
The code for the language to use when synthesizing the text of the message script. For a list of supported languages and the code for each one, see the Amazon Polly Developer Guide.
voiceMessage_originationNumber :: Lens' VoiceMessage (Maybe Text) Source #
The long code to send the voice message from. This value should be one of the dedicated long codes that's assigned to your AWS account. Although it isn't required, we recommend that you specify the long code in E.164 format, for example +12065550100, to ensure prompt and accurate delivery of the message.
voiceMessage_body :: Lens' VoiceMessage (Maybe Text) Source #
The text of the script to use for the voice message.
voiceMessage_voiceId :: Lens' VoiceMessage (Maybe Text) Source #
The name of the voice to use when delivering the message. For a list of supported voices, see the Amazon Polly Developer Guide.