Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ChangeMessageVisibilityBatchCommand

Changes the visibility timeout of multiple messages. This is a batch version of ChangeMessageVisibility. The result of the action on each message is reported individually in the response. You can send up to 10 ChangeMessageVisibility requests with each ChangeMessageVisibilityBatch action.

Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Some actions take lists of parameters. These lists are specified using the param.n notation. Values of n are integers starting from 1. For example, a parameter list with two elements looks like this:

&AttributeName.1=first

&AttributeName.2=second

example

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

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

ChangeMessageVisibilityBatchCommandInput for command's input shape.

see

ChangeMessageVisibilityBatchCommandOutput for command's response shape.

see

config for SQSClient's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: ChangeMessageVisibilityBatchCommandInput

Readonly middlewareStack