Skip to content

Commit b941f46

Browse files
authored
fix(codegen): add check for required query parameters (#4223)
1 parent 6252711 commit b941f46

File tree

134 files changed

+901
-511
lines changed

Some content is hidden

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

134 files changed

+901
-511
lines changed

clients/client-accessanalyzer/src/protocols/Aws_restJson1.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export const serializeAws_restJson1GetAccessPreviewCommand = async (
365365
false
366366
);
367367
const query: any = map({
368-
analyzerArn: [, input.analyzerArn!],
368+
analyzerArn: [, __expectNonNull(input.analyzerArn!, `analyzerArn`)],
369369
});
370370
let body: any;
371371
return new __HttpRequest({
@@ -388,8 +388,8 @@ export const serializeAws_restJson1GetAnalyzedResourceCommand = async (
388388
const headers: any = {};
389389
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/analyzed-resource";
390390
const query: any = map({
391-
analyzerArn: [, input.analyzerArn!],
392-
resourceArn: [, input.resourceArn!],
391+
analyzerArn: [, __expectNonNull(input.analyzerArn!, `analyzerArn`)],
392+
resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)],
393393
});
394394
let body: any;
395395
return new __HttpRequest({
@@ -470,7 +470,7 @@ export const serializeAws_restJson1GetFindingCommand = async (
470470
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/finding/{id}";
471471
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id!, "{id}", false);
472472
const query: any = map({
473-
analyzerArn: [, input.analyzerArn!],
473+
analyzerArn: [, __expectNonNull(input.analyzerArn!, `analyzerArn`)],
474474
});
475475
let body: any;
476476
return new __HttpRequest({
@@ -561,7 +561,7 @@ export const serializeAws_restJson1ListAccessPreviewsCommand = async (
561561
const headers: any = {};
562562
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/access-preview";
563563
const query: any = map({
564-
analyzerArn: [, input.analyzerArn!],
564+
analyzerArn: [, __expectNonNull(input.analyzerArn!, `analyzerArn`)],
565565
nextToken: [, input.nextToken!],
566566
maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()],
567567
});
@@ -826,7 +826,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (
826826
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
827827
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false);
828828
const query: any = map({
829-
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys! || []).map((_entry) => _entry as any)],
829+
tagKeys: [
830+
__expectNonNull(input.tagKeys, `tagKeys`) != null,
831+
() => (input.tagKeys! || []).map((_entry) => _entry as any),
832+
],
830833
});
831834
let body: any;
832835
return new __HttpRequest({

clients/client-amp/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (
573573
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
574574
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false);
575575
const query: any = map({
576-
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys! || []).map((_entry) => _entry as any)],
576+
tagKeys: [
577+
__expectNonNull(input.tagKeys, `tagKeys`) != null,
578+
() => (input.tagKeys! || []).map((_entry) => _entry as any),
579+
],
577580
});
578581
let body: any;
579582
return new __HttpRequest({

clients/client-amplify/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (
967967
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
968968
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false);
969969
const query: any = map({
970-
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys! || []).map((_entry) => _entry as any)],
970+
tagKeys: [
971+
__expectNonNull(input.tagKeys, `tagKeys`) != null,
972+
() => (input.tagKeys! || []).map((_entry) => _entry as any),
973+
],
971974
});
972975
let body: any;
973976
return new __HttpRequest({

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,8 +2393,8 @@ export const serializeAws_restJson1GetUsageCommand = async (
23932393
resolvedPath = __resolvedPath(resolvedPath, input, "usagePlanId", () => input.usagePlanId!, "{usagePlanId}", false);
23942394
const query: any = map({
23952395
keyId: [, input.keyId!],
2396-
startDate: [, input.startDate!],
2397-
endDate: [, input.endDate!],
2396+
startDate: [, __expectNonNull(input.startDate!, `startDate`)],
2397+
endDate: [, __expectNonNull(input.endDate!, `endDate`)],
23982398
position: [, input.position!],
23992399
limit: [() => input.limit !== void 0, () => input.limit!.toString()],
24002400
});
@@ -2561,7 +2561,7 @@ export const serializeAws_restJson1ImportApiKeysCommand = async (
25612561
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/apikeys";
25622562
const query: any = map({
25632563
mode: [, "import"],
2564-
format: [, input.format!],
2564+
format: [, __expectNonNull(input.format!, `format`)],
25652565
failonwarnings: [() => input.failOnWarnings !== void 0, () => input.failOnWarnings!.toString()],
25662566
});
25672567
let body: any;
@@ -2993,7 +2993,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (
29932993
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
29942994
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false);
29952995
const query: any = map({
2996-
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys! || []).map((_entry) => _entry as any)],
2996+
tagKeys: [
2997+
__expectNonNull(input.tagKeys, `tagKeys`) != null,
2998+
() => (input.tagKeys! || []).map((_entry) => _entry as any),
2999+
],
29973000
});
29983001
let body: any;
29993002
return new __HttpRequest({

clients/client-apigatewayv2/src/protocols/Aws_restJson1.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,7 +1041,7 @@ export const serializeAws_restJson1ExportApiCommand = async (
10411041
const query: any = map({
10421042
exportVersion: [, input.ExportVersion!],
10431043
includeExtensions: [() => input.IncludeExtensions !== void 0, () => input.IncludeExtensions!.toString()],
1044-
outputType: [, input.OutputType!],
1044+
outputType: [, __expectNonNull(input.OutputType!, `OutputType`)],
10451045
stageName: [, input.StageName!],
10461046
});
10471047
let body: any;
@@ -1846,7 +1846,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (
18461846
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v2/tags/{ResourceArn}";
18471847
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false);
18481848
const query: any = map({
1849-
tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys! || []).map((_entry) => _entry as any)],
1849+
tagKeys: [
1850+
__expectNonNull(input.TagKeys, `TagKeys`) != null,
1851+
() => (input.TagKeys! || []).map((_entry) => _entry as any),
1852+
],
18501853
});
18511854
let body: any;
18521855
return new __HttpRequest({

clients/client-app-mesh/src/protocols/Aws_restJson1.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (
10921092
const headers: any = {};
10931093
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/tags";
10941094
const query: any = map({
1095-
resourceArn: [, input.resourceArn!],
1095+
resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)],
10961096
nextToken: [, input.nextToken!],
10971097
limit: [() => input.limit !== void 0, () => input.limit!.toString()],
10981098
});
@@ -1230,7 +1230,7 @@ export const serializeAws_restJson1TagResourceCommand = async (
12301230
};
12311231
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/tag";
12321232
const query: any = map({
1233-
resourceArn: [, input.resourceArn!],
1233+
resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)],
12341234
});
12351235
let body: any;
12361236
body = JSON.stringify({
@@ -1258,7 +1258,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (
12581258
};
12591259
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v20190125/untag";
12601260
const query: any = map({
1261-
resourceArn: [, input.resourceArn!],
1261+
resourceArn: [, __expectNonNull(input.resourceArn!, `resourceArn`)],
12621262
});
12631263
let body: any;
12641264
body = JSON.stringify({

clients/client-appconfig/src/protocols/Aws_restJson1.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ export const serializeAws_restJson1GetConfigurationCommand = async (
686686
false
687687
);
688688
const query: any = map({
689-
client_id: [, input.ClientId!],
689+
client_id: [, __expectNonNull(input.ClientId!, `ClientId`)],
690690
client_configuration_version: [, input.ClientConfigurationVersion!],
691691
});
692692
let body: any;
@@ -1357,7 +1357,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (
13571357
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
13581358
resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn!, "{ResourceArn}", false);
13591359
const query: any = map({
1360-
tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys! || []).map((_entry) => _entry as any)],
1360+
tagKeys: [
1361+
__expectNonNull(input.TagKeys, `TagKeys`) != null,
1362+
() => (input.TagKeys! || []).map((_entry) => _entry as any),
1363+
],
13611364
});
13621365
let body: any;
13631366
return new __HttpRequest({
@@ -1631,7 +1634,7 @@ export const serializeAws_restJson1ValidateConfigurationCommand = async (
16311634
false
16321635
);
16331636
const query: any = map({
1634-
configuration_version: [, input.ConfigurationVersion!],
1637+
configuration_version: [, __expectNonNull(input.ConfigurationVersion!, `ConfigurationVersion`)],
16351638
});
16361639
let body: any;
16371640
return new __HttpRequest({

clients/client-appconfigdata/src/protocols/Aws_restJson1.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const serializeAws_restJson1GetLatestConfigurationCommand = async (
4343
const headers: any = {};
4444
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/configuration";
4545
const query: any = map({
46-
configuration_token: [, input.ConfigurationToken!],
46+
configuration_token: [, __expectNonNull(input.ConfigurationToken!, `ConfigurationToken`)],
4747
});
4848
let body: any;
4949
return new __HttpRequest({

clients/client-appflow/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (
768768
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
769769
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false);
770770
const query: any = map({
771-
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys! || []).map((_entry) => _entry as any)],
771+
tagKeys: [
772+
__expectNonNull(input.tagKeys, `tagKeys`) != null,
773+
() => (input.tagKeys! || []).map((_entry) => _entry as any),
774+
],
772775
});
773776
let body: any;
774777
return new __HttpRequest({

clients/client-appintegrations/src/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (
408408
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
409409
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false);
410410
const query: any = map({
411-
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys! || []).map((_entry) => _entry as any)],
411+
tagKeys: [
412+
__expectNonNull(input.tagKeys, `tagKeys`) != null,
413+
() => (input.tagKeys! || []).map((_entry) => _entry as any),
414+
],
412415
});
413416
let body: any;
414417
return new __HttpRequest({

clients/client-appsync/src/protocols/Aws_restJson1.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ export const serializeAws_restJson1GetIntrospectionSchemaCommand = async (
854854
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/schema";
855855
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false);
856856
const query: any = map({
857-
format: [, input.format!],
857+
format: [, __expectNonNull(input.format!, `format`)],
858858
includeDirectives: [() => input.includeDirectives !== void 0, () => input.includeDirectives!.toString()],
859859
});
860860
let body: any;
@@ -926,7 +926,7 @@ export const serializeAws_restJson1GetTypeCommand = async (
926926
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false);
927927
resolvedPath = __resolvedPath(resolvedPath, input, "typeName", () => input.typeName!, "{typeName}", false);
928928
const query: any = map({
929-
format: [, input.format!],
929+
format: [, __expectNonNull(input.format!, `format`)],
930930
});
931931
let body: any;
932932
return new __HttpRequest({
@@ -1151,7 +1151,7 @@ export const serializeAws_restJson1ListTypesCommand = async (
11511151
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/apis/{apiId}/types";
11521152
resolvedPath = __resolvedPath(resolvedPath, input, "apiId", () => input.apiId!, "{apiId}", false);
11531153
const query: any = map({
1154-
format: [, input.format!],
1154+
format: [, __expectNonNull(input.format!, `format`)],
11551155
nextToken: [, input.nextToken!],
11561156
maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()],
11571157
});
@@ -1228,7 +1228,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (
12281228
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/v1/tags/{resourceArn}";
12291229
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false);
12301230
const query: any = map({
1231-
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys! || []).map((_entry) => _entry as any)],
1231+
tagKeys: [
1232+
__expectNonNull(input.tagKeys, `tagKeys`) != null,
1233+
() => (input.tagKeys! || []).map((_entry) => _entry as any),
1234+
],
12321235
});
12331236
let body: any;
12341237
return new __HttpRequest({

clients/client-auditmanager/src/protocols/Aws_restJson1.ts

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ export const serializeAws_restJson1DeleteAssessmentFrameworkShareCommand = async
664664
"/assessmentFrameworkShareRequests/{requestId}";
665665
resolvedPath = __resolvedPath(resolvedPath, input, "requestId", () => input.requestId!, "{requestId}", false);
666666
const query: any = map({
667-
requestType: [, input.requestType!],
667+
requestType: [, __expectNonNull(input.requestType!, `requestType`)],
668668
});
669669
let body: any;
670670
return new __HttpRequest({
@@ -1348,8 +1348,8 @@ export const serializeAws_restJson1ListAssessmentControlInsightsByControlDomainC
13481348
const resolvedPath =
13491349
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls-by-assessment";
13501350
const query: any = map({
1351-
controlDomainId: [, input.controlDomainId!],
1352-
assessmentId: [, input.assessmentId!],
1351+
controlDomainId: [, __expectNonNull(input.controlDomainId!, `controlDomainId`)],
1352+
assessmentId: [, __expectNonNull(input.assessmentId!, `assessmentId`)],
13531353
nextToken: [, input.nextToken!],
13541354
maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()],
13551355
});
@@ -1374,7 +1374,7 @@ export const serializeAws_restJson1ListAssessmentFrameworksCommand = async (
13741374
const headers: any = {};
13751375
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworks";
13761376
const query: any = map({
1377-
frameworkType: [, input.frameworkType!],
1377+
frameworkType: [, __expectNonNull(input.frameworkType!, `frameworkType`)],
13781378
nextToken: [, input.nextToken!],
13791379
maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()],
13801380
});
@@ -1400,7 +1400,7 @@ export const serializeAws_restJson1ListAssessmentFrameworkShareRequestsCommand =
14001400
const resolvedPath =
14011401
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assessmentFrameworkShareRequests";
14021402
const query: any = map({
1403-
requestType: [, input.requestType!],
1403+
requestType: [, __expectNonNull(input.requestType!, `requestType`)],
14041404
nextToken: [, input.nextToken!],
14051405
maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()],
14061406
});
@@ -1500,7 +1500,7 @@ export const serializeAws_restJson1ListControlDomainInsightsByAssessmentCommand
15001500
const resolvedPath =
15011501
`${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/control-domains-by-assessment";
15021502
const query: any = map({
1503-
assessmentId: [, input.assessmentId!],
1503+
assessmentId: [, __expectNonNull(input.assessmentId!, `assessmentId`)],
15041504
nextToken: [, input.nextToken!],
15051505
maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()],
15061506
});
@@ -1525,7 +1525,7 @@ export const serializeAws_restJson1ListControlInsightsByControlDomainCommand = a
15251525
const headers: any = {};
15261526
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/insights/controls";
15271527
const query: any = map({
1528-
controlDomainId: [, input.controlDomainId!],
1528+
controlDomainId: [, __expectNonNull(input.controlDomainId!, `controlDomainId`)],
15291529
nextToken: [, input.nextToken!],
15301530
maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()],
15311531
});
@@ -1550,7 +1550,7 @@ export const serializeAws_restJson1ListControlsCommand = async (
15501550
const headers: any = {};
15511551
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/controls";
15521552
const query: any = map({
1553-
controlType: [, input.controlType!],
1553+
controlType: [, __expectNonNull(input.controlType!, `controlType`)],
15541554
nextToken: [, input.nextToken!],
15551555
maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()],
15561556
});
@@ -1575,7 +1575,7 @@ export const serializeAws_restJson1ListKeywordsForDataSourceCommand = async (
15751575
const headers: any = {};
15761576
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/dataSourceKeywords";
15771577
const query: any = map({
1578-
source: [, input.source!],
1578+
source: [, __expectNonNull(input.source!, `source`)],
15791579
nextToken: [, input.nextToken!],
15801580
maxResults: [() => input.maxResults !== void 0, () => input.maxResults!.toString()],
15811581
});
@@ -1750,7 +1750,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (
17501750
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
17511751
resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn!, "{resourceArn}", false);
17521752
const query: any = map({
1753-
tagKeys: [() => input.tagKeys !== void 0, () => (input.tagKeys! || []).map((_entry) => _entry as any)],
1753+
tagKeys: [
1754+
__expectNonNull(input.tagKeys, `tagKeys`) != null,
1755+
() => (input.tagKeys! || []).map((_entry) => _entry as any),
1756+
],
17541757
});
17551758
let body: any;
17561759
return new __HttpRequest({

clients/client-backupstorage/src/protocols/Aws_restJson1.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ export const serializeAws_restJson1NotifyObjectCompleteCommand = async (
223223
resolvedPath = __resolvedPath(resolvedPath, input, "BackupJobId", () => input.BackupJobId!, "{BackupJobId}", false);
224224
resolvedPath = __resolvedPath(resolvedPath, input, "UploadId", () => input.UploadId!, "{UploadId}", false);
225225
const query: any = map({
226-
checksum: [, input.ObjectChecksum!],
227-
"checksum-algorithm": [, input.ObjectChecksumAlgorithm!],
226+
checksum: [, __expectNonNull(input.ObjectChecksum!, `ObjectChecksum`)],
227+
"checksum-algorithm": [, __expectNonNull(input.ObjectChecksumAlgorithm!, `ObjectChecksumAlgorithm`)],
228228
"metadata-string": [, input.MetadataString!],
229229
"metadata-blob-length": [() => input.MetadataBlobLength !== void 0, () => input.MetadataBlobLength!.toString()],
230230
"metadata-checksum": [, input.MetadataBlobChecksum!],
@@ -269,9 +269,9 @@ export const serializeAws_restJson1PutChunkCommand = async (
269269
false
270270
);
271271
const query: any = map({
272-
length: [() => input.Length !== void 0, () => input.Length!.toString()],
273-
checksum: [, input.Checksum!],
274-
"checksum-algorithm": [, input.ChecksumAlgorithm!],
272+
length: [__expectNonNull(input.Length, `Length`) != null, () => input.Length!.toString()],
273+
checksum: [, __expectNonNull(input.Checksum!, `Checksum`)],
274+
"checksum-algorithm": [, __expectNonNull(input.ChecksumAlgorithm!, `ChecksumAlgorithm`)],
275275
});
276276
let body: any;
277277
if (input.Data !== undefined) {

0 commit comments

Comments
 (0)