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

Description

Creates a new text message and sends it to a recipient's phone number.

SMS throughput limits are measured in Message Parts per Second (MPS). Your MPS limit depends on the destination country of your messages, as well as the type of phone number (origination number) that you use to send the message. For more information, see Message Parts per Second (MPS) limits in the Amazon Pinpoint User Guide.

Synopsis

Creating a Request

data SendTextMessage Source #

See: newSendTextMessage smart constructor.

Constructors

SendTextMessage' 

Fields

Instances

Instances details
ToJSON SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

ToHeaders SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

ToPath SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

ToQuery SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

AWSRequest SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

Associated Types

type AWSResponse SendTextMessage #

Generic SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

Associated Types

type Rep SendTextMessage :: Type -> Type #

Read SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

Show SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

NFData SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

Methods

rnf :: SendTextMessage -> () #

Eq SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

Hashable SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

type AWSResponse SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

type Rep SendTextMessage Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

type Rep SendTextMessage = D1 ('MetaData "SendTextMessage" "Amazonka.PinpointSmsVoiceV2.SendTextMessage" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "SendTextMessage'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "configurationSetName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "context") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))) :*: (S1 ('MetaSel ('Just "destinationCountryParameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap DestinationCountryParameterKey Text))) :*: (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "keyword") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "maxPrice") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "messageBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "messageType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MessageType)))) :*: (S1 ('MetaSel ('Just "originationIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "timeToLive") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "destinationPhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newSendTextMessage Source #

Create a value of SendTextMessage 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:

SendTextMessage, sendTextMessage_configurationSetName - The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.

$sel:context:SendTextMessage', sendTextMessage_context - You can specify custom data in this field. If you do, that data is logged to the event destination.

$sel:destinationCountryParameters:SendTextMessage', sendTextMessage_destinationCountryParameters - This field is used for any country-specific registration requirements. Currently, this setting is only used when you send messages to recipients in India using a sender ID. For more information see Special requirements for sending SMS messages to recipients in India.

$sel:dryRun:SendTextMessage', sendTextMessage_dryRun - When set to true, the message is checked and validated, but isn't sent to the end recipient.

SendTextMessage, sendTextMessage_keyword - When you register a short code in the US, you must specify a program name. If you don’t have a US short code, omit this attribute.

$sel:maxPrice:SendTextMessage', sendTextMessage_maxPrice - The maximum amount that you want to spend, in US dollars, per each text message part. A text message can contain multiple parts.

$sel:messageBody:SendTextMessage', sendTextMessage_messageBody - The body of the text message.

SendTextMessage, sendTextMessage_messageType - The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

SendTextMessage, sendTextMessage_originationIdentity - The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

$sel:timeToLive:SendTextMessage', sendTextMessage_timeToLive - How long the text message is valid for. By default this is 72 hours.

$sel:destinationPhoneNumber:SendTextMessage', sendTextMessage_destinationPhoneNumber - The destination phone number in E.164 format.

Request Lenses

sendTextMessage_configurationSetName :: Lens' SendTextMessage (Maybe Text) Source #

The name of the configuration set to use. This can be either the ConfigurationSetName or ConfigurationSetArn.

sendTextMessage_context :: Lens' SendTextMessage (Maybe (HashMap Text Text)) Source #

You can specify custom data in this field. If you do, that data is logged to the event destination.

sendTextMessage_destinationCountryParameters :: Lens' SendTextMessage (Maybe (HashMap DestinationCountryParameterKey Text)) Source #

This field is used for any country-specific registration requirements. Currently, this setting is only used when you send messages to recipients in India using a sender ID. For more information see Special requirements for sending SMS messages to recipients in India.

sendTextMessage_dryRun :: Lens' SendTextMessage (Maybe Bool) Source #

When set to true, the message is checked and validated, but isn't sent to the end recipient.

sendTextMessage_keyword :: Lens' SendTextMessage (Maybe Text) Source #

When you register a short code in the US, you must specify a program name. If you don’t have a US short code, omit this attribute.

sendTextMessage_maxPrice :: Lens' SendTextMessage (Maybe Text) Source #

The maximum amount that you want to spend, in US dollars, per each text message part. A text message can contain multiple parts.

sendTextMessage_messageType :: Lens' SendTextMessage (Maybe MessageType) Source #

The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.

sendTextMessage_originationIdentity :: Lens' SendTextMessage (Maybe Text) Source #

The origination identity of the message. This can be either the PhoneNumber, PhoneNumberId, PhoneNumberArn, SenderId, SenderIdArn, PoolId, or PoolArn.

sendTextMessage_timeToLive :: Lens' SendTextMessage (Maybe Natural) Source #

How long the text message is valid for. By default this is 72 hours.

sendTextMessage_destinationPhoneNumber :: Lens' SendTextMessage Text Source #

The destination phone number in E.164 format.

Destructuring the Response

data SendTextMessageResponse Source #

See: newSendTextMessageResponse smart constructor.

Constructors

SendTextMessageResponse' 

Fields

Instances

Instances details
Generic SendTextMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

Associated Types

type Rep SendTextMessageResponse :: Type -> Type #

Read SendTextMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

Show SendTextMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

NFData SendTextMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

Methods

rnf :: SendTextMessageResponse -> () #

Eq SendTextMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

type Rep SendTextMessageResponse Source # 
Instance details

Defined in Amazonka.PinpointSmsVoiceV2.SendTextMessage

type Rep SendTextMessageResponse = D1 ('MetaData "SendTextMessageResponse" "Amazonka.PinpointSmsVoiceV2.SendTextMessage" "amazonka-pinpoint-sms-voice-v2-2.0-HnPsQLyg04lAXcjcfRtbC7" 'False) (C1 ('MetaCons "SendTextMessageResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newSendTextMessageResponse Source #

Create a value of SendTextMessageResponse 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:SendTextMessageResponse', sendTextMessageResponse_messageId - The unique identifier for the message.

$sel:httpStatus:SendTextMessageResponse', sendTextMessageResponse_httpStatus - The response's http status code.

Response Lenses