From f80ac692147815db6a460e348c50a559786d4d59 Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 10 Aug 2023 18:22:43 +0000 Subject: [PATCH] feat(client-secrets-manager): Add additional InvalidRequestException to list of possible exceptions for ListSecret. --- .../src/commands/ListSecretsCommand.ts | 18 ++++++++++++++++++ .../src/protocols/Aws_json1_1.ts | 3 +++ .../aws-models/secrets-manager.json | 3 +++ 3 files changed, 24 insertions(+) diff --git a/clients/client-secrets-manager/src/commands/ListSecretsCommand.ts b/clients/client-secrets-manager/src/commands/ListSecretsCommand.ts index f24a9db1984c..eeb8a5356cce 100644 --- a/clients/client-secrets-manager/src/commands/ListSecretsCommand.ts +++ b/clients/client-secrets-manager/src/commands/ListSecretsCommand.ts @@ -128,6 +128,24 @@ export interface ListSecretsCommandOutput extends ListSecretsResponse, __Metadat * @throws {@link InvalidParameterException} (client fault) *

The parameter name or value is invalid.

* + * @throws {@link InvalidRequestException} (client fault) + *

A parameter value is not valid for the current state of the + * resource.

+ *

Possible causes:

+ * + * * @throws {@link SecretsManagerServiceException} *

Base exception class for all service exceptions from SecretsManager service.

* diff --git a/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts b/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts index 40ea65294b52..848d1cb5a18c 100644 --- a/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts +++ b/clients/client-secrets-manager/src/protocols/Aws_json1_1.ts @@ -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({ diff --git a/codegen/sdk-codegen/aws-models/secrets-manager.json b/codegen/sdk-codegen/aws-models/secrets-manager.json index 5036d5af55d6..afba3a6de835 100644 --- a/codegen/sdk-codegen/aws-models/secrets-manager.json +++ b/codegen/sdk-codegen/aws-models/secrets-manager.json @@ -1237,6 +1237,9 @@ }, { "target": "com.amazonaws.secretsmanager#InvalidParameterException" + }, + { + "target": "com.amazonaws.secretsmanager#InvalidRequestException" } ], "traits": {