SMSMessage

public struct SMSMessage : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • The body of the SMS message.

    Declaration

    Swift

    public let body: String?
  • The SMS program name that you provided to AWS Support when you requested your dedicated number.

    Declaration

    Swift

    public let keyword: String?
  • The URL of an image or video to display in the SMS message. This field is reserved for future use.

    Declaration

    Swift

    public let mediaUrl: String?
  • The SMS message type. Valid values are TRANSACTIONAL (for messages that are critical or time-sensitive, such as a one-time passwords) and PROMOTIONAL (for messsages that aren’t critical or time-sensitive, such as marketing messages).

    Declaration

    Swift

    public let messageType: MessageType?
  • 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.

    Declaration

    Swift

    public let originationNumber: String?
  • 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.

    Declaration

    Swift

    public let senderId: String?
  • The message variables to use in the SMS message. You can override the default variables with individual address variables.

    Declaration

    Swift

    public let substitutions: [String : [String]]?
  • Undocumented

    Declaration

    Swift

    public init(body: String? = nil, keyword: String? = nil, mediaUrl: String? = nil, messageType: MessageType? = nil, originationNumber: String? = nil, senderId: String? = nil, substitutions: [String : [String]]? = nil)