This example sets the visibility timeout for a message in an Amazon SQS queue.
go run ChangeMsgVisibilityv2.go -q QUEUE-NAME -h RECEIPT-HANDLE -v VISIBILITY
QUEUE-NAME is the name of the queue.
RECEIPT-HANDLE is the receipt handle of the message.
VISIBILITY is the duration, in seconds, that the message is not visible to other consumers.
The example ensures the value is between 0 and 12 hours;
the default is 30 seconds.
The unit test accepts similar values in config.json.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX - License - Identifier: Apache - 2.0
snippet-start:[sqs.go-v2.ChangeMessageVisibility]