Delivers a message to the specified queue.
A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:
#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF
#x9
#xA
#xD
#x20
#xD7FF
#xE000
#xFFFD
#x10000
#x10FFFF
Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.
Use a bare-bones client and the command you need to make an API call.
import { SQSClient, SendMessageCommand } from "@aws-sdk/client-sqs"; // ES Modules import // const { SQSClient, SendMessageCommand } = require("@aws-sdk/client-sqs"); // CommonJS import const client = new SQSClient(config); const command = new SendMessageCommand(input); const response = await client.send(command);
SendMessageCommandInput for command's input shape.
input
SendMessageCommandOutput for command's response shape.
response
config for SQSClient's config shape.
config
Delivers a message to the specified queue.
A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed:
#x9
|#xA
|#xD
|#x20
to#xD7FF
|#xE000
to#xFFFD
|#x10000
to#x10FFFF
Any characters not included in this list will be rejected. For more information, see the W3C specification for characters.
Use a bare-bones client and the command you need to make an API call.
import { SQSClient, SendMessageCommand } from "@aws-sdk/client-sqs"; // ES Modules import // const { SQSClient, SendMessageCommand } = require("@aws-sdk/client-sqs"); // CommonJS import const client = new SQSClient(config); const command = new SendMessageCommand(input); const response = await client.send(command);
SendMessageCommandInput for command's
input
shape.SendMessageCommandOutput for command's
response
shape.config for SQSClient's
config
shape.