Skip to content

Commit e281f05

Browse files
committed
chore(clients): generate with Smithy CLI 1.56.0
1 parent 4b9ffd7 commit e281f05

File tree

40 files changed

+1828
-635
lines changed

40 files changed

+1828
-635
lines changed

private/aws-protocoltests-ec2/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,14 @@ HttpChecksumRequired
10581058

10591059
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-protocol/command/HttpChecksumRequiredCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/HttpChecksumRequiredCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/HttpChecksumRequiredCommandOutput/)
10601060

1061+
</details>
1062+
<details>
1063+
<summary>
1064+
HttpEmptyPrefixHeaders
1065+
</summary>
1066+
1067+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-protocol/command/HttpEmptyPrefixHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/HttpEmptyPrefixHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/HttpEmptyPrefixHeadersCommandOutput/)
1068+
10611069
</details>
10621070
<details>
10631071
<summary>
@@ -1986,6 +1994,14 @@ GreetingWithErrors
19861994

19871995
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-protocol/command/GreetingWithErrorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/GreetingWithErrorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/GreetingWithErrorsCommandOutput/)
19881996

1997+
</details>
1998+
<details>
1999+
<summary>
2000+
HttpEmptyPrefixHeaders
2001+
</summary>
2002+
2003+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/ec2-protocol/command/HttpEmptyPrefixHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/HttpEmptyPrefixHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-ec2-protocol/Interface/HttpEmptyPrefixHeadersCommandOutput/)
2004+
19892005
</details>
19902006
<details>
19912007
<summary>

private/aws-protocoltests-json-10/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,14 @@ HttpChecksumRequired
10561056

10571057
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-rpc-10/command/HttpChecksumRequiredCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/HttpChecksumRequiredCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/HttpChecksumRequiredCommandOutput/)
10581058

1059+
</details>
1060+
<details>
1061+
<summary>
1062+
HttpEmptyPrefixHeaders
1063+
</summary>
1064+
1065+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-rpc-10/command/HttpEmptyPrefixHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/HttpEmptyPrefixHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/HttpEmptyPrefixHeadersCommandOutput/)
1066+
10591067
</details>
10601068
<details>
10611069
<summary>
@@ -1984,6 +1992,14 @@ GreetingWithErrors
19841992

19851993
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-rpc-10/command/GreetingWithErrorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/GreetingWithErrorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/GreetingWithErrorsCommandOutput/)
19861994

1995+
</details>
1996+
<details>
1997+
<summary>
1998+
HttpEmptyPrefixHeaders
1999+
</summary>
2000+
2001+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-rpc-10/command/HttpEmptyPrefixHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/HttpEmptyPrefixHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-rpc-10/Interface/HttpEmptyPrefixHeadersCommandOutput/)
2002+
19872003
</details>
19882004
<details>
19892005
<summary>

private/aws-protocoltests-json-10/src/commands/GreetingWithErrorsCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ export interface GreetingWithErrorsCommandOutput extends GreetingWithErrorsOutpu
6060
* @throws {@link InvalidGreeting} (client fault)
6161
* This error is thrown when an invalid greeting value is provided.
6262
*
63+
* @throws {@link ComplexError} (client fault)
64+
* This error is thrown when a request is invalid.
65+
*
6366
* @throws {@link FooError} (server fault)
6467
* This error has test cases that test some of the dark corners of Amazon service
6568
* framework history. It should only be implemented by clients.
6669
*
67-
* @throws {@link ComplexError} (client fault)
68-
* This error is thrown when a request is invalid.
69-
*
7070
* @throws {@link JSONRPC10ServiceException}
7171
* <p>Base exception class for all service exceptions from JSONRPC10 service.</p>
7272
*

private/aws-protocoltests-json-10/test/functional/awsjson1_0.spec.ts

Lines changed: 88 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,94 @@ it("AwsJson10InvalidGreetingError:Error:GreetingWithErrors", async () => {
401401
fail("Expected an exception to be thrown from response");
402402
});
403403

