Skip to content

PublishSms

Source: src/AWS/SNS/PublishSms.ts

Runtime binding for sns:Publish.

Runtime binding for direct SMS delivery with sns:Publish — send a text message straight to a phone number without a topic. Accounts start in the SMS sandbox, where only verified destination numbers are deliverable. Provide the PublishSmsHttp layer on the Function to implement the binding.

const publishSms = yield* SNS.PublishSms();
yield* publishSms({
PhoneNumber: "+15555550123",
Message: "Your code is 123456",
});