Skip to content

Commit 304d37d

Browse files
committed
Treat Kinesis ReceiveQueueRecords and ReceiveDeadLetterQueueRecords as long-polling operations
1 parent bdaa169 commit 304d37d

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "aws-cpp-sdk-kinesis",
4+
"contributor": "sbiscigl",
5+
"description": "Treat Kinesis ReceiveQueueRecords and ReceiveDeadLetterQueueRecords as long-polling operations, so they back off when the retry quota is exhausted."
6+
}

‎tools/code-generation/generator/src/main/java/com/amazonaws/util/awsclientgenerator/transform/C2jModelToGeneratorModelTransformer.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,8 @@ void convertOperations() {
574574
private static final Map<String, Set<String>> LONG_POLLING_OPERATIONS = ImmutableMap.of(
575575
"SQS", ImmutableSet.of("ReceiveMessage"),
576576
"SFN", ImmutableSet.of("GetActivityTask"),
577-
"SWF", ImmutableSet.of("PollForActivityTask", "PollForDecisionTask")
577+
"SWF", ImmutableSet.of("PollForActivityTask", "PollForDecisionTask"),
578+
"Kinesis", ImmutableSet.of("ReceiveQueueRecords", "ReceiveDeadLetterQueueRecords")
578579
);
579580

580581
void applyLongPollingTrait() {

0 commit comments

Comments
 (0)