import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ChangeMessageVisibilityBatchRequest, ChangeMessageVisibilityBatchResult } from "../models/models_0"; import type { ServiceInputTypes, ServiceOutputTypes, SQSClientResolvedConfig } from "../SQSClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link ChangeMessageVisibilityBatchCommand}. */ export interface ChangeMessageVisibilityBatchCommandInput extends ChangeMessageVisibilityBatchRequest { } /** * @public * * The output of {@link ChangeMessageVisibilityBatchCommand}. */ export interface ChangeMessageVisibilityBatchCommandOutput extends ChangeMessageVisibilityBatchResult, __MetadataBearer { } declare const ChangeMessageVisibilityBatchCommand_base: { new (input: ChangeMessageVisibilityBatchCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: ChangeMessageVisibilityBatchCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { SQSClient, ChangeMessageVisibilityBatchCommand } from "@aws-sdk/client-sqs"; // ES Modules import * // const { SQSClient, ChangeMessageVisibilityBatchCommand } = require("@aws-sdk/client-sqs"); // CommonJS import * // import type { SQSClientConfig } from "@aws-sdk/client-sqs"; * const config = {}; // type is SQSClientConfig * const client = new SQSClient(config); * const input = { // ChangeMessageVisibilityBatchRequest * QueueUrl: "STRING_VALUE", // required * Entries: [ // ChangeMessageVisibilityBatchRequestEntryList // required * { // ChangeMessageVisibilityBatchRequestEntry * Id: "STRING_VALUE", // required * ReceiptHandle: "STRING_VALUE", // required * VisibilityTimeout: Number("int"), * }, * ], * }; * const command = new ChangeMessageVisibilityBatchCommand(input); * const response = await client.send(command); * // { // ChangeMessageVisibilityBatchResult * // Successful: [ // ChangeMessageVisibilityBatchResultEntryList // required * // { // ChangeMessageVisibilityBatchResultEntry * // Id: "STRING_VALUE", // required * // }, * // ], * // Failed: [ // BatchResultErrorEntryList // required * // { // BatchResultErrorEntry * // Id: "STRING_VALUE", // required * // SenderFault: true || false, // required * // Code: "STRING_VALUE", // required * // Message: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param ChangeMessageVisibilityBatchCommandInput - {@link ChangeMessageVisibilityBatchCommandInput} * @returns {@link ChangeMessageVisibilityBatchCommandOutput} * @see {@link ChangeMessageVisibilityBatchCommandInput} for command's `input` shape. * @see {@link ChangeMessageVisibilityBatchCommandOutput} for command's `response` shape. * @see {@link SQSClientResolvedConfig | config} for SQSClient's `config` shape. * * @throws {@link BatchEntryIdsNotDistinct} (client fault) *

Two or more batch entries in the request have the same Id.

* * @throws {@link EmptyBatchRequest} (client fault) *

The batch request doesn't contain any entries.

* * @throws {@link InvalidAddress} (client fault) *

The specified ID is invalid.

* * @throws {@link InvalidBatchEntryId} (client fault) *

The Id of a batch entry in a batch request doesn't abide by the * specification.

* * @throws {@link InvalidSecurity} (client fault) *

The request was not made over HTTPS or did not use SigV4 for signing.

* * @throws {@link QueueDoesNotExist} (client fault) *

Ensure that the QueueUrl is correct and that the queue has not been * deleted.

* * @throws {@link RequestThrottled} (client fault) *

The request was denied due to request throttling.

* * * @throws {@link TooManyEntriesInBatchRequest} (client fault) *

The batch request contains more entries than permissible. For Amazon SQS, the * maximum number of entries you can include in a single SendMessageBatch, DeleteMessageBatch, or ChangeMessageVisibilityBatch request is 10.

* * @throws {@link UnsupportedOperation} (client fault) *

Error code 400. Unsupported operation.

* * @throws {@link SQSServiceException} *

Base exception class for all service exceptions from SQS service.

* * * @public */ export declare class ChangeMessageVisibilityBatchCommand extends ChangeMessageVisibilityBatchCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ChangeMessageVisibilityBatchRequest; output: ChangeMessageVisibilityBatchResult; }; sdk: { input: ChangeMessageVisibilityBatchCommandInput; output: ChangeMessageVisibilityBatchCommandOutput; }; }; }