ChangeMessageVisibilityBatch
Source:
src/AWS/SQS/ChangeMessageVisibilityBatch.ts
Runtime binding for sqs:ChangeMessageVisibilityBatch.
Bind this operation to a Queue inside a function runtime to change
the visibility timeout of up to 10 in-flight messages per call with
per-entry success/failure results. The binding grants the host function
sqs:ChangeMessageVisibility on the queue. Provide the
ChangeMessageVisibilityBatchHttp layer on the Function to implement the
binding.
Changing Message Visibility
Section titled “Changing Message Visibility”// init (provide SQS.ChangeMessageVisibilityBatchHttp on the Function)const changeMessageVisibilityBatch = yield* SQS.ChangeMessageVisibilityBatch(queue);
// runtimeconst result = yield* changeMessageVisibilityBatch({ Entries: messages.map((message, index) => ({ Id: `${index}`, ReceiptHandle: message.ReceiptHandle!, VisibilityTimeout: 0, })),});// result.Successful / result.Failed