Skip to content

Commit 218ebbc

Browse files
author
awstools
committed
feat(client-auditmanager): Updated error handling for RegisterOrganizationAdminAccount API to properly translate TooManyExceptions to HTTP 429 status code. This enhancement improves error handling consistency and provides clearer feedback when request limits are exceeded.
1 parent 4c081fe commit 218ebbc

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

clients/client-auditmanager/src/commands/RegisterOrganizationAdminAccountCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ export interface RegisterOrganizationAdminAccountCommandOutput
7070
* @throws {@link ResourceNotFoundException} (client fault)
7171
* <p> The resource that's specified in the request can't be found. </p>
7272
*
73+
* @throws {@link ThrottlingException} (client fault)
74+
* <p>The request was denied due to request throttling.</p>
75+
*
7376
* @throws {@link ValidationException} (client fault)
7477
* <p> The request has invalid or missing parameters. </p>
7578
*

codegen/sdk-codegen/aws-models/auditmanager.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7895,6 +7895,9 @@
78957895
{
78967896
"target": "com.amazonaws.auditmanager#ResourceNotFoundException"
78977897
},
7898+
{
7899+
"target": "com.amazonaws.auditmanager#ThrottlingException"
7900+
},
78987901
{
78997902
"target": "com.amazonaws.auditmanager#ValidationException"
79007903
}

0 commit comments

Comments
 (0)