amazonka-sms-voice-2.0: Amazon Pinpoint SMS and Voice Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.SmsVoice.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
ToJSON SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

ToHeaders SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

ToPath SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

ToQuery SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

AWSRequest SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

Associated Types

type AWSResponse SendVoiceMessage #

Generic SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

Associated Types

type Rep SendVoiceMessage :: Type -> Type #

Read SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

Show SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

NFData SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

Methods

rnf :: SendVoiceMessage -> () #

Eq SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

Hashable SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

type AWSResponse SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

type Rep SendVoiceMessage Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

type Rep SendVoiceMessage = D1 ('MetaData "SendVoiceMessage" "Amazonka.SmsVoice.SendVoiceMessage" "amazonka-sms-voice-2.0-3p97esUzflC4CxQYj8cHEb" 'False) (C1 ('MetaCons "SendVoiceMessage'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "callerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "configurationSetName") '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)) :*: S1 ('MetaSel ('Just "originationPhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

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:callerId:SendVoiceMessage', sendVoiceMessage_callerId - The phone number that appears on recipients' devices when they receive the message.

$sel:configurationSetName:SendVoiceMessage', sendVoiceMessage_configurationSetName - The name of the configuration set that you want to use to send the message.

$sel:content:SendVoiceMessage', sendVoiceMessage_content - Undocumented member.

$sel:destinationPhoneNumber:SendVoiceMessage', sendVoiceMessage_destinationPhoneNumber - The phone number that you want to send the voice message to.

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

Request Lenses

sendVoiceMessage_callerId :: Lens' SendVoiceMessage (Maybe Text) Source #

The phone number that appears on recipients' devices when they receive the message.

sendVoiceMessage_configurationSetName :: Lens' SendVoiceMessage (Maybe Text) Source #

The name of the configuration set that you want to use to send the message.

sendVoiceMessage_destinationPhoneNumber :: Lens' SendVoiceMessage (Maybe Text) Source #

The phone number that you want to send the voice message to.

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.

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
Generic SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

Associated Types

type Rep SendVoiceMessageResponse :: Type -> Type #

Read SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

Show SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

NFData SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

Eq SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

type Rep SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.SmsVoice.SendVoiceMessage

type Rep SendVoiceMessageResponse = D1 ('MetaData "SendVoiceMessageResponse" "Amazonka.SmsVoice.SendVoiceMessage" "amazonka-sms-voice-2.0-3p97esUzflC4CxQYj8cHEb" '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.