SendMediaMessage
Source:
src/AWS/PinpointSMSVoiceV2/SendMediaMessage.ts
Runtime binding for sms-voice:SendMediaMessage.
Sends a multimedia message (MMS) from the bound origination phone
number. MediaUrls reference S3 objects (s3://bucket/key) holding the
attachments. The deploy-time half grants sms-voice:SendMediaMessage on
the number and the runtime half injects its ARN as the request’s
OriginationIdentity. The bound number must carry the MMS capability.
Provide the implementation with
Effect.provide(AWS.PinpointSMSVoiceV2.SendMediaMessageHttp).
Sending Media Messages
Section titled “Sending Media Messages”// initconst sendMedia = yield* AWS.PinpointSMSVoiceV2.SendMediaMessage(number);
// runtimeconst { MessageId } = yield* sendMedia({ DestinationPhoneNumber: "+12065550100", MessageBody: "Here is your receipt", MediaUrls: ["s3://my-bucket/receipts/1234.png"],});