Skip to content

Commit 5e3db00

Browse files
chore(codegen): pin smithy to 1.9.x (#2529)
1 parent 63818a1 commit 5e3db00

File tree

237 files changed

+11553
-2288
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+11553
-2288
lines changed

clients/client-accessanalyzer/protocols/Aws_restJson1.ts

+14-17
Original file line numberDiff line numberDiff line change
@@ -3637,7 +3637,7 @@ const serializeAws_restJson1ConfigurationsMap = (
36373637
input: { [key: string]: Configuration },
36383638
context: __SerdeContext
36393639
): any => {
3640-
return Object.entries(input).reduce((acc: { [key: string]: Configuration }, [key, value]: [string, any]) => {
3640+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
36413641
if (value === null) {
36423642
return acc;
36433643
}
@@ -3659,7 +3659,7 @@ const serializeAws_restJson1Criterion = (input: Criterion, context: __SerdeConte
36593659
};
36603660

36613661
const serializeAws_restJson1FilterCriteriaMap = (input: { [key: string]: Criterion }, context: __SerdeContext): any => {
3662-
return Object.entries(input).reduce((acc: { [key: string]: Criterion }, [key, value]: [string, any]) => {
3662+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
36633663
if (value === null) {
36643664
return acc;
36653665
}
@@ -3711,7 +3711,7 @@ const serializeAws_restJson1InternetConfiguration = (input: InternetConfiguratio
37113711
};
37123712

37133713
const serializeAws_restJson1KmsConstraintsMap = (input: { [key: string]: string }, context: __SerdeContext): any => {
3714-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
3714+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
37153715
if (value === null) {
37163716
return acc;
37173717
}
@@ -3794,7 +3794,7 @@ const serializeAws_restJson1KmsKeyConfiguration = (input: KmsKeyConfiguration, c
37943794
};
37953795

37963796
const serializeAws_restJson1KmsKeyPoliciesMap = (input: { [key: string]: string }, context: __SerdeContext): any => {
3797-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
3797+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
37983798
if (value === null) {
37993799
return acc;
38003800
}
@@ -3860,18 +3860,15 @@ const serializeAws_restJson1S3AccessPointConfigurationsMap = (
38603860
input: { [key: string]: S3AccessPointConfiguration },
38613861
context: __SerdeContext
38623862
): any => {
3863-
return Object.entries(input).reduce(
3864-
(acc: { [key: string]: S3AccessPointConfiguration }, [key, value]: [string, any]) => {
3865-
if (value === null) {
3866-
return acc;
3867-
}
3868-
return {
3869-
...acc,
3870-
[key]: serializeAws_restJson1S3AccessPointConfiguration(value, context),
3871-
};
3872-
},
3873-
{}
3874-
);
3863+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
3864+
if (value === null) {
3865+
return acc;
3866+
}
3867+
return {
3868+
...acc,
3869+
[key]: serializeAws_restJson1S3AccessPointConfiguration(value, context),
3870+
};
3871+
}, {});
38753872
};
38763873

38773874
const serializeAws_restJson1S3BucketAclGrantConfiguration = (
@@ -3956,7 +3953,7 @@ const serializeAws_restJson1SqsQueueConfiguration = (input: SqsQueueConfiguratio
39563953
};
39573954

39583955
const serializeAws_restJson1TagsMap = (input: { [key: string]: string }, context: __SerdeContext): any => {
3959-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
3956+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
39603957
if (value === null) {
39613958
return acc;
39623959
}

clients/client-alexa-for-business/protocols/Aws_json1_1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7447,7 +7447,7 @@ const serializeAws_json1_1AudioList = (input: Audio[], context: __SerdeContext):
74477447
};
74487448

74497449
const serializeAws_json1_1AuthorizationResult = (input: { [key: string]: string }, context: __SerdeContext): any => {
7450-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
7450+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
74517451
if (value === null) {
74527452
return acc;
74537453
}

clients/client-amplify/protocols/Aws_restJson1.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4864,7 +4864,7 @@ const serializeAws_restJson1CustomRules = (input: CustomRule[], context: __Serde
48644864
};
48654865

48664866
const serializeAws_restJson1EnvironmentVariables = (input: { [key: string]: string }, context: __SerdeContext): any => {
4867-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
4867+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
48684868
if (value === null) {
48694869
return acc;
48704870
}
@@ -4876,7 +4876,7 @@ const serializeAws_restJson1EnvironmentVariables = (input: { [key: string]: stri
48764876
};
48774877

48784878
const serializeAws_restJson1FileMap = (input: { [key: string]: string }, context: __SerdeContext): any => {
4879-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
4879+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
48804880
if (value === null) {
48814881
return acc;
48824882
}
@@ -4906,7 +4906,7 @@ const serializeAws_restJson1SubDomainSettings = (input: SubDomainSetting[], cont
49064906
};
49074907

49084908
const serializeAws_restJson1TagMap = (input: { [key: string]: string }, context: __SerdeContext): any => {
4909-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
4909+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
49104910
if (value === null) {
49114911
return acc;
49124912
}

clients/client-amplifybackend/protocols/Aws_restJson1.ts

+9-6
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@a
7777
import {
7878
SmithyException as __SmithyException,
7979
expectBoolean as __expectBoolean,
80-
expectNumber as __expectNumber,
8180
expectString as __expectString,
8281
extendedEncodeURIComponent as __extendedEncodeURIComponent,
82+
handleFloat as __handleFloat,
83+
serializeFloat as __serializeFloat,
8384
} from "@aws-sdk/smithy-client";
8485
import {
8586
Endpoint as __Endpoint,
@@ -3403,7 +3404,7 @@ const serializeAws_restJson1BackendAPIAppSyncAuthSettings = (
34033404
input.CognitoUserPoolId !== null && { cognitoUserPoolId: input.CognitoUserPoolId }),
34043405
...(input.Description !== undefined && input.Description !== null && { description: input.Description }),
34053406
...(input.ExpirationTime !== undefined &&
3406-
input.ExpirationTime !== null && { expirationTime: input.ExpirationTime }),
3407+
input.ExpirationTime !== null && { expirationTime: __serializeFloat(input.ExpirationTime) }),
34073408
...(input.OpenIDAuthTTL !== undefined && input.OpenIDAuthTTL !== null && { openIDAuthTTL: input.OpenIDAuthTTL }),
34083409
...(input.OpenIDClientId !== undefined &&
34093410
input.OpenIDClientId !== null && { openIDClientId: input.OpenIDClientId }),
@@ -3547,7 +3548,8 @@ const serializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = (
35473548
context
35483549
),
35493550
}),
3550-
...(input.MinimumLength !== undefined && input.MinimumLength !== null && { minimumLength: input.MinimumLength }),
3551+
...(input.MinimumLength !== undefined &&
3552+
input.MinimumLength !== null && { minimumLength: __serializeFloat(input.MinimumLength) }),
35513553
};
35523554
};
35533555

@@ -3810,7 +3812,8 @@ const serializeAws_restJson1UpdateBackendAuthPasswordPolicyConfig = (
38103812
context
38113813
),
38123814
}),
3813-
...(input.MinimumLength !== undefined && input.MinimumLength !== null && { minimumLength: input.MinimumLength }),
3815+
...(input.MinimumLength !== undefined &&
3816+
input.MinimumLength !== null && { minimumLength: __serializeFloat(input.MinimumLength) }),
38143817
};
38153818
};
38163819

@@ -3862,7 +3865,7 @@ const deserializeAws_restJson1BackendAPIAppSyncAuthSettings = (
38623865
return {
38633866
CognitoUserPoolId: __expectString(output.cognitoUserPoolId),
38643867
Description: __expectString(output.description),
3865-
ExpirationTime: __expectNumber(output.expirationTime),
3868+
ExpirationTime: __handleFloat(output.expirationTime),
38663869
OpenIDAuthTTL: __expectString(output.openIDAuthTTL),
38673870
OpenIDClientId: __expectString(output.openIDClientId),
38683871
OpenIDIatTTL: __expectString(output.openIDIatTTL),
@@ -4011,7 +4014,7 @@ const deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = (
40114014
output.additionalConstraints !== undefined && output.additionalConstraints !== null
40124015
? deserializeAws_restJson1ListOfAdditionalConstraintsElement(output.additionalConstraints, context)
40134016
: undefined,
4014-
MinimumLength: __expectNumber(output.minimumLength),
4017+
MinimumLength: __handleFloat(output.minimumLength),
40154018
} as any;
40164019
};
40174020

clients/client-api-gateway/protocols/Aws_restJson1.ts

+12-10
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ import {
281281
expectNumber as __expectNumber,
282282
expectString as __expectString,
283283
extendedEncodeURIComponent as __extendedEncodeURIComponent,
284+
handleFloat as __handleFloat,
285+
serializeFloat as __serializeFloat,
284286
} from "@aws-sdk/smithy-client";
285287
import {
286288
Endpoint as __Endpoint,
@@ -16786,7 +16788,7 @@ const serializeAws_restJson1CanarySettings = (input: CanarySettings, context: __
1678616788
return {
1678716789
...(input.deploymentId !== undefined && input.deploymentId !== null && { deploymentId: input.deploymentId }),
1678816790
...(input.percentTraffic !== undefined &&
16789-
input.percentTraffic !== null && { percentTraffic: input.percentTraffic }),
16791+
input.percentTraffic !== null && { percentTraffic: __serializeFloat(input.percentTraffic) }),
1679016792
...(input.stageVariableOverrides !== undefined &&
1679116793
input.stageVariableOverrides !== null && {
1679216794
stageVariableOverrides: serializeAws_restJson1MapOfStringToString(input.stageVariableOverrides, context),
@@ -16801,7 +16803,7 @@ const serializeAws_restJson1DeploymentCanarySettings = (
1680116803
): any => {
1680216804
return {
1680316805
...(input.percentTraffic !== undefined &&
16804-
input.percentTraffic !== null && { percentTraffic: input.percentTraffic }),
16806+
input.percentTraffic !== null && { percentTraffic: __serializeFloat(input.percentTraffic) }),
1680516807
...(input.stageVariableOverrides !== undefined &&
1680616808
input.stageVariableOverrides !== null && {
1680716809
stageVariableOverrides: serializeAws_restJson1MapOfStringToString(input.stageVariableOverrides, context),
@@ -16904,7 +16906,7 @@ const serializeAws_restJson1MapOfApiStageThrottleSettings = (
1690416906
input: { [key: string]: ThrottleSettings },
1690516907
context: __SerdeContext
1690616908
): any => {
16907-
return Object.entries(input).reduce((acc: { [key: string]: ThrottleSettings }, [key, value]: [string, any]) => {
16909+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
1690816910
if (value === null) {
1690916911
return acc;
1691016912
}
@@ -16919,7 +16921,7 @@ const serializeAws_restJson1MapOfStringToBoolean = (
1691916921
input: { [key: string]: boolean },
1692016922
context: __SerdeContext
1692116923
): any => {
16922-
return Object.entries(input).reduce((acc: { [key: string]: boolean }, [key, value]: [string, any]) => {
16924+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
1692316925
if (value === null) {
1692416926
return acc;
1692516927
}
@@ -16931,7 +16933,7 @@ const serializeAws_restJson1MapOfStringToBoolean = (
1693116933
};
1693216934

1693316935
const serializeAws_restJson1MapOfStringToList = (input: { [key: string]: string[] }, context: __SerdeContext): any => {
16934-
return Object.entries(input).reduce((acc: { [key: string]: string[] }, [key, value]: [string, any]) => {
16936+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
1693516937
if (value === null) {
1693616938
return acc;
1693716939
}
@@ -16943,7 +16945,7 @@ const serializeAws_restJson1MapOfStringToList = (input: { [key: string]: string[
1694316945
};
1694416946

1694516947
const serializeAws_restJson1MapOfStringToString = (input: { [key: string]: string }, context: __SerdeContext): any => {
16946-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
16948+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
1694716949
if (value === null) {
1694816950
return acc;
1694916951
}
@@ -16992,7 +16994,7 @@ const serializeAws_restJson1StageKey = (input: StageKey, context: __SerdeContext
1699216994
const serializeAws_restJson1ThrottleSettings = (input: ThrottleSettings, context: __SerdeContext): any => {
1699316995
return {
1699416996
...(input.burstLimit !== undefined && input.burstLimit !== null && { burstLimit: input.burstLimit }),
16995-
...(input.rateLimit !== undefined && input.rateLimit !== null && { rateLimit: input.rateLimit }),
16997+
...(input.rateLimit !== undefined && input.rateLimit !== null && { rateLimit: __serializeFloat(input.rateLimit) }),
1699616998
};
1699716999
};
1699817000

@@ -17077,7 +17079,7 @@ const deserializeAws_restJson1BasePathMapping = (output: any, context: __SerdeCo
1707717079
const deserializeAws_restJson1CanarySettings = (output: any, context: __SerdeContext): CanarySettings => {
1707817080
return {
1707917081
deploymentId: __expectString(output.deploymentId),
17080-
percentTraffic: __expectNumber(output.percentTraffic),
17082+
percentTraffic: __handleFloat(output.percentTraffic),
1708117083
stageVariableOverrides:
1708217084
output.stageVariableOverrides !== undefined && output.stageVariableOverrides !== null
1708317085
? deserializeAws_restJson1MapOfStringToString(output.stageVariableOverrides, context)
@@ -17755,7 +17757,7 @@ const deserializeAws_restJson1MethodSetting = (output: any, context: __SerdeCont
1775517757
metricsEnabled: __expectBoolean(output.metricsEnabled),
1775617758
requireAuthorizationForCacheControl: __expectBoolean(output.requireAuthorizationForCacheControl),
1775717759
throttlingBurstLimit: __expectNumber(output.throttlingBurstLimit),
17758-
throttlingRateLimit: __expectNumber(output.throttlingRateLimit),
17760+
throttlingRateLimit: __handleFloat(output.throttlingRateLimit),
1775917761
unauthorizedCacheControlHeaderStrategy: __expectString(output.unauthorizedCacheControlHeaderStrategy),
1776017762
} as any;
1776117763
};
@@ -17943,7 +17945,7 @@ const deserializeAws_restJson1Stage = (output: any, context: __SerdeContext): St
1794317945
const deserializeAws_restJson1ThrottleSettings = (output: any, context: __SerdeContext): ThrottleSettings => {
1794417946
return {
1794517947
burstLimit: __expectNumber(output.burstLimit),
17946-
rateLimit: __expectNumber(output.rateLimit),
17948+
rateLimit: __handleFloat(output.rateLimit),
1794717949
} as any;
1794817950
};
1794917951

clients/client-apigatewayv2/protocols/Aws_restJson1.ts

+20-21
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ import {
145145
expectNumber as __expectNumber,
146146
expectString as __expectString,
147147
extendedEncodeURIComponent as __extendedEncodeURIComponent,
148+
handleFloat as __handleFloat,
149+
serializeFloat as __serializeFloat,
148150
} from "@aws-sdk/smithy-client";
149151
import {
150152
Endpoint as __Endpoint,
@@ -9751,7 +9753,7 @@ const serializeAws_restJson1IntegrationParameters = (
97519753
input: { [key: string]: string },
97529754
context: __SerdeContext
97539755
): any => {
9754-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
9756+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
97559757
if (value === null) {
97569758
return acc;
97579759
}
@@ -9791,22 +9793,19 @@ const serializeAws_restJson1ResponseParameters = (
97919793
input: { [key: string]: { [key: string]: string } },
97929794
context: __SerdeContext
97939795
): any => {
9794-
return Object.entries(input).reduce(
9795-
(acc: { [key: string]: { [key: string]: string } }, [key, value]: [string, any]) => {
9796-
if (value === null) {
9797-
return acc;
9798-
}
9799-
return {
9800-
...acc,
9801-
[key]: serializeAws_restJson1IntegrationParameters(value, context),
9802-
};
9803-
},
9804-
{}
9805-
);
9796+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
9797+
if (value === null) {
9798+
return acc;
9799+
}
9800+
return {
9801+
...acc,
9802+
[key]: serializeAws_restJson1IntegrationParameters(value, context),
9803+
};
9804+
}, {});
98069805
};
98079806

98089807
const serializeAws_restJson1RouteModels = (input: { [key: string]: string }, context: __SerdeContext): any => {
9809-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
9808+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
98109809
if (value === null) {
98119810
return acc;
98129811
}
@@ -9821,7 +9820,7 @@ const serializeAws_restJson1RouteParameters = (
98219820
input: { [key: string]: ParameterConstraints },
98229821
context: __SerdeContext
98239822
): any => {
9824-
return Object.entries(input).reduce((acc: { [key: string]: ParameterConstraints }, [key, value]: [string, any]) => {
9823+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
98259824
if (value === null) {
98269825
return acc;
98279826
}
@@ -9842,15 +9841,15 @@ const serializeAws_restJson1RouteSettings = (input: RouteSettings, context: __Se
98429841
...(input.ThrottlingBurstLimit !== undefined &&
98439842
input.ThrottlingBurstLimit !== null && { throttlingBurstLimit: input.ThrottlingBurstLimit }),
98449843
...(input.ThrottlingRateLimit !== undefined &&
9845-
input.ThrottlingRateLimit !== null && { throttlingRateLimit: input.ThrottlingRateLimit }),
9844+
input.ThrottlingRateLimit !== null && { throttlingRateLimit: __serializeFloat(input.ThrottlingRateLimit) }),
98469845
};
98479846
};
98489847

98499848
const serializeAws_restJson1RouteSettingsMap = (
98509849
input: { [key: string]: RouteSettings },
98519850
context: __SerdeContext
98529851
): any => {
9853-
return Object.entries(input).reduce((acc: { [key: string]: RouteSettings }, [key, value]: [string, any]) => {
9852+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
98549853
if (value === null) {
98559854
return acc;
98569855
}
@@ -9873,7 +9872,7 @@ const serializeAws_restJson1SecurityGroupIdList = (input: string[], context: __S
98739872
};
98749873

98759874
const serializeAws_restJson1StageVariablesMap = (input: { [key: string]: string }, context: __SerdeContext): any => {
9876-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
9875+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
98779876
if (value === null) {
98789877
return acc;
98799878
}
@@ -9896,7 +9895,7 @@ const serializeAws_restJson1SubnetIdList = (input: string[], context: __SerdeCon
98969895
};
98979896

98989897
const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: __SerdeContext): any => {
9899-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
9898+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
99009899
if (value === null) {
99019900
return acc;
99029901
}
@@ -9908,7 +9907,7 @@ const serializeAws_restJson1Tags = (input: { [key: string]: string }, context: _
99089907
};
99099908

99109909
const serializeAws_restJson1TemplateMap = (input: { [key: string]: string }, context: __SerdeContext): any => {
9911-
return Object.entries(input).reduce((acc: { [key: string]: string }, [key, value]: [string, any]) => {
9910+
return Object.entries(input).reduce((acc: { [key: string]: any }, [key, value]: [string, any]) => {
99129911
if (value === null) {
99139912
return acc;
99149913
}
@@ -10490,7 +10489,7 @@ const deserializeAws_restJson1RouteSettings = (output: any, context: __SerdeCont
1049010489
DetailedMetricsEnabled: __expectBoolean(output.detailedMetricsEnabled),
1049110490
LoggingLevel: __expectString(output.loggingLevel),
1049210491
ThrottlingBurstLimit: __expectNumber(output.throttlingBurstLimit),
10493-
ThrottlingRateLimit: __expectNumber(output.throttlingRateLimit),
10492+
ThrottlingRateLimit: __handleFloat(output.throttlingRateLimit),
1049410493
} as any;
1049510494
};
1049610495

0 commit comments

Comments
 (0)