404+
/**
405+
* Parses a complex error with no message member
406+
*/
407+
it("AwsJson10ComplexError:Error:GreetingWithErrors", async () => {
408+
const client = new JSONRPC10Client({
409+
...clientParams,
410+
requestHandler: new ResponseDeserializationTestHandler(
411+
false,
412+
400,
413+
{
414+
"content-type": "application/x-amz-json-1.0",
415+
},
416+
`{
417+
"__type": "aws.protocoltests.json10#ComplexError",
418+
"TopLevel": "Top level",
419+
"Nested": {
420+
"Foo": "bar"
421+
}
422+
}`
423+
),
424+
});
425+
426+
const params: any = {};
427+
const command = new GreetingWithErrorsCommand(params);
428+
429+
try {
430+
await client.send(command);
431+
} catch (err) {
432+
if (err.name !== "ComplexError") {
433+
console.log(err);
434+
fail(`Expected a ComplexError to be thrown, got ${err.name} instead`);
435+
return;
436+
}
437+
const r: any = err;
438+
expect(r["$metadata"].httpStatusCode).toBe(400);
439+
const paramsToValidate: any = [
440+
{
441+
TopLevel: "Top level",
442+
Nested: {
443+
Foo: "bar",
444+
},
445+
},
446+
][0];
447+
Object.keys(paramsToValidate).forEach((param) => {
448+
expect(r[param]).toBeDefined();
449+
expect(equivalentContents(paramsToValidate[param], r[param])).toBe(true);
450+
});
451+
return;
452+
}
453+
fail("Expected an exception to be thrown from response");
454+
});
455+
456+
/**
457+
* Parses a complex error with an empty body
458+
*/
459+
it("AwsJson10EmptyComplexError:Error:GreetingWithErrors", async () => {
460+
const client = new JSONRPC10Client({
461+
...clientParams,
462+
requestHandler: new ResponseDeserializationTestHandler(
463+
false,
464+
400,
465+
{
466+
"content-type": "application/x-amz-json-1.0",
467+
},
468+
`{
469+
"__type": "aws.protocoltests.json10#ComplexError"
470+
}`
471+
),
472+
});
473+
474+
const params: any = {};
475+
const command = new GreetingWithErrorsCommand(params);
476+
477+
try {
478+
await client.send(command);
479+
} catch (err) {
480+
if (err.name !== "ComplexError") {
481+
console.log(err);
482+
fail(`Expected a ComplexError to be thrown, got ${err.name} instead`);
483+
return;
484+
}
485+
const r: any = err;
486+
expect(r["$metadata"].httpStatusCode).toBe(400);
487+
return;
488+
}
489+
fail("Expected an exception to be thrown from response");
490+
});
491+
404492
/**
405493
* Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.
406494
*/
@@ -710,94 +798,6 @@ it("AwsJson10FooErrorWithDunderTypeUriAndNamespace:Error:GreetingWithErrors", as
710798
fail("Expected an exception to be thrown from response");
711799
});
712800

713-
/**
714-
* Parses a complex error with no message member
715-
*/
716-
it("AwsJson10ComplexError:Error:GreetingWithErrors", async () => {
717-
const client = new JSONRPC10Client({
718-
...clientParams,
719-
requestHandler: new ResponseDeserializationTestHandler(
720-
false,
721-
400,
722-
{
723-
"content-type": "application/x-amz-json-1.0",
724-
},
725-
`{
726-
"__type": "aws.protocoltests.json10#ComplexError",
727-
"TopLevel": "Top level",
728-
"Nested": {
729-
"Foo": "bar"
730-
}
731-
}`
732-
),
733-
});
734-
735-
const params: any = {};
736-
const command = new GreetingWithErrorsCommand(params);
737-
738-
try {
739-
await client.send(command);
740-
} catch (err) {
741-
if (err.name !== "ComplexError") {
742-
console.log(err);
743-
fail(`Expected a ComplexError to be thrown, got ${err.name} instead`);
744-
return;
745-
}
746-
const r: any = err;
747-
expect(r["$metadata"].httpStatusCode).toBe(400);
748-
const paramsToValidate: any = [
749-
{
750-
TopLevel: "Top level",
751-
Nested: {
752-
Foo: "bar",
753-
},
754-
},
755-
][0];
756-
Object.keys(paramsToValidate).forEach((param) => {
757-
expect(r[param]).toBeDefined();
758-
expect(equivalentContents(paramsToValidate[param], r[param])).toBe(true);
759-
});
760-
return;
761-
}
762-
fail("Expected an exception to be thrown from response");
763-
});
764-
765-
/**
766-
* Parses a complex error with an empty body
767-
*/
768-
it("AwsJson10EmptyComplexError:Error:GreetingWithErrors", async () => {
769-
const client = new JSONRPC10Client({
770-
...clientParams,
771-
requestHandler: new ResponseDeserializationTestHandler(
772-
false,
773-
400,
774-
{
775-
"content-type": "application/x-amz-json-1.0",
776-
},
777-
`{
778-
"__type": "aws.protocoltests.json10#ComplexError"
779-
}`
780-
),
781-
});
782-
783-
const params: any = {};
784-
const command = new GreetingWithErrorsCommand(params);
785-
786-
try {
787-
await client.send(command);
788-
} catch (err) {
789-
if (err.name !== "ComplexError") {
790-
console.log(err);
791-
fail(`Expected a ComplexError to be thrown, got ${err.name} instead`);
792-
return;
793-
}
794-
const r: any = err;
795-
expect(r["$metadata"].httpStatusCode).toBe(400);
796-
return;
797-
}
798-
fail("Expected an exception to be thrown from response");
799-
});
800-
801801
/**
802802
* Custom endpoints supplied by users can have paths
803803
*/

private/aws-protocoltests-json-machinelearning/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,14 @@ HttpChecksumRequired
10561056

10571057
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/machine-learning/command/HttpChecksumRequiredCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/HttpChecksumRequiredCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/HttpChecksumRequiredCommandOutput/)
10581058

1059+
</details>
1060+
<details>
1061+
<summary>
1062+
HttpEmptyPrefixHeaders
1063+
</summary>
1064+
1065+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/machine-learning/command/HttpEmptyPrefixHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/HttpEmptyPrefixHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/HttpEmptyPrefixHeadersCommandOutput/)
1066+
10591067
</details>
10601068
<details>
10611069
<summary>
@@ -1984,6 +1992,14 @@ GreetingWithErrors
19841992

