Skip to content

chore(codegen): update smithy to 1.56.0 #7020

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion codegen/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
smithyVersion=1.55.0
smithyVersion=1.56.0
smithyGradleVersion=1.2.0
smithyPluginVersion=0.6.0
16 changes: 16 additions & 0 deletions private/aws-protocoltests-ec2/README.md
Original file line number Diff line number Diff line change
@@ -1058,6 +1058,14 @@ HttpChecksumRequired

[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/)

</details>
<details>
<summary>
HttpEmptyPrefixHeaders
</summary>

[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/)

</details>
<details>
<summary>
@@ -1986,6 +1994,14 @@ GreetingWithErrors

[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/)

</details>
<details>
<summary>
HttpEmptyPrefixHeaders
</summary>

[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/)

</details>
<details>
<summary>
16 changes: 16 additions & 0 deletions private/aws-protocoltests-json-10/README.md
Original file line number Diff line number Diff line change
@@ -1056,6 +1056,14 @@ HttpChecksumRequired

[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/)

</details>
<details>
<summary>
HttpEmptyPrefixHeaders
</summary>

[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/)

</details>
<details>
<summary>
@@ -1984,6 +1992,14 @@ GreetingWithErrors

[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/)

</details>
<details>
<summary>
HttpEmptyPrefixHeaders
</summary>

[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/)

</details>
<details>
<summary>
Original file line number Diff line number Diff line change
@@ -60,13 +60,13 @@ export interface GreetingWithErrorsCommandOutput extends GreetingWithErrorsOutpu
* @throws {@link InvalidGreeting} (client fault)
* This error is thrown when an invalid greeting value is provided.
*
* @throws {@link ComplexError} (client fault)
* This error is thrown when a request is invalid.
*
* @throws {@link FooError} (server fault)
* This error has test cases that test some of the dark corners of Amazon service
* framework history. It should only be implemented by clients.
*
* @throws {@link ComplexError} (client fault)
* This error is thrown when a request is invalid.
*
* @throws {@link JSONRPC10ServiceException}
* <p>Base exception class for all service exceptions from JSONRPC10 service.</p>
*
176 changes: 88 additions & 88 deletions private/aws-protocoltests-json-10/test/functional/awsjson1_0.spec.ts
Original file line number Diff line number Diff line change
@@ -401,6 +401,94 @@ it("AwsJson10InvalidGreetingError:Error:GreetingWithErrors", async () => {
fail("Expected an exception to be thrown from response");
});

/**
* Parses a complex error with no message member
*/
it("AwsJson10ComplexError:Error:GreetingWithErrors", async () => {
const client = new JSONRPC10Client({
...clientParams,
requestHandler: new ResponseDeserializationTestHandler(
false,
400,
{
"content-type": "application/x-amz-json-1.0",
},
`{
"__type": "aws.protocoltests.json10#ComplexError",
"TopLevel": "Top level",
"Nested": {
"Foo": "bar"
}
}`
),
});

const params: any = {};
const command = new GreetingWithErrorsCommand(params);

try {
await client.send(command);
} catch (err) {
if (err.name !== "ComplexError") {
console.log(err);
fail(`Expected a ComplexError to be thrown, got ${err.name} instead`);
return;
}
const r: any = err;
expect(r["$metadata"].httpStatusCode).toBe(400);
const paramsToValidate: any = [
{
TopLevel: "Top level",
Nested: {
Foo: "bar",
},
},
][0];
Object.keys(paramsToValidate).forEach((param) => {
expect(r[param]).toBeDefined();
expect(equivalentContents(paramsToValidate[param], r[param])).toBe(true);
});
return;
}
fail("Expected an exception to be thrown from response");
});

/**
* Parses a complex error with an empty body
*/
it("AwsJson10EmptyComplexError:Error:GreetingWithErrors", async () => {
const client = new JSONRPC10Client({
...clientParams,
requestHandler: new ResponseDeserializationTestHandler(
false,
400,
{
"content-type": "application/x-amz-json-1.0",
},
`{
"__type": "aws.protocoltests.json10#ComplexError"
}`
),
});

const params: any = {};
const command = new GreetingWithErrorsCommand(params);

try {
await client.send(command);
} catch (err) {
if (err.name !== "ComplexError") {
console.log(err);
fail(`Expected a ComplexError to be thrown, got ${err.name} instead`);
return;
}
const r: any = err;
expect(r["$metadata"].httpStatusCode).toBe(400);
return;
}
fail("Expected an exception to be thrown from response");
});

/**
* Serializes the X-Amzn-ErrorType header. For an example service, see Amazon EKS.
*/
@@ -710,94 +798,6 @@ it("AwsJson10FooErrorWithDunderTypeUriAndNamespace:Error:GreetingWithErrors", as
fail("Expected an exception to be thrown from response");
});

