Skip to content

Commit 9f9831c

Browse files
committed
fix code gen for retryable errors
1 parent 1090225 commit 9f9831c

File tree

141 files changed

+200
-193
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+200
-193
lines changed

generated/src/aws-cpp-sdk-amplify/source/AmplifyErrors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
5151
}
5252
else if (hashCode == DEPENDENT_SERVICE_FAILURE_HASH)
5353
{
54-
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyErrors::DEPENDENT_SERVICE_FAILURE), RetryableType::NOT_RETRYABLE);
54+
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyErrors::DEPENDENT_SERVICE_FAILURE), RetryableType::RETRYABLE);
5555
}
5656
else if (hashCode == BAD_REQUEST_HASH)
5757
{

generated/src/aws-cpp-sdk-amplifybackend/source/AmplifyBackendErrors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
4949
}
5050
else if (hashCode == GATEWAY_TIMEOUT_HASH)
5151
{
52-
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyBackendErrors::GATEWAY_TIMEOUT), RetryableType::NOT_RETRYABLE);
52+
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyBackendErrors::GATEWAY_TIMEOUT), RetryableType::RETRYABLE);
5353
}
5454
else if (hashCode == TOO_MANY_REQUESTS_HASH)
5555
{

generated/src/aws-cpp-sdk-amplifyuibuilder/source/AmplifyUIBuilderErrors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
3535
}
3636
else if (hashCode == INTERNAL_SERVER_HASH)
3737
{
38-
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyUIBuilderErrors::INTERNAL_SERVER), RetryableType::NOT_RETRYABLE);
38+
return AWSError<CoreErrors>(static_cast<CoreErrors>(AmplifyUIBuilderErrors::INTERNAL_SERVER), RetryableType::RETRYABLE);
3939
}
4040
else if (hashCode == INVALID_PARAMETER_HASH)
4141
{

generated/src/aws-cpp-sdk-appconfig/source/AppConfigErrors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
6161
}
6262
else if (hashCode == INTERNAL_SERVER_HASH)
6363
{
64-
return AWSError<CoreErrors>(static_cast<CoreErrors>(AppConfigErrors::INTERNAL_SERVER), RetryableType::NOT_RETRYABLE);
64+
return AWSError<CoreErrors>(static_cast<CoreErrors>(AppConfigErrors::INTERNAL_SERVER), RetryableType::RETRYABLE);
6565
}
6666
else if (hashCode == PAYLOAD_TOO_LARGE_HASH)
6767
{

generated/src/aws-cpp-sdk-appconfigdata/source/AppConfigDataErrors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
4343

4444
if (hashCode == INTERNAL_SERVER_HASH)
4545
{
46-
return AWSError<CoreErrors>(static_cast<CoreErrors>(AppConfigDataErrors::INTERNAL_SERVER), RetryableType::NOT_RETRYABLE);
46+
return AWSError<CoreErrors>(static_cast<CoreErrors>(AppConfigDataErrors::INTERNAL_SERVER), RetryableType::RETRYABLE);
4747
}
4848
else if (hashCode == BAD_REQUEST_HASH)
4949
{

generated/src/aws-cpp-sdk-appflow/source/AppflowErrors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
4444
}
4545
else if (hashCode == INTERNAL_SERVER_HASH)
4646
{
47-
return AWSError<CoreErrors>(static_cast<CoreErrors>(AppflowErrors::INTERNAL_SERVER), RetryableType::NOT_RETRYABLE);
47+
return AWSError<CoreErrors>(static_cast<CoreErrors>(AppflowErrors::INTERNAL_SERVER), RetryableType::RETRYABLE);
4848
}
4949
else if (hashCode == CONNECTOR_SERVER_HASH)
5050
{

generated/src/aws-cpp-sdk-appintegrations/source/AppIntegrationsServiceErrors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
3131

3232
if (hashCode == INTERNAL_SERVICE_HASH)
3333
{
34-
return AWSError<CoreErrors>(static_cast<CoreErrors>(AppIntegrationsServiceErrors::INTERNAL_SERVICE), RetryableType::NOT_RETRYABLE);
34+
return AWSError<CoreErrors>(static_cast<CoreErrors>(AppIntegrationsServiceErrors::INTERNAL_SERVICE), RetryableType::RETRYABLE);
3535
}
3636
else if (hashCode == DUPLICATE_RESOURCE_HASH)
3737
{

generated/src/aws-cpp-sdk-applicationcostprofiler/source/ApplicationCostProfilerErrors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
3232
}
3333
else if (hashCode == INTERNAL_SERVER_HASH)
3434
{
35-
return AWSError<CoreErrors>(static_cast<CoreErrors>(ApplicationCostProfilerErrors::INTERNAL_SERVER), RetryableType::NOT_RETRYABLE);
35+
return AWSError<CoreErrors>(static_cast<CoreErrors>(ApplicationCostProfilerErrors::INTERNAL_SERVER), RetryableType::RETRYABLE);
3636
}
3737
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
3838
}

generated/src/aws-cpp-sdk-arc-zonal-shift/source/ARCZonalShiftErrors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
4747
}
4848
else if (hashCode == INTERNAL_SERVER_HASH)
4949
{
50-
return AWSError<CoreErrors>(static_cast<CoreErrors>(ARCZonalShiftErrors::INTERNAL_SERVER), RetryableType::NOT_RETRYABLE);
50+
return AWSError<CoreErrors>(static_cast<CoreErrors>(ARCZonalShiftErrors::INTERNAL_SERVER), RetryableType::RETRYABLE);
5151
}
5252
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
5353
}

generated/src/aws-cpp-sdk-auditmanager/source/AuditManagerErrors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ AWSError<CoreErrors> GetErrorForName(const char* errorName)
4747
}
4848
else if (hashCode == INTERNAL_SERVER_HASH)
4949
{
50-
return AWSError<CoreErrors>(static_cast<CoreErrors>(AuditManagerErrors::INTERNAL_SERVER), RetryableType::NOT_RETRYABLE);
50+
return AWSError<CoreErrors>(static_cast<CoreErrors>(AuditManagerErrors::INTERNAL_SERVER), RetryableType::RETRYABLE);
5151
}
5252
return AWSError<CoreErrors>(CoreErrors::UNKNOWN, false);
5353
}

0 commit comments

Comments
 (0)