Skip to content

Commit

Permalink
feat(client-secrets-manager): Add additional InvalidRequestException …
Browse files Browse the repository at this point in the history
…to list of possible exceptions for ListSecret.
  • Loading branch information
awstools committed Aug 10, 2023
1 parent 0224db7 commit f80ac69
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions clients/client-secrets-manager/src/commands/ListSecretsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,24 @@ export interface ListSecretsCommandOutput extends ListSecretsResponse, __Metadat
* @throws {@link InvalidParameterException} (client fault)
* <p>The parameter name or value is invalid.</p>
*
* @throws {@link InvalidRequestException} (client fault)
* <p>A parameter value is not valid for the current state of the
* resource.</p>
* <p>Possible causes:</p>
* <ul>
* <li>
* <p>The secret is scheduled for deletion.</p>
* </li>
* <li>
* <p>You tried to enable rotation on a secret that doesn't already have a Lambda function
* ARN configured and you didn't include such an ARN as a parameter in this call. </p>
* </li>
* <li>
* <p>The secret is managed by another service, and you must use that service to update it.
* For more information, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/service-linked-secrets.html">Secrets managed by other Amazon Web Services services</a>.</p>
* </li>
* </ul>
*
* @throws {@link SecretsManagerServiceException}
* <p>Base exception class for all service exceptions from SecretsManager service.</p>
*
Expand Down
3 changes: 3 additions & 0 deletions clients/client-secrets-manager/src/protocols/Aws_json1_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -899,6 +899,9 @@ const de_ListSecretsCommandError = async (
case "InvalidParameterException":
case "com.amazonaws.secretsmanager#InvalidParameterException":
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
case "InvalidRequestException":
case "com.amazonaws.secretsmanager#InvalidRequestException":
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
default:
const parsedBody = parsedOutput.body;
return throwDefaultError({
Expand Down
3 changes: 3 additions & 0 deletions codegen/sdk-codegen/aws-models/secrets-manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,9 @@
},
{
"target": "com.amazonaws.secretsmanager#InvalidParameterException"
},
{
"target": "com.amazonaws.secretsmanager#InvalidRequestException"
}
],
"traits": {
Expand Down

0 comments on commit f80ac69

Please sign in to comment.