Skip to content

Commit

Permalink
feat(client-fms): Fixes issue that could cause calls to GetAdminScope…
Browse files Browse the repository at this point in the history
… and ListAdminAccountsForOrganization to return a 500 Internal Server error.
  • Loading branch information
awstools committed May 23, 2023
1 parent c55d61a commit 8306abb
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clients/client-fms/src/commands/GetAdminScopeCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ export interface GetAdminScopeCommandOutput extends GetAdminScopeResponse, __Met
* that's disabled by default, and that you need to enable for the Firewall Manager
* administrator account and for Organizations before you can access it.</p>
*
* @throws {@link LimitExceededException} (client fault)
* <p>The operation exceeds a resource limit, for example, the maximum number of
* <code>policy</code> objects that you can create for an Amazon Web Services account. For more information,
* see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html">Firewall
* Manager Limits</a> in the <i>WAF Developer Guide</i>.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource was not found.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ export interface ListAdminAccountsForOrganizationCommandOutput
* that's disabled by default, and that you need to enable for the Firewall Manager
* administrator account and for Organizations before you can access it.</p>
*
* @throws {@link LimitExceededException} (client fault)
* <p>The operation exceeds a resource limit, for example, the maximum number of
* <code>policy</code> objects that you can create for an Amazon Web Services account. For more information,
* see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html">Firewall
* Manager Limits</a> in the <i>WAF Developer Guide</i>.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>The specified resource was not found.</p>
*
Expand Down
6 changes: 6 additions & 0 deletions clients/client-fms/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1423,6 +1423,9 @@ const de_GetAdminScopeCommandError = async (
case "InvalidOperationException":
case "com.amazonaws.fms#InvalidOperationException":
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.fms#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "ResourceNotFoundException":
case "com.amazonaws.fms#ResourceNotFoundException":
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
Expand Down Expand Up @@ -1955,6 +1958,9 @@ const de_ListAdminAccountsForOrganizationCommandError = async (
case "InvalidOperationException":
case "com.amazonaws.fms#InvalidOperationException":
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
case "LimitExceededException":
case "com.amazonaws.fms#LimitExceededException":
throw await de_LimitExceededExceptionRes(parsedOutput, context);
case "ResourceNotFoundException":
case "com.amazonaws.fms#ResourceNotFoundException":
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
Expand Down
6 changes: 6 additions & 0 deletions codegen/sdk-codegen/aws-models/fms.json
Original file line number Diff line number Diff line change
Expand Up @@ -3241,6 +3241,9 @@
{
"target": "com.amazonaws.fms#InvalidOperationException"
},
{
"target": "com.amazonaws.fms#LimitExceededException"
},
{
"target": "com.amazonaws.fms#ResourceNotFoundException"
}
Expand Down Expand Up @@ -4008,6 +4011,9 @@
{
"target": "com.amazonaws.fms#InvalidOperationException"
},
{
"target": "com.amazonaws.fms#LimitExceededException"
},
{
"target": "com.amazonaws.fms#ResourceNotFoundException"
}
Expand Down

0 comments on commit 8306abb

Please sign in to comment.