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 |
Allows you to send a request that sends a text message through Amazon Pinpoint. This operation uses Amazon Polly to convert a text script into a voice message.
Synopsis
- data SendVoiceMessage = SendVoiceMessage' {
- configurationSetName :: Maybe Text
- context :: Maybe (HashMap Text Text)
- dryRun :: Maybe Bool
- maxPricePerMinute :: Maybe Text
- messageBody :: Maybe Text
- messageBodyTextType :: Maybe VoiceMessageBodyTextType
- timeToLive :: Maybe Natural
- voiceId :: Maybe VoiceId
- destinationPhoneNumber :: Text
- originationIdentity :: Text
- newSendVoiceMessage :: Text -> Text -> SendVoiceMessage
- sendVoiceMessage_configurationSetName :: Lens' SendVoiceMessage (Maybe Text)
- sendVoiceMessage_context :: Lens' SendVoiceMessage (Maybe (HashMap Text Text))
- sendVoiceMessage_dryRun :: Lens' SendVoiceMessage (Maybe Bool)
- sendVoiceMessage_maxPricePerMinute :: Lens' SendVoiceMessage (Maybe Text)
- sendVoiceMessage_messageBody :: Lens' SendVoiceMessage (Maybe Text)
- sendVoiceMessage_messageBodyTextType :: Lens' SendVoiceMessage (Maybe VoiceMessageBodyTextType)
- sendVoiceMessage_timeToLive :: Lens' SendVoiceMessage (Maybe Natural)
- sendVoiceMessage_voiceId :: Lens' SendVoiceMessage (Maybe VoiceId)
- sendVoiceMessage_destinationPhoneNumber :: Lens' SendVoiceMessage Text
- sendVoiceMessage_originationIdentity :: Lens' SendVoiceMessage Text
- data SendVoiceMessageResponse = SendVoiceMessageResponse' {
- messageId :: Maybe Text
- httpStatus :: Int
- newSendVoiceMessageResponse :: Int -> SendVoiceMessageResponse
- sendVoiceMessageResponse_messageId :: Lens' SendVoiceMessageResponse (Maybe Text)
- sendVoiceMessageResponse_httpStatus :: Lens' SendVoiceMessageResponse Int
Creating a Request
data SendVoiceMessage Source #
See: newSendVoiceMessage
smart constructor.
SendVoiceMessage' | |
|
Instances
Create a value of SendVoiceMessage
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:
SendVoiceMessage
, sendVoiceMessage_configurationSetName
- The name of the configuration set to use. This can be either the
ConfigurationSetName or ConfigurationSetArn.
$sel:context:SendVoiceMessage'
, sendVoiceMessage_context
- You can specify custom data in this field. If you do, that data is
logged to the event destination.
$sel:dryRun:SendVoiceMessage'
, sendVoiceMessage_dryRun
- When set to true, the message is checked and validated, but isn't sent
to the end recipient.
$sel:maxPricePerMinute:SendVoiceMessage'
, sendVoiceMessage_maxPricePerMinute
- The maximum amount to spend per voice message, in US dollars.
$sel:messageBody:SendVoiceMessage'
, sendVoiceMessage_messageBody
- The text to convert to a voice message.
$sel:messageBodyTextType:SendVoiceMessage'
, sendVoiceMessage_messageBodyTextType
- Specifies if the MessageBody field contains text or
speech synthesis markup language (SSML).
- TEXT: This is the default value. When used the maximum character limit is 3000.
- SSML: When used the maximum character limit is 6000 including SSML tagging.
$sel:timeToLive:SendVoiceMessage'
, sendVoiceMessage_timeToLive
- How long the voice message is valid for. By default this is 72 hours.
$sel:voiceId:SendVoiceMessage'
, sendVoiceMessage_voiceId
- The voice for the
Amazon Polly
service to use. By default this is set to "MATTHEW".
$sel:destinationPhoneNumber:SendVoiceMessage'
, sendVoiceMessage_destinationPhoneNumber
- The destination phone number in E.164 format.
SendVoiceMessage
, sendVoiceMessage_originationIdentity
- The origination identity to use for the voice call. This can be the
PhoneNumber, PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.
Request Lenses
sendVoiceMessage_configurationSetName :: Lens' SendVoiceMessage (Maybe Text) Source #
The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.
sendVoiceMessage_context :: Lens' SendVoiceMessage (Maybe (HashMap Text Text)) Source #
You can specify custom data in this field. If you do, that data is logged to the event destination.
sendVoiceMessage_dryRun :: Lens' SendVoiceMessage (Maybe Bool) Source #
When set to true, the message is checked and validated, but isn't sent to the end recipient.
sendVoiceMessage_maxPricePerMinute :: Lens' SendVoiceMessage (Maybe Text) Source #
The maximum amount to spend per voice message, in US dollars.
sendVoiceMessage_messageBody :: Lens' SendVoiceMessage (Maybe Text) Source #
The text to convert to a voice message.
sendVoiceMessage_messageBodyTextType :: Lens' SendVoiceMessage (Maybe VoiceMessageBodyTextType) Source #
Specifies if the MessageBody field contains text or speech synthesis markup language (SSML).
- TEXT: This is the default value. When used the maximum character limit is 3000.
- SSML: When used the maximum character limit is 6000 including SSML tagging.
sendVoiceMessage_timeToLive :: Lens' SendVoiceMessage (Maybe Natural) Source #
How long the voice message is valid for. By default this is 72 hours.
sendVoiceMessage_voiceId :: Lens' SendVoiceMessage (Maybe VoiceId) Source #
The voice for the Amazon Polly service to use. By default this is set to "MATTHEW".
sendVoiceMessage_destinationPhoneNumber :: Lens' SendVoiceMessage Text Source #
The destination phone number in E.164 format.
sendVoiceMessage_originationIdentity :: Lens' SendVoiceMessage Text Source #
The origination identity to use for the voice call. This can be the PhoneNumber, PhoneNumberId, PhoneNumberArn, PoolId, or PoolArn.
Destructuring the Response
data SendVoiceMessageResponse Source #
See: newSendVoiceMessageResponse
smart constructor.
SendVoiceMessageResponse' | |
|
Instances
newSendVoiceMessageResponse Source #
Create a value of SendVoiceMessageResponse
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:messageId:SendVoiceMessageResponse'
, sendVoiceMessageResponse_messageId
- The unique identifier for the message.
$sel:httpStatus:SendVoiceMessageResponse'
, sendVoiceMessageResponse_httpStatus
- The response's http status code.
Response Lenses
sendVoiceMessageResponse_messageId :: Lens' SendVoiceMessageResponse (Maybe Text) Source #
The unique identifier for the message.
sendVoiceMessageResponse_httpStatus :: Lens' SendVoiceMessageResponse Int Source #
The response's http status code.