diff --git a/clients/client-b2bi/src/commands/ListTagsForResourceCommand.ts b/clients/client-b2bi/src/commands/ListTagsForResourceCommand.ts index 6570790d64369..cdc23b87bd493 100644 --- a/clients/client-b2bi/src/commands/ListTagsForResourceCommand.ts +++ b/clients/client-b2bi/src/commands/ListTagsForResourceCommand.ts @@ -57,6 +57,9 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape. * @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape. * + * @throws {@link InternalServerException} (server fault) + *

This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

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

Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

* diff --git a/clients/client-b2bi/src/commands/TagResourceCommand.ts b/clients/client-b2bi/src/commands/TagResourceCommand.ts index bdac4c00c9937..6f1eee3dc7f36 100644 --- a/clients/client-b2bi/src/commands/TagResourceCommand.ts +++ b/clients/client-b2bi/src/commands/TagResourceCommand.ts @@ -57,6 +57,9 @@ export interface TagResourceCommandOutput extends __MetadataBearer {} * @see {@link TagResourceCommandOutput} for command's `response` shape. * @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape. * + * @throws {@link InternalServerException} (server fault) + *

This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

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

Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

* diff --git a/clients/client-b2bi/src/commands/TestParsingCommand.ts b/clients/client-b2bi/src/commands/TestParsingCommand.ts index b225b0587a010..cf3ba6d0b94c3 100644 --- a/clients/client-b2bi/src/commands/TestParsingCommand.ts +++ b/clients/client-b2bi/src/commands/TestParsingCommand.ts @@ -28,7 +28,7 @@ export interface TestParsingCommandOutput extends TestParsingResponse, __Metadat /** * @public - *

Parses the input EDI (electronic data interchange) file.

+ *

Parses the input EDI (electronic data interchange) file. The input file has a file size limit of 250 KB.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript diff --git a/clients/client-b2bi/src/commands/UntagResourceCommand.ts b/clients/client-b2bi/src/commands/UntagResourceCommand.ts index e0c54260cb4b8..f527b16947f8e 100644 --- a/clients/client-b2bi/src/commands/UntagResourceCommand.ts +++ b/clients/client-b2bi/src/commands/UntagResourceCommand.ts @@ -53,6 +53,9 @@ export interface UntagResourceCommandOutput extends __MetadataBearer {} * @see {@link UntagResourceCommandOutput} for command's `response` shape. * @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape. * + * @throws {@link InternalServerException} (server fault) + *

This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.

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

Occurs when the requested resource does not exist, or cannot be found. In some cases, the resource exists in a region other than the region specified in the API call.

* diff --git a/clients/client-b2bi/src/protocols/Aws_json1_0.ts b/clients/client-b2bi/src/protocols/Aws_json1_0.ts index 2a438b1e5f025..5cbeaf57c9dac 100644 --- a/clients/client-b2bi/src/protocols/Aws_json1_0.ts +++ b/clients/client-b2bi/src/protocols/Aws_json1_0.ts @@ -1416,6 +1416,9 @@ const de_ListTagsForResourceCommandError = async ( }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "InternalServerException": + case "com.amazonaws.b2bi#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.b2bi#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -1560,6 +1563,9 @@ const de_TagResourceCommandError = async ( }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "InternalServerException": + case "com.amazonaws.b2bi#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.b2bi#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); @@ -1725,6 +1731,9 @@ const de_UntagResourceCommandError = async ( }; const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); switch (errorCode) { + case "InternalServerException": + case "com.amazonaws.b2bi#InternalServerException": + throw await de_InternalServerExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.b2bi#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); diff --git a/codegen/sdk-codegen/aws-models/b2bi.json b/codegen/sdk-codegen/aws-models/b2bi.json index 62d0dbbd1da98..71b5ed55f1c87 100644 --- a/codegen/sdk-codegen/aws-models/b2bi.json +++ b/codegen/sdk-codegen/aws-models/b2bi.json @@ -3122,6 +3122,9 @@ "target": "com.amazonaws.b2bi#ListTagsForResourceResponse" }, "errors": [ + { + "target": "com.amazonaws.b2bi#InternalServerException" + }, { "target": "com.amazonaws.b2bi#ResourceNotFoundException" }, @@ -3868,6 +3871,9 @@ "target": "smithy.api#Unit" }, "errors": [ + { + "target": "com.amazonaws.b2bi#InternalServerException" + }, { "target": "com.amazonaws.b2bi#ResourceNotFoundException" }, @@ -3986,7 +3992,7 @@ "traits": { "smithy.api#length": { "min": 0, - "max": 200000 + "max": 5000000 } } }, @@ -4060,7 +4066,7 @@ } ], "traits": { - "smithy.api#documentation": "

Parses the input EDI (electronic data interchange) file.

", + "smithy.api#documentation": "

Parses the input EDI (electronic data interchange) file. The input file has a file size limit of 250 KB.

", "smithy.api#examples": [ { "title": "Sample TestParsing call", @@ -4361,6 +4367,9 @@ "target": "smithy.api#Unit" }, "errors": [ + { + "target": "com.amazonaws.b2bi#InternalServerException" + }, { "target": "com.amazonaws.b2bi#ResourceNotFoundException" },