Class: Aws::PinpointSMSVoiceV2::Types::SendTextMessageRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#configuration_set_nameString

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

Returns:

  • (String)


5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
# File 'gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5020

class SendTextMessageRequest < Struct.new(
  :destination_phone_number,
  :origination_identity,
  :message_body,
  :message_type,
  :keyword,
  :configuration_set_name,
  :max_price,
  :time_to_live,
  :context,
  :destination_country_parameters,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#contextHash<String,String>

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

Returns:

  • (Hash<String,String>)


5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
# File 'gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5020

class SendTextMessageRequest < Struct.new(
  :destination_phone_number,
  :origination_identity,
  :message_body,
  :message_type,
  :keyword,
  :configuration_set_name,
  :max_price,
  :time_to_live,
  :context,
  :destination_country_parameters,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#destination_country_parametersHash<String,String>

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.

Returns:

  • (Hash<String,String>)


5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
# File 'gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5020

class SendTextMessageRequest < Struct.new(
  :destination_phone_number,
  :origination_identity,
  :message_body,
  :message_type,
  :keyword,
  :configuration_set_name,
  :max_price,
  :time_to_live,
  :context,
  :destination_country_parameters,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#destination_phone_numberString

The destination phone number in E.164 format.

Returns:

  • (String)


5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
# File 'gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5020

class SendTextMessageRequest < Struct.new(
  :destination_phone_number,
  :origination_identity,
  :message_body,
  :message_type,
  :keyword,
  :configuration_set_name,
  :max_price,
  :time_to_live,
  :context,
  :destination_country_parameters,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#dry_runBoolean

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

Returns:

  • (Boolean)


5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
# File 'gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5020

class SendTextMessageRequest < Struct.new(
  :destination_phone_number,
  :origination_identity,
  :message_body,
  :message_type,
  :keyword,
  :configuration_set_name,
  :max_price,
  :time_to_live,
  :context,
  :destination_country_parameters,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#keywordString

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.

Returns:

  • (String)


5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
# File 'gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5020

class SendTextMessageRequest < Struct.new(
  :destination_phone_number,
  :origination_identity,
  :message_body,
  :message_type,
  :keyword,
  :configuration_set_name,
  :max_price,
  :time_to_live,
  :context,
  :destination_country_parameters,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#max_priceString

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

Returns:

  • (String)


5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
# File 'gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5020

class SendTextMessageRequest < Struct.new(
  :destination_phone_number,
  :origination_identity,
  :message_body,
  :message_type,
  :keyword,
  :configuration_set_name,
  :max_price,
  :time_to_live,
  :context,
  :destination_country_parameters,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#message_bodyString

The body of the text message.

Returns:

  • (String)


5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
# File 'gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5020

class SendTextMessageRequest < Struct.new(
  :destination_phone_number,
  :origination_identity,
  :message_body,
  :message_type,
  :keyword,
  :configuration_set_name,
  :max_price,
  :time_to_live,
  :context,
  :destination_country_parameters,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#message_typeString

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

Returns:

  • (String)


5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
# File 'gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5020

class SendTextMessageRequest < Struct.new(
  :destination_phone_number,
  :origination_identity,
  :message_body,
  :message_type,
  :keyword,
  :configuration_set_name,
  :max_price,
  :time_to_live,
  :context,
  :destination_country_parameters,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#origination_identityString

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

Returns:

  • (String)


5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
# File 'gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5020

class SendTextMessageRequest < Struct.new(
  :destination_phone_number,
  :origination_identity,
  :message_body,
  :message_type,
  :keyword,
  :configuration_set_name,
  :max_price,
  :time_to_live,
  :context,
  :destination_country_parameters,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end

#time_to_liveInteger

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

Returns:

  • (Integer)


5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
# File 'gems/aws-sdk-pinpointsmsvoicev2/lib/aws-sdk-pinpointsmsvoicev2/types.rb', line 5020

class SendTextMessageRequest < Struct.new(
  :destination_phone_number,
  :origination_identity,
  :message_body,
  :message_type,
  :keyword,
  :configuration_set_name,
  :max_price,
  :time_to_live,
  :context,
  :destination_country_parameters,
  :dry_run)
  SENSITIVE = []
  include Aws::Structure
end