19851993
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/machine-learning/command/GreetingWithErrorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/GreetingWithErrorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/GreetingWithErrorsCommandOutput/)
19861994

1995+
</details>
1996+
<details>
1997+
<summary>
1998+
HttpEmptyPrefixHeaders
1999+
</summary>
2000+
2001+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/machine-learning/command/HttpEmptyPrefixHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/HttpEmptyPrefixHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-machine-learning/Interface/HttpEmptyPrefixHeadersCommandOutput/)
2002+
19872003
</details>
19882004
<details>
19892005
<summary>

private/aws-protocoltests-json-machinelearning/src/commands/PredictCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ export interface PredictCommandOutput extends PredictOutput, __MetadataBearer {}
6565
* @see {@link PredictCommandOutput} for command's `response` shape.
6666
* @see {@link MachineLearningClientResolvedConfig | config} for MachineLearningClient's `config` shape.
6767
*
68-
* @throws {@link ResourceNotFoundException} (client fault)
69-
*
7068
* @throws {@link InternalServerException} (server fault)
7169
*
70+
* @throws {@link InvalidInputException} (client fault)
71+
*
7272
* @throws {@link LimitExceededException} (client fault)
7373
*
7474
* @throws {@link PredictorNotMountedException} (client fault)
7575
*
76-
* @throws {@link InvalidInputException} (client fault)
76+
* @throws {@link ResourceNotFoundException} (client fault)
7777
*
7878
* @throws {@link MachineLearningServiceException}
7979
* <p>Base exception class for all service exceptions from MachineLearning service.</p>

private/aws-protocoltests-json/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,14 @@ HttpChecksumRequired
10561056

10571057
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-protocol/command/HttpChecksumRequiredCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/HttpChecksumRequiredCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/HttpChecksumRequiredCommandOutput/)
10581058

1059+
</details>
1060+
<details>
1061+
<summary>
1062+
HttpEmptyPrefixHeaders
1063+
</summary>
1064+
1065+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-protocol/command/HttpEmptyPrefixHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/HttpEmptyPrefixHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/HttpEmptyPrefixHeadersCommandOutput/)
1066+
10591067
</details>
10601068
<details>
10611069
<summary>
@@ -1984,6 +1992,14 @@ GreetingWithErrors
19841992

19851993
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-protocol/command/GreetingWithErrorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/GreetingWithErrorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/GreetingWithErrorsCommandOutput/)
19861994

1995+
</details>
1996+
<details>
1997+
<summary>
1998+
HttpEmptyPrefixHeaders
1999+
</summary>
2000+
2001+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/json-protocol/command/HttpEmptyPrefixHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/HttpEmptyPrefixHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-json-protocol/Interface/HttpEmptyPrefixHeadersCommandOutput/)
2002+
19872003
</details>
19882004
<details>
19892005
<summary>

private/aws-protocoltests-json/src/commands/KitchenSinkOperationCommand.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ export interface KitchenSinkOperationCommandOutput extends KitchenSink, __Metada
267267
* @see {@link KitchenSinkOperationCommandOutput} for command's `response` shape.
268268
* @see {@link JsonProtocolClientResolvedConfig | config} for JsonProtocolClient's `config` shape.
269269
*
270-
* @throws {@link ErrorWithoutMembers} (server fault)
271-
*
272270
* @throws {@link ErrorWithMembers} (client fault)
273271
*
272+
* @throws {@link ErrorWithoutMembers} (server fault)
273+
*
274274
* @throws {@link JsonProtocolServiceException}
275275
* <p>Base exception class for all service exceptions from JsonProtocol service.</p>
276276
*

private/aws-protocoltests-query/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,6 +1058,14 @@ HttpChecksumRequired
10581058

10591059
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/query-protocol/command/HttpChecksumRequiredCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/HttpChecksumRequiredCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/HttpChecksumRequiredCommandOutput/)
10601060

1061+
</details>
1062+
<details>
1063+
<summary>
1064+
HttpEmptyPrefixHeaders
1065+
</summary>
1066+
1067+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/query-protocol/command/HttpEmptyPrefixHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/HttpEmptyPrefixHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/HttpEmptyPrefixHeadersCommandOutput/)
1068+
10611069
</details>
10621070
<details>
10631071
<summary>
@@ -1986,6 +1994,14 @@ GreetingWithErrors
19861994

19871995
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/query-protocol/command/GreetingWithErrorsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/GreetingWithErrorsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/GreetingWithErrorsCommandOutput/)
19881996

1997+
</details>
1998+
<details>
1999+
<summary>
2000+
HttpEmptyPrefixHeaders
2001+
</summary>
2002+
2003+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/query-protocol/command/HttpEmptyPrefixHeadersCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/HttpEmptyPrefixHeadersCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-query-protocol/Interface/HttpEmptyPrefixHeadersCommandOutput/)
2004+
19892005
</details>
19902006
<details>
19912007
<summary>

0 commit comments

Comments
 (0)