Skip to content

Creates a new multimedia message (MMS) and sends it to a recipient's phone number

Description

Creates a new multimedia message (MMS) and sends it to a recipient's phone number.

Usage

pinpointsmsvoicev2_send_media_message(DestinationPhoneNumber,
  OriginationIdentity, MessageBody, MediaUrls, ConfigurationSetName,
  MaxPrice, TimeToLive, Context, DryRun, ProtectConfigurationId,
  MessageFeedbackEnabled)

Arguments

  • DestinationPhoneNumber

    [required] The destination phone number in E.164 format.

  • OriginationIdentity

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

    If you are using a shared End User Messaging SMS resource then you must use the full Amazon Resource Name(ARN).

  • MessageBody

    The text body of the message.

  • MediaUrls

    An array of URLs to each media file to send.

    The media files have to be stored in an S3 bucket. Supported media file formats are listed in MMS file types, size and character limits. For more information on creating an S3 bucket and managing objects, see Creating a bucket, Uploading objects in the Amazon S3 User Guide, and Setting up an Amazon S3 bucket for MMS files in the Amazon Web Services End User Messaging SMS User Guide.

  • ConfigurationSetName

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

  • MaxPrice

    The maximum amount that you want to spend, in US dollars, per each MMS message.

  • TimeToLive

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

  • Context

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

  • DryRun

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

  • ProtectConfigurationId

    The unique identifier of the protect configuration to use.

  • MessageFeedbackEnabled

    Set to true to enable message feedback for the message. When a user receives the message you need to update the message status using put_message_feedback.

Value

A list with the following syntax:

list(
  MessageId = "string"
)

Request syntax

svc$send_media_message(
  DestinationPhoneNumber = "string",
  OriginationIdentity = "string",
  MessageBody = "string",
  MediaUrls = list(
    "string"
  ),
  ConfigurationSetName = "string",
  MaxPrice = "string",
  TimeToLive = 123,
  Context = list(
    "string"
  ),
  DryRun = TRUE|FALSE,
  ProtectConfigurationId = "string",
  MessageFeedbackEnabled = TRUE|FALSE
)