From d95936f4854baf86e84e1dad139babf6bd670f03 Mon Sep 17 00:00:00 2001 From: Konstantin Novichikhin Date: Wed, 4 Sep 2024 12:03:39 -0400 Subject: [PATCH] Update SNS client to retry on Throttling error --- Sources/SmokeAWSGenerate/SNSConfiguration.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sources/SmokeAWSGenerate/SNSConfiguration.swift b/Sources/SmokeAWSGenerate/SNSConfiguration.swift index 75cf850..cb97d3b 100644 --- a/Sources/SmokeAWSGenerate/SNSConfiguration.swift +++ b/Sources/SmokeAWSGenerate/SNSConfiguration.swift @@ -37,7 +37,8 @@ internal struct SNSConfiguration { "PlatformApplicationDisabledException.message": "Message", "SubscriptionLimitExceededException.message": "Message", "ThrottledException.message": "Message", - "TopicLimitExceededException.message": "Message"]) + "TopicLimitExceededException.message": "Message"], + additionalErrors: ["Throttling"]) static let httpClientConfiguration = HttpClientConfiguration( retryOnUnknownError: true, @@ -45,7 +46,7 @@ internal struct SNSConfiguration { unretriableUnknownErrors: [], retriableUnknownErrors: ["FilterPolicyLimitExceededException", "KMSThrottlingException", "SubscriptionLimitExceededException", "ThrottledException", - "TopicLimitExceededException"], + "TopicLimitExceededException", "Throttling"], clientDelegateNameOverride: "FormEncodedXMLAWSHttpClientDelegate") static let serviceModelDetails = ServiceModelDetails(