Skip to content

chore(codegen): update smithy to 1.56.0 #7045

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

Merged
merged 3 commits into from
May 1, 2025
Merged
Show file tree
Hide file tree
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
10 changes: 5 additions & 5 deletions clients/client-dataexchange/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,17 +686,17 @@ export const se_SendApiAssetCommand = async (
): Promise<__HttpRequest> => {
const b = rb(input, context);
const headers: any = map({}, isSerializableHeaderValue, {
...(input.RequestHeaders !== undefined &&
Object.keys(input.RequestHeaders).reduce((acc: any, suffix: string) => {
acc[`x-amzn-dataexchange-header-${suffix.toLowerCase()}`] = input.RequestHeaders![suffix];
return acc;
}, {})),
"content-type": "text/plain",
[_xadai]: input[_AI]!,
[_xaddsi]: input[_DSI]!,
[_xadhm]: input[_M]!,
[_xadp]: input[_P]!,
[_xadri]: input[_RI]!,
...(input.RequestHeaders !== undefined &&
Object.keys(input.RequestHeaders).reduce((acc: any, suffix: string) => {
acc[`x-amzn-dataexchange-header-${suffix.toLowerCase()}`] = input.RequestHeaders![suffix];
return acc;
}, {})),
});
b.bp("/v1");
const query: any = map({
Expand Down
1 change: 1 addition & 0 deletions clients/client-s3-control/src/models/models_1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
StorageLensTag,
Tag,
} from "./models_0";

import { S3ControlServiceException as __BaseException } from "./S3ControlServiceException";

/**
Expand Down
40 changes: 20 additions & 20 deletions clients/client-s3/src/protocols/Aws_restXml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,11 @@ export const se_CopyObjectCommand = async (
): Promise<__HttpRequest> => {
const b = rb(input, context);
const headers: any = map({}, isSerializableHeaderValue, {
...(input.Metadata !== undefined &&
Object.keys(input.Metadata).reduce((acc: any, suffix: string) => {
acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix];
return acc;
}, {})),
[_xaa]: input[_ACL]!,
[_cc]: input[_CC]!,
[_xaca]: input[_CA]!,
Expand Down Expand Up @@ -585,11 +590,6 @@ export const se_CopyObjectCommand = async (
[_xaollh]: input[_OLLHS]!,
[_xaebo]: input[_EBO]!,
[_xasebo]: input[_ESBO]!,
...(input.Metadata !== undefined &&
Object.keys(input.Metadata).reduce((acc: any, suffix: string) => {
acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix];
return acc;
}, {})),
});
b.bp("/{Key+}");
b.p("Bucket", () => input.Bucket!, "{Bucket}", false);
Expand Down Expand Up @@ -675,6 +675,11 @@ export const se_CreateMultipartUploadCommand = async (
): Promise<__HttpRequest> => {
const b = rb(input, context);
const headers: any = map({}, isSerializableHeaderValue, {
...(input.Metadata !== undefined &&
Object.keys(input.Metadata).reduce((acc: any, suffix: string) => {
acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix];
return acc;
}, {})),
[_xaa]: input[_ACL]!,
[_cc]: input[_CC]!,
[_cd]: input[_CD]!,
Expand Down Expand Up @@ -703,11 +708,6 @@ export const se_CreateMultipartUploadCommand = async (
[_xaebo]: input[_EBO]!,
[_xaca]: input[_CA]!,
[_xact]: input[_CT]!,
...(input.Metadata !== undefined &&
Object.keys(input.Metadata).reduce((acc: any, suffix: string) => {
acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix];
return acc;
}, {})),
});
b.bp("/{Key+}");
b.p("Bucket", () => input.Bucket!, "{Bucket}", false);
Expand Down Expand Up @@ -2722,6 +2722,11 @@ export const se_PutObjectCommand = async (
): Promise<__HttpRequest> => {
const b = rb(input, context);
const headers: any = map({}, isSerializableHeaderValue, {
...(input.Metadata !== undefined &&
Object.keys(input.Metadata).reduce((acc: any, suffix: string) => {
acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix];
return acc;
}, {})),
[_ct]: input[_CTo] || "application/octet-stream",
[_xaa]: input[_ACL]!,
[_cc]: input[_CC]!,
Expand Down Expand Up @@ -2759,11 +2764,6 @@ export const se_PutObjectCommand = async (
[_xaolrud]: [() => isSerializableHeaderValue(input[_OLRUD]), () => __serializeDateTime(input[_OLRUD]!).toString()],
[_xaollh]: input[_OLLHS]!,
[_xaebo]: input[_EBO]!,
...(input.Metadata !== undefined &&
Object.keys(input.Metadata).reduce((acc: any, suffix: string) => {
acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix];
return acc;
}, {})),
});
b.bp("/{Key+}");
b.p("Bucket", () => input.Bucket!, "{Bucket}", false);
Expand Down Expand Up @@ -3158,6 +3158,11 @@ export const se_WriteGetObjectResponseCommand = async (
const b = rb(input, context);
const headers: any = map({}, isSerializableHeaderValue, {
"x-amz-content-sha256": "UNSIGNED-PAYLOAD",
...(input.Metadata !== undefined &&
Object.keys(input.Metadata).reduce((acc: any, suffix: string) => {
acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix];
return acc;
}, {})),
"content-type": "application/octet-stream",
[_xarr]: input[_RR]!,
[_xart]: input[_RT]!,
Expand Down Expand Up @@ -3201,11 +3206,6 @@ export const se_WriteGetObjectResponseCommand = async (
[_xafhxatc]: [() => isSerializableHeaderValue(input[_TC]), () => input[_TC]!.toString()],
[_xafhxavi]: input[_VI]!,
[_xafhxassebke]: [() => isSerializableHeaderValue(input[_BKE]), () => input[_BKE]!.toString()],
...(input.Metadata !== undefined &&
Object.keys(input.Metadata).reduce((acc: any, suffix: string) => {
acc[`x-amz-meta-${suffix.toLowerCase()}`] = input.Metadata![suffix];
return acc;
}, {})),
});
b.bp("/WriteGetObjectResponse");
let body: any;
Expand Down
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
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
16 changes: 16 additions & 0 deletions private/aws-protocoltests-json-10/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>
*
Expand Down
Loading
Loading