Jump to Content

Class DeleteMessageCommandProtected

Sends an event to a specific room which directs clients to delete a specific message; that is, unrender it from view and delete it from the client’s chat history. This event’s EventName is aws:DELETE_MESSAGE. This replicates the DeleteMessage WebSocket operation in the Amazon IVS Chat Messaging API.

Example

Use a bare-bones client and the command you need to make an API call.

import { IvschatClient, DeleteMessageCommand } from "@aws-sdk/client-ivschat"; // ES Modules import
// const { IvschatClient, DeleteMessageCommand } = require("@aws-sdk/client-ivschat"); // CommonJS import
const client = new IvschatClient(config);
const command = new DeleteMessageCommand(input);
const response = await client.send(command);

See

Throws

AccessDeniedException (client fault)

Throws

PendingVerification (client fault)

Throws

ResourceNotFoundException (client fault)

Throws

ThrottlingException (client fault)

Throws

ValidationException (client fault)

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<DeleteMessageCommandInput, DeleteMessageCommandOutput>

Methods