Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SendMessageCommand

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.

example

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);
see

SendMessageCommandInput for command's input shape.

see

SendMessageCommandOutput for command's response shape.

see

config for SQSClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: SendMessageCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<SendMessageCommandInput, SendMessageCommandOutput>

Methods

Static getEndpointParameterInstructions