amazonka-pinpoint-sms-voice-v2-2.0: Amazon Pinpoint SMS Voice V2 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.PinpointSmsVoiceV2.SendVoiceMessage

Description

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

Creating a Request

data SendVoiceMessage Source #

See: newSendVoiceMessage smart constructor.

Constructors

SendVoiceMessage' 

Fields

Instances

Instances details
ToJSON SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

ToHeaders SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

ToPath SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

ToQuery SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

AWSRequest SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

Associated Types

type AWSResponse SendVoiceMessage #

Generic SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

Associated Types

type Rep SendVoiceMessage :: Type -> Type #

Read SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

Show SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

NFData SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

Methods

rnf :: SendVoiceMessage -> () #

Eq SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

Hashable SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

type AWSResponse SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

type Rep SendVoiceMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

newSendVoiceMessage 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:

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.

Constructors

SendVoiceMessageResponse' 

Fields

Instances

Instances details
Generic SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

Associated Types

type Rep SendVoiceMessageResponse :: Type -> Type #

Read SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

Show SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

NFData SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

Eq SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

type Rep SendVoiceMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendVoiceMessage

type Rep SendVoiceMessageResponse = D1 ('MetaData "SendVoiceMessageResponse" "Amazonka.PinpointSmsVoiceV2.SendVoiceMessage" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" '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 - The unique identifier for the message.

$sel:httpStatus:SendVoiceMessageResponse', sendVoiceMessageResponse_httpStatus - The response's http status code.

Response Lenses