Skip to content

Commit

Permalink
Update SNS client to retry on Throttling error
Browse files Browse the repository at this point in the history
  • Loading branch information
knovichikhin authored Sep 4, 2024
1 parent a0d480e commit d95936f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/SmokeAWSGenerate/SNSConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@ 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,
knownErrorsDefaultRetryBehavior: .fail,
unretriableUnknownErrors: [],
retriableUnknownErrors: ["FilterPolicyLimitExceededException", "KMSThrottlingException",
"SubscriptionLimitExceededException", "ThrottledException",
"TopicLimitExceededException"],
"TopicLimitExceededException", "Throttling"],
clientDelegateNameOverride: "FormEncodedXMLAWSHttpClientDelegate")

static let serviceModelDetails = ServiceModelDetails(
Expand Down

0 comments on commit d95936f

Please sign in to comment.