Skip to content

Commit 8306abb

Browse files
author
awstools
committed
feat(client-fms): Fixes issue that could cause calls to GetAdminScope and ListAdminAccountsForOrganization to return a 500 Internal Server error.
1 parent c55d61a commit 8306abb

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

clients/client-fms/src/commands/GetAdminScopeCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ export interface GetAdminScopeCommandOutput extends GetAdminScopeResponse, __Met
102102
* that's disabled by default, and that you need to enable for the Firewall Manager
103103
* administrator account and for Organizations before you can access it.</p>
104104
*
105+
* @throws {@link LimitExceededException} (client fault)
106+
* <p>The operation exceeds a resource limit, for example, the maximum number of
107+
* <code>policy</code> objects that you can create for an Amazon Web Services account. For more information,
108+
* see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html">Firewall
109+
* Manager Limits</a> in the <i>WAF Developer Guide</i>.</p>
110+
*
105111
* @throws {@link ResourceNotFoundException} (client fault)
106112
* <p>The specified resource was not found.</p>
107113
*

clients/client-fms/src/commands/ListAdminAccountsForOrganizationCommand.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ export interface ListAdminAccountsForOrganizationCommandOutput
8585
* that's disabled by default, and that you need to enable for the Firewall Manager
8686
* administrator account and for Organizations before you can access it.</p>
8787
*
88+
* @throws {@link LimitExceededException} (client fault)
89+
* <p>The operation exceeds a resource limit, for example, the maximum number of
90+
* <code>policy</code> objects that you can create for an Amazon Web Services account. For more information,
91+
* see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/fms-limits.html">Firewall
92+
* Manager Limits</a> in the <i>WAF Developer Guide</i>.</p>
93+
*
8894
* @throws {@link ResourceNotFoundException} (client fault)
8995
* <p>The specified resource was not found.</p>
9096
*

clients/client-fms/src/protocols/Aws_json1_1.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,9 @@ const de_GetAdminScopeCommandError = async (
14231423
case "InvalidOperationException":
14241424
case "com.amazonaws.fms#InvalidOperationException":
14251425
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1426+
case "LimitExceededException":
1427+
case "com.amazonaws.fms#LimitExceededException":
1428+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
14261429
case "ResourceNotFoundException":
14271430
case "com.amazonaws.fms#ResourceNotFoundException":
14281431
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -1955,6 +1958,9 @@ const de_ListAdminAccountsForOrganizationCommandError = async (
19551958
case "InvalidOperationException":
19561959
case "com.amazonaws.fms#InvalidOperationException":
19571960
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
1961+
case "LimitExceededException":
1962+
case "com.amazonaws.fms#LimitExceededException":
1963+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
19581964
case "ResourceNotFoundException":
19591965
case "com.amazonaws.fms#ResourceNotFoundException":
19601966
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3241,6 +3241,9 @@
32413241
{
32423242
"target": "com.amazonaws.fms#InvalidOperationException"
32433243
},
3244+
{
3245+
"target": "com.amazonaws.fms#LimitExceededException"
3246+
},
32443247
{
32453248
"target": "com.amazonaws.fms#ResourceNotFoundException"
32463249
}
@@ -4008,6 +4011,9 @@
40084011
{
40094012
"target": "com.amazonaws.fms#InvalidOperationException"
40104013
},
4014+
{
4015+
"target": "com.amazonaws.fms#LimitExceededException"
4016+
},
40114017
{
40124018
"target": "com.amazonaws.fms#ResourceNotFoundException"
40134019
}

0 commit comments

Comments
 (0)