aws sns publish
Sends a message to an Amazon SNS topic, a text message (SMS message) directly to a phone number, or a message to a mobile platform endpoint (when you specify the TargetArn). AWS CLI reference
9 options Its page in the AWS CLI reference
Options
--message-attributesMessage attributes for Publish action.--message-deduplication-idThis parameter applies only to FIFO (first-in-first-out) topics.--message-group-idThe MessageGroupId can contain up to 128 alphanumeric characters (a-z, A-Z, 0-9) and punctuation (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~).--message-structureSet MessageStructure to json if you want to send a different message for each protocol.--messageThe message you want to send.--phone-numberThe phone number to which you want to deliver an SMS message.--subjectOptional parameter to be used as the "Subject" line when the message is delivered to email endpoints.--target-arnIf you don't specify a value for the TargetArn parameter, you must specify a value for the PhoneNumber or TopicArn parameters.--topic-arnThe topic you want to publish to.