NIFI-13252 Replaced deprecated AWS SQS method attributeNames()

This closes #8850

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
dan-s1 2024-05-17 21:55:44 +00:00 committed by exceptionfactory
parent 2e7e3733f3
commit a91dee65fb
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -40,7 +40,6 @@ import software.amazon.awssdk.services.sqs.model.DeleteMessageBatchRequestEntry;
import software.amazon.awssdk.services.sqs.model.Message;
import software.amazon.awssdk.services.sqs.model.MessageAttributeValue;
import software.amazon.awssdk.services.sqs.model.MessageSystemAttributeName;
import software.amazon.awssdk.services.sqs.model.QueueAttributeName;
import software.amazon.awssdk.services.sqs.model.ReceiveMessageRequest;
import software.amazon.awssdk.services.sqs.model.ReceiveMessageResponse;
@ -147,7 +146,7 @@ public class GetSQS extends AbstractAwsSyncProcessor<SqsClient, SqsClientBuilder
final SqsClient client = getClient(context);
final ReceiveMessageRequest request = ReceiveMessageRequest.builder()
.attributeNames(QueueAttributeName.ALL)
.messageSystemAttributeNames(MessageSystemAttributeName.ALL)
.messageAttributeNames("All")
.maxNumberOfMessages(context.getProperty(BATCH_SIZE).asInteger())
.visibilityTimeout(context.getProperty(VISIBILITY_TIMEOUT).asTimePeriod(TimeUnit.SECONDS).intValue())