Skip to content

Commit d56b489

Browse files
author
awstools
committed
feat(client-cognito-identity-provider): Add exceptions to WebAuthn operations.
1 parent e87d8b4 commit d56b489

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-0
lines changed

clients/client-cognito-identity-provider/src/commands/DeleteWebAuthnCredentialCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,21 @@ export interface DeleteWebAuthnCredentialCommandOutput extends DeleteWebAuthnCre
7878
* <p>This exception is thrown when the Amazon Cognito service encounters an invalid
7979
* parameter.</p>
8080
*
81+
* @throws {@link LimitExceededException} (client fault)
82+
* <p>This exception is thrown when a user exceeds the limit for a requested Amazon Web Services
83+
* resource.</p>
84+
*
8185
* @throws {@link NotAuthorizedException} (client fault)
8286
* <p>This exception is thrown when a user isn't authorized.</p>
8387
*
8488
* @throws {@link ResourceNotFoundException} (client fault)
8589
* <p>This exception is thrown when the Amazon Cognito service can't find the requested
8690
* resource.</p>
8791
*
92+
* @throws {@link TooManyRequestsException} (client fault)
93+
* <p>This exception is thrown when the user has made too many requests for a given
94+
* operation.</p>
95+
*
8896
* @throws {@link CognitoIdentityProviderServiceException}
8997
* <p>Base exception class for all service exceptions from CognitoIdentityProvider service.</p>
9098
*

clients/client-cognito-identity-provider/src/commands/ListWebAuthnCredentialsCommand.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,17 @@ export interface ListWebAuthnCredentialsCommandOutput extends ListWebAuthnCreden
9393
* <p>This exception is thrown when the Amazon Cognito service encounters an invalid
9494
* parameter.</p>
9595
*
96+
* @throws {@link LimitExceededException} (client fault)
97+
* <p>This exception is thrown when a user exceeds the limit for a requested Amazon Web Services
98+
* resource.</p>
99+
*
96100
* @throws {@link NotAuthorizedException} (client fault)
97101
* <p>This exception is thrown when a user isn't authorized.</p>
98102
*
103+
* @throws {@link TooManyRequestsException} (client fault)
104+
* <p>This exception is thrown when the user has made too many requests for a given
105+
* operation.</p>
106+
*
99107
* @throws {@link CognitoIdentityProviderServiceException}
100108
* <p>Base exception class for all service exceptions from CognitoIdentityProvider service.</p>
101109
*

codegen/sdk-codegen/aws-models/cognito-identity-provider.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8108,11 +8108,17 @@
81088108
{
81098109
"target": "com.amazonaws.cognitoidentityprovider#InvalidParameterException"
81108110
},
8111+
{
8112+
"target": "com.amazonaws.cognitoidentityprovider#LimitExceededException"
8113+
},
81118114
{
81128115
"target": "com.amazonaws.cognitoidentityprovider#NotAuthorizedException"
81138116
},
81148117
{
81158118
"target": "com.amazonaws.cognitoidentityprovider#ResourceNotFoundException"
8119+
},
8120+
{
8121+
"target": "com.amazonaws.cognitoidentityprovider#TooManyRequestsException"
81168122
}
81178123
],
81188124
"traits": {
@@ -12491,8 +12497,14 @@
1249112497
{
1249212498
"target": "com.amazonaws.cognitoidentityprovider#InvalidParameterException"
1249312499
},
12500+
{
12501+
"target": "com.amazonaws.cognitoidentityprovider#LimitExceededException"
12502+
},
1249412503
{
1249512504
"target": "com.amazonaws.cognitoidentityprovider#NotAuthorizedException"
12505+
},
12506+
{
12507+
"target": "com.amazonaws.cognitoidentityprovider#TooManyRequestsException"
1249612508
}
1249712509
],
1249812510
"traits": {

0 commit comments

Comments
 (0)