Skip to content

Commit

Permalink
feat(client-b2bi): Increasing TestMapping inputFileContent file size …
Browse files Browse the repository at this point in the history
…limit to 5MB and adding file size limit 250KB for TestParsing input file. This release also includes exposing InternalServerException for Tag APIs.
  • Loading branch information
awstools committed Jan 18, 2024
1 parent bdf431e commit 255a7b4
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
* <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>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.</p>
*
Expand Down
3 changes: 3 additions & 0 deletions clients/client-b2bi/src/commands/TagResourceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
* <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>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.</p>
*
Expand Down
2 changes: 1 addition & 1 deletion clients/client-b2bi/src/commands/TestParsingCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface TestParsingCommandOutput extends TestParsingResponse, __Metadat

/**
* @public
* <p>Parses the input EDI (electronic data interchange) file.</p>
* <p>Parses the input EDI (electronic data interchange) file. The input file has a file size limit of 250 KB.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
3 changes: 3 additions & 0 deletions clients/client-b2bi/src/commands/UntagResourceCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
* <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
*
* @throws {@link ResourceNotFoundException} (client fault)
* <p>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.</p>
*
Expand Down
9 changes: 9 additions & 0 deletions clients/client-b2bi/src/protocols/Aws_json1_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
13 changes: 11 additions & 2 deletions codegen/sdk-codegen/aws-models/b2bi.json
Original file line number Diff line number Diff line change
Expand Up @@ -3122,6 +3122,9 @@
"target": "com.amazonaws.b2bi#ListTagsForResourceResponse"
},
"errors": [
{
"target": "com.amazonaws.b2bi#InternalServerException"
},
{
"target": "com.amazonaws.b2bi#ResourceNotFoundException"
},
Expand Down Expand Up @@ -3868,6 +3871,9 @@
"target": "smithy.api#Unit"
},
"errors": [
{
"target": "com.amazonaws.b2bi#InternalServerException"
},
{
"target": "com.amazonaws.b2bi#ResourceNotFoundException"
},
Expand Down Expand Up @@ -3986,7 +3992,7 @@
"traits": {
"smithy.api#length": {
"min": 0,
"max": 200000
"max": 5000000
}
}
},
Expand Down Expand Up @@ -4060,7 +4066,7 @@
}
],
"traits": {
"smithy.api#documentation": "<p>Parses the input EDI (electronic data interchange) file.</p>",
"smithy.api#documentation": "<p>Parses the input EDI (electronic data interchange) file. The input file has a file size limit of 250 KB.</p>",
"smithy.api#examples": [
{
"title": "Sample TestParsing call",
Expand Down Expand Up @@ -4361,6 +4367,9 @@
"target": "smithy.api#Unit"
},
"errors": [
{
"target": "com.amazonaws.b2bi#InternalServerException"
},
{
"target": "com.amazonaws.b2bi#ResourceNotFoundException"
},
Expand Down

0 comments on commit 255a7b4

Please sign in to comment.