Skip to content

Commit c493353

Browse files
authored
chore(codegen): update smithy to 1.55.0 (#7005)
1 parent 072c258 commit c493353

File tree

16 files changed

+176
-19
lines changed

16 files changed

+176
-19
lines changed

codegen/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
smithyVersion=1.54.0
1+
smithyVersion=1.55.0
22
smithyGradleVersion=1.2.0
33
smithyPluginVersion=0.6.0

private/aws-protocoltests-ec2/src/endpoints.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,20 @@ const partitionHash: PartitionHash = {
8282
},
8383
],
8484
},
85+
"aws-eusc": {
86+
regions: ["eusc-de-east-1"],
87+
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
88+
variants: [
89+
{
90+
hostname: "awsec2.{region}.amazonaws.eu",
91+
tags: [],
92+
},
93+
{
94+
hostname: "awsec2-fips.{region}.amazonaws.eu",
95+
tags: ["fips"],
96+
},
97+
],
98+
},
8599
"aws-iso": {
86100
regions: ["us-iso-east-1", "us-iso-west-1"],
87101
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",

private/aws-protocoltests-json-10/src/endpoints.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,20 @@ const partitionHash: PartitionHash = {
8282
},
8383
],
8484
},
85+
"aws-eusc": {
86+
regions: ["eusc-de-east-1"],
87+
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
88+
variants: [
89+
{
90+
hostname: "jsonrpc10.{region}.amazonaws.eu",
91+
tags: [],
92+
},
93+
{
94+
hostname: "jsonrpc10-fips.{region}.amazonaws.eu",
95+
tags: ["fips"],
96+
},
97+
],
98+
},
8599
"aws-iso": {
86100
regions: ["us-iso-east-1", "us-iso-west-1"],
87101
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",

private/aws-protocoltests-json-machinelearning/src/endpoints.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,20 @@ const partitionHash: PartitionHash = {
8282
},
8383
],
8484
},
85+
"aws-eusc": {
86+
regions: ["eusc-de-east-1"],
87+
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
88+
variants: [
89+
{
90+
hostname: "machinelearning.{region}.amazonaws.eu",
91+
tags: [],
92+
},
93+
{
94+
hostname: "machinelearning-fips.{region}.amazonaws.eu",
95+
tags: ["fips"],
96+
},
97+
],
98+
},
8599
"aws-iso": {
86100
regions: ["us-iso-east-1", "us-iso-west-1"],
87101
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",

private/aws-protocoltests-json/src/endpoints.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,20 @@ const partitionHash: PartitionHash = {
8282
},
8383
],
8484
},
85+
"aws-eusc": {
86+
regions: ["eusc-de-east-1"],
87+
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
88+
variants: [
89+
{
90+
hostname: "jsonprotocol.{region}.amazonaws.eu",
91+
tags: [],
92+
},
93+
{
94+
hostname: "jsonprotocol-fips.{region}.amazonaws.eu",
95+
tags: ["fips"],
96+
},
97+
],
98+
},
8599
"aws-iso": {
86100
regions: ["us-iso-east-1", "us-iso-west-1"],
87101
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",

private/aws-protocoltests-query/src/endpoints.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,20 @@ const partitionHash: PartitionHash = {
8282
},
8383
],
8484
},
85+
"aws-eusc": {
86+
regions: ["eusc-de-east-1"],
87+
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
88+
variants: [
89+
{
90+
hostname: "awsquery.{region}.amazonaws.eu",
91+
tags: [],
92+
},
93+
{
94+
hostname: "awsquery-fips.{region}.amazonaws.eu",
95+
tags: ["fips"],
96+
},
97+
],
98+
},
8599
"aws-iso": {
86100
regions: ["us-iso-east-1", "us-iso-west-1"],
87101
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",

private/aws-protocoltests-restjson-apigateway/src/endpoints.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,20 @@ const partitionHash: PartitionHash = {
137137
},
138138
],
139139
},
140+
"aws-eusc": {
141+
regions: ["eusc-de-east-1"],
142+
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
143+
variants: [
144+
{
145+
hostname: "apigateway.{region}.amazonaws.eu",
146+
tags: [],
147+
},
148+
{
149+
hostname: "apigateway-fips.{region}.amazonaws.eu",
150+
tags: ["fips"],
151+
},
152+
],
153+
},
140154
"aws-iso": {
141155
regions: ["us-iso-east-1", "us-iso-west-1"],
142156
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",

private/aws-protocoltests-restjson-glacier/src/endpoints.ts

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,30 @@ const regionHash: RegionHash = {
4343
},
4444
],
4545
},
46+
"us-iso-east-1": {
47+
variants: [
48+
{
49+
hostname: "glacier-fips.us-iso-east-1.c2s.ic.gov",
50+
tags: ["fips"],
51+
},
52+
],
53+
},
54+
"us-iso-west-1": {
55+
variants: [
56+
{
57+
hostname: "glacier-fips.us-iso-west-1.c2s.ic.gov",
58+
tags: ["fips"],
59+
},
60+
],
61+
},
62+
"us-isob-east-1": {
63+
variants: [
64+
{
65+
hostname: "glacier-fips.us-isob-east-1.sc2s.sgov.gov",
66+
tags: ["fips"],
67+
},
68+
],
69+
},
4670
"us-west-1": {
4771
variants: [
4872
{
@@ -144,8 +168,22 @@ const partitionHash: PartitionHash = {
144168
},
145169
],
146170
},
171+
"aws-eusc": {
172+
regions: ["eusc-de-east-1"],
173+
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
174+
variants: [
175+
{
176+
hostname: "glacier.{region}.amazonaws.eu",
177+
tags: [],
178+
},
179+
{
180+
hostname: "glacier-fips.{region}.amazonaws.eu",
181+
tags: ["fips"],
182+
},
183+
],
184+
},
147185
"aws-iso": {
148-
regions: ["us-iso-east-1", "us-iso-west-1"],
186+
regions: ["fips-us-iso-east-1", "fips-us-iso-west-1", "us-iso-east-1", "us-iso-west-1"],
149187
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
150188
variants: [
151189
{
@@ -159,7 +197,7 @@ const partitionHash: PartitionHash = {
159197
],
160198
},
161199
"aws-iso-b": {
162-
regions: ["us-isob-east-1"],
200+
regions: ["fips-us-isob-east-1", "us-isob-east-1"],
163201
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
164202
variants: [
165203
{

private/aws-protocoltests-restjson/src/endpoints.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,20 @@ const partitionHash: PartitionHash = {
8282
},
8383
],
8484
},
85+
"aws-eusc": {
86+
regions: ["eusc-de-east-1"],
87+
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
88+
variants: [
89+
{
90+
hostname: "restjson.{region}.amazonaws.eu",
91+
tags: [],
92+
},
93+
{
94+
hostname: "restjson-fips.{region}.amazonaws.eu",
95+
tags: ["fips"],
96+
},
97+
],
98+
},
8599
"aws-iso": {
86100
regions: ["us-iso-east-1", "us-iso-west-1"],
87101
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",

private/aws-protocoltests-restxml/src/commands/NestedXmlMapWithXmlNameCommand.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getSerdePlugin } from "@smithy/middleware-serde";
33
import { Command as $Command } from "@smithy/smithy-client";
44
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
55

6-
import { NestedXmlMapWithXmlNameInputOutput } from "../models/models_0";
6+
import { NestedXmlMapWithXmlNameRequest, NestedXmlMapWithXmlNameResponse } from "../models/models_0";
77
import { de_NestedXmlMapWithXmlNameCommand, se_NestedXmlMapWithXmlNameCommand } from "../protocols/Aws_restXml";
88
import { RestXmlProtocolClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RestXmlProtocolClient";
99

@@ -17,13 +17,13 @@ export { $Command };
1717
*
1818
* The input for {@link NestedXmlMapWithXmlNameCommand}.
1919
*/
20-
export interface NestedXmlMapWithXmlNameCommandInput extends NestedXmlMapWithXmlNameInputOutput {}
20+
export interface NestedXmlMapWithXmlNameCommandInput extends NestedXmlMapWithXmlNameRequest {}
2121
/**
2222
* @public
2323
*
2424
* The output of {@link NestedXmlMapWithXmlNameCommand}.
2525
*/
26-
export interface NestedXmlMapWithXmlNameCommandOutput extends NestedXmlMapWithXmlNameInputOutput, __MetadataBearer {}
26+
export interface NestedXmlMapWithXmlNameCommandOutput extends NestedXmlMapWithXmlNameResponse, __MetadataBearer {}
2727

2828
/**
2929
* Nested Xml Maps with key/values with @xmlName
@@ -33,7 +33,7 @@ export interface NestedXmlMapWithXmlNameCommandOutput extends NestedXmlMapWithXm
3333
* import { RestXmlProtocolClient, NestedXmlMapWithXmlNameCommand } from "@aws-sdk/aws-protocoltests-restxml"; // ES Modules import
3434
* // const { RestXmlProtocolClient, NestedXmlMapWithXmlNameCommand } = require("@aws-sdk/aws-protocoltests-restxml"); // CommonJS import
3535
* const client = new RestXmlProtocolClient(config);
36-
* const input = { // NestedXmlMapWithXmlNameInputOutput
36+
* const input = { // NestedXmlMapWithXmlNameRequest
3737
* nestedXmlMapWithXmlNameMap: { // NestedXmlMapWithXmlNameMap
3838
* "<keys>": { // NestedXmlMapWithXmlNameInnerMap
3939
* "<keys>": "STRING_VALUE",
@@ -42,7 +42,7 @@ export interface NestedXmlMapWithXmlNameCommandOutput extends NestedXmlMapWithXm
4242
* };
4343
* const command = new NestedXmlMapWithXmlNameCommand(input);
4444
* const response = await client.send(command);
45-
* // { // NestedXmlMapWithXmlNameInputOutput
45+
* // { // NestedXmlMapWithXmlNameResponse
4646
* // nestedXmlMapWithXmlNameMap: { // NestedXmlMapWithXmlNameMap
4747
* // "<keys>": { // NestedXmlMapWithXmlNameInnerMap
4848
* // "<keys>": "STRING_VALUE",
@@ -84,8 +84,8 @@ export class NestedXmlMapWithXmlNameCommand extends $Command
8484
/** @internal type navigation helper, not in runtime. */
8585
protected declare static __types: {
8686
api: {
87-
input: NestedXmlMapWithXmlNameInputOutput;
88-
output: NestedXmlMapWithXmlNameInputOutput;
87+
input: NestedXmlMapWithXmlNameRequest;
88+
output: NestedXmlMapWithXmlNameResponse;
8989
};
9090
sdk: {
9191
input: NestedXmlMapWithXmlNameCommandInput;

private/aws-protocoltests-restxml/src/endpoints.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,20 @@ const partitionHash: PartitionHash = {
8282
},
8383
],
8484
},
85+
"aws-eusc": {
86+
regions: ["eusc-de-east-1"],
87+
regionRegex: "^eusc\\-(de)\\-\\w+\\-\\d+$",
88+
variants: [
89+
{
90+
hostname: "restxml.{region}.amazonaws.eu",
91+
tags: [],
92+
},
93+
{
94+
hostname: "restxml-fips.{region}.amazonaws.eu",
95+
tags: ["fips"],
96+
},
97+
],
98+
},
8599
"aws-iso": {
86100
regions: ["us-iso-east-1", "us-iso-west-1"],
87101
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",

private/aws-protocoltests-restxml/src/models/models_0.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,14 @@ export interface NestedXmlMapsResponse {
489489
/**
490490
* @public
491491
*/
492-
export interface NestedXmlMapWithXmlNameInputOutput {
492+
export interface NestedXmlMapWithXmlNameRequest {
493+
nestedXmlMapWithXmlNameMap?: Record<string, Record<string, string>> | undefined;
494+
}
495+
496+
/**
497+
* @public
498+
*/
499+
export interface NestedXmlMapWithXmlNameResponse {
493500
nestedXmlMapWithXmlNameMap?: Record<string, Record<string, string>> | undefined;
494501
}
495502

private/aws-protocoltests-restxml/src/protocols/Aws_restXml.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,7 +1038,7 @@ export const se_NestedXmlMapWithXmlNameCommand = async (
10381038
b.bp("/NestedXmlMapWithXmlName");
10391039
let body: any;
10401040
body = _ve;
1041-
const bn = new __XmlNode(_NXMWXNIO);
1041+
const bn = new __XmlNode(_NXMWXNR);
10421042
bn.lc(input, "nestedXmlMapWithXmlNameMap", "nestedXmlMapWithXmlNameMap", () =>
10431043
se_NestedXmlMapWithXmlNameMap(input[_nXMWXNM]!, context)
10441044
);
@@ -4518,7 +4518,7 @@ const _M = "Message";
45184518
const _N = "Null";
45194519
const _NP = "NestedPayload";
45204520
const _NXMR = "NestedXmlMapsRequest";
4521-
const _NXMWXNIO = "NestedXmlMapWithXmlNameInputOutput";
4521+
const _NXMWXNR = "NestedXmlMapWithXmlNameRequest";
45224522
const _Ne = "Nested";
45234523
const _PWCEI = "PutWithContentEncodingInput";
45244524
const _PWXN = "PayloadWithXmlNamespace";

private/aws-protocoltests-restxml/test/functional/restxml.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3708,7 +3708,7 @@ it.skip("NestedXmlMapWithXmlNameSerializes:Request", async () => {
37083708

37093709
expect(r.body).toBeDefined();
37103710
const utf8Encoder = client.config.utf8Encoder;
3711-
const bodyString = ` <NestedXmlMapWithXmlNameInputOutput>
3711+
const bodyString = ` <NestedXmlMapWithXmlNameRequest>
37123712
<nestedXmlMapWithXmlNameMap>
37133713
<entry>
37143714
<OuterKey>foo</OuterKey>
@@ -3737,7 +3737,7 @@ it.skip("NestedXmlMapWithXmlNameSerializes:Request", async () => {
37373737
</value>
37383738
</entry>
37393739
</nestedXmlMapWithXmlNameMap>
3740-
</NestedXmlMapWithXmlNameInputOutput>
3740+
</NestedXmlMapWithXmlNameRequest>
37413741
`;
37423742
const unequalParts: any = compareEquivalentXmlBodies(bodyString, r.body.toString());
37433743
expect(unequalParts).toBeUndefined();
@@ -3756,7 +3756,7 @@ it("NestedXmlMapWithXmlNameDeserializes:Response", async () => {
37563756
{
37573757
"content-type": "application/xml",
37583758
},
3759-
` <NestedXmlMapWithXmlNameInputOutput>
3759+
` <NestedXmlMapWithXmlNameResponse>
37603760
<nestedXmlMapWithXmlNameMap>
37613761
<entry>
37623762
<OuterKey>foo</OuterKey>
@@ -3785,7 +3785,7 @@ it("NestedXmlMapWithXmlNameDeserializes:Response", async () => {
37853785
</value>
37863786
</entry>
37873787
</nestedXmlMapWithXmlNameMap>
3788-
</NestedXmlMapWithXmlNameInputOutput>
3788+
</NestedXmlMapWithXmlNameResponse>
37893789
`
37903790
),
37913791
});

private/aws-protocoltests-smithy-rpcv2-cbor/test/functional/rpcv2cbor.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ it.skip("RpcV2CborClientPopulatesDefaultValuesInInput:Request", async () => {
830830
expect(r.headers["smithy-protocol"]).toBe("rpc-v2-cbor");
831831

832832
expect(r.body).toBeDefined();
833-
const bodyString = `v2hkZWZhdWx0c79tZGVmYXVsdFN0cmluZ2JoaW5kZWZhdWx0Qm9vbGVhbvVrZGVmYXVsdExpc3Sf/3BkZWZhdWx0VGltZXN0YW1wwQBrZGVmYXVsdEJsb2JDYWJja2RlZmF1bHRCeXRlAWxkZWZhdWx0U2hvcnQBbmRlZmF1bHRJbnRlZ2VyCmtkZWZhdWx0TG9uZxhkbGRlZmF1bHRGbG9hdPo/gAAAbWRlZmF1bHREb3VibGX6P4AAAGpkZWZhdWx0TWFwv/9rZGVmYXVsdEVudW1jRk9PbmRlZmF1bHRJbnRFbnVtAWtlbXB0eVN0cmluZ2BsZmFsc2VCb29sZWFu9GllbXB0eUJsb2JAaHplcm9CeXRlAGl6ZXJvU2hvcnQAa3plcm9JbnRlZ2VyAGh6ZXJvTG9uZwBpemVyb0Zsb2F0+gAAAABqemVyb0RvdWJsZfoAAAAA//8`;
833+
const bodyString = `v2hkZWZhdWx0c79tZGVmYXVsdFN0cmluZ2JoaW5kZWZhdWx0Qm9vbGVhbvVrZGVmYXVsdExpc3Sf/3BkZWZhdWx0VGltZXN0YW1wwQBrZGVmYXVsdEJsb2JDYWJja2RlZmF1bHRCeXRlAWxkZWZhdWx0U2hvcnQBbmRlZmF1bHRJbnRlZ2VyCmtkZWZhdWx0TG9uZxhkbGRlZmF1bHRGbG9hdPo/gAAAbWRlZmF1bHREb3VibGX6P4AAAGpkZWZhdWx0TWFwv/9rZGVmYXVsdEVudW1jRk9PbmRlZmF1bHRJbnRFbnVtAWtlbXB0eVN0cmluZ2BsZmFsc2VCb29sZWFu9GllbXB0eUJsb2JAaHplcm9CeXRlAGl6ZXJvU2hvcnQAa3plcm9JbnRlZ2VyAGh6ZXJvTG9uZwBpemVyb0Zsb2F0+gAAAABqemVyb0RvdWJsZfoAAAAA//8=`;
834834
const unequalParts: any = compareEquivalentCborBodies(bodyString, r.body);
835835
expect(unequalParts).toBeUndefined();
836836
}

scripts/generate-clients/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Update this commit when taking up new changes from smithy-typescript.
22
module.exports = {
33
// Use full commit hash as we explicitly fetch it.
4-
SMITHY_TS_COMMIT: "a821f249cd7e1c3e5926e97140494b7ef7fdda22",
4+
SMITHY_TS_COMMIT: "b6ea624fe35457359cad061b908e980b455c9720",
55
};
66

77
if (module.exports.SMITHY_TS_COMMIT.length < 40) {

0 commit comments

Comments
 (0)