libZSservicesZSamazonka-pinpoint-sms-voiceZSamazonka-pinpoint-sms-voice
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.PinpointSMSVoice.SendVoiceMessage

Description

Create a new voice message and send it to a recipient's phone number.

Synopsis

Creating a Request

data SendVoiceMessage Source #

SendVoiceMessageRequest

See: newSendVoiceMessage smart constructor.

Constructors

SendVoiceMessage' 

Fields

Instances

Instances details
Eq SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

Read SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

Show SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

Generic SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

Associated Types

type Rep SendVoiceMessage :: Type -> Type #

NFData SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

Methods

rnf :: SendVoiceMessage -> () #

Hashable SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

ToJSON SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

AWSRequest SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

Associated Types

type AWSResponse SendVoiceMessage #

ToHeaders SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

ToPath SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

ToQuery SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

type Rep SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

type Rep SendVoiceMessage = D1 ('MetaData "SendVoiceMessage" "Amazonka.PinpointSMSVoice.SendVoiceMessage" "libZSservicesZSamazonka-pinpoint-sms-voiceZSamazonka-pinpoint-sms-voice" 'False) (C1 ('MetaCons "SendVoiceMessage'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "configurationSetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "callerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "originationPhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "content") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe VoiceMessageContent)) :*: S1 ('MetaSel ('Just "destinationPhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))
type AWSResponse SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

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_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.

Constructors

SendVoiceMessageResponse' 

Fields

Instances

Instances details
Eq SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

Read SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

Show SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

Generic SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

Associated Types

type Rep SendVoiceMessageResponse :: Type -> Type #

NFData SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

type Rep SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSMSVoice.SendVoiceMessage

type Rep SendVoiceMessageResponse = D1 ('MetaData "SendVoiceMessageResponse" "Amazonka.PinpointSMSVoice.SendVoiceMessage" "libZSservicesZSamazonka-pinpoint-sms-voiceZSamazonka-pinpoint-sms-voice" 'False) (C1 ('MetaCons "SendVoiceMessageResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.