Class: Aws::Pinpoint::Types::SMSMessage

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-pinpoint/types.rb

Overview

Note:

When making an API call, you may pass SMSMessage data as a hash:

{
  body: "__string",
  keyword: "__string",
  media_url: "__string",
  message_type: "TRANSACTIONAL", # accepts TRANSACTIONAL, PROMOTIONAL
  origination_number: "__string",
  sender_id: "__string",
  substitutions: {
    "__string" => ["__string"],
  },
}

Specifies the default settings for a one-time SMS message that’s sent directly to an endpoint.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyString

The body of the SMS message.



12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
# File 'lib/aws-sdk-pinpoint/types.rb', line 12635

class SMSMessage < Struct.new(
  :body,
  :keyword,
  :media_url,
  :message_type,
  :origination_number,
  :sender_id,
  :substitutions)
  include Aws::Structure
end

#keywordString

The SMS program name that you provided to AWS Support when you requested your dedicated number.



12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
# File 'lib/aws-sdk-pinpoint/types.rb', line 12635

class SMSMessage < Struct.new(
  :body,
  :keyword,
  :media_url,
  :message_type,
  :origination_number,
  :sender_id,
  :substitutions)
  include Aws::Structure
end

#media_urlString

The URL of an image or video to display in the SMS message.



12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
# File 'lib/aws-sdk-pinpoint/types.rb', line 12635

class SMSMessage < Struct.new(
  :body,
  :keyword,
  :media_url,
  :message_type,
  :origination_number,
  :sender_id,
  :substitutions)
  include Aws::Structure
end

#message_typeString

The SMS message type. Valid values are: TRANSACTIONAL, the message is critical or time-sensitive, such as a one-time password that supports a customer transaction; and, PROMOTIONAL, the message is not critical or time-sensitive, such as a marketing message.



12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
# File 'lib/aws-sdk-pinpoint/types.rb', line 12635

class SMSMessage < Struct.new(
  :body,
  :keyword,
  :media_url,
  :message_type,
  :origination_number,
  :sender_id,
  :substitutions)
  include Aws::Structure
end

#origination_numberString

The number to send the SMS message from. This value should be one of the dedicated long or short codes that’s assigned to your AWS account. If you don’t specify a long or short code, Amazon Pinpoint assigns a random long code to the SMS message and sends the message from that code.



12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
# File 'lib/aws-sdk-pinpoint/types.rb', line 12635

class SMSMessage < Struct.new(
  :body,
  :keyword,
  :media_url,
  :message_type,
  :origination_number,
  :sender_id,
  :substitutions)
  include Aws::Structure
end

#sender_idString

The sender ID to display as the sender of the message on a recipient’s device. Support for sender IDs varies by country or region.



12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
# File 'lib/aws-sdk-pinpoint/types.rb', line 12635

class SMSMessage < Struct.new(
  :body,
  :keyword,
  :media_url,
  :message_type,
  :origination_number,
  :sender_id,
  :substitutions)
  include Aws::Structure
end

#substitutionsHash<String,Array<String>>

The message variables to use in the SMS message. You can override the default variables with individual address variables.



12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
# File 'lib/aws-sdk-pinpoint/types.rb', line 12635

class SMSMessage < Struct.new(
  :body,
  :keyword,
  :media_url,
  :message_type,
  :origination_number,
  :sender_id,
  :substitutions)
  include Aws::Structure
end