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 |
Create a new voice message and send it to a recipient's phone number.
Synopsis
- data SendVoiceMessage = SendVoiceMessage' {}
- newSendVoiceMessage :: SendVoiceMessage
- sendVoiceMessage_configurationSetName :: Lens' SendVoiceMessage (Maybe Text)
- sendVoiceMessage_callerId :: Lens' SendVoiceMessage (Maybe Text)
- sendVoiceMessage_originationPhoneNumber :: Lens' SendVoiceMessage (Maybe Text)
- sendVoiceMessage_content :: Lens' SendVoiceMessage (Maybe VoiceMessageContent)
- sendVoiceMessage_destinationPhoneNumber :: Lens' SendVoiceMessage (Maybe 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 #
SendVoiceMessageRequest
See: newSendVoiceMessage
smart constructor.
SendVoiceMessage' | |
|
Instances
newSendVoiceMessage :: SendVoiceMessage Source #
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:
$sel:configurationSetName:SendVoiceMessage'
, sendVoiceMessage_configurationSetName
- The name of the configuration set that you want to use to send the
message.
$sel:callerId:SendVoiceMessage'
, sendVoiceMessage_callerId
- The phone number that appears on recipients' devices when they receive
the message.
$sel:originationPhoneNumber:SendVoiceMessage'
, sendVoiceMessage_originationPhoneNumber
- The phone number that Amazon Pinpoint should use to send the voice
message. This isn't necessarily the phone number that appears on
recipients' devices when they receive the message, because you can
specify a CallerId parameter in the request.
$sel:content:SendVoiceMessage'
, sendVoiceMessage_content
- Undocumented member.
$sel:destinationPhoneNumber:SendVoiceMessage'
, sendVoiceMessage_destinationPhoneNumber
- The phone number that you want to send the voice message to.
Request Lenses
sendVoiceMessage_configurationSetName :: Lens' SendVoiceMessage (Maybe Text) Source #
The name of the configuration set that you want to use to send the message.
sendVoiceMessage_callerId :: Lens' SendVoiceMessage (Maybe Text) Source #
The phone number that appears on recipients' devices when they receive the message.
sendVoiceMessage_originationPhoneNumber :: Lens' SendVoiceMessage (Maybe Text) Source #
The phone number that Amazon Pinpoint should use to send the voice message. This isn't necessarily the phone number that appears on recipients' devices when they receive the message, because you can specify a CallerId parameter in the request.
sendVoiceMessage_content :: Lens' SendVoiceMessage (Maybe VoiceMessageContent) Source #
Undocumented member.
sendVoiceMessage_destinationPhoneNumber :: Lens' SendVoiceMessage (Maybe Text) Source #
The phone number that you want to send the voice message to.
Destructuring the Response
data SendVoiceMessageResponse Source #
An object that that contains the Message ID of a Voice message that was sent successfully.
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
- A unique identifier for the voice message.
$sel:httpStatus:SendVoiceMessageResponse'
, sendVoiceMessageResponse_httpStatus
- The response's http status code.
Response Lenses
sendVoiceMessageResponse_messageId :: Lens' SendVoiceMessageResponse (Maybe Text) Source #
A unique identifier for the voice message.
sendVoiceMessageResponse_httpStatus :: Lens' SendVoiceMessageResponse Int Source #
The response's http status code.