/**
* Parses a complex error with no message member
*/
it("AwsJson10ComplexError:Error:GreetingWithErrors", async () => {
const client = new JSONRPC10Client({
...clientParams,
requestHandler: new ResponseDeserializationTestHandler(
false,
400,
{
"content-type": "application/x-amz-json-1.0",
},
`{
"__type": "aws.protocoltests.json10#ComplexError",
"TopLevel": "Top level",
"Nested": {
"Foo": "bar"
}
}`
),
});

const params: any = {};
const command = new GreetingWithErrorsCommand(params);

try {
await client.send(command);
} catch (err) {
if (err.name !== "ComplexError") {
console.log(err);
fail(`Expected a ComplexError to be thrown, got ${err.name} instead`);
return;
}
const r: any = err;
expect(r["$metadata"].httpStatusCode).toBe(400);
const paramsToValidate: any = [
{
TopLevel: "Top level",
Nested: {
Foo: "bar",
},
},
][0];
Object.keys(paramsToValidate).forEach((param) => {
expect(r[param]).toBeDefined();
expect(equivalentContents(paramsToValidate[param], r[param])).toBe(true);
});
return;
}
fail("Expected an exception to be thrown from response");
});

/**
* Parses a complex error with an empty body
*/
it("AwsJson10EmptyComplexError:Error:GreetingWithErrors", async () => {
const client = new JSONRPC10Client({
...clientParams,
requestHandler: new ResponseDeserializationTestHandler(
false,
400,
{
"content-type": "application/x-amz-json-1.0",
},
`{
"__type": "aws.protocoltests.json10#ComplexError"
}`
),
});

const params: any = {};
const command = new GreetingWithErrorsCommand(params);

try {
await client.send(command);
} catch (err) {
if (err.name !== "ComplexError") {
console.log(err);
fail(`Expected a ComplexError to be thrown, got ${err.name} instead`);
return;
}
const r: any = err;
expect(r["$metadata"].httpStatusCode).toBe(400);
return;
}
fail("Expected an exception to be thrown from response");
});

/**
* Custom endpoints supplied by users can have paths
*/
16 changes: 16 additions & 0 deletions private/aws-protocoltests-json-machinelearning/README.md
Original file line number Diff line number Diff line change
@@ -1056,6 +1056,14 @@ HttpChecksumRequired

[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/)

</details>
<details>
<summary>
HttpEmptyPrefixHeaders
</summary>

[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/)

</details>
<details>
<summary>
@@ -1984,6 +1992,14 @@ GreetingWithErrors

[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/)

</details>
<details>
<summary>
HttpEmptyPrefixHeaders
</summary>

[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/)

</details>
<details>
<summary>
Original file line number Diff line number Diff line change
@@ -65,15 +65,15 @@ export interface PredictCommandOutput extends PredictOutput, __MetadataBearer {}
* @see {@link PredictCommandOutput} for command's `response` shape.
* @see {@link MachineLearningClientResolvedConfig | config} for MachineLearningClient's `config` shape.
*
* @throws {@link ResourceNotFoundException} (client fault)
*
* @throws {@link InternalServerException} (server fault)
*
* @throws {@link InvalidInputException} (client fault)
*
* @throws {@link LimitExceededException} (client fault)
*
* @throws {@link PredictorNotMountedException} (client fault)
*
* @throws {@link InvalidInputException} (client fault)
* @throws {@link ResourceNotFoundException} (client fault)
*
* @throws {@link MachineLearningServiceException}
* <p>Base exception class for all service exceptions from MachineLearning service.</p>
16 changes: 16 additions & 0 deletions private/aws-protocoltests-json/README.md
Original file line number Diff line number Diff line change
@@ -1056,6 +1056,14 @@ HttpChecksumRequired

[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/)

</details>
<details>
<summary>
HttpEmptyPrefixHeaders
</summary>

[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/)

</details>
<details>
<summary>
@@ -1984,6 +1992,14 @@ GreetingWithErrors

[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/)

</details>
<details>
<summary>
HttpEmptyPrefixHeaders
</summary>

[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/)

</details>
<details>
<summary>
Original file line number Diff line number Diff line change
@@ -267,10 +267,10 @@ export interface KitchenSinkOperationCommandOutput extends KitchenSink, __Metada
* @see {@link KitchenSinkOperationCommandOutput} for command's `response` shape.
* @see {@link JsonProtocolClientResolvedConfig | config} for JsonProtocolClient's `config` shape.
*
* @throws {@link ErrorWithoutMembers} (server fault)
*
* @throws {@link ErrorWithMembers} (client fault)
*
* @throws {@link ErrorWithoutMembers} (server fault)
*
* @throws {@link JsonProtocolServiceException}
* <p>Base exception class for all service exceptions from JsonProtocol service.</p>
*
16 changes: 16 additions & 0 deletions private/aws-protocoltests-query/README.md
Original file line number Diff line number Diff line change
@@ -1058,6 +1058,14 @@ HttpChecksumRequired

[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/)

</details>
<details>
<summary>
HttpEmptyPrefixHeaders
</summary>

[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/)

</details>
<details>
<summary>
@@ -1986,6 +1994,14 @@ GreetingWithErrors

[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/)

</details>
<details>
<summary>
HttpEmptyPrefixHeaders
</summary>

[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/)

</details>
<details>
<summary>
Loading