Skip to content

Commit 255a7b4

Browse files
author
awstools
committed
feat(client-b2bi): Increasing TestMapping inputFileContent file size limit to 5MB and adding file size limit 250KB for TestParsing input file. This release also includes exposing InternalServerException for Tag APIs.
1 parent bdf431e commit 255a7b4

File tree

6 files changed

+30
-3
lines changed

6 files changed

+30
-3
lines changed

clients/client-b2bi/src/commands/ListTagsForResourceCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
5757
* @see {@link ListTagsForResourceCommandOutput} for command's `response` shape.
5858
* @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape.
5959
*
60+
* @throws {@link InternalServerException} (server fault)
61+
* <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
62+
*
6063
* @throws {@link ResourceNotFoundException} (client fault)
6164
* <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>
6265
*

clients/client-b2bi/src/commands/TagResourceCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ export interface TagResourceCommandOutput extends __MetadataBearer {}
5757
* @see {@link TagResourceCommandOutput} for command's `response` shape.
5858
* @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape.
5959
*
60+
* @throws {@link InternalServerException} (server fault)
61+
* <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
62+
*
6063
* @throws {@link ResourceNotFoundException} (client fault)
6164
* <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>
6265
*

clients/client-b2bi/src/commands/TestParsingCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface TestParsingCommandOutput extends TestParsingResponse, __Metadat
2828

2929
/**
3030
* @public
31-
* <p>Parses the input EDI (electronic data interchange) file.</p>
31+
* <p>Parses the input EDI (electronic data interchange) file. The input file has a file size limit of 250 KB.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

clients/client-b2bi/src/commands/UntagResourceCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ export interface UntagResourceCommandOutput extends __MetadataBearer {}
5353
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
5454
* @see {@link B2biClientResolvedConfig | config} for B2biClient's `config` shape.
5555
*
56+
* @throws {@link InternalServerException} (server fault)
57+
* <p>This exception is thrown when an error occurs in the Amazon Web Services B2B Data Interchange service.</p>
58+
*
5659
* @throws {@link ResourceNotFoundException} (client fault)
5760
* <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>
5861
*

clients/client-b2bi/src/protocols/Aws_json1_0.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1416,6 +1416,9 @@ const de_ListTagsForResourceCommandError = async (
14161416
};
14171417
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
14181418
switch (errorCode) {
1419+
case "InternalServerException":
1420+
case "com.amazonaws.b2bi#InternalServerException":
1421+
throw await de_InternalServerExceptionRes(parsedOutput, context);
14191422
case "ResourceNotFoundException":
14201423
case "com.amazonaws.b2bi#ResourceNotFoundException":
14211424
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -1560,6 +1563,9 @@ const de_TagResourceCommandError = async (
15601563
};
15611564
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
15621565
switch (errorCode) {
1566+
case "InternalServerException":
1567+
case "com.amazonaws.b2bi#InternalServerException":
1568+
throw await de_InternalServerExceptionRes(parsedOutput, context);
15631569
case "ResourceNotFoundException":
15641570
case "com.amazonaws.b2bi#ResourceNotFoundException":
15651571
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -1725,6 +1731,9 @@ const de_UntagResourceCommandError = async (
17251731
};
17261732
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
17271733
switch (errorCode) {
1734+
case "InternalServerException":
1735+
case "com.amazonaws.b2bi#InternalServerException":
1736+
throw await de_InternalServerExceptionRes(parsedOutput, context);
17281737
case "ResourceNotFoundException":
17291738
case "com.amazonaws.b2bi#ResourceNotFoundException":
17301739
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);

codegen/sdk-codegen/aws-models/b2bi.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3122,6 +3122,9 @@
31223122
"target": "com.amazonaws.b2bi#ListTagsForResourceResponse"
31233123
},
31243124
"errors": [
3125+
{
3126+
"target": "com.amazonaws.b2bi#InternalServerException"
3127+
},
31253128
{
31263129
"target": "com.amazonaws.b2bi#ResourceNotFoundException"
31273130
},
@@ -3868,6 +3871,9 @@
38683871
"target": "smithy.api#Unit"
38693872
},
38703873
"errors": [
3874+
{
3875+
"target": "com.amazonaws.b2bi#InternalServerException"
3876+
},
38713877
{
38723878
"target": "com.amazonaws.b2bi#ResourceNotFoundException"
38733879
},
@@ -3986,7 +3992,7 @@
39863992
"traits": {
39873993
"smithy.api#length": {
39883994
"min": 0,
3989-
"max": 200000
3995+
"max": 5000000
39903996
}
39913997
}
39923998
},
@@ -4060,7 +4066,7 @@
40604066
}
40614067
],
40624068
"traits": {
4063-
"smithy.api#documentation": "<p>Parses the input EDI (electronic data interchange) file.</p>",
4069+
"smithy.api#documentation": "<p>Parses the input EDI (electronic data interchange) file. The input file has a file size limit of 250 KB.</p>",
40644070
"smithy.api#examples": [
40654071
{
40664072
"title": "Sample TestParsing call",
@@ -4361,6 +4367,9 @@
43614367
"target": "smithy.api#Unit"
43624368
},
43634369
"errors": [
4370+
{
4371+
"target": "com.amazonaws.b2bi#InternalServerException"
4372+
},
43644373
{
43654374
"target": "com.amazonaws.b2bi#ResourceNotFoundException"
43664375
},

0 commit comments

Comments
 (0)