@aws-sdk/client-s3 3.53.1 → 3.55.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist-cjs/S3Client.js +18 -18
  3. package/dist-cjs/commands/AbortMultipartUploadCommand.js +4 -4
  4. package/dist-cjs/commands/CompleteMultipartUploadCommand.js +6 -6
  5. package/dist-cjs/commands/CopyObjectCommand.js +6 -6
  6. package/dist-cjs/commands/CreateBucketCommand.js +4 -4
  7. package/dist-cjs/commands/CreateMultipartUploadCommand.js +5 -5
  8. package/dist-cjs/commands/DeleteBucketAnalyticsConfigurationCommand.js +4 -4
  9. package/dist-cjs/commands/DeleteBucketCommand.js +3 -3
  10. package/dist-cjs/commands/DeleteBucketCorsCommand.js +4 -4
  11. package/dist-cjs/commands/DeleteBucketEncryptionCommand.js +4 -4
  12. package/dist-cjs/commands/DeleteBucketIntelligentTieringConfigurationCommand.js +4 -4
  13. package/dist-cjs/commands/DeleteBucketInventoryConfigurationCommand.js +4 -4
  14. package/dist-cjs/commands/DeleteBucketLifecycleCommand.js +4 -4
  15. package/dist-cjs/commands/DeleteBucketMetricsConfigurationCommand.js +4 -4
  16. package/dist-cjs/commands/DeleteBucketOwnershipControlsCommand.js +4 -4
  17. package/dist-cjs/commands/DeleteBucketPolicyCommand.js +4 -4
  18. package/dist-cjs/commands/DeleteBucketReplicationCommand.js +4 -4
  19. package/dist-cjs/commands/DeleteBucketTaggingCommand.js +4 -4
  20. package/dist-cjs/commands/DeleteBucketWebsiteCommand.js +4 -4
  21. package/dist-cjs/commands/DeleteObjectCommand.js +4 -4
  22. package/dist-cjs/commands/DeleteObjectTaggingCommand.js +4 -4
  23. package/dist-cjs/commands/DeleteObjectsCommand.js +5 -5
  24. package/dist-cjs/commands/DeletePublicAccessBlockCommand.js +4 -4
  25. package/dist-cjs/commands/GetBucketAccelerateConfigurationCommand.js +4 -4
  26. package/dist-cjs/commands/GetBucketAclCommand.js +4 -4
  27. package/dist-cjs/commands/GetBucketAnalyticsConfigurationCommand.js +4 -4
  28. package/dist-cjs/commands/GetBucketCorsCommand.js +4 -4
  29. package/dist-cjs/commands/GetBucketEncryptionCommand.js +4 -4
  30. package/dist-cjs/commands/GetBucketIntelligentTieringConfigurationCommand.js +4 -4
  31. package/dist-cjs/commands/GetBucketInventoryConfigurationCommand.js +4 -4
  32. package/dist-cjs/commands/GetBucketLifecycleConfigurationCommand.js +4 -4
  33. package/dist-cjs/commands/GetBucketLocationCommand.js +4 -4
  34. package/dist-cjs/commands/GetBucketLoggingCommand.js +4 -4
  35. package/dist-cjs/commands/GetBucketMetricsConfigurationCommand.js +4 -4
  36. package/dist-cjs/commands/GetBucketNotificationConfigurationCommand.js +4 -4
  37. package/dist-cjs/commands/GetBucketOwnershipControlsCommand.js +4 -4
  38. package/dist-cjs/commands/GetBucketPolicyCommand.js +4 -4
  39. package/dist-cjs/commands/GetBucketPolicyStatusCommand.js +4 -4
  40. package/dist-cjs/commands/GetBucketReplicationCommand.js +4 -4
  41. package/dist-cjs/commands/GetBucketRequestPaymentCommand.js +4 -4
  42. package/dist-cjs/commands/GetBucketTaggingCommand.js +4 -4
  43. package/dist-cjs/commands/GetBucketVersioningCommand.js +4 -4
  44. package/dist-cjs/commands/GetBucketWebsiteCommand.js +4 -4
  45. package/dist-cjs/commands/GetObjectAclCommand.js +4 -4
  46. package/dist-cjs/commands/GetObjectAttributesCommand.js +5 -5
  47. package/dist-cjs/commands/GetObjectCommand.js +6 -6
  48. package/dist-cjs/commands/GetObjectLegalHoldCommand.js +4 -4
  49. package/dist-cjs/commands/GetObjectLockConfigurationCommand.js +4 -4
  50. package/dist-cjs/commands/GetObjectRetentionCommand.js +4 -4
  51. package/dist-cjs/commands/GetObjectTaggingCommand.js +4 -4
  52. package/dist-cjs/commands/GetObjectTorrentCommand.js +4 -4
  53. package/dist-cjs/commands/GetPublicAccessBlockCommand.js +4 -4
  54. package/dist-cjs/commands/HeadBucketCommand.js +4 -4
  55. package/dist-cjs/commands/HeadObjectCommand.js +5 -5
  56. package/dist-cjs/commands/ListBucketAnalyticsConfigurationsCommand.js +4 -4
  57. package/dist-cjs/commands/ListBucketIntelligentTieringConfigurationsCommand.js +4 -4
  58. package/dist-cjs/commands/ListBucketInventoryConfigurationsCommand.js +4 -4
  59. package/dist-cjs/commands/ListBucketMetricsConfigurationsCommand.js +4 -4
  60. package/dist-cjs/commands/ListBucketsCommand.js +3 -3
  61. package/dist-cjs/commands/ListMultipartUploadsCommand.js +4 -4
  62. package/dist-cjs/commands/ListObjectVersionsCommand.js +4 -4
  63. package/dist-cjs/commands/ListObjectsCommand.js +4 -4
  64. package/dist-cjs/commands/ListObjectsV2Command.js +4 -4
  65. package/dist-cjs/commands/ListPartsCommand.js +5 -5
  66. package/dist-cjs/commands/PutBucketAccelerateConfigurationCommand.js +5 -5
  67. package/dist-cjs/commands/PutBucketAclCommand.js +5 -5
  68. package/dist-cjs/commands/PutBucketAnalyticsConfigurationCommand.js +4 -4
  69. package/dist-cjs/commands/PutBucketCorsCommand.js +5 -5
  70. package/dist-cjs/commands/PutBucketEncryptionCommand.js +5 -5
  71. package/dist-cjs/commands/PutBucketIntelligentTieringConfigurationCommand.js +4 -4
  72. package/dist-cjs/commands/PutBucketInventoryConfigurationCommand.js +4 -4
  73. package/dist-cjs/commands/PutBucketLifecycleConfigurationCommand.js +5 -5
  74. package/dist-cjs/commands/PutBucketLoggingCommand.js +5 -5
  75. package/dist-cjs/commands/PutBucketMetricsConfigurationCommand.js +4 -4
  76. package/dist-cjs/commands/PutBucketNotificationConfigurationCommand.js +4 -4
  77. package/dist-cjs/commands/PutBucketOwnershipControlsCommand.js +5 -5
  78. package/dist-cjs/commands/PutBucketPolicyCommand.js +5 -5
  79. package/dist-cjs/commands/PutBucketReplicationCommand.js +5 -5
  80. package/dist-cjs/commands/PutBucketRequestPaymentCommand.js +5 -5
  81. package/dist-cjs/commands/PutBucketTaggingCommand.js +5 -5
  82. package/dist-cjs/commands/PutBucketVersioningCommand.js +5 -5
  83. package/dist-cjs/commands/PutBucketWebsiteCommand.js +5 -5
  84. package/dist-cjs/commands/PutObjectAclCommand.js +5 -5
  85. package/dist-cjs/commands/PutObjectCommand.js +6 -6
  86. package/dist-cjs/commands/PutObjectLegalHoldCommand.js +5 -5
  87. package/dist-cjs/commands/PutObjectLockConfigurationCommand.js +5 -5
  88. package/dist-cjs/commands/PutObjectRetentionCommand.js +5 -5
  89. package/dist-cjs/commands/PutObjectTaggingCommand.js +5 -5
  90. package/dist-cjs/commands/PutPublicAccessBlockCommand.js +5 -5
  91. package/dist-cjs/commands/RestoreObjectCommand.js +5 -5
  92. package/dist-cjs/commands/SelectObjectContentCommand.js +5 -5
  93. package/dist-cjs/commands/UploadPartCommand.js +6 -6
  94. package/dist-cjs/commands/UploadPartCopyCommand.js +6 -6
  95. package/dist-cjs/commands/WriteGetObjectResponseCommand.js +3 -3
  96. package/dist-cjs/endpoints.js +1 -1
  97. package/dist-cjs/protocols/Aws_restXml.js +641 -641
  98. package/dist-cjs/runtimeConfig.browser.js +4 -4
  99. package/dist-cjs/runtimeConfig.js +10 -10
  100. package/dist-cjs/runtimeConfig.native.js +1 -1
  101. package/dist-cjs/waiters/waitForBucketExists.js +3 -3
  102. package/dist-cjs/waiters/waitForBucketNotExists.js +3 -3
  103. package/dist-cjs/waiters/waitForObjectExists.js +3 -3
  104. package/dist-cjs/waiters/waitForObjectNotExists.js +3 -3
  105. package/dist-es/S3.js +93 -93
  106. package/dist-es/pagination/ListObjectsV2Paginator.js +4 -4
  107. package/dist-es/pagination/ListPartsPaginator.js +4 -4
  108. package/dist-es/protocols/Aws_restXml.js +97 -97
  109. package/dist-types/S3Client.d.ts +2 -2
  110. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  111. package/dist-types/runtimeConfig.d.ts +1 -1
  112. package/dist-types/runtimeConfig.native.d.ts +3 -3
  113. package/dist-types/ts3.4/S3Client.d.ts +2 -2
  114. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  115. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  116. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  117. package/package.json +50 -50
@@ -26,7 +26,7 @@ const serializeAws_restXmlAbortMultipartUploadCommand = async (input, context) =
26
26
  if (labelValue.length <= 0) {
27
27
  throw new Error("Empty value provided for input HTTP label: Bucket.");
28
28
  }
29
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
29
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
30
30
  }
31
31
  else {
32
32
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -38,7 +38,7 @@ const serializeAws_restXmlAbortMultipartUploadCommand = async (input, context) =
38
38
  }
39
39
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
40
40
  .split("/")
41
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
41
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
42
42
  .join("/"));
43
43
  }
44
44
  else {
@@ -89,7 +89,7 @@ const serializeAws_restXmlCompleteMultipartUploadCommand = async (input, context
89
89
  if (labelValue.length <= 0) {
90
90
  throw new Error("Empty value provided for input HTTP label: Bucket.");
91
91
  }
92
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
92
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
93
93
  }
94
94
  else {
95
95
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -101,7 +101,7 @@ const serializeAws_restXmlCompleteMultipartUploadCommand = async (input, context
101
101
  }
102
102
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
103
103
  .split("/")
104
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
104
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
105
105
  .join("/"));
106
106
  }
107
107
  else {
@@ -150,15 +150,15 @@ const serializeAws_restXmlCopyObjectCommand = async (input, context) => {
150
150
  "x-amz-copy-source-if-match": input.CopySourceIfMatch,
151
151
  }),
152
152
  ...(isSerializableHeaderValue(input.CopySourceIfModifiedSince) && {
153
- "x-amz-copy-source-if-modified-since": smithy_client_1.dateToUtcString(input.CopySourceIfModifiedSince).toString(),
153
+ "x-amz-copy-source-if-modified-since": (0, smithy_client_1.dateToUtcString)(input.CopySourceIfModifiedSince).toString(),
154
154
  }),
155
155
  ...(isSerializableHeaderValue(input.CopySourceIfNoneMatch) && {
156
156
  "x-amz-copy-source-if-none-match": input.CopySourceIfNoneMatch,
157
157
  }),
158
158
  ...(isSerializableHeaderValue(input.CopySourceIfUnmodifiedSince) && {
159
- "x-amz-copy-source-if-unmodified-since": smithy_client_1.dateToUtcString(input.CopySourceIfUnmodifiedSince).toString(),
159
+ "x-amz-copy-source-if-unmodified-since": (0, smithy_client_1.dateToUtcString)(input.CopySourceIfUnmodifiedSince).toString(),
160
160
  }),
161
- ...(isSerializableHeaderValue(input.Expires) && { expires: smithy_client_1.dateToUtcString(input.Expires).toString() }),
161
+ ...(isSerializableHeaderValue(input.Expires) && { expires: (0, smithy_client_1.dateToUtcString)(input.Expires).toString() }),
162
162
  ...(isSerializableHeaderValue(input.GrantFullControl) && { "x-amz-grant-full-control": input.GrantFullControl }),
163
163
  ...(isSerializableHeaderValue(input.GrantRead) && { "x-amz-grant-read": input.GrantRead }),
164
164
  ...(isSerializableHeaderValue(input.GrantReadACP) && { "x-amz-grant-read-acp": input.GrantReadACP }),
@@ -226,7 +226,7 @@ const serializeAws_restXmlCopyObjectCommand = async (input, context) => {
226
226
  if (labelValue.length <= 0) {
227
227
  throw new Error("Empty value provided for input HTTP label: Bucket.");
228
228
  }
229
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
229
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
230
230
  }
231
231
  else {
232
232
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -238,7 +238,7 @@ const serializeAws_restXmlCopyObjectCommand = async (input, context) => {
238
238
  }
239
239
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
240
240
  .split("/")
241
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
241
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
242
242
  .join("/"));
243
243
  }
244
244
  else {
@@ -281,7 +281,7 @@ const serializeAws_restXmlCreateBucketCommand = async (input, context) => {
281
281
  if (labelValue.length <= 0) {
282
282
  throw new Error("Empty value provided for input HTTP label: Bucket.");
283
283
  }
284
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
284
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
285
285
  }
286
286
  else {
287
287
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -317,7 +317,7 @@ const serializeAws_restXmlCreateMultipartUploadCommand = async (input, context)
317
317
  ...(isSerializableHeaderValue(input.ContentEncoding) && { "content-encoding": input.ContentEncoding }),
318
318
  ...(isSerializableHeaderValue(input.ContentLanguage) && { "content-language": input.ContentLanguage }),
319
319
  ...(isSerializableHeaderValue(input.ContentType) && { "content-type": input.ContentType }),
320
- ...(isSerializableHeaderValue(input.Expires) && { expires: smithy_client_1.dateToUtcString(input.Expires).toString() }),
320
+ ...(isSerializableHeaderValue(input.Expires) && { expires: (0, smithy_client_1.dateToUtcString)(input.Expires).toString() }),
321
321
  ...(isSerializableHeaderValue(input.GrantFullControl) && { "x-amz-grant-full-control": input.GrantFullControl }),
322
322
  ...(isSerializableHeaderValue(input.GrantRead) && { "x-amz-grant-read": input.GrantRead }),
323
323
  ...(isSerializableHeaderValue(input.GrantReadACP) && { "x-amz-grant-read-acp": input.GrantReadACP }),
@@ -372,7 +372,7 @@ const serializeAws_restXmlCreateMultipartUploadCommand = async (input, context)
372
372
  if (labelValue.length <= 0) {
373
373
  throw new Error("Empty value provided for input HTTP label: Bucket.");
374
374
  }
375
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
375
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
376
376
  }
377
377
  else {
378
378
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -384,7 +384,7 @@ const serializeAws_restXmlCreateMultipartUploadCommand = async (input, context)
384
384
  }
385
385
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
386
386
  .split("/")
387
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
387
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
388
388
  .join("/"));
389
389
  }
390
390
  else {
@@ -420,7 +420,7 @@ const serializeAws_restXmlDeleteBucketCommand = async (input, context) => {
420
420
  if (labelValue.length <= 0) {
421
421
  throw new Error("Empty value provided for input HTTP label: Bucket.");
422
422
  }
423
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
423
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
424
424
  }
425
425
  else {
426
426
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -450,7 +450,7 @@ const serializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand = async (inp
450
450
  if (labelValue.length <= 0) {
451
451
  throw new Error("Empty value provided for input HTTP label: Bucket.");
452
452
  }
453
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
453
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
454
454
  }
455
455
  else {
456
456
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -485,7 +485,7 @@ const serializeAws_restXmlDeleteBucketCorsCommand = async (input, context) => {
485
485
  if (labelValue.length <= 0) {
486
486
  throw new Error("Empty value provided for input HTTP label: Bucket.");
487
487
  }
488
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
488
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
489
489
  }
490
490
  else {
491
491
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -519,7 +519,7 @@ const serializeAws_restXmlDeleteBucketEncryptionCommand = async (input, context)
519
519
  if (labelValue.length <= 0) {
520
520
  throw new Error("Empty value provided for input HTTP label: Bucket.");
521
521
  }
522
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
522
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
523
523
  }
524
524
  else {
525
525
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -549,7 +549,7 @@ const serializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand = a
549
549
  if (labelValue.length <= 0) {
550
550
  throw new Error("Empty value provided for input HTTP label: Bucket.");
551
551
  }
552
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
552
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
553
553
  }
554
554
  else {
555
555
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -584,7 +584,7 @@ const serializeAws_restXmlDeleteBucketInventoryConfigurationCommand = async (inp
584
584
  if (labelValue.length <= 0) {
585
585
  throw new Error("Empty value provided for input HTTP label: Bucket.");
586
586
  }
587
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
587
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
588
588
  }
589
589
  else {
590
590
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -619,7 +619,7 @@ const serializeAws_restXmlDeleteBucketLifecycleCommand = async (input, context)
619
619
  if (labelValue.length <= 0) {
620
620
  throw new Error("Empty value provided for input HTTP label: Bucket.");
621
621
  }
622
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
622
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
623
623
  }
624
624
  else {
625
625
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -653,7 +653,7 @@ const serializeAws_restXmlDeleteBucketMetricsConfigurationCommand = async (input
653
653
  if (labelValue.length <= 0) {
654
654
  throw new Error("Empty value provided for input HTTP label: Bucket.");
655
655
  }
656
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
656
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
657
657
  }
658
658
  else {
659
659
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -688,7 +688,7 @@ const serializeAws_restXmlDeleteBucketOwnershipControlsCommand = async (input, c
688
688
  if (labelValue.length <= 0) {
689
689
  throw new Error("Empty value provided for input HTTP label: Bucket.");
690
690
  }
691
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
691
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
692
692
  }
693
693
  else {
694
694
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -722,7 +722,7 @@ const serializeAws_restXmlDeleteBucketPolicyCommand = async (input, context) =>
722
722
  if (labelValue.length <= 0) {
723
723
  throw new Error("Empty value provided for input HTTP label: Bucket.");
724
724
  }
725
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
725
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
726
726
  }
727
727
  else {
728
728
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -756,7 +756,7 @@ const serializeAws_restXmlDeleteBucketReplicationCommand = async (input, context
756
756
  if (labelValue.length <= 0) {
757
757
  throw new Error("Empty value provided for input HTTP label: Bucket.");
758
758
  }
759
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
759
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
760
760
  }
761
761
  else {
762
762
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -790,7 +790,7 @@ const serializeAws_restXmlDeleteBucketTaggingCommand = async (input, context) =>
790
790
  if (labelValue.length <= 0) {
791
791
  throw new Error("Empty value provided for input HTTP label: Bucket.");
792
792
  }
793
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
793
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
794
794
  }
795
795
  else {
796
796
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -824,7 +824,7 @@ const serializeAws_restXmlDeleteBucketWebsiteCommand = async (input, context) =>
824
824
  if (labelValue.length <= 0) {
825
825
  throw new Error("Empty value provided for input HTTP label: Bucket.");
826
826
  }
827
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
827
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
828
828
  }
829
829
  else {
830
830
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -863,7 +863,7 @@ const serializeAws_restXmlDeleteObjectCommand = async (input, context) => {
863
863
  if (labelValue.length <= 0) {
864
864
  throw new Error("Empty value provided for input HTTP label: Bucket.");
865
865
  }
866
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
866
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
867
867
  }
868
868
  else {
869
869
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -875,7 +875,7 @@ const serializeAws_restXmlDeleteObjectCommand = async (input, context) => {
875
875
  }
876
876
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
877
877
  .split("/")
878
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
878
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
879
879
  .join("/"));
880
880
  }
881
881
  else {
@@ -920,7 +920,7 @@ const serializeAws_restXmlDeleteObjectsCommand = async (input, context) => {
920
920
  if (labelValue.length <= 0) {
921
921
  throw new Error("Empty value provided for input HTTP label: Bucket.");
922
922
  }
923
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
923
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
924
924
  }
925
925
  else {
926
926
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -965,7 +965,7 @@ const serializeAws_restXmlDeleteObjectTaggingCommand = async (input, context) =>
965
965
  if (labelValue.length <= 0) {
966
966
  throw new Error("Empty value provided for input HTTP label: Bucket.");
967
967
  }
968
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
968
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
969
969
  }
970
970
  else {
971
971
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -977,7 +977,7 @@ const serializeAws_restXmlDeleteObjectTaggingCommand = async (input, context) =>
977
977
  }
978
978
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
979
979
  .split("/")
980
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
980
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
981
981
  .join("/"));
982
982
  }
983
983
  else {
@@ -1013,7 +1013,7 @@ const serializeAws_restXmlDeletePublicAccessBlockCommand = async (input, context
1013
1013
  if (labelValue.length <= 0) {
1014
1014
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1015
1015
  }
1016
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1016
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1017
1017
  }
1018
1018
  else {
1019
1019
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1047,7 +1047,7 @@ const serializeAws_restXmlGetBucketAccelerateConfigurationCommand = async (input
1047
1047
  if (labelValue.length <= 0) {
1048
1048
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1049
1049
  }
1050
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1050
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1051
1051
  }
1052
1052
  else {
1053
1053
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1081,7 +1081,7 @@ const serializeAws_restXmlGetBucketAclCommand = async (input, context) => {
1081
1081
  if (labelValue.length <= 0) {
1082
1082
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1083
1083
  }
1084
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1084
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1085
1085
  }
1086
1086
  else {
1087
1087
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1115,7 +1115,7 @@ const serializeAws_restXmlGetBucketAnalyticsConfigurationCommand = async (input,
1115
1115
  if (labelValue.length <= 0) {
1116
1116
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1117
1117
  }
1118
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1118
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1119
1119
  }
1120
1120
  else {
1121
1121
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1151,7 +1151,7 @@ const serializeAws_restXmlGetBucketCorsCommand = async (input, context) => {
1151
1151
  if (labelValue.length <= 0) {
1152
1152
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1153
1153
  }
1154
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1154
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1155
1155
  }
1156
1156
  else {
1157
1157
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1185,7 +1185,7 @@ const serializeAws_restXmlGetBucketEncryptionCommand = async (input, context) =>
1185
1185
  if (labelValue.length <= 0) {
1186
1186
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1187
1187
  }
1188
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1188
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1189
1189
  }
1190
1190
  else {
1191
1191
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1215,7 +1215,7 @@ const serializeAws_restXmlGetBucketIntelligentTieringConfigurationCommand = asyn
1215
1215
  if (labelValue.length <= 0) {
1216
1216
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1217
1217
  }
1218
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1218
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1219
1219
  }
1220
1220
  else {
1221
1221
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1251,7 +1251,7 @@ const serializeAws_restXmlGetBucketInventoryConfigurationCommand = async (input,
1251
1251
  if (labelValue.length <= 0) {
1252
1252
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1253
1253
  }
1254
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1254
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1255
1255
  }
1256
1256
  else {
1257
1257
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1287,7 +1287,7 @@ const serializeAws_restXmlGetBucketLifecycleConfigurationCommand = async (input,
1287
1287
  if (labelValue.length <= 0) {
1288
1288
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1289
1289
  }
1290
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1290
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1291
1291
  }
1292
1292
  else {
1293
1293
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1321,7 +1321,7 @@ const serializeAws_restXmlGetBucketLocationCommand = async (input, context) => {
1321
1321
  if (labelValue.length <= 0) {
1322
1322
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1323
1323
  }
1324
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1324
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1325
1325
  }
1326
1326
  else {
1327
1327
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1355,7 +1355,7 @@ const serializeAws_restXmlGetBucketLoggingCommand = async (input, context) => {
1355
1355
  if (labelValue.length <= 0) {
1356
1356
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1357
1357
  }
1358
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1358
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1359
1359
  }
1360
1360
  else {
1361
1361
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1389,7 +1389,7 @@ const serializeAws_restXmlGetBucketMetricsConfigurationCommand = async (input, c
1389
1389
  if (labelValue.length <= 0) {
1390
1390
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1391
1391
  }
1392
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1392
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1393
1393
  }
1394
1394
  else {
1395
1395
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1425,7 +1425,7 @@ const serializeAws_restXmlGetBucketNotificationConfigurationCommand = async (inp
1425
1425
  if (labelValue.length <= 0) {
1426
1426
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1427
1427
  }
1428
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1428
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1429
1429
  }
1430
1430
  else {
1431
1431
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1459,7 +1459,7 @@ const serializeAws_restXmlGetBucketOwnershipControlsCommand = async (input, cont
1459
1459
  if (labelValue.length <= 0) {
1460
1460
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1461
1461
  }
1462
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1462
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1463
1463
  }
1464
1464
  else {
1465
1465
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1493,7 +1493,7 @@ const serializeAws_restXmlGetBucketPolicyCommand = async (input, context) => {
1493
1493
  if (labelValue.length <= 0) {
1494
1494
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1495
1495
  }
1496
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1496
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1497
1497
  }
1498
1498
  else {
1499
1499
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1527,7 +1527,7 @@ const serializeAws_restXmlGetBucketPolicyStatusCommand = async (input, context)
1527
1527
  if (labelValue.length <= 0) {
1528
1528
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1529
1529
  }
1530
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1530
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1531
1531
  }
1532
1532
  else {
1533
1533
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1561,7 +1561,7 @@ const serializeAws_restXmlGetBucketReplicationCommand = async (input, context) =
1561
1561
  if (labelValue.length <= 0) {
1562
1562
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1563
1563
  }
1564
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1564
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1565
1565
  }
1566
1566
  else {
1567
1567
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1595,7 +1595,7 @@ const serializeAws_restXmlGetBucketRequestPaymentCommand = async (input, context
1595
1595
  if (labelValue.length <= 0) {
1596
1596
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1597
1597
  }
1598
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1598
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1599
1599
  }
1600
1600
  else {
1601
1601
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1629,7 +1629,7 @@ const serializeAws_restXmlGetBucketTaggingCommand = async (input, context) => {
1629
1629
  if (labelValue.length <= 0) {
1630
1630
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1631
1631
  }
1632
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1632
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1633
1633
  }
1634
1634
  else {
1635
1635
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1663,7 +1663,7 @@ const serializeAws_restXmlGetBucketVersioningCommand = async (input, context) =>
1663
1663
  if (labelValue.length <= 0) {
1664
1664
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1665
1665
  }
1666
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1666
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1667
1667
  }
1668
1668
  else {
1669
1669
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1697,7 +1697,7 @@ const serializeAws_restXmlGetBucketWebsiteCommand = async (input, context) => {
1697
1697
  if (labelValue.length <= 0) {
1698
1698
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1699
1699
  }
1700
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1700
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1701
1701
  }
1702
1702
  else {
1703
1703
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1723,11 +1723,11 @@ const serializeAws_restXmlGetObjectCommand = async (input, context) => {
1723
1723
  const headers = {
1724
1724
  ...(isSerializableHeaderValue(input.IfMatch) && { "if-match": input.IfMatch }),
1725
1725
  ...(isSerializableHeaderValue(input.IfModifiedSince) && {
1726
- "if-modified-since": smithy_client_1.dateToUtcString(input.IfModifiedSince).toString(),
1726
+ "if-modified-since": (0, smithy_client_1.dateToUtcString)(input.IfModifiedSince).toString(),
1727
1727
  }),
1728
1728
  ...(isSerializableHeaderValue(input.IfNoneMatch) && { "if-none-match": input.IfNoneMatch }),
1729
1729
  ...(isSerializableHeaderValue(input.IfUnmodifiedSince) && {
1730
- "if-unmodified-since": smithy_client_1.dateToUtcString(input.IfUnmodifiedSince).toString(),
1730
+ "if-unmodified-since": (0, smithy_client_1.dateToUtcString)(input.IfUnmodifiedSince).toString(),
1731
1731
  }),
1732
1732
  ...(isSerializableHeaderValue(input.Range) && { range: input.Range }),
1733
1733
  ...(isSerializableHeaderValue(input.SSECustomerAlgorithm) && {
@@ -1751,7 +1751,7 @@ const serializeAws_restXmlGetObjectCommand = async (input, context) => {
1751
1751
  if (labelValue.length <= 0) {
1752
1752
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1753
1753
  }
1754
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1754
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1755
1755
  }
1756
1756
  else {
1757
1757
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1763,7 +1763,7 @@ const serializeAws_restXmlGetObjectCommand = async (input, context) => {
1763
1763
  }
1764
1764
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
1765
1765
  .split("/")
1766
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
1766
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
1767
1767
  .join("/"));
1768
1768
  }
1769
1769
  else {
@@ -1779,7 +1779,7 @@ const serializeAws_restXmlGetObjectCommand = async (input, context) => {
1779
1779
  ...(input.ResponseContentLanguage !== undefined && { "response-content-language": input.ResponseContentLanguage }),
1780
1780
  ...(input.ResponseContentType !== undefined && { "response-content-type": input.ResponseContentType }),
1781
1781
  ...(input.ResponseExpires !== undefined && {
1782
- "response-expires": smithy_client_1.dateToUtcString(input.ResponseExpires).toString(),
1782
+ "response-expires": (0, smithy_client_1.dateToUtcString)(input.ResponseExpires).toString(),
1783
1783
  }),
1784
1784
  ...(input.VersionId !== undefined && { versionId: input.VersionId }),
1785
1785
  ...(input.PartNumber !== undefined && { partNumber: input.PartNumber.toString() }),
@@ -1811,7 +1811,7 @@ const serializeAws_restXmlGetObjectAclCommand = async (input, context) => {
1811
1811
  if (labelValue.length <= 0) {
1812
1812
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1813
1813
  }
1814
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1814
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1815
1815
  }
1816
1816
  else {
1817
1817
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1823,7 +1823,7 @@ const serializeAws_restXmlGetObjectAclCommand = async (input, context) => {
1823
1823
  }
1824
1824
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
1825
1825
  .split("/")
1826
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
1826
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
1827
1827
  .join("/"));
1828
1828
  }
1829
1829
  else {
@@ -1874,7 +1874,7 @@ const serializeAws_restXmlGetObjectAttributesCommand = async (input, context) =>
1874
1874
  if (labelValue.length <= 0) {
1875
1875
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1876
1876
  }
1877
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1877
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1878
1878
  }
1879
1879
  else {
1880
1880
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1886,7 +1886,7 @@ const serializeAws_restXmlGetObjectAttributesCommand = async (input, context) =>
1886
1886
  }
1887
1887
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
1888
1888
  .split("/")
1889
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
1889
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
1890
1890
  .join("/"));
1891
1891
  }
1892
1892
  else {
@@ -1923,7 +1923,7 @@ const serializeAws_restXmlGetObjectLegalHoldCommand = async (input, context) =>
1923
1923
  if (labelValue.length <= 0) {
1924
1924
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1925
1925
  }
1926
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1926
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1927
1927
  }
1928
1928
  else {
1929
1929
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -1935,7 +1935,7 @@ const serializeAws_restXmlGetObjectLegalHoldCommand = async (input, context) =>
1935
1935
  }
1936
1936
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
1937
1937
  .split("/")
1938
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
1938
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
1939
1939
  .join("/"));
1940
1940
  }
1941
1941
  else {
@@ -1971,7 +1971,7 @@ const serializeAws_restXmlGetObjectLockConfigurationCommand = async (input, cont
1971
1971
  if (labelValue.length <= 0) {
1972
1972
  throw new Error("Empty value provided for input HTTP label: Bucket.");
1973
1973
  }
1974
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
1974
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
1975
1975
  }
1976
1976
  else {
1977
1977
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2006,7 +2006,7 @@ const serializeAws_restXmlGetObjectRetentionCommand = async (input, context) =>
2006
2006
  if (labelValue.length <= 0) {
2007
2007
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2008
2008
  }
2009
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2009
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2010
2010
  }
2011
2011
  else {
2012
2012
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2018,7 +2018,7 @@ const serializeAws_restXmlGetObjectRetentionCommand = async (input, context) =>
2018
2018
  }
2019
2019
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
2020
2020
  .split("/")
2021
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
2021
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
2022
2022
  .join("/"));
2023
2023
  }
2024
2024
  else {
@@ -2055,7 +2055,7 @@ const serializeAws_restXmlGetObjectTaggingCommand = async (input, context) => {
2055
2055
  if (labelValue.length <= 0) {
2056
2056
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2057
2057
  }
2058
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2058
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2059
2059
  }
2060
2060
  else {
2061
2061
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2067,7 +2067,7 @@ const serializeAws_restXmlGetObjectTaggingCommand = async (input, context) => {
2067
2067
  }
2068
2068
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
2069
2069
  .split("/")
2070
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
2070
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
2071
2071
  .join("/"));
2072
2072
  }
2073
2073
  else {
@@ -2104,7 +2104,7 @@ const serializeAws_restXmlGetObjectTorrentCommand = async (input, context) => {
2104
2104
  if (labelValue.length <= 0) {
2105
2105
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2106
2106
  }
2107
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2107
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2108
2108
  }
2109
2109
  else {
2110
2110
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2116,7 +2116,7 @@ const serializeAws_restXmlGetObjectTorrentCommand = async (input, context) => {
2116
2116
  }
2117
2117
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
2118
2118
  .split("/")
2119
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
2119
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
2120
2120
  .join("/"));
2121
2121
  }
2122
2122
  else {
@@ -2151,7 +2151,7 @@ const serializeAws_restXmlGetPublicAccessBlockCommand = async (input, context) =
2151
2151
  if (labelValue.length <= 0) {
2152
2152
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2153
2153
  }
2154
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2154
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2155
2155
  }
2156
2156
  else {
2157
2157
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2185,7 +2185,7 @@ const serializeAws_restXmlHeadBucketCommand = async (input, context) => {
2185
2185
  if (labelValue.length <= 0) {
2186
2186
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2187
2187
  }
2188
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2188
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2189
2189
  }
2190
2190
  else {
2191
2191
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2207,11 +2207,11 @@ const serializeAws_restXmlHeadObjectCommand = async (input, context) => {
2207
2207
  const headers = {
2208
2208
  ...(isSerializableHeaderValue(input.IfMatch) && { "if-match": input.IfMatch }),
2209
2209
  ...(isSerializableHeaderValue(input.IfModifiedSince) && {
2210
- "if-modified-since": smithy_client_1.dateToUtcString(input.IfModifiedSince).toString(),
2210
+ "if-modified-since": (0, smithy_client_1.dateToUtcString)(input.IfModifiedSince).toString(),
2211
2211
  }),
2212
2212
  ...(isSerializableHeaderValue(input.IfNoneMatch) && { "if-none-match": input.IfNoneMatch }),
2213
2213
  ...(isSerializableHeaderValue(input.IfUnmodifiedSince) && {
2214
- "if-unmodified-since": smithy_client_1.dateToUtcString(input.IfUnmodifiedSince).toString(),
2214
+ "if-unmodified-since": (0, smithy_client_1.dateToUtcString)(input.IfUnmodifiedSince).toString(),
2215
2215
  }),
2216
2216
  ...(isSerializableHeaderValue(input.Range) && { range: input.Range }),
2217
2217
  ...(isSerializableHeaderValue(input.SSECustomerAlgorithm) && {
@@ -2235,7 +2235,7 @@ const serializeAws_restXmlHeadObjectCommand = async (input, context) => {
2235
2235
  if (labelValue.length <= 0) {
2236
2236
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2237
2237
  }
2238
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2238
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2239
2239
  }
2240
2240
  else {
2241
2241
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2247,7 +2247,7 @@ const serializeAws_restXmlHeadObjectCommand = async (input, context) => {
2247
2247
  }
2248
2248
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
2249
2249
  .split("/")
2250
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
2250
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
2251
2251
  .join("/"));
2252
2252
  }
2253
2253
  else {
@@ -2283,7 +2283,7 @@ const serializeAws_restXmlListBucketAnalyticsConfigurationsCommand = async (inpu
2283
2283
  if (labelValue.length <= 0) {
2284
2284
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2285
2285
  }
2286
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2286
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2287
2287
  }
2288
2288
  else {
2289
2289
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2315,7 +2315,7 @@ const serializeAws_restXmlListBucketIntelligentTieringConfigurationsCommand = as
2315
2315
  if (labelValue.length <= 0) {
2316
2316
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2317
2317
  }
2318
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2318
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2319
2319
  }
2320
2320
  else {
2321
2321
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2351,7 +2351,7 @@ const serializeAws_restXmlListBucketInventoryConfigurationsCommand = async (inpu
2351
2351
  if (labelValue.length <= 0) {
2352
2352
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2353
2353
  }
2354
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2354
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2355
2355
  }
2356
2356
  else {
2357
2357
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2387,7 +2387,7 @@ const serializeAws_restXmlListBucketMetricsConfigurationsCommand = async (input,
2387
2387
  if (labelValue.length <= 0) {
2388
2388
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2389
2389
  }
2390
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2390
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2391
2391
  }
2392
2392
  else {
2393
2393
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2442,7 +2442,7 @@ const serializeAws_restXmlListMultipartUploadsCommand = async (input, context) =
2442
2442
  if (labelValue.length <= 0) {
2443
2443
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2444
2444
  }
2445
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2445
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2446
2446
  }
2447
2447
  else {
2448
2448
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2483,7 +2483,7 @@ const serializeAws_restXmlListObjectsCommand = async (input, context) => {
2483
2483
  if (labelValue.length <= 0) {
2484
2484
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2485
2485
  }
2486
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2486
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2487
2487
  }
2488
2488
  else {
2489
2489
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2522,7 +2522,7 @@ const serializeAws_restXmlListObjectsV2Command = async (input, context) => {
2522
2522
  if (labelValue.length <= 0) {
2523
2523
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2524
2524
  }
2525
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2525
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2526
2526
  }
2527
2527
  else {
2528
2528
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2563,7 +2563,7 @@ const serializeAws_restXmlListObjectVersionsCommand = async (input, context) =>
2563
2563
  if (labelValue.length <= 0) {
2564
2564
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2565
2565
  }
2566
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2566
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2567
2567
  }
2568
2568
  else {
2569
2569
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2613,7 +2613,7 @@ const serializeAws_restXmlListPartsCommand = async (input, context) => {
2613
2613
  if (labelValue.length <= 0) {
2614
2614
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2615
2615
  }
2616
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2616
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2617
2617
  }
2618
2618
  else {
2619
2619
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2625,7 +2625,7 @@ const serializeAws_restXmlListPartsCommand = async (input, context) => {
2625
2625
  }
2626
2626
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
2627
2627
  .split("/")
2628
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
2628
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
2629
2629
  .join("/"));
2630
2630
  }
2631
2631
  else {
@@ -2667,7 +2667,7 @@ const serializeAws_restXmlPutBucketAccelerateConfigurationCommand = async (input
2667
2667
  if (labelValue.length <= 0) {
2668
2668
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2669
2669
  }
2670
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2670
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2671
2671
  }
2672
2672
  else {
2673
2673
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2722,7 +2722,7 @@ const serializeAws_restXmlPutBucketAclCommand = async (input, context) => {
2722
2722
  if (labelValue.length <= 0) {
2723
2723
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2724
2724
  }
2725
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2725
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2726
2726
  }
2727
2727
  else {
2728
2728
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2767,7 +2767,7 @@ const serializeAws_restXmlPutBucketAnalyticsConfigurationCommand = async (input,
2767
2767
  if (labelValue.length <= 0) {
2768
2768
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2769
2769
  }
2770
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2770
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2771
2771
  }
2772
2772
  else {
2773
2773
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2817,7 +2817,7 @@ const serializeAws_restXmlPutBucketCorsCommand = async (input, context) => {
2817
2817
  if (labelValue.length <= 0) {
2818
2818
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2819
2819
  }
2820
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2820
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2821
2821
  }
2822
2822
  else {
2823
2823
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2866,7 +2866,7 @@ const serializeAws_restXmlPutBucketEncryptionCommand = async (input, context) =>
2866
2866
  if (labelValue.length <= 0) {
2867
2867
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2868
2868
  }
2869
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2869
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2870
2870
  }
2871
2871
  else {
2872
2872
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2908,7 +2908,7 @@ const serializeAws_restXmlPutBucketIntelligentTieringConfigurationCommand = asyn
2908
2908
  if (labelValue.length <= 0) {
2909
2909
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2910
2910
  }
2911
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2911
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2912
2912
  }
2913
2913
  else {
2914
2914
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -2954,7 +2954,7 @@ const serializeAws_restXmlPutBucketInventoryConfigurationCommand = async (input,
2954
2954
  if (labelValue.length <= 0) {
2955
2955
  throw new Error("Empty value provided for input HTTP label: Bucket.");
2956
2956
  }
2957
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
2957
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
2958
2958
  }
2959
2959
  else {
2960
2960
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3003,7 +3003,7 @@ const serializeAws_restXmlPutBucketLifecycleConfigurationCommand = async (input,
3003
3003
  if (labelValue.length <= 0) {
3004
3004
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3005
3005
  }
3006
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3006
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3007
3007
  }
3008
3008
  else {
3009
3009
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3053,7 +3053,7 @@ const serializeAws_restXmlPutBucketLoggingCommand = async (input, context) => {
3053
3053
  if (labelValue.length <= 0) {
3054
3054
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3055
3055
  }
3056
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3056
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3057
3057
  }
3058
3058
  else {
3059
3059
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3098,7 +3098,7 @@ const serializeAws_restXmlPutBucketMetricsConfigurationCommand = async (input, c
3098
3098
  if (labelValue.length <= 0) {
3099
3099
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3100
3100
  }
3101
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3101
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3102
3102
  }
3103
3103
  else {
3104
3104
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3147,7 +3147,7 @@ const serializeAws_restXmlPutBucketNotificationConfigurationCommand = async (inp
3147
3147
  if (labelValue.length <= 0) {
3148
3148
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3149
3149
  }
3150
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3150
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3151
3151
  }
3152
3152
  else {
3153
3153
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3193,7 +3193,7 @@ const serializeAws_restXmlPutBucketOwnershipControlsCommand = async (input, cont
3193
3193
  if (labelValue.length <= 0) {
3194
3194
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3195
3195
  }
3196
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3196
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3197
3197
  }
3198
3198
  else {
3199
3199
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3245,7 +3245,7 @@ const serializeAws_restXmlPutBucketPolicyCommand = async (input, context) => {
3245
3245
  if (labelValue.length <= 0) {
3246
3246
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3247
3247
  }
3248
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3248
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3249
3249
  }
3250
3250
  else {
3251
3251
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3293,7 +3293,7 @@ const serializeAws_restXmlPutBucketReplicationCommand = async (input, context) =
3293
3293
  if (labelValue.length <= 0) {
3294
3294
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3295
3295
  }
3296
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3296
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3297
3297
  }
3298
3298
  else {
3299
3299
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3342,7 +3342,7 @@ const serializeAws_restXmlPutBucketRequestPaymentCommand = async (input, context
3342
3342
  if (labelValue.length <= 0) {
3343
3343
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3344
3344
  }
3345
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3345
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3346
3346
  }
3347
3347
  else {
3348
3348
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3391,7 +3391,7 @@ const serializeAws_restXmlPutBucketTaggingCommand = async (input, context) => {
3391
3391
  if (labelValue.length <= 0) {
3392
3392
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3393
3393
  }
3394
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3394
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3395
3395
  }
3396
3396
  else {
3397
3397
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3441,7 +3441,7 @@ const serializeAws_restXmlPutBucketVersioningCommand = async (input, context) =>
3441
3441
  if (labelValue.length <= 0) {
3442
3442
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3443
3443
  }
3444
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3444
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3445
3445
  }
3446
3446
  else {
3447
3447
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3490,7 +3490,7 @@ const serializeAws_restXmlPutBucketWebsiteCommand = async (input, context) => {
3490
3490
  if (labelValue.length <= 0) {
3491
3491
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3492
3492
  }
3493
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3493
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3494
3494
  }
3495
3495
  else {
3496
3496
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3540,7 +3540,7 @@ const serializeAws_restXmlPutObjectCommand = async (input, context) => {
3540
3540
  ...(isSerializableHeaderValue(input.ChecksumCRC32C) && { "x-amz-checksum-crc32c": input.ChecksumCRC32C }),
3541
3541
  ...(isSerializableHeaderValue(input.ChecksumSHA1) && { "x-amz-checksum-sha1": input.ChecksumSHA1 }),
3542
3542
  ...(isSerializableHeaderValue(input.ChecksumSHA256) && { "x-amz-checksum-sha256": input.ChecksumSHA256 }),
3543
- ...(isSerializableHeaderValue(input.Expires) && { expires: smithy_client_1.dateToUtcString(input.Expires).toString() }),
3543
+ ...(isSerializableHeaderValue(input.Expires) && { expires: (0, smithy_client_1.dateToUtcString)(input.Expires).toString() }),
3544
3544
  ...(isSerializableHeaderValue(input.GrantFullControl) && { "x-amz-grant-full-control": input.GrantFullControl }),
3545
3545
  ...(isSerializableHeaderValue(input.GrantRead) && { "x-amz-grant-read": input.GrantRead }),
3546
3546
  ...(isSerializableHeaderValue(input.GrantReadACP) && { "x-amz-grant-read-acp": input.GrantReadACP }),
@@ -3594,7 +3594,7 @@ const serializeAws_restXmlPutObjectCommand = async (input, context) => {
3594
3594
  if (labelValue.length <= 0) {
3595
3595
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3596
3596
  }
3597
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3597
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3598
3598
  }
3599
3599
  else {
3600
3600
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3606,7 +3606,7 @@ const serializeAws_restXmlPutObjectCommand = async (input, context) => {
3606
3606
  }
3607
3607
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
3608
3608
  .split("/")
3609
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
3609
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
3610
3610
  .join("/"));
3611
3611
  }
3612
3612
  else {
@@ -3661,7 +3661,7 @@ const serializeAws_restXmlPutObjectAclCommand = async (input, context) => {
3661
3661
  if (labelValue.length <= 0) {
3662
3662
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3663
3663
  }
3664
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3664
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3665
3665
  }
3666
3666
  else {
3667
3667
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3673,7 +3673,7 @@ const serializeAws_restXmlPutObjectAclCommand = async (input, context) => {
3673
3673
  }
3674
3674
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
3675
3675
  .split("/")
3676
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
3676
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
3677
3677
  .join("/"));
3678
3678
  }
3679
3679
  else {
@@ -3725,7 +3725,7 @@ const serializeAws_restXmlPutObjectLegalHoldCommand = async (input, context) =>
3725
3725
  if (labelValue.length <= 0) {
3726
3726
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3727
3727
  }
3728
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3728
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3729
3729
  }
3730
3730
  else {
3731
3731
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3737,7 +3737,7 @@ const serializeAws_restXmlPutObjectLegalHoldCommand = async (input, context) =>
3737
3737
  }
3738
3738
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
3739
3739
  .split("/")
3740
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
3740
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
3741
3741
  .join("/"));
3742
3742
  }
3743
3743
  else {
@@ -3791,7 +3791,7 @@ const serializeAws_restXmlPutObjectLockConfigurationCommand = async (input, cont
3791
3791
  if (labelValue.length <= 0) {
3792
3792
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3793
3793
  }
3794
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3794
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3795
3795
  }
3796
3796
  else {
3797
3797
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3844,7 +3844,7 @@ const serializeAws_restXmlPutObjectRetentionCommand = async (input, context) =>
3844
3844
  if (labelValue.length <= 0) {
3845
3845
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3846
3846
  }
3847
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3847
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3848
3848
  }
3849
3849
  else {
3850
3850
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3856,7 +3856,7 @@ const serializeAws_restXmlPutObjectRetentionCommand = async (input, context) =>
3856
3856
  }
3857
3857
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
3858
3858
  .split("/")
3859
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
3859
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
3860
3860
  .join("/"));
3861
3861
  }
3862
3862
  else {
@@ -3909,7 +3909,7 @@ const serializeAws_restXmlPutObjectTaggingCommand = async (input, context) => {
3909
3909
  if (labelValue.length <= 0) {
3910
3910
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3911
3911
  }
3912
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3912
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3913
3913
  }
3914
3914
  else {
3915
3915
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -3921,7 +3921,7 @@ const serializeAws_restXmlPutObjectTaggingCommand = async (input, context) => {
3921
3921
  }
3922
3922
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
3923
3923
  .split("/")
3924
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
3924
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
3925
3925
  .join("/"));
3926
3926
  }
3927
3927
  else {
@@ -3972,7 +3972,7 @@ const serializeAws_restXmlPutPublicAccessBlockCommand = async (input, context) =
3972
3972
  if (labelValue.length <= 0) {
3973
3973
  throw new Error("Empty value provided for input HTTP label: Bucket.");
3974
3974
  }
3975
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
3975
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
3976
3976
  }
3977
3977
  else {
3978
3978
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -4021,7 +4021,7 @@ const serializeAws_restXmlRestoreObjectCommand = async (input, context) => {
4021
4021
  if (labelValue.length <= 0) {
4022
4022
  throw new Error("Empty value provided for input HTTP label: Bucket.");
4023
4023
  }
4024
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
4024
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
4025
4025
  }
4026
4026
  else {
4027
4027
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -4033,7 +4033,7 @@ const serializeAws_restXmlRestoreObjectCommand = async (input, context) => {
4033
4033
  }
4034
4034
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
4035
4035
  .split("/")
4036
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
4036
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
4037
4037
  .join("/"));
4038
4038
  }
4039
4039
  else {
@@ -4090,7 +4090,7 @@ const serializeAws_restXmlSelectObjectContentCommand = async (input, context) =>
4090
4090
  if (labelValue.length <= 0) {
4091
4091
  throw new Error("Empty value provided for input HTTP label: Bucket.");
4092
4092
  }
4093
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
4093
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
4094
4094
  }
4095
4095
  else {
4096
4096
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -4102,7 +4102,7 @@ const serializeAws_restXmlSelectObjectContentCommand = async (input, context) =>
4102
4102
  }
4103
4103
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
4104
4104
  .split("/")
4105
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
4105
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
4106
4106
  .join("/"));
4107
4107
  }
4108
4108
  else {
@@ -4189,7 +4189,7 @@ const serializeAws_restXmlUploadPartCommand = async (input, context) => {
4189
4189
  if (labelValue.length <= 0) {
4190
4190
  throw new Error("Empty value provided for input HTTP label: Bucket.");
4191
4191
  }
4192
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
4192
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
4193
4193
  }
4194
4194
  else {
4195
4195
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -4201,7 +4201,7 @@ const serializeAws_restXmlUploadPartCommand = async (input, context) => {
4201
4201
  }
4202
4202
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
4203
4203
  .split("/")
4204
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
4204
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
4205
4205
  .join("/"));
4206
4206
  }
4207
4207
  else {
@@ -4241,13 +4241,13 @@ const serializeAws_restXmlUploadPartCopyCommand = async (input, context) => {
4241
4241
  "x-amz-copy-source-if-match": input.CopySourceIfMatch,
4242
4242
  }),
4243
4243
  ...(isSerializableHeaderValue(input.CopySourceIfModifiedSince) && {
4244
- "x-amz-copy-source-if-modified-since": smithy_client_1.dateToUtcString(input.CopySourceIfModifiedSince).toString(),
4244
+ "x-amz-copy-source-if-modified-since": (0, smithy_client_1.dateToUtcString)(input.CopySourceIfModifiedSince).toString(),
4245
4245
  }),
4246
4246
  ...(isSerializableHeaderValue(input.CopySourceIfNoneMatch) && {
4247
4247
  "x-amz-copy-source-if-none-match": input.CopySourceIfNoneMatch,
4248
4248
  }),
4249
4249
  ...(isSerializableHeaderValue(input.CopySourceIfUnmodifiedSince) && {
4250
- "x-amz-copy-source-if-unmodified-since": smithy_client_1.dateToUtcString(input.CopySourceIfUnmodifiedSince).toString(),
4250
+ "x-amz-copy-source-if-unmodified-since": (0, smithy_client_1.dateToUtcString)(input.CopySourceIfUnmodifiedSince).toString(),
4251
4251
  }),
4252
4252
  ...(isSerializableHeaderValue(input.CopySourceRange) && { "x-amz-copy-source-range": input.CopySourceRange }),
4253
4253
  ...(isSerializableHeaderValue(input.SSECustomerAlgorithm) && {
@@ -4282,7 +4282,7 @@ const serializeAws_restXmlUploadPartCopyCommand = async (input, context) => {
4282
4282
  if (labelValue.length <= 0) {
4283
4283
  throw new Error("Empty value provided for input HTTP label: Bucket.");
4284
4284
  }
4285
- resolvedPath = resolvedPath.replace("{Bucket}", smithy_client_1.extendedEncodeURIComponent(labelValue));
4285
+ resolvedPath = resolvedPath.replace("{Bucket}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
4286
4286
  }
4287
4287
  else {
4288
4288
  throw new Error("No value provided for input HTTP label: Bucket.");
@@ -4294,7 +4294,7 @@ const serializeAws_restXmlUploadPartCopyCommand = async (input, context) => {
4294
4294
  }
4295
4295
  resolvedPath = resolvedPath.replace("{Key+}", labelValue
4296
4296
  .split("/")
4297
- .map((segment) => smithy_client_1.extendedEncodeURIComponent(segment))
4297
+ .map((segment) => (0, smithy_client_1.extendedEncodeURIComponent)(segment))
4298
4298
  .join("/"));
4299
4299
  }
4300
4300
  else {
@@ -4359,11 +4359,11 @@ const serializeAws_restXmlWriteGetObjectResponseCommand = async (input, context)
4359
4359
  }),
4360
4360
  ...(isSerializableHeaderValue(input.ETag) && { "x-amz-fwd-header-etag": input.ETag }),
4361
4361
  ...(isSerializableHeaderValue(input.Expires) && {
4362
- "x-amz-fwd-header-expires": smithy_client_1.dateToUtcString(input.Expires).toString(),
4362
+ "x-amz-fwd-header-expires": (0, smithy_client_1.dateToUtcString)(input.Expires).toString(),
4363
4363
  }),
4364
4364
  ...(isSerializableHeaderValue(input.Expiration) && { "x-amz-fwd-header-x-amz-expiration": input.Expiration }),
4365
4365
  ...(isSerializableHeaderValue(input.LastModified) && {
4366
- "x-amz-fwd-header-last-modified": smithy_client_1.dateToUtcString(input.LastModified).toString(),
4366
+ "x-amz-fwd-header-last-modified": (0, smithy_client_1.dateToUtcString)(input.LastModified).toString(),
4367
4367
  }),
4368
4368
  ...(isSerializableHeaderValue(input.MissingMeta) && {
4369
4369
  "x-amz-fwd-header-x-amz-missing-meta": input.MissingMeta.toString(),
@@ -4435,7 +4435,7 @@ const serializeAws_restXmlWriteGetObjectResponseCommand = async (input, context)
4435
4435
  throw new Error("Empty value provided for input host prefix: RequestRoute.");
4436
4436
  }
4437
4437
  resolvedHostname = resolvedHostname.replace("{RequestRoute}", input.RequestRoute);
4438
- if (!protocol_http_1.isValidHostname(resolvedHostname)) {
4438
+ if (!(0, protocol_http_1.isValidHostname)(resolvedHostname)) {
4439
4439
  throw new Error("ValidationError: prefixed hostname must be hostname compatible.");
4440
4440
  }
4441
4441
  }
@@ -4485,7 +4485,7 @@ const deserializeAws_restXmlAbortMultipartUploadCommandError = async (output, co
4485
4485
  $fault: "client",
4486
4486
  $metadata: deserializeMetadata(output),
4487
4487
  });
4488
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4488
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4489
4489
  }
4490
4490
  };
4491
4491
  const deserializeAws_restXmlCompleteMultipartUploadCommand = async (output, context) => {
@@ -4522,35 +4522,35 @@ const deserializeAws_restXmlCompleteMultipartUploadCommand = async (output, cont
4522
4522
  contents.SSEKMSKeyId = output.headers["x-amz-server-side-encryption-aws-kms-key-id"];
4523
4523
  }
4524
4524
  if (output.headers["x-amz-server-side-encryption-bucket-key-enabled"] !== undefined) {
4525
- contents.BucketKeyEnabled = smithy_client_1.parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
4525
+ contents.BucketKeyEnabled = (0, smithy_client_1.parseBoolean)(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
4526
4526
  }
4527
4527
  if (output.headers["x-amz-request-charged"] !== undefined) {
4528
4528
  contents.RequestCharged = output.headers["x-amz-request-charged"];
4529
4529
  }
4530
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4530
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4531
4531
  if (data["Bucket"] !== undefined) {
4532
- contents.Bucket = smithy_client_1.expectString(data["Bucket"]);
4532
+ contents.Bucket = (0, smithy_client_1.expectString)(data["Bucket"]);
4533
4533
  }
4534
4534
  if (data["ChecksumCRC32"] !== undefined) {
4535
- contents.ChecksumCRC32 = smithy_client_1.expectString(data["ChecksumCRC32"]);
4535
+ contents.ChecksumCRC32 = (0, smithy_client_1.expectString)(data["ChecksumCRC32"]);
4536
4536
  }
4537
4537
  if (data["ChecksumCRC32C"] !== undefined) {
4538
- contents.ChecksumCRC32C = smithy_client_1.expectString(data["ChecksumCRC32C"]);
4538
+ contents.ChecksumCRC32C = (0, smithy_client_1.expectString)(data["ChecksumCRC32C"]);
4539
4539
  }
4540
4540
  if (data["ChecksumSHA1"] !== undefined) {
4541
- contents.ChecksumSHA1 = smithy_client_1.expectString(data["ChecksumSHA1"]);
4541
+ contents.ChecksumSHA1 = (0, smithy_client_1.expectString)(data["ChecksumSHA1"]);
4542
4542
  }
4543
4543
  if (data["ChecksumSHA256"] !== undefined) {
4544
- contents.ChecksumSHA256 = smithy_client_1.expectString(data["ChecksumSHA256"]);
4544
+ contents.ChecksumSHA256 = (0, smithy_client_1.expectString)(data["ChecksumSHA256"]);
4545
4545
  }
4546
4546
  if (data["ETag"] !== undefined) {
4547
- contents.ETag = smithy_client_1.expectString(data["ETag"]);
4547
+ contents.ETag = (0, smithy_client_1.expectString)(data["ETag"]);
4548
4548
  }
4549
4549
  if (data["Key"] !== undefined) {
4550
- contents.Key = smithy_client_1.expectString(data["Key"]);
4550
+ contents.Key = (0, smithy_client_1.expectString)(data["Key"]);
4551
4551
  }
4552
4552
  if (data["Location"] !== undefined) {
4553
- contents.Location = smithy_client_1.expectString(data["Location"]);
4553
+ contents.Location = (0, smithy_client_1.expectString)(data["Location"]);
4554
4554
  }
4555
4555
  return Promise.resolve(contents);
4556
4556
  };
@@ -4571,7 +4571,7 @@ const deserializeAws_restXmlCompleteMultipartUploadCommandError = async (output,
4571
4571
  $fault: "client",
4572
4572
  $metadata: deserializeMetadata(output),
4573
4573
  });
4574
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4574
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4575
4575
  }
4576
4576
  };
4577
4577
  const deserializeAws_restXmlCopyObjectCommand = async (output, context) => {
@@ -4617,12 +4617,12 @@ const deserializeAws_restXmlCopyObjectCommand = async (output, context) => {
4617
4617
  contents.SSEKMSEncryptionContext = output.headers["x-amz-server-side-encryption-context"];
4618
4618
  }
4619
4619
  if (output.headers["x-amz-server-side-encryption-bucket-key-enabled"] !== undefined) {
4620
- contents.BucketKeyEnabled = smithy_client_1.parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
4620
+ contents.BucketKeyEnabled = (0, smithy_client_1.parseBoolean)(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
4621
4621
  }
4622
4622
  if (output.headers["x-amz-request-charged"] !== undefined) {
4623
4623
  contents.RequestCharged = output.headers["x-amz-request-charged"];
4624
4624
  }
4625
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
4625
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
4626
4626
  contents.CopyObjectResult = deserializeAws_restXmlCopyObjectResult(data, context);
4627
4627
  return Promise.resolve(contents);
4628
4628
  };
@@ -4646,7 +4646,7 @@ const deserializeAws_restXmlCopyObjectCommandError = async (output, context) =>
4646
4646
  $fault: "client",
4647
4647
  $metadata: deserializeMetadata(output),
4648
4648
  });
4649
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4649
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4650
4650
  }
4651
4651
  };
4652
4652
  const deserializeAws_restXmlCreateBucketCommand = async (output, context) => {
@@ -4686,7 +4686,7 @@ const deserializeAws_restXmlCreateBucketCommandError = async (output, context) =
4686
4686
  $fault: "client",
4687
4687
  $metadata: deserializeMetadata(output),
4688
4688
  });
4689
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4689
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4690
4690
  }
4691
4691
  };
4692
4692
  const deserializeAws_restXmlCreateMultipartUploadCommand = async (output, context) => {
@@ -4710,7 +4710,7 @@ const deserializeAws_restXmlCreateMultipartUploadCommand = async (output, contex
4710
4710
  UploadId: undefined,
4711
4711
  };
4712
4712
  if (output.headers["x-amz-abort-date"] !== undefined) {
4713
- contents.AbortDate = smithy_client_1.expectNonNull(smithy_client_1.parseRfc7231DateTime(output.headers["x-amz-abort-date"]));
4713
+ contents.AbortDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc7231DateTime)(output.headers["x-amz-abort-date"]));
4714
4714
  }
4715
4715
  if (output.headers["x-amz-abort-rule-id"] !== undefined) {
4716
4716
  contents.AbortRuleId = output.headers["x-amz-abort-rule-id"];
@@ -4731,7 +4731,7 @@ const deserializeAws_restXmlCreateMultipartUploadCommand = async (output, contex
4731
4731
  contents.SSEKMSEncryptionContext = output.headers["x-amz-server-side-encryption-context"];
4732
4732
  }
4733
4733
  if (output.headers["x-amz-server-side-encryption-bucket-key-enabled"] !== undefined) {
4734
- contents.BucketKeyEnabled = smithy_client_1.parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
4734
+ contents.BucketKeyEnabled = (0, smithy_client_1.parseBoolean)(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
4735
4735
  }
4736
4736
  if (output.headers["x-amz-request-charged"] !== undefined) {
4737
4737
  contents.RequestCharged = output.headers["x-amz-request-charged"];
@@ -4739,15 +4739,15 @@ const deserializeAws_restXmlCreateMultipartUploadCommand = async (output, contex
4739
4739
  if (output.headers["x-amz-checksum-algorithm"] !== undefined) {
4740
4740
  contents.ChecksumAlgorithm = output.headers["x-amz-checksum-algorithm"];
4741
4741
  }
4742
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
4742
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
4743
4743
  if (data["Bucket"] !== undefined) {
4744
- contents.Bucket = smithy_client_1.expectString(data["Bucket"]);
4744
+ contents.Bucket = (0, smithy_client_1.expectString)(data["Bucket"]);
4745
4745
  }
4746
4746
  if (data["Key"] !== undefined) {
4747
- contents.Key = smithy_client_1.expectString(data["Key"]);
4747
+ contents.Key = (0, smithy_client_1.expectString)(data["Key"]);
4748
4748
  }
4749
4749
  if (data["UploadId"] !== undefined) {
4750
- contents.UploadId = smithy_client_1.expectString(data["UploadId"]);
4750
+ contents.UploadId = (0, smithy_client_1.expectString)(data["UploadId"]);
4751
4751
  }
4752
4752
  return Promise.resolve(contents);
4753
4753
  };
@@ -4768,7 +4768,7 @@ const deserializeAws_restXmlCreateMultipartUploadCommandError = async (output, c
4768
4768
  $fault: "client",
4769
4769
  $metadata: deserializeMetadata(output),
4770
4770
  });
4771
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4771
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4772
4772
  }
4773
4773
  };
4774
4774
  const deserializeAws_restXmlDeleteBucketCommand = async (output, context) => {
@@ -4798,7 +4798,7 @@ const deserializeAws_restXmlDeleteBucketCommandError = async (output, context) =
4798
4798
  $fault: "client",
4799
4799
  $metadata: deserializeMetadata(output),
4800
4800
  });
4801
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4801
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4802
4802
  }
4803
4803
  };
4804
4804
  const deserializeAws_restXmlDeleteBucketAnalyticsConfigurationCommand = async (output, context) => {
@@ -4828,7 +4828,7 @@ const deserializeAws_restXmlDeleteBucketAnalyticsConfigurationCommandError = asy
4828
4828
  $fault: "client",
4829
4829
  $metadata: deserializeMetadata(output),
4830
4830
  });
4831
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4831
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4832
4832
  }
4833
4833
  };
4834
4834
  const deserializeAws_restXmlDeleteBucketCorsCommand = async (output, context) => {
@@ -4858,7 +4858,7 @@ const deserializeAws_restXmlDeleteBucketCorsCommandError = async (output, contex
4858
4858
  $fault: "client",
4859
4859
  $metadata: deserializeMetadata(output),
4860
4860
  });
4861
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4861
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4862
4862
  }
4863
4863
  };
4864
4864
  const deserializeAws_restXmlDeleteBucketEncryptionCommand = async (output, context) => {
@@ -4888,7 +4888,7 @@ const deserializeAws_restXmlDeleteBucketEncryptionCommandError = async (output,
4888
4888
  $fault: "client",
4889
4889
  $metadata: deserializeMetadata(output),
4890
4890
  });
4891
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4891
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4892
4892
  }
4893
4893
  };
4894
4894
  const deserializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommand = async (output, context) => {
@@ -4918,7 +4918,7 @@ const deserializeAws_restXmlDeleteBucketIntelligentTieringConfigurationCommandEr
4918
4918
  $fault: "client",
4919
4919
  $metadata: deserializeMetadata(output),
4920
4920
  });
4921
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4921
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4922
4922
  }
4923
4923
  };
4924
4924
  const deserializeAws_restXmlDeleteBucketInventoryConfigurationCommand = async (output, context) => {
@@ -4948,7 +4948,7 @@ const deserializeAws_restXmlDeleteBucketInventoryConfigurationCommandError = asy
4948
4948
  $fault: "client",
4949
4949
  $metadata: deserializeMetadata(output),
4950
4950
  });
4951
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4951
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4952
4952
  }
4953
4953
  };
4954
4954
  const deserializeAws_restXmlDeleteBucketLifecycleCommand = async (output, context) => {
@@ -4978,7 +4978,7 @@ const deserializeAws_restXmlDeleteBucketLifecycleCommandError = async (output, c
4978
4978
  $fault: "client",
4979
4979
  $metadata: deserializeMetadata(output),
4980
4980
  });
4981
- throw smithy_client_1.decorateServiceException(response, parsedBody);
4981
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
4982
4982
  }
4983
4983
  };
4984
4984
  const deserializeAws_restXmlDeleteBucketMetricsConfigurationCommand = async (output, context) => {
@@ -5008,7 +5008,7 @@ const deserializeAws_restXmlDeleteBucketMetricsConfigurationCommandError = async
5008
5008
  $fault: "client",
5009
5009
  $metadata: deserializeMetadata(output),
5010
5010
  });
5011
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5011
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5012
5012
  }
5013
5013
  };
5014
5014
  const deserializeAws_restXmlDeleteBucketOwnershipControlsCommand = async (output, context) => {
@@ -5038,7 +5038,7 @@ const deserializeAws_restXmlDeleteBucketOwnershipControlsCommandError = async (o
5038
5038
  $fault: "client",
5039
5039
  $metadata: deserializeMetadata(output),
5040
5040
  });
5041
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5041
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5042
5042
  }
5043
5043
  };
5044
5044
  const deserializeAws_restXmlDeleteBucketPolicyCommand = async (output, context) => {
@@ -5068,7 +5068,7 @@ const deserializeAws_restXmlDeleteBucketPolicyCommandError = async (output, cont
5068
5068
  $fault: "client",
5069
5069
  $metadata: deserializeMetadata(output),
5070
5070
  });
5071
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5071
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5072
5072
  }
5073
5073
  };
5074
5074
  const deserializeAws_restXmlDeleteBucketReplicationCommand = async (output, context) => {
@@ -5098,7 +5098,7 @@ const deserializeAws_restXmlDeleteBucketReplicationCommandError = async (output,
5098
5098
  $fault: "client",
5099
5099
  $metadata: deserializeMetadata(output),
5100
5100
  });
5101
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5101
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5102
5102
  }
5103
5103
  };
5104
5104
  const deserializeAws_restXmlDeleteBucketTaggingCommand = async (output, context) => {
@@ -5128,7 +5128,7 @@ const deserializeAws_restXmlDeleteBucketTaggingCommandError = async (output, con
5128
5128
  $fault: "client",
5129
5129
  $metadata: deserializeMetadata(output),
5130
5130
  });
5131
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5131
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5132
5132
  }
5133
5133
  };
5134
5134
  const deserializeAws_restXmlDeleteBucketWebsiteCommand = async (output, context) => {
@@ -5158,7 +5158,7 @@ const deserializeAws_restXmlDeleteBucketWebsiteCommandError = async (output, con
5158
5158
  $fault: "client",
5159
5159
  $metadata: deserializeMetadata(output),
5160
5160
  });
5161
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5161
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5162
5162
  }
5163
5163
  };
5164
5164
  const deserializeAws_restXmlDeleteObjectCommand = async (output, context) => {
@@ -5172,7 +5172,7 @@ const deserializeAws_restXmlDeleteObjectCommand = async (output, context) => {
5172
5172
  VersionId: undefined,
5173
5173
  };
5174
5174
  if (output.headers["x-amz-delete-marker"] !== undefined) {
5175
- contents.DeleteMarker = smithy_client_1.parseBoolean(output.headers["x-amz-delete-marker"]);
5175
+ contents.DeleteMarker = (0, smithy_client_1.parseBoolean)(output.headers["x-amz-delete-marker"]);
5176
5176
  }
5177
5177
  if (output.headers["x-amz-version-id"] !== undefined) {
5178
5178
  contents.VersionId = output.headers["x-amz-version-id"];
@@ -5200,7 +5200,7 @@ const deserializeAws_restXmlDeleteObjectCommandError = async (output, context) =
5200
5200
  $fault: "client",
5201
5201
  $metadata: deserializeMetadata(output),
5202
5202
  });
5203
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5203
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5204
5204
  }
5205
5205
  };
5206
5206
  const deserializeAws_restXmlDeleteObjectsCommand = async (output, context) => {
@@ -5216,18 +5216,18 @@ const deserializeAws_restXmlDeleteObjectsCommand = async (output, context) => {
5216
5216
  if (output.headers["x-amz-request-charged"] !== undefined) {
5217
5217
  contents.RequestCharged = output.headers["x-amz-request-charged"];
5218
5218
  }
5219
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5219
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5220
5220
  if (data.Deleted === "") {
5221
5221
  contents.Deleted = [];
5222
5222
  }
5223
5223
  if (data["Deleted"] !== undefined) {
5224
- contents.Deleted = deserializeAws_restXmlDeletedObjects(smithy_client_1.getArrayIfSingleItem(data["Deleted"]), context);
5224
+ contents.Deleted = deserializeAws_restXmlDeletedObjects((0, smithy_client_1.getArrayIfSingleItem)(data["Deleted"]), context);
5225
5225
  }
5226
5226
  if (data.Error === "") {
5227
5227
  contents.Errors = [];
5228
5228
  }
5229
5229
  if (data["Error"] !== undefined) {
5230
- contents.Errors = deserializeAws_restXmlErrors(smithy_client_1.getArrayIfSingleItem(data["Error"]), context);
5230
+ contents.Errors = deserializeAws_restXmlErrors((0, smithy_client_1.getArrayIfSingleItem)(data["Error"]), context);
5231
5231
  }
5232
5232
  return Promise.resolve(contents);
5233
5233
  };
@@ -5248,7 +5248,7 @@ const deserializeAws_restXmlDeleteObjectsCommandError = async (output, context)
5248
5248
  $fault: "client",
5249
5249
  $metadata: deserializeMetadata(output),
5250
5250
  });
5251
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5251
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5252
5252
  }
5253
5253
  };
5254
5254
  const deserializeAws_restXmlDeleteObjectTaggingCommand = async (output, context) => {
@@ -5282,7 +5282,7 @@ const deserializeAws_restXmlDeleteObjectTaggingCommandError = async (output, con
5282
5282
  $fault: "client",
5283
5283
  $metadata: deserializeMetadata(output),
5284
5284
  });
5285
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5285
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5286
5286
  }
5287
5287
  };
5288
5288
  const deserializeAws_restXmlDeletePublicAccessBlockCommand = async (output, context) => {
@@ -5312,7 +5312,7 @@ const deserializeAws_restXmlDeletePublicAccessBlockCommandError = async (output,
5312
5312
  $fault: "client",
5313
5313
  $metadata: deserializeMetadata(output),
5314
5314
  });
5315
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5315
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5316
5316
  }
5317
5317
  };
5318
5318
  const deserializeAws_restXmlGetBucketAccelerateConfigurationCommand = async (output, context) => {
@@ -5323,9 +5323,9 @@ const deserializeAws_restXmlGetBucketAccelerateConfigurationCommand = async (out
5323
5323
  $metadata: deserializeMetadata(output),
5324
5324
  Status: undefined,
5325
5325
  };
5326
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5326
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5327
5327
  if (data["Status"] !== undefined) {
5328
- contents.Status = smithy_client_1.expectString(data["Status"]);
5328
+ contents.Status = (0, smithy_client_1.expectString)(data["Status"]);
5329
5329
  }
5330
5330
  return Promise.resolve(contents);
5331
5331
  };
@@ -5346,7 +5346,7 @@ const deserializeAws_restXmlGetBucketAccelerateConfigurationCommandError = async
5346
5346
  $fault: "client",
5347
5347
  $metadata: deserializeMetadata(output),
5348
5348
  });
5349
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5349
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5350
5350
  }
5351
5351
  };
5352
5352
  const deserializeAws_restXmlGetBucketAclCommand = async (output, context) => {
@@ -5358,12 +5358,12 @@ const deserializeAws_restXmlGetBucketAclCommand = async (output, context) => {
5358
5358
  Grants: undefined,
5359
5359
  Owner: undefined,
5360
5360
  };
5361
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5361
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5362
5362
  if (data.AccessControlList === "") {
5363
5363
  contents.Grants = [];
5364
5364
  }
5365
5365
  if (data["AccessControlList"] !== undefined && data["AccessControlList"]["Grant"] !== undefined) {
5366
- contents.Grants = deserializeAws_restXmlGrants(smithy_client_1.getArrayIfSingleItem(data["AccessControlList"]["Grant"]), context);
5366
+ contents.Grants = deserializeAws_restXmlGrants((0, smithy_client_1.getArrayIfSingleItem)(data["AccessControlList"]["Grant"]), context);
5367
5367
  }
5368
5368
  if (data["Owner"] !== undefined) {
5369
5369
  contents.Owner = deserializeAws_restXmlOwner(data["Owner"], context);
@@ -5387,7 +5387,7 @@ const deserializeAws_restXmlGetBucketAclCommandError = async (output, context) =
5387
5387
  $fault: "client",
5388
5388
  $metadata: deserializeMetadata(output),
5389
5389
  });
5390
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5390
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5391
5391
  }
5392
5392
  };
5393
5393
  const deserializeAws_restXmlGetBucketAnalyticsConfigurationCommand = async (output, context) => {
@@ -5398,7 +5398,7 @@ const deserializeAws_restXmlGetBucketAnalyticsConfigurationCommand = async (outp
5398
5398
  $metadata: deserializeMetadata(output),
5399
5399
  AnalyticsConfiguration: undefined,
5400
5400
  };
5401
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
5401
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
5402
5402
  contents.AnalyticsConfiguration = deserializeAws_restXmlAnalyticsConfiguration(data, context);
5403
5403
  return Promise.resolve(contents);
5404
5404
  };
@@ -5419,7 +5419,7 @@ const deserializeAws_restXmlGetBucketAnalyticsConfigurationCommandError = async
5419
5419
  $fault: "client",
5420
5420
  $metadata: deserializeMetadata(output),
5421
5421
  });
5422
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5422
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5423
5423
  }
5424
5424
  };
5425
5425
  const deserializeAws_restXmlGetBucketCorsCommand = async (output, context) => {
@@ -5430,12 +5430,12 @@ const deserializeAws_restXmlGetBucketCorsCommand = async (output, context) => {
5430
5430
  $metadata: deserializeMetadata(output),
5431
5431
  CORSRules: undefined,
5432
5432
  };
5433
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5433
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5434
5434
  if (data.CORSRule === "") {
5435
5435
  contents.CORSRules = [];
5436
5436
  }
5437
5437
  if (data["CORSRule"] !== undefined) {
5438
- contents.CORSRules = deserializeAws_restXmlCORSRules(smithy_client_1.getArrayIfSingleItem(data["CORSRule"]), context);
5438
+ contents.CORSRules = deserializeAws_restXmlCORSRules((0, smithy_client_1.getArrayIfSingleItem)(data["CORSRule"]), context);
5439
5439
  }
5440
5440
  return Promise.resolve(contents);
5441
5441
  };
@@ -5456,7 +5456,7 @@ const deserializeAws_restXmlGetBucketCorsCommandError = async (output, context)
5456
5456
  $fault: "client",
5457
5457
  $metadata: deserializeMetadata(output),
5458
5458
  });
5459
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5459
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5460
5460
  }
5461
5461
  };
5462
5462
  const deserializeAws_restXmlGetBucketEncryptionCommand = async (output, context) => {
@@ -5467,7 +5467,7 @@ const deserializeAws_restXmlGetBucketEncryptionCommand = async (output, context)
5467
5467
  $metadata: deserializeMetadata(output),
5468
5468
  ServerSideEncryptionConfiguration: undefined,
5469
5469
  };
5470
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
5470
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
5471
5471
  contents.ServerSideEncryptionConfiguration = deserializeAws_restXmlServerSideEncryptionConfiguration(data, context);
5472
5472
  return Promise.resolve(contents);
5473
5473
  };
@@ -5488,7 +5488,7 @@ const deserializeAws_restXmlGetBucketEncryptionCommandError = async (output, con
5488
5488
  $fault: "client",
5489
5489
  $metadata: deserializeMetadata(output),
5490
5490
  });
5491
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5491
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5492
5492
  }
5493
5493
  };
5494
5494
  const deserializeAws_restXmlGetBucketIntelligentTieringConfigurationCommand = async (output, context) => {
@@ -5499,7 +5499,7 @@ const deserializeAws_restXmlGetBucketIntelligentTieringConfigurationCommand = as
5499
5499
  $metadata: deserializeMetadata(output),
5500
5500
  IntelligentTieringConfiguration: undefined,
5501
5501
  };
5502
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
5502
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
5503
5503
  contents.IntelligentTieringConfiguration = deserializeAws_restXmlIntelligentTieringConfiguration(data, context);
5504
5504
  return Promise.resolve(contents);
5505
5505
  };
@@ -5520,7 +5520,7 @@ const deserializeAws_restXmlGetBucketIntelligentTieringConfigurationCommandError
5520
5520
  $fault: "client",
5521
5521
  $metadata: deserializeMetadata(output),
5522
5522
  });
5523
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5523
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5524
5524
  }
5525
5525
  };
5526
5526
  const deserializeAws_restXmlGetBucketInventoryConfigurationCommand = async (output, context) => {
@@ -5531,7 +5531,7 @@ const deserializeAws_restXmlGetBucketInventoryConfigurationCommand = async (outp
5531
5531
  $metadata: deserializeMetadata(output),
5532
5532
  InventoryConfiguration: undefined,
5533
5533
  };
5534
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
5534
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
5535
5535
  contents.InventoryConfiguration = deserializeAws_restXmlInventoryConfiguration(data, context);
5536
5536
  return Promise.resolve(contents);
5537
5537
  };
@@ -5552,7 +5552,7 @@ const deserializeAws_restXmlGetBucketInventoryConfigurationCommandError = async
5552
5552
  $fault: "client",
5553
5553
  $metadata: deserializeMetadata(output),
5554
5554
  });
5555
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5555
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5556
5556
  }
5557
5557
  };
5558
5558
  const deserializeAws_restXmlGetBucketLifecycleConfigurationCommand = async (output, context) => {
@@ -5563,12 +5563,12 @@ const deserializeAws_restXmlGetBucketLifecycleConfigurationCommand = async (outp
5563
5563
  $metadata: deserializeMetadata(output),
5564
5564
  Rules: undefined,
5565
5565
  };
5566
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5566
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5567
5567
  if (data.Rule === "") {
5568
5568
  contents.Rules = [];
5569
5569
  }
5570
5570
  if (data["Rule"] !== undefined) {
5571
- contents.Rules = deserializeAws_restXmlLifecycleRules(smithy_client_1.getArrayIfSingleItem(data["Rule"]), context);
5571
+ contents.Rules = deserializeAws_restXmlLifecycleRules((0, smithy_client_1.getArrayIfSingleItem)(data["Rule"]), context);
5572
5572
  }
5573
5573
  return Promise.resolve(contents);
5574
5574
  };
@@ -5589,7 +5589,7 @@ const deserializeAws_restXmlGetBucketLifecycleConfigurationCommandError = async
5589
5589
  $fault: "client",
5590
5590
  $metadata: deserializeMetadata(output),
5591
5591
  });
5592
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5592
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5593
5593
  }
5594
5594
  };
5595
5595
  const deserializeAws_restXmlGetBucketLocationCommand = async (output, context) => {
@@ -5600,9 +5600,9 @@ const deserializeAws_restXmlGetBucketLocationCommand = async (output, context) =
5600
5600
  $metadata: deserializeMetadata(output),
5601
5601
  LocationConstraint: undefined,
5602
5602
  };
5603
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5603
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5604
5604
  if (data["LocationConstraint"] !== undefined) {
5605
- contents.LocationConstraint = smithy_client_1.expectString(data["LocationConstraint"]);
5605
+ contents.LocationConstraint = (0, smithy_client_1.expectString)(data["LocationConstraint"]);
5606
5606
  }
5607
5607
  return Promise.resolve(contents);
5608
5608
  };
@@ -5623,7 +5623,7 @@ const deserializeAws_restXmlGetBucketLocationCommandError = async (output, conte
5623
5623
  $fault: "client",
5624
5624
  $metadata: deserializeMetadata(output),
5625
5625
  });
5626
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5626
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5627
5627
  }
5628
5628
  };
5629
5629
  const deserializeAws_restXmlGetBucketLoggingCommand = async (output, context) => {
@@ -5634,7 +5634,7 @@ const deserializeAws_restXmlGetBucketLoggingCommand = async (output, context) =>
5634
5634
  $metadata: deserializeMetadata(output),
5635
5635
  LoggingEnabled: undefined,
5636
5636
  };
5637
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5637
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5638
5638
  if (data["LoggingEnabled"] !== undefined) {
5639
5639
  contents.LoggingEnabled = deserializeAws_restXmlLoggingEnabled(data["LoggingEnabled"], context);
5640
5640
  }
@@ -5657,7 +5657,7 @@ const deserializeAws_restXmlGetBucketLoggingCommandError = async (output, contex
5657
5657
  $fault: "client",
5658
5658
  $metadata: deserializeMetadata(output),
5659
5659
  });
5660
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5660
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5661
5661
  }
5662
5662
  };
5663
5663
  const deserializeAws_restXmlGetBucketMetricsConfigurationCommand = async (output, context) => {
@@ -5668,7 +5668,7 @@ const deserializeAws_restXmlGetBucketMetricsConfigurationCommand = async (output
5668
5668
  $metadata: deserializeMetadata(output),
5669
5669
  MetricsConfiguration: undefined,
5670
5670
  };
5671
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
5671
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
5672
5672
  contents.MetricsConfiguration = deserializeAws_restXmlMetricsConfiguration(data, context);
5673
5673
  return Promise.resolve(contents);
5674
5674
  };
@@ -5689,7 +5689,7 @@ const deserializeAws_restXmlGetBucketMetricsConfigurationCommandError = async (o
5689
5689
  $fault: "client",
5690
5690
  $metadata: deserializeMetadata(output),
5691
5691
  });
5692
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5692
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5693
5693
  }
5694
5694
  };
5695
5695
  const deserializeAws_restXmlGetBucketNotificationConfigurationCommand = async (output, context) => {
@@ -5703,7 +5703,7 @@ const deserializeAws_restXmlGetBucketNotificationConfigurationCommand = async (o
5703
5703
  QueueConfigurations: undefined,
5704
5704
  TopicConfigurations: undefined,
5705
5705
  };
5706
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5706
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5707
5707
  if (data["EventBridgeConfiguration"] !== undefined) {
5708
5708
  contents.EventBridgeConfiguration = deserializeAws_restXmlEventBridgeConfiguration(data["EventBridgeConfiguration"], context);
5709
5709
  }
@@ -5711,19 +5711,19 @@ const deserializeAws_restXmlGetBucketNotificationConfigurationCommand = async (o
5711
5711
  contents.LambdaFunctionConfigurations = [];
5712
5712
  }
5713
5713
  if (data["CloudFunctionConfiguration"] !== undefined) {
5714
- contents.LambdaFunctionConfigurations = deserializeAws_restXmlLambdaFunctionConfigurationList(smithy_client_1.getArrayIfSingleItem(data["CloudFunctionConfiguration"]), context);
5714
+ contents.LambdaFunctionConfigurations = deserializeAws_restXmlLambdaFunctionConfigurationList((0, smithy_client_1.getArrayIfSingleItem)(data["CloudFunctionConfiguration"]), context);
5715
5715
  }
5716
5716
  if (data.QueueConfiguration === "") {
5717
5717
  contents.QueueConfigurations = [];
5718
5718
  }
5719
5719
  if (data["QueueConfiguration"] !== undefined) {
5720
- contents.QueueConfigurations = deserializeAws_restXmlQueueConfigurationList(smithy_client_1.getArrayIfSingleItem(data["QueueConfiguration"]), context);
5720
+ contents.QueueConfigurations = deserializeAws_restXmlQueueConfigurationList((0, smithy_client_1.getArrayIfSingleItem)(data["QueueConfiguration"]), context);
5721
5721
  }
5722
5722
  if (data.TopicConfiguration === "") {
5723
5723
  contents.TopicConfigurations = [];
5724
5724
  }
5725
5725
  if (data["TopicConfiguration"] !== undefined) {
5726
- contents.TopicConfigurations = deserializeAws_restXmlTopicConfigurationList(smithy_client_1.getArrayIfSingleItem(data["TopicConfiguration"]), context);
5726
+ contents.TopicConfigurations = deserializeAws_restXmlTopicConfigurationList((0, smithy_client_1.getArrayIfSingleItem)(data["TopicConfiguration"]), context);
5727
5727
  }
5728
5728
  return Promise.resolve(contents);
5729
5729
  };
@@ -5744,7 +5744,7 @@ const deserializeAws_restXmlGetBucketNotificationConfigurationCommandError = asy
5744
5744
  $fault: "client",
5745
5745
  $metadata: deserializeMetadata(output),
5746
5746
  });
5747
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5747
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5748
5748
  }
5749
5749
  };
5750
5750
  const deserializeAws_restXmlGetBucketOwnershipControlsCommand = async (output, context) => {
@@ -5755,7 +5755,7 @@ const deserializeAws_restXmlGetBucketOwnershipControlsCommand = async (output, c
5755
5755
  $metadata: deserializeMetadata(output),
5756
5756
  OwnershipControls: undefined,
5757
5757
  };
5758
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
5758
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
5759
5759
  contents.OwnershipControls = deserializeAws_restXmlOwnershipControls(data, context);
5760
5760
  return Promise.resolve(contents);
5761
5761
  };
@@ -5776,7 +5776,7 @@ const deserializeAws_restXmlGetBucketOwnershipControlsCommandError = async (outp
5776
5776
  $fault: "client",
5777
5777
  $metadata: deserializeMetadata(output),
5778
5778
  });
5779
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5779
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5780
5780
  }
5781
5781
  };
5782
5782
  const deserializeAws_restXmlGetBucketPolicyCommand = async (output, context) => {
@@ -5788,7 +5788,7 @@ const deserializeAws_restXmlGetBucketPolicyCommand = async (output, context) =>
5788
5788
  Policy: undefined,
5789
5789
  };
5790
5790
  const data = await collectBodyString(output.body, context);
5791
- contents.Policy = smithy_client_1.expectString(data);
5791
+ contents.Policy = (0, smithy_client_1.expectString)(data);
5792
5792
  return Promise.resolve(contents);
5793
5793
  };
5794
5794
  exports.deserializeAws_restXmlGetBucketPolicyCommand = deserializeAws_restXmlGetBucketPolicyCommand;
@@ -5808,7 +5808,7 @@ const deserializeAws_restXmlGetBucketPolicyCommandError = async (output, context
5808
5808
  $fault: "client",
5809
5809
  $metadata: deserializeMetadata(output),
5810
5810
  });
5811
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5811
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5812
5812
  }
5813
5813
  };
5814
5814
  const deserializeAws_restXmlGetBucketPolicyStatusCommand = async (output, context) => {
@@ -5819,7 +5819,7 @@ const deserializeAws_restXmlGetBucketPolicyStatusCommand = async (output, contex
5819
5819
  $metadata: deserializeMetadata(output),
5820
5820
  PolicyStatus: undefined,
5821
5821
  };
5822
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
5822
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
5823
5823
  contents.PolicyStatus = deserializeAws_restXmlPolicyStatus(data, context);
5824
5824
  return Promise.resolve(contents);
5825
5825
  };
@@ -5840,7 +5840,7 @@ const deserializeAws_restXmlGetBucketPolicyStatusCommandError = async (output, c
5840
5840
  $fault: "client",
5841
5841
  $metadata: deserializeMetadata(output),
5842
5842
  });
5843
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5843
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5844
5844
  }
5845
5845
  };
5846
5846
  const deserializeAws_restXmlGetBucketReplicationCommand = async (output, context) => {
@@ -5851,7 +5851,7 @@ const deserializeAws_restXmlGetBucketReplicationCommand = async (output, context
5851
5851
  $metadata: deserializeMetadata(output),
5852
5852
  ReplicationConfiguration: undefined,
5853
5853
  };
5854
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
5854
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
5855
5855
  contents.ReplicationConfiguration = deserializeAws_restXmlReplicationConfiguration(data, context);
5856
5856
  return Promise.resolve(contents);
5857
5857
  };
@@ -5872,7 +5872,7 @@ const deserializeAws_restXmlGetBucketReplicationCommandError = async (output, co
5872
5872
  $fault: "client",
5873
5873
  $metadata: deserializeMetadata(output),
5874
5874
  });
5875
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5875
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5876
5876
  }
5877
5877
  };
5878
5878
  const deserializeAws_restXmlGetBucketRequestPaymentCommand = async (output, context) => {
@@ -5883,9 +5883,9 @@ const deserializeAws_restXmlGetBucketRequestPaymentCommand = async (output, cont
5883
5883
  $metadata: deserializeMetadata(output),
5884
5884
  Payer: undefined,
5885
5885
  };
5886
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5886
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5887
5887
  if (data["Payer"] !== undefined) {
5888
- contents.Payer = smithy_client_1.expectString(data["Payer"]);
5888
+ contents.Payer = (0, smithy_client_1.expectString)(data["Payer"]);
5889
5889
  }
5890
5890
  return Promise.resolve(contents);
5891
5891
  };
@@ -5906,7 +5906,7 @@ const deserializeAws_restXmlGetBucketRequestPaymentCommandError = async (output,
5906
5906
  $fault: "client",
5907
5907
  $metadata: deserializeMetadata(output),
5908
5908
  });
5909
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5909
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5910
5910
  }
5911
5911
  };
5912
5912
  const deserializeAws_restXmlGetBucketTaggingCommand = async (output, context) => {
@@ -5917,12 +5917,12 @@ const deserializeAws_restXmlGetBucketTaggingCommand = async (output, context) =>
5917
5917
  $metadata: deserializeMetadata(output),
5918
5918
  TagSet: undefined,
5919
5919
  };
5920
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5920
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5921
5921
  if (data.TagSet === "") {
5922
5922
  contents.TagSet = [];
5923
5923
  }
5924
5924
  if (data["TagSet"] !== undefined && data["TagSet"]["Tag"] !== undefined) {
5925
- contents.TagSet = deserializeAws_restXmlTagSet(smithy_client_1.getArrayIfSingleItem(data["TagSet"]["Tag"]), context);
5925
+ contents.TagSet = deserializeAws_restXmlTagSet((0, smithy_client_1.getArrayIfSingleItem)(data["TagSet"]["Tag"]), context);
5926
5926
  }
5927
5927
  return Promise.resolve(contents);
5928
5928
  };
@@ -5943,7 +5943,7 @@ const deserializeAws_restXmlGetBucketTaggingCommandError = async (output, contex
5943
5943
  $fault: "client",
5944
5944
  $metadata: deserializeMetadata(output),
5945
5945
  });
5946
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5946
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5947
5947
  }
5948
5948
  };
5949
5949
  const deserializeAws_restXmlGetBucketVersioningCommand = async (output, context) => {
@@ -5955,12 +5955,12 @@ const deserializeAws_restXmlGetBucketVersioningCommand = async (output, context)
5955
5955
  MFADelete: undefined,
5956
5956
  Status: undefined,
5957
5957
  };
5958
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5958
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5959
5959
  if (data["MfaDelete"] !== undefined) {
5960
- contents.MFADelete = smithy_client_1.expectString(data["MfaDelete"]);
5960
+ contents.MFADelete = (0, smithy_client_1.expectString)(data["MfaDelete"]);
5961
5961
  }
5962
5962
  if (data["Status"] !== undefined) {
5963
- contents.Status = smithy_client_1.expectString(data["Status"]);
5963
+ contents.Status = (0, smithy_client_1.expectString)(data["Status"]);
5964
5964
  }
5965
5965
  return Promise.resolve(contents);
5966
5966
  };
@@ -5981,7 +5981,7 @@ const deserializeAws_restXmlGetBucketVersioningCommandError = async (output, con
5981
5981
  $fault: "client",
5982
5982
  $metadata: deserializeMetadata(output),
5983
5983
  });
5984
- throw smithy_client_1.decorateServiceException(response, parsedBody);
5984
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
5985
5985
  }
5986
5986
  };
5987
5987
  const deserializeAws_restXmlGetBucketWebsiteCommand = async (output, context) => {
@@ -5995,7 +5995,7 @@ const deserializeAws_restXmlGetBucketWebsiteCommand = async (output, context) =>
5995
5995
  RedirectAllRequestsTo: undefined,
5996
5996
  RoutingRules: undefined,
5997
5997
  };
5998
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
5998
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
5999
5999
  if (data["ErrorDocument"] !== undefined) {
6000
6000
  contents.ErrorDocument = deserializeAws_restXmlErrorDocument(data["ErrorDocument"], context);
6001
6001
  }
@@ -6009,7 +6009,7 @@ const deserializeAws_restXmlGetBucketWebsiteCommand = async (output, context) =>
6009
6009
  contents.RoutingRules = [];
6010
6010
  }
6011
6011
  if (data["RoutingRules"] !== undefined && data["RoutingRules"]["RoutingRule"] !== undefined) {
6012
- contents.RoutingRules = deserializeAws_restXmlRoutingRules(smithy_client_1.getArrayIfSingleItem(data["RoutingRules"]["RoutingRule"]), context);
6012
+ contents.RoutingRules = deserializeAws_restXmlRoutingRules((0, smithy_client_1.getArrayIfSingleItem)(data["RoutingRules"]["RoutingRule"]), context);
6013
6013
  }
6014
6014
  return Promise.resolve(contents);
6015
6015
  };
@@ -6030,7 +6030,7 @@ const deserializeAws_restXmlGetBucketWebsiteCommandError = async (output, contex
6030
6030
  $fault: "client",
6031
6031
  $metadata: deserializeMetadata(output),
6032
6032
  });
6033
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6033
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6034
6034
  }
6035
6035
  };
6036
6036
  const deserializeAws_restXmlGetObjectCommand = async (output, context) => {
@@ -6077,7 +6077,7 @@ const deserializeAws_restXmlGetObjectCommand = async (output, context) => {
6077
6077
  WebsiteRedirectLocation: undefined,
6078
6078
  };
6079
6079
  if (output.headers["x-amz-delete-marker"] !== undefined) {
6080
- contents.DeleteMarker = smithy_client_1.parseBoolean(output.headers["x-amz-delete-marker"]);
6080
+ contents.DeleteMarker = (0, smithy_client_1.parseBoolean)(output.headers["x-amz-delete-marker"]);
6081
6081
  }
6082
6082
  if (output.headers["accept-ranges"] !== undefined) {
6083
6083
  contents.AcceptRanges = output.headers["accept-ranges"];
@@ -6089,10 +6089,10 @@ const deserializeAws_restXmlGetObjectCommand = async (output, context) => {
6089
6089
  contents.Restore = output.headers["x-amz-restore"];
6090
6090
  }
6091
6091
  if (output.headers["last-modified"] !== undefined) {
6092
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseRfc7231DateTime(output.headers["last-modified"]));
6092
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc7231DateTime)(output.headers["last-modified"]));
6093
6093
  }
6094
6094
  if (output.headers["content-length"] !== undefined) {
6095
- contents.ContentLength = smithy_client_1.strictParseLong(output.headers["content-length"]);
6095
+ contents.ContentLength = (0, smithy_client_1.strictParseLong)(output.headers["content-length"]);
6096
6096
  }
6097
6097
  if (output.headers["etag"] !== undefined) {
6098
6098
  contents.ETag = output.headers["etag"];
@@ -6110,7 +6110,7 @@ const deserializeAws_restXmlGetObjectCommand = async (output, context) => {
6110
6110
  contents.ChecksumSHA256 = output.headers["x-amz-checksum-sha256"];
6111
6111
  }
6112
6112
  if (output.headers["x-amz-missing-meta"] !== undefined) {
6113
- contents.MissingMeta = smithy_client_1.strictParseInt32(output.headers["x-amz-missing-meta"]);
6113
+ contents.MissingMeta = (0, smithy_client_1.strictParseInt32)(output.headers["x-amz-missing-meta"]);
6114
6114
  }
6115
6115
  if (output.headers["x-amz-version-id"] !== undefined) {
6116
6116
  contents.VersionId = output.headers["x-amz-version-id"];
@@ -6134,7 +6134,7 @@ const deserializeAws_restXmlGetObjectCommand = async (output, context) => {
6134
6134
  contents.ContentType = output.headers["content-type"];
6135
6135
  }
6136
6136
  if (output.headers["expires"] !== undefined) {
6137
- contents.Expires = smithy_client_1.expectNonNull(smithy_client_1.parseRfc7231DateTime(output.headers["expires"]));
6137
+ contents.Expires = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc7231DateTime)(output.headers["expires"]));
6138
6138
  }
6139
6139
  if (output.headers["x-amz-website-redirect-location"] !== undefined) {
6140
6140
  contents.WebsiteRedirectLocation = output.headers["x-amz-website-redirect-location"];
@@ -6152,7 +6152,7 @@ const deserializeAws_restXmlGetObjectCommand = async (output, context) => {
6152
6152
  contents.SSEKMSKeyId = output.headers["x-amz-server-side-encryption-aws-kms-key-id"];
6153
6153
  }
6154
6154
  if (output.headers["x-amz-server-side-encryption-bucket-key-enabled"] !== undefined) {
6155
- contents.BucketKeyEnabled = smithy_client_1.parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
6155
+ contents.BucketKeyEnabled = (0, smithy_client_1.parseBoolean)(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
6156
6156
  }
6157
6157
  if (output.headers["x-amz-storage-class"] !== undefined) {
6158
6158
  contents.StorageClass = output.headers["x-amz-storage-class"];
@@ -6164,16 +6164,16 @@ const deserializeAws_restXmlGetObjectCommand = async (output, context) => {
6164
6164
  contents.ReplicationStatus = output.headers["x-amz-replication-status"];
6165
6165
  }
6166
6166
  if (output.headers["x-amz-mp-parts-count"] !== undefined) {
6167
- contents.PartsCount = smithy_client_1.strictParseInt32(output.headers["x-amz-mp-parts-count"]);
6167
+ contents.PartsCount = (0, smithy_client_1.strictParseInt32)(output.headers["x-amz-mp-parts-count"]);
6168
6168
  }
6169
6169
  if (output.headers["x-amz-tagging-count"] !== undefined) {
6170
- contents.TagCount = smithy_client_1.strictParseInt32(output.headers["x-amz-tagging-count"]);
6170
+ contents.TagCount = (0, smithy_client_1.strictParseInt32)(output.headers["x-amz-tagging-count"]);
6171
6171
  }
6172
6172
  if (output.headers["x-amz-object-lock-mode"] !== undefined) {
6173
6173
  contents.ObjectLockMode = output.headers["x-amz-object-lock-mode"];
6174
6174
  }
6175
6175
  if (output.headers["x-amz-object-lock-retain-until-date"] !== undefined) {
6176
- contents.ObjectLockRetainUntilDate = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.headers["x-amz-object-lock-retain-until-date"]));
6176
+ contents.ObjectLockRetainUntilDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.headers["x-amz-object-lock-retain-until-date"]));
6177
6177
  }
6178
6178
  if (output.headers["x-amz-object-lock-legal-hold"] !== undefined) {
6179
6179
  contents.ObjectLockLegalHoldStatus = output.headers["x-amz-object-lock-legal-hold"];
@@ -6213,7 +6213,7 @@ const deserializeAws_restXmlGetObjectCommandError = async (output, context) => {
6213
6213
  $fault: "client",
6214
6214
  $metadata: deserializeMetadata(output),
6215
6215
  });
6216
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6216
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6217
6217
  }
6218
6218
  };
6219
6219
  const deserializeAws_restXmlGetObjectAclCommand = async (output, context) => {
@@ -6229,12 +6229,12 @@ const deserializeAws_restXmlGetObjectAclCommand = async (output, context) => {
6229
6229
  if (output.headers["x-amz-request-charged"] !== undefined) {
6230
6230
  contents.RequestCharged = output.headers["x-amz-request-charged"];
6231
6231
  }
6232
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6232
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6233
6233
  if (data.AccessControlList === "") {
6234
6234
  contents.Grants = [];
6235
6235
  }
6236
6236
  if (data["AccessControlList"] !== undefined && data["AccessControlList"]["Grant"] !== undefined) {
6237
- contents.Grants = deserializeAws_restXmlGrants(smithy_client_1.getArrayIfSingleItem(data["AccessControlList"]["Grant"]), context);
6237
+ contents.Grants = deserializeAws_restXmlGrants((0, smithy_client_1.getArrayIfSingleItem)(data["AccessControlList"]["Grant"]), context);
6238
6238
  }
6239
6239
  if (data["Owner"] !== undefined) {
6240
6240
  contents.Owner = deserializeAws_restXmlOwner(data["Owner"], context);
@@ -6261,7 +6261,7 @@ const deserializeAws_restXmlGetObjectAclCommandError = async (output, context) =
6261
6261
  $fault: "client",
6262
6262
  $metadata: deserializeMetadata(output),
6263
6263
  });
6264
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6264
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6265
6265
  }
6266
6266
  };
6267
6267
  const deserializeAws_restXmlGetObjectAttributesCommand = async (output, context) => {
@@ -6281,10 +6281,10 @@ const deserializeAws_restXmlGetObjectAttributesCommand = async (output, context)
6281
6281
  VersionId: undefined,
6282
6282
  };
6283
6283
  if (output.headers["x-amz-delete-marker"] !== undefined) {
6284
- contents.DeleteMarker = smithy_client_1.parseBoolean(output.headers["x-amz-delete-marker"]);
6284
+ contents.DeleteMarker = (0, smithy_client_1.parseBoolean)(output.headers["x-amz-delete-marker"]);
6285
6285
  }
6286
6286
  if (output.headers["last-modified"] !== undefined) {
6287
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseRfc7231DateTime(output.headers["last-modified"]));
6287
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc7231DateTime)(output.headers["last-modified"]));
6288
6288
  }
6289
6289
  if (output.headers["x-amz-version-id"] !== undefined) {
6290
6290
  contents.VersionId = output.headers["x-amz-version-id"];
@@ -6292,21 +6292,21 @@ const deserializeAws_restXmlGetObjectAttributesCommand = async (output, context)
6292
6292
  if (output.headers["x-amz-request-charged"] !== undefined) {
6293
6293
  contents.RequestCharged = output.headers["x-amz-request-charged"];
6294
6294
  }
6295
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6295
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6296
6296
  if (data["Checksum"] !== undefined) {
6297
6297
  contents.Checksum = deserializeAws_restXmlChecksum(data["Checksum"], context);
6298
6298
  }
6299
6299
  if (data["ETag"] !== undefined) {
6300
- contents.ETag = smithy_client_1.expectString(data["ETag"]);
6300
+ contents.ETag = (0, smithy_client_1.expectString)(data["ETag"]);
6301
6301
  }
6302
6302
  if (data["ObjectParts"] !== undefined) {
6303
6303
  contents.ObjectParts = deserializeAws_restXmlGetObjectAttributesParts(data["ObjectParts"], context);
6304
6304
  }
6305
6305
  if (data["ObjectSize"] !== undefined) {
6306
- contents.ObjectSize = smithy_client_1.strictParseLong(data["ObjectSize"]);
6306
+ contents.ObjectSize = (0, smithy_client_1.strictParseLong)(data["ObjectSize"]);
6307
6307
  }
6308
6308
  if (data["StorageClass"] !== undefined) {
6309
- contents.StorageClass = smithy_client_1.expectString(data["StorageClass"]);
6309
+ contents.StorageClass = (0, smithy_client_1.expectString)(data["StorageClass"]);
6310
6310
  }
6311
6311
  return Promise.resolve(contents);
6312
6312
  };
@@ -6330,7 +6330,7 @@ const deserializeAws_restXmlGetObjectAttributesCommandError = async (output, con
6330
6330
  $fault: "client",
6331
6331
  $metadata: deserializeMetadata(output),
6332
6332
  });
6333
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6333
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6334
6334
  }
6335
6335
  };
6336
6336
  const deserializeAws_restXmlGetObjectLegalHoldCommand = async (output, context) => {
@@ -6341,7 +6341,7 @@ const deserializeAws_restXmlGetObjectLegalHoldCommand = async (output, context)
6341
6341
  $metadata: deserializeMetadata(output),
6342
6342
  LegalHold: undefined,
6343
6343
  };
6344
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
6344
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
6345
6345
  contents.LegalHold = deserializeAws_restXmlObjectLockLegalHold(data, context);
6346
6346
  return Promise.resolve(contents);
6347
6347
  };
@@ -6362,7 +6362,7 @@ const deserializeAws_restXmlGetObjectLegalHoldCommandError = async (output, cont
6362
6362
  $fault: "client",
6363
6363
  $metadata: deserializeMetadata(output),
6364
6364
  });
6365
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6365
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6366
6366
  }
6367
6367
  };
6368
6368
  const deserializeAws_restXmlGetObjectLockConfigurationCommand = async (output, context) => {
@@ -6373,7 +6373,7 @@ const deserializeAws_restXmlGetObjectLockConfigurationCommand = async (output, c
6373
6373
  $metadata: deserializeMetadata(output),
6374
6374
  ObjectLockConfiguration: undefined,
6375
6375
  };
6376
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
6376
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
6377
6377
  contents.ObjectLockConfiguration = deserializeAws_restXmlObjectLockConfiguration(data, context);
6378
6378
  return Promise.resolve(contents);
6379
6379
  };
@@ -6394,7 +6394,7 @@ const deserializeAws_restXmlGetObjectLockConfigurationCommandError = async (outp
6394
6394
  $fault: "client",
6395
6395
  $metadata: deserializeMetadata(output),
6396
6396
  });
6397
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6397
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6398
6398
  }
6399
6399
  };
6400
6400
  const deserializeAws_restXmlGetObjectRetentionCommand = async (output, context) => {
@@ -6405,7 +6405,7 @@ const deserializeAws_restXmlGetObjectRetentionCommand = async (output, context)
6405
6405
  $metadata: deserializeMetadata(output),
6406
6406
  Retention: undefined,
6407
6407
  };
6408
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
6408
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
6409
6409
  contents.Retention = deserializeAws_restXmlObjectLockRetention(data, context);
6410
6410
  return Promise.resolve(contents);
6411
6411
  };
@@ -6426,7 +6426,7 @@ const deserializeAws_restXmlGetObjectRetentionCommandError = async (output, cont
6426
6426
  $fault: "client",
6427
6427
  $metadata: deserializeMetadata(output),
6428
6428
  });
6429
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6429
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6430
6430
  }
6431
6431
  };
6432
6432
  const deserializeAws_restXmlGetObjectTaggingCommand = async (output, context) => {
@@ -6441,12 +6441,12 @@ const deserializeAws_restXmlGetObjectTaggingCommand = async (output, context) =>
6441
6441
  if (output.headers["x-amz-version-id"] !== undefined) {
6442
6442
  contents.VersionId = output.headers["x-amz-version-id"];
6443
6443
  }
6444
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6444
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6445
6445
  if (data.TagSet === "") {
6446
6446
  contents.TagSet = [];
6447
6447
  }
6448
6448
  if (data["TagSet"] !== undefined && data["TagSet"]["Tag"] !== undefined) {
6449
- contents.TagSet = deserializeAws_restXmlTagSet(smithy_client_1.getArrayIfSingleItem(data["TagSet"]["Tag"]), context);
6449
+ contents.TagSet = deserializeAws_restXmlTagSet((0, smithy_client_1.getArrayIfSingleItem)(data["TagSet"]["Tag"]), context);
6450
6450
  }
6451
6451
  return Promise.resolve(contents);
6452
6452
  };
@@ -6467,7 +6467,7 @@ const deserializeAws_restXmlGetObjectTaggingCommandError = async (output, contex
6467
6467
  $fault: "client",
6468
6468
  $metadata: deserializeMetadata(output),
6469
6469
  });
6470
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6470
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6471
6471
  }
6472
6472
  };
6473
6473
  const deserializeAws_restXmlGetObjectTorrentCommand = async (output, context) => {
@@ -6503,7 +6503,7 @@ const deserializeAws_restXmlGetObjectTorrentCommandError = async (output, contex
6503
6503
  $fault: "client",
6504
6504
  $metadata: deserializeMetadata(output),
6505
6505
  });
6506
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6506
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6507
6507
  }
6508
6508
  };
6509
6509
  const deserializeAws_restXmlGetPublicAccessBlockCommand = async (output, context) => {
@@ -6514,7 +6514,7 @@ const deserializeAws_restXmlGetPublicAccessBlockCommand = async (output, context
6514
6514
  $metadata: deserializeMetadata(output),
6515
6515
  PublicAccessBlockConfiguration: undefined,
6516
6516
  };
6517
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
6517
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
6518
6518
  contents.PublicAccessBlockConfiguration = deserializeAws_restXmlPublicAccessBlockConfiguration(data, context);
6519
6519
  return Promise.resolve(contents);
6520
6520
  };
@@ -6535,7 +6535,7 @@ const deserializeAws_restXmlGetPublicAccessBlockCommandError = async (output, co
6535
6535
  $fault: "client",
6536
6536
  $metadata: deserializeMetadata(output),
6537
6537
  });
6538
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6538
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6539
6539
  }
6540
6540
  };
6541
6541
  const deserializeAws_restXmlHeadBucketCommand = async (output, context) => {
@@ -6568,7 +6568,7 @@ const deserializeAws_restXmlHeadBucketCommandError = async (output, context) =>
6568
6568
  $fault: "client",
6569
6569
  $metadata: deserializeMetadata(output),
6570
6570
  });
6571
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6571
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6572
6572
  }
6573
6573
  };
6574
6574
  const deserializeAws_restXmlHeadObjectCommand = async (output, context) => {
@@ -6613,7 +6613,7 @@ const deserializeAws_restXmlHeadObjectCommand = async (output, context) => {
6613
6613
  WebsiteRedirectLocation: undefined,
6614
6614
  };
6615
6615
  if (output.headers["x-amz-delete-marker"] !== undefined) {
6616
- contents.DeleteMarker = smithy_client_1.parseBoolean(output.headers["x-amz-delete-marker"]);
6616
+ contents.DeleteMarker = (0, smithy_client_1.parseBoolean)(output.headers["x-amz-delete-marker"]);
6617
6617
  }
6618
6618
  if (output.headers["accept-ranges"] !== undefined) {
6619
6619
  contents.AcceptRanges = output.headers["accept-ranges"];
@@ -6628,10 +6628,10 @@ const deserializeAws_restXmlHeadObjectCommand = async (output, context) => {
6628
6628
  contents.ArchiveStatus = output.headers["x-amz-archive-status"];
6629
6629
  }
6630
6630
  if (output.headers["last-modified"] !== undefined) {
6631
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseRfc7231DateTime(output.headers["last-modified"]));
6631
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc7231DateTime)(output.headers["last-modified"]));
6632
6632
  }
6633
6633
  if (output.headers["content-length"] !== undefined) {
6634
- contents.ContentLength = smithy_client_1.strictParseLong(output.headers["content-length"]);
6634
+ contents.ContentLength = (0, smithy_client_1.strictParseLong)(output.headers["content-length"]);
6635
6635
  }
6636
6636
  if (output.headers["x-amz-checksum-crc32"] !== undefined) {
6637
6637
  contents.ChecksumCRC32 = output.headers["x-amz-checksum-crc32"];
@@ -6649,7 +6649,7 @@ const deserializeAws_restXmlHeadObjectCommand = async (output, context) => {
6649
6649
  contents.ETag = output.headers["etag"];
6650
6650
  }
6651
6651
  if (output.headers["x-amz-missing-meta"] !== undefined) {
6652
- contents.MissingMeta = smithy_client_1.strictParseInt32(output.headers["x-amz-missing-meta"]);
6652
+ contents.MissingMeta = (0, smithy_client_1.strictParseInt32)(output.headers["x-amz-missing-meta"]);
6653
6653
  }
6654
6654
  if (output.headers["x-amz-version-id"] !== undefined) {
6655
6655
  contents.VersionId = output.headers["x-amz-version-id"];
@@ -6670,7 +6670,7 @@ const deserializeAws_restXmlHeadObjectCommand = async (output, context) => {
6670
6670
  contents.ContentType = output.headers["content-type"];
6671
6671
  }
6672
6672
  if (output.headers["expires"] !== undefined) {
6673
- contents.Expires = smithy_client_1.expectNonNull(smithy_client_1.parseRfc7231DateTime(output.headers["expires"]));
6673
+ contents.Expires = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc7231DateTime)(output.headers["expires"]));
6674
6674
  }
6675
6675
  if (output.headers["x-amz-website-redirect-location"] !== undefined) {
6676
6676
  contents.WebsiteRedirectLocation = output.headers["x-amz-website-redirect-location"];
@@ -6688,7 +6688,7 @@ const deserializeAws_restXmlHeadObjectCommand = async (output, context) => {
6688
6688
  contents.SSEKMSKeyId = output.headers["x-amz-server-side-encryption-aws-kms-key-id"];
6689
6689
  }
6690
6690
  if (output.headers["x-amz-server-side-encryption-bucket-key-enabled"] !== undefined) {
6691
- contents.BucketKeyEnabled = smithy_client_1.parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
6691
+ contents.BucketKeyEnabled = (0, smithy_client_1.parseBoolean)(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
6692
6692
  }
6693
6693
  if (output.headers["x-amz-storage-class"] !== undefined) {
6694
6694
  contents.StorageClass = output.headers["x-amz-storage-class"];
@@ -6700,13 +6700,13 @@ const deserializeAws_restXmlHeadObjectCommand = async (output, context) => {
6700
6700
  contents.ReplicationStatus = output.headers["x-amz-replication-status"];
6701
6701
  }
6702
6702
  if (output.headers["x-amz-mp-parts-count"] !== undefined) {
6703
- contents.PartsCount = smithy_client_1.strictParseInt32(output.headers["x-amz-mp-parts-count"]);
6703
+ contents.PartsCount = (0, smithy_client_1.strictParseInt32)(output.headers["x-amz-mp-parts-count"]);
6704
6704
  }
6705
6705
  if (output.headers["x-amz-object-lock-mode"] !== undefined) {
6706
6706
  contents.ObjectLockMode = output.headers["x-amz-object-lock-mode"];
6707
6707
  }
6708
6708
  if (output.headers["x-amz-object-lock-retain-until-date"] !== undefined) {
6709
- contents.ObjectLockRetainUntilDate = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output.headers["x-amz-object-lock-retain-until-date"]));
6709
+ contents.ObjectLockRetainUntilDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.headers["x-amz-object-lock-retain-until-date"]));
6710
6710
  }
6711
6711
  if (output.headers["x-amz-object-lock-legal-hold"] !== undefined) {
6712
6712
  contents.ObjectLockLegalHoldStatus = output.headers["x-amz-object-lock-legal-hold"];
@@ -6742,7 +6742,7 @@ const deserializeAws_restXmlHeadObjectCommandError = async (output, context) =>
6742
6742
  $fault: "client",
6743
6743
  $metadata: deserializeMetadata(output),
6744
6744
  });
6745
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6745
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6746
6746
  }
6747
6747
  };
6748
6748
  const deserializeAws_restXmlListBucketAnalyticsConfigurationsCommand = async (output, context) => {
@@ -6756,21 +6756,21 @@ const deserializeAws_restXmlListBucketAnalyticsConfigurationsCommand = async (ou
6756
6756
  IsTruncated: undefined,
6757
6757
  NextContinuationToken: undefined,
6758
6758
  };
6759
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6759
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6760
6760
  if (data.AnalyticsConfiguration === "") {
6761
6761
  contents.AnalyticsConfigurationList = [];
6762
6762
  }
6763
6763
  if (data["AnalyticsConfiguration"] !== undefined) {
6764
- contents.AnalyticsConfigurationList = deserializeAws_restXmlAnalyticsConfigurationList(smithy_client_1.getArrayIfSingleItem(data["AnalyticsConfiguration"]), context);
6764
+ contents.AnalyticsConfigurationList = deserializeAws_restXmlAnalyticsConfigurationList((0, smithy_client_1.getArrayIfSingleItem)(data["AnalyticsConfiguration"]), context);
6765
6765
  }
6766
6766
  if (data["ContinuationToken"] !== undefined) {
6767
- contents.ContinuationToken = smithy_client_1.expectString(data["ContinuationToken"]);
6767
+ contents.ContinuationToken = (0, smithy_client_1.expectString)(data["ContinuationToken"]);
6768
6768
  }
6769
6769
  if (data["IsTruncated"] !== undefined) {
6770
- contents.IsTruncated = smithy_client_1.parseBoolean(data["IsTruncated"]);
6770
+ contents.IsTruncated = (0, smithy_client_1.parseBoolean)(data["IsTruncated"]);
6771
6771
  }
6772
6772
  if (data["NextContinuationToken"] !== undefined) {
6773
- contents.NextContinuationToken = smithy_client_1.expectString(data["NextContinuationToken"]);
6773
+ contents.NextContinuationToken = (0, smithy_client_1.expectString)(data["NextContinuationToken"]);
6774
6774
  }
6775
6775
  return Promise.resolve(contents);
6776
6776
  };
@@ -6791,7 +6791,7 @@ const deserializeAws_restXmlListBucketAnalyticsConfigurationsCommandError = asyn
6791
6791
  $fault: "client",
6792
6792
  $metadata: deserializeMetadata(output),
6793
6793
  });
6794
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6794
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6795
6795
  }
6796
6796
  };
6797
6797
  const deserializeAws_restXmlListBucketIntelligentTieringConfigurationsCommand = async (output, context) => {
@@ -6805,21 +6805,21 @@ const deserializeAws_restXmlListBucketIntelligentTieringConfigurationsCommand =
6805
6805
  IsTruncated: undefined,
6806
6806
  NextContinuationToken: undefined,
6807
6807
  };
6808
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6808
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6809
6809
  if (data["ContinuationToken"] !== undefined) {
6810
- contents.ContinuationToken = smithy_client_1.expectString(data["ContinuationToken"]);
6810
+ contents.ContinuationToken = (0, smithy_client_1.expectString)(data["ContinuationToken"]);
6811
6811
  }
6812
6812
  if (data.IntelligentTieringConfiguration === "") {
6813
6813
  contents.IntelligentTieringConfigurationList = [];
6814
6814
  }
6815
6815
  if (data["IntelligentTieringConfiguration"] !== undefined) {
6816
- contents.IntelligentTieringConfigurationList = deserializeAws_restXmlIntelligentTieringConfigurationList(smithy_client_1.getArrayIfSingleItem(data["IntelligentTieringConfiguration"]), context);
6816
+ contents.IntelligentTieringConfigurationList = deserializeAws_restXmlIntelligentTieringConfigurationList((0, smithy_client_1.getArrayIfSingleItem)(data["IntelligentTieringConfiguration"]), context);
6817
6817
  }
6818
6818
  if (data["IsTruncated"] !== undefined) {
6819
- contents.IsTruncated = smithy_client_1.parseBoolean(data["IsTruncated"]);
6819
+ contents.IsTruncated = (0, smithy_client_1.parseBoolean)(data["IsTruncated"]);
6820
6820
  }
6821
6821
  if (data["NextContinuationToken"] !== undefined) {
6822
- contents.NextContinuationToken = smithy_client_1.expectString(data["NextContinuationToken"]);
6822
+ contents.NextContinuationToken = (0, smithy_client_1.expectString)(data["NextContinuationToken"]);
6823
6823
  }
6824
6824
  return Promise.resolve(contents);
6825
6825
  };
@@ -6840,7 +6840,7 @@ const deserializeAws_restXmlListBucketIntelligentTieringConfigurationsCommandErr
6840
6840
  $fault: "client",
6841
6841
  $metadata: deserializeMetadata(output),
6842
6842
  });
6843
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6843
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6844
6844
  }
6845
6845
  };
6846
6846
  const deserializeAws_restXmlListBucketInventoryConfigurationsCommand = async (output, context) => {
@@ -6854,21 +6854,21 @@ const deserializeAws_restXmlListBucketInventoryConfigurationsCommand = async (ou
6854
6854
  IsTruncated: undefined,
6855
6855
  NextContinuationToken: undefined,
6856
6856
  };
6857
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6857
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6858
6858
  if (data["ContinuationToken"] !== undefined) {
6859
- contents.ContinuationToken = smithy_client_1.expectString(data["ContinuationToken"]);
6859
+ contents.ContinuationToken = (0, smithy_client_1.expectString)(data["ContinuationToken"]);
6860
6860
  }
6861
6861
  if (data.InventoryConfiguration === "") {
6862
6862
  contents.InventoryConfigurationList = [];
6863
6863
  }
6864
6864
  if (data["InventoryConfiguration"] !== undefined) {
6865
- contents.InventoryConfigurationList = deserializeAws_restXmlInventoryConfigurationList(smithy_client_1.getArrayIfSingleItem(data["InventoryConfiguration"]), context);
6865
+ contents.InventoryConfigurationList = deserializeAws_restXmlInventoryConfigurationList((0, smithy_client_1.getArrayIfSingleItem)(data["InventoryConfiguration"]), context);
6866
6866
  }
6867
6867
  if (data["IsTruncated"] !== undefined) {
6868
- contents.IsTruncated = smithy_client_1.parseBoolean(data["IsTruncated"]);
6868
+ contents.IsTruncated = (0, smithy_client_1.parseBoolean)(data["IsTruncated"]);
6869
6869
  }
6870
6870
  if (data["NextContinuationToken"] !== undefined) {
6871
- contents.NextContinuationToken = smithy_client_1.expectString(data["NextContinuationToken"]);
6871
+ contents.NextContinuationToken = (0, smithy_client_1.expectString)(data["NextContinuationToken"]);
6872
6872
  }
6873
6873
  return Promise.resolve(contents);
6874
6874
  };
@@ -6889,7 +6889,7 @@ const deserializeAws_restXmlListBucketInventoryConfigurationsCommandError = asyn
6889
6889
  $fault: "client",
6890
6890
  $metadata: deserializeMetadata(output),
6891
6891
  });
6892
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6892
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6893
6893
  }
6894
6894
  };
6895
6895
  const deserializeAws_restXmlListBucketMetricsConfigurationsCommand = async (output, context) => {
@@ -6903,21 +6903,21 @@ const deserializeAws_restXmlListBucketMetricsConfigurationsCommand = async (outp
6903
6903
  MetricsConfigurationList: undefined,
6904
6904
  NextContinuationToken: undefined,
6905
6905
  };
6906
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6906
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6907
6907
  if (data["ContinuationToken"] !== undefined) {
6908
- contents.ContinuationToken = smithy_client_1.expectString(data["ContinuationToken"]);
6908
+ contents.ContinuationToken = (0, smithy_client_1.expectString)(data["ContinuationToken"]);
6909
6909
  }
6910
6910
  if (data["IsTruncated"] !== undefined) {
6911
- contents.IsTruncated = smithy_client_1.parseBoolean(data["IsTruncated"]);
6911
+ contents.IsTruncated = (0, smithy_client_1.parseBoolean)(data["IsTruncated"]);
6912
6912
  }
6913
6913
  if (data.MetricsConfiguration === "") {
6914
6914
  contents.MetricsConfigurationList = [];
6915
6915
  }
6916
6916
  if (data["MetricsConfiguration"] !== undefined) {
6917
- contents.MetricsConfigurationList = deserializeAws_restXmlMetricsConfigurationList(smithy_client_1.getArrayIfSingleItem(data["MetricsConfiguration"]), context);
6917
+ contents.MetricsConfigurationList = deserializeAws_restXmlMetricsConfigurationList((0, smithy_client_1.getArrayIfSingleItem)(data["MetricsConfiguration"]), context);
6918
6918
  }
6919
6919
  if (data["NextContinuationToken"] !== undefined) {
6920
- contents.NextContinuationToken = smithy_client_1.expectString(data["NextContinuationToken"]);
6920
+ contents.NextContinuationToken = (0, smithy_client_1.expectString)(data["NextContinuationToken"]);
6921
6921
  }
6922
6922
  return Promise.resolve(contents);
6923
6923
  };
@@ -6938,7 +6938,7 @@ const deserializeAws_restXmlListBucketMetricsConfigurationsCommandError = async
6938
6938
  $fault: "client",
6939
6939
  $metadata: deserializeMetadata(output),
6940
6940
  });
6941
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6941
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6942
6942
  }
6943
6943
  };
6944
6944
  const deserializeAws_restXmlListBucketsCommand = async (output, context) => {
@@ -6950,12 +6950,12 @@ const deserializeAws_restXmlListBucketsCommand = async (output, context) => {
6950
6950
  Buckets: undefined,
6951
6951
  Owner: undefined,
6952
6952
  };
6953
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
6953
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
6954
6954
  if (data.Buckets === "") {
6955
6955
  contents.Buckets = [];
6956
6956
  }
6957
6957
  if (data["Buckets"] !== undefined && data["Buckets"]["Bucket"] !== undefined) {
6958
- contents.Buckets = deserializeAws_restXmlBuckets(smithy_client_1.getArrayIfSingleItem(data["Buckets"]["Bucket"]), context);
6958
+ contents.Buckets = deserializeAws_restXmlBuckets((0, smithy_client_1.getArrayIfSingleItem)(data["Buckets"]["Bucket"]), context);
6959
6959
  }
6960
6960
  if (data["Owner"] !== undefined) {
6961
6961
  contents.Owner = deserializeAws_restXmlOwner(data["Owner"], context);
@@ -6979,7 +6979,7 @@ const deserializeAws_restXmlListBucketsCommandError = async (output, context) =>
6979
6979
  $fault: "client",
6980
6980
  $metadata: deserializeMetadata(output),
6981
6981
  });
6982
- throw smithy_client_1.decorateServiceException(response, parsedBody);
6982
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
6983
6983
  }
6984
6984
  };
6985
6985
  const deserializeAws_restXmlListMultipartUploadsCommand = async (output, context) => {
@@ -7001,48 +7001,48 @@ const deserializeAws_restXmlListMultipartUploadsCommand = async (output, context
7001
7001
  UploadIdMarker: undefined,
7002
7002
  Uploads: undefined,
7003
7003
  };
7004
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7004
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7005
7005
  if (data["Bucket"] !== undefined) {
7006
- contents.Bucket = smithy_client_1.expectString(data["Bucket"]);
7006
+ contents.Bucket = (0, smithy_client_1.expectString)(data["Bucket"]);
7007
7007
  }
7008
7008
  if (data.CommonPrefixes === "") {
7009
7009
  contents.CommonPrefixes = [];
7010
7010
  }
7011
7011
  if (data["CommonPrefixes"] !== undefined) {
7012
- contents.CommonPrefixes = deserializeAws_restXmlCommonPrefixList(smithy_client_1.getArrayIfSingleItem(data["CommonPrefixes"]), context);
7012
+ contents.CommonPrefixes = deserializeAws_restXmlCommonPrefixList((0, smithy_client_1.getArrayIfSingleItem)(data["CommonPrefixes"]), context);
7013
7013
  }
7014
7014
  if (data["Delimiter"] !== undefined) {
7015
- contents.Delimiter = smithy_client_1.expectString(data["Delimiter"]);
7015
+ contents.Delimiter = (0, smithy_client_1.expectString)(data["Delimiter"]);
7016
7016
  }
7017
7017
  if (data["EncodingType"] !== undefined) {
7018
- contents.EncodingType = smithy_client_1.expectString(data["EncodingType"]);
7018
+ contents.EncodingType = (0, smithy_client_1.expectString)(data["EncodingType"]);
7019
7019
  }
7020
7020
  if (data["IsTruncated"] !== undefined) {
7021
- contents.IsTruncated = smithy_client_1.parseBoolean(data["IsTruncated"]);
7021
+ contents.IsTruncated = (0, smithy_client_1.parseBoolean)(data["IsTruncated"]);
7022
7022
  }
7023
7023
  if (data["KeyMarker"] !== undefined) {
7024
- contents.KeyMarker = smithy_client_1.expectString(data["KeyMarker"]);
7024
+ contents.KeyMarker = (0, smithy_client_1.expectString)(data["KeyMarker"]);
7025
7025
  }
7026
7026
  if (data["MaxUploads"] !== undefined) {
7027
- contents.MaxUploads = smithy_client_1.strictParseInt32(data["MaxUploads"]);
7027
+ contents.MaxUploads = (0, smithy_client_1.strictParseInt32)(data["MaxUploads"]);
7028
7028
  }
7029
7029
  if (data["NextKeyMarker"] !== undefined) {
7030
- contents.NextKeyMarker = smithy_client_1.expectString(data["NextKeyMarker"]);
7030
+ contents.NextKeyMarker = (0, smithy_client_1.expectString)(data["NextKeyMarker"]);
7031
7031
  }
7032
7032
  if (data["NextUploadIdMarker"] !== undefined) {
7033
- contents.NextUploadIdMarker = smithy_client_1.expectString(data["NextUploadIdMarker"]);
7033
+ contents.NextUploadIdMarker = (0, smithy_client_1.expectString)(data["NextUploadIdMarker"]);
7034
7034
  }
7035
7035
  if (data["Prefix"] !== undefined) {
7036
- contents.Prefix = smithy_client_1.expectString(data["Prefix"]);
7036
+ contents.Prefix = (0, smithy_client_1.expectString)(data["Prefix"]);
7037
7037
  }
7038
7038
  if (data["UploadIdMarker"] !== undefined) {
7039
- contents.UploadIdMarker = smithy_client_1.expectString(data["UploadIdMarker"]);
7039
+ contents.UploadIdMarker = (0, smithy_client_1.expectString)(data["UploadIdMarker"]);
7040
7040
  }
7041
7041
  if (data.Upload === "") {
7042
7042
  contents.Uploads = [];
7043
7043
  }
7044
7044
  if (data["Upload"] !== undefined) {
7045
- contents.Uploads = deserializeAws_restXmlMultipartUploadList(smithy_client_1.getArrayIfSingleItem(data["Upload"]), context);
7045
+ contents.Uploads = deserializeAws_restXmlMultipartUploadList((0, smithy_client_1.getArrayIfSingleItem)(data["Upload"]), context);
7046
7046
  }
7047
7047
  return Promise.resolve(contents);
7048
7048
  };
@@ -7063,7 +7063,7 @@ const deserializeAws_restXmlListMultipartUploadsCommandError = async (output, co
7063
7063
  $fault: "client",
7064
7064
  $metadata: deserializeMetadata(output),
7065
7065
  });
7066
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7066
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7067
7067
  }
7068
7068
  };
7069
7069
  const deserializeAws_restXmlListObjectsCommand = async (output, context) => {
@@ -7083,42 +7083,42 @@ const deserializeAws_restXmlListObjectsCommand = async (output, context) => {
7083
7083
  NextMarker: undefined,
7084
7084
  Prefix: undefined,
7085
7085
  };
7086
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7086
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7087
7087
  if (data.CommonPrefixes === "") {
7088
7088
  contents.CommonPrefixes = [];
7089
7089
  }
7090
7090
  if (data["CommonPrefixes"] !== undefined) {
7091
- contents.CommonPrefixes = deserializeAws_restXmlCommonPrefixList(smithy_client_1.getArrayIfSingleItem(data["CommonPrefixes"]), context);
7091
+ contents.CommonPrefixes = deserializeAws_restXmlCommonPrefixList((0, smithy_client_1.getArrayIfSingleItem)(data["CommonPrefixes"]), context);
7092
7092
  }
7093
7093
  if (data.Contents === "") {
7094
7094
  contents.Contents = [];
7095
7095
  }
7096
7096
  if (data["Contents"] !== undefined) {
7097
- contents.Contents = deserializeAws_restXmlObjectList(smithy_client_1.getArrayIfSingleItem(data["Contents"]), context);
7097
+ contents.Contents = deserializeAws_restXmlObjectList((0, smithy_client_1.getArrayIfSingleItem)(data["Contents"]), context);
7098
7098
  }
7099
7099
  if (data["Delimiter"] !== undefined) {
7100
- contents.Delimiter = smithy_client_1.expectString(data["Delimiter"]);
7100
+ contents.Delimiter = (0, smithy_client_1.expectString)(data["Delimiter"]);
7101
7101
  }
7102
7102
  if (data["EncodingType"] !== undefined) {
7103
- contents.EncodingType = smithy_client_1.expectString(data["EncodingType"]);
7103
+ contents.EncodingType = (0, smithy_client_1.expectString)(data["EncodingType"]);
7104
7104
  }
7105
7105
  if (data["IsTruncated"] !== undefined) {
7106
- contents.IsTruncated = smithy_client_1.parseBoolean(data["IsTruncated"]);
7106
+ contents.IsTruncated = (0, smithy_client_1.parseBoolean)(data["IsTruncated"]);
7107
7107
  }
7108
7108
  if (data["Marker"] !== undefined) {
7109
- contents.Marker = smithy_client_1.expectString(data["Marker"]);
7109
+ contents.Marker = (0, smithy_client_1.expectString)(data["Marker"]);
7110
7110
  }
7111
7111
  if (data["MaxKeys"] !== undefined) {
7112
- contents.MaxKeys = smithy_client_1.strictParseInt32(data["MaxKeys"]);
7112
+ contents.MaxKeys = (0, smithy_client_1.strictParseInt32)(data["MaxKeys"]);
7113
7113
  }
7114
7114
  if (data["Name"] !== undefined) {
7115
- contents.Name = smithy_client_1.expectString(data["Name"]);
7115
+ contents.Name = (0, smithy_client_1.expectString)(data["Name"]);
7116
7116
  }
7117
7117
  if (data["NextMarker"] !== undefined) {
7118
- contents.NextMarker = smithy_client_1.expectString(data["NextMarker"]);
7118
+ contents.NextMarker = (0, smithy_client_1.expectString)(data["NextMarker"]);
7119
7119
  }
7120
7120
  if (data["Prefix"] !== undefined) {
7121
- contents.Prefix = smithy_client_1.expectString(data["Prefix"]);
7121
+ contents.Prefix = (0, smithy_client_1.expectString)(data["Prefix"]);
7122
7122
  }
7123
7123
  return Promise.resolve(contents);
7124
7124
  };
@@ -7142,7 +7142,7 @@ const deserializeAws_restXmlListObjectsCommandError = async (output, context) =>
7142
7142
  $fault: "client",
7143
7143
  $metadata: deserializeMetadata(output),
7144
7144
  });
7145
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7145
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7146
7146
  }
7147
7147
  };
7148
7148
  const deserializeAws_restXmlListObjectsV2Command = async (output, context) => {
@@ -7164,48 +7164,48 @@ const deserializeAws_restXmlListObjectsV2Command = async (output, context) => {
7164
7164
  Prefix: undefined,
7165
7165
  StartAfter: undefined,
7166
7166
  };
7167
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7167
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7168
7168
  if (data.CommonPrefixes === "") {
7169
7169
  contents.CommonPrefixes = [];
7170
7170
  }
7171
7171
  if (data["CommonPrefixes"] !== undefined) {
7172
- contents.CommonPrefixes = deserializeAws_restXmlCommonPrefixList(smithy_client_1.getArrayIfSingleItem(data["CommonPrefixes"]), context);
7172
+ contents.CommonPrefixes = deserializeAws_restXmlCommonPrefixList((0, smithy_client_1.getArrayIfSingleItem)(data["CommonPrefixes"]), context);
7173
7173
  }
7174
7174
  if (data.Contents === "") {
7175
7175
  contents.Contents = [];
7176
7176
  }
7177
7177
  if (data["Contents"] !== undefined) {
7178
- contents.Contents = deserializeAws_restXmlObjectList(smithy_client_1.getArrayIfSingleItem(data["Contents"]), context);
7178
+ contents.Contents = deserializeAws_restXmlObjectList((0, smithy_client_1.getArrayIfSingleItem)(data["Contents"]), context);
7179
7179
  }
7180
7180
  if (data["ContinuationToken"] !== undefined) {
7181
- contents.ContinuationToken = smithy_client_1.expectString(data["ContinuationToken"]);
7181
+ contents.ContinuationToken = (0, smithy_client_1.expectString)(data["ContinuationToken"]);
7182
7182
  }
7183
7183
  if (data["Delimiter"] !== undefined) {
7184
- contents.Delimiter = smithy_client_1.expectString(data["Delimiter"]);
7184
+ contents.Delimiter = (0, smithy_client_1.expectString)(data["Delimiter"]);
7185
7185
  }
7186
7186
  if (data["EncodingType"] !== undefined) {
7187
- contents.EncodingType = smithy_client_1.expectString(data["EncodingType"]);
7187
+ contents.EncodingType = (0, smithy_client_1.expectString)(data["EncodingType"]);
7188
7188
  }
7189
7189
  if (data["IsTruncated"] !== undefined) {
7190
- contents.IsTruncated = smithy_client_1.parseBoolean(data["IsTruncated"]);
7190
+ contents.IsTruncated = (0, smithy_client_1.parseBoolean)(data["IsTruncated"]);
7191
7191
  }
7192
7192
  if (data["KeyCount"] !== undefined) {
7193
- contents.KeyCount = smithy_client_1.strictParseInt32(data["KeyCount"]);
7193
+ contents.KeyCount = (0, smithy_client_1.strictParseInt32)(data["KeyCount"]);
7194
7194
  }
7195
7195
  if (data["MaxKeys"] !== undefined) {
7196
- contents.MaxKeys = smithy_client_1.strictParseInt32(data["MaxKeys"]);
7196
+ contents.MaxKeys = (0, smithy_client_1.strictParseInt32)(data["MaxKeys"]);
7197
7197
  }
7198
7198
  if (data["Name"] !== undefined) {
7199
- contents.Name = smithy_client_1.expectString(data["Name"]);
7199
+ contents.Name = (0, smithy_client_1.expectString)(data["Name"]);
7200
7200
  }
7201
7201
  if (data["NextContinuationToken"] !== undefined) {
7202
- contents.NextContinuationToken = smithy_client_1.expectString(data["NextContinuationToken"]);
7202
+ contents.NextContinuationToken = (0, smithy_client_1.expectString)(data["NextContinuationToken"]);
7203
7203
  }
7204
7204
  if (data["Prefix"] !== undefined) {
7205
- contents.Prefix = smithy_client_1.expectString(data["Prefix"]);
7205
+ contents.Prefix = (0, smithy_client_1.expectString)(data["Prefix"]);
7206
7206
  }
7207
7207
  if (data["StartAfter"] !== undefined) {
7208
- contents.StartAfter = smithy_client_1.expectString(data["StartAfter"]);
7208
+ contents.StartAfter = (0, smithy_client_1.expectString)(data["StartAfter"]);
7209
7209
  }
7210
7210
  return Promise.resolve(contents);
7211
7211
  };
@@ -7229,7 +7229,7 @@ const deserializeAws_restXmlListObjectsV2CommandError = async (output, context)
7229
7229
  $fault: "client",
7230
7230
  $metadata: deserializeMetadata(output),
7231
7231
  });
7232
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7232
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7233
7233
  }
7234
7234
  };
7235
7235
  const deserializeAws_restXmlListObjectVersionsCommand = async (output, context) => {
@@ -7252,54 +7252,54 @@ const deserializeAws_restXmlListObjectVersionsCommand = async (output, context)
7252
7252
  VersionIdMarker: undefined,
7253
7253
  Versions: undefined,
7254
7254
  };
7255
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7255
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7256
7256
  if (data.CommonPrefixes === "") {
7257
7257
  contents.CommonPrefixes = [];
7258
7258
  }
7259
7259
  if (data["CommonPrefixes"] !== undefined) {
7260
- contents.CommonPrefixes = deserializeAws_restXmlCommonPrefixList(smithy_client_1.getArrayIfSingleItem(data["CommonPrefixes"]), context);
7260
+ contents.CommonPrefixes = deserializeAws_restXmlCommonPrefixList((0, smithy_client_1.getArrayIfSingleItem)(data["CommonPrefixes"]), context);
7261
7261
  }
7262
7262
  if (data.DeleteMarker === "") {
7263
7263
  contents.DeleteMarkers = [];
7264
7264
  }
7265
7265
  if (data["DeleteMarker"] !== undefined) {
7266
- contents.DeleteMarkers = deserializeAws_restXmlDeleteMarkers(smithy_client_1.getArrayIfSingleItem(data["DeleteMarker"]), context);
7266
+ contents.DeleteMarkers = deserializeAws_restXmlDeleteMarkers((0, smithy_client_1.getArrayIfSingleItem)(data["DeleteMarker"]), context);
7267
7267
  }
7268
7268
  if (data["Delimiter"] !== undefined) {
7269
- contents.Delimiter = smithy_client_1.expectString(data["Delimiter"]);
7269
+ contents.Delimiter = (0, smithy_client_1.expectString)(data["Delimiter"]);
7270
7270
  }
7271
7271
  if (data["EncodingType"] !== undefined) {
7272
- contents.EncodingType = smithy_client_1.expectString(data["EncodingType"]);
7272
+ contents.EncodingType = (0, smithy_client_1.expectString)(data["EncodingType"]);
7273
7273
  }
7274
7274
  if (data["IsTruncated"] !== undefined) {
7275
- contents.IsTruncated = smithy_client_1.parseBoolean(data["IsTruncated"]);
7275
+ contents.IsTruncated = (0, smithy_client_1.parseBoolean)(data["IsTruncated"]);
7276
7276
  }
7277
7277
  if (data["KeyMarker"] !== undefined) {
7278
- contents.KeyMarker = smithy_client_1.expectString(data["KeyMarker"]);
7278
+ contents.KeyMarker = (0, smithy_client_1.expectString)(data["KeyMarker"]);
7279
7279
  }
7280
7280
  if (data["MaxKeys"] !== undefined) {
7281
- contents.MaxKeys = smithy_client_1.strictParseInt32(data["MaxKeys"]);
7281
+ contents.MaxKeys = (0, smithy_client_1.strictParseInt32)(data["MaxKeys"]);
7282
7282
  }
7283
7283
  if (data["Name"] !== undefined) {
7284
- contents.Name = smithy_client_1.expectString(data["Name"]);
7284
+ contents.Name = (0, smithy_client_1.expectString)(data["Name"]);
7285
7285
  }
7286
7286
  if (data["NextKeyMarker"] !== undefined) {
7287
- contents.NextKeyMarker = smithy_client_1.expectString(data["NextKeyMarker"]);
7287
+ contents.NextKeyMarker = (0, smithy_client_1.expectString)(data["NextKeyMarker"]);
7288
7288
  }
7289
7289
  if (data["NextVersionIdMarker"] !== undefined) {
7290
- contents.NextVersionIdMarker = smithy_client_1.expectString(data["NextVersionIdMarker"]);
7290
+ contents.NextVersionIdMarker = (0, smithy_client_1.expectString)(data["NextVersionIdMarker"]);
7291
7291
  }
7292
7292
  if (data["Prefix"] !== undefined) {
7293
- contents.Prefix = smithy_client_1.expectString(data["Prefix"]);
7293
+ contents.Prefix = (0, smithy_client_1.expectString)(data["Prefix"]);
7294
7294
  }
7295
7295
  if (data["VersionIdMarker"] !== undefined) {
7296
- contents.VersionIdMarker = smithy_client_1.expectString(data["VersionIdMarker"]);
7296
+ contents.VersionIdMarker = (0, smithy_client_1.expectString)(data["VersionIdMarker"]);
7297
7297
  }
7298
7298
  if (data.Version === "") {
7299
7299
  contents.Versions = [];
7300
7300
  }
7301
7301
  if (data["Version"] !== undefined) {
7302
- contents.Versions = deserializeAws_restXmlObjectVersionList(smithy_client_1.getArrayIfSingleItem(data["Version"]), context);
7302
+ contents.Versions = deserializeAws_restXmlObjectVersionList((0, smithy_client_1.getArrayIfSingleItem)(data["Version"]), context);
7303
7303
  }
7304
7304
  return Promise.resolve(contents);
7305
7305
  };
@@ -7320,7 +7320,7 @@ const deserializeAws_restXmlListObjectVersionsCommandError = async (output, cont
7320
7320
  $fault: "client",
7321
7321
  $metadata: deserializeMetadata(output),
7322
7322
  });
7323
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7323
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7324
7324
  }
7325
7325
  };
7326
7326
  const deserializeAws_restXmlListPartsCommand = async (output, context) => {
@@ -7346,7 +7346,7 @@ const deserializeAws_restXmlListPartsCommand = async (output, context) => {
7346
7346
  UploadId: undefined,
7347
7347
  };
7348
7348
  if (output.headers["x-amz-abort-date"] !== undefined) {
7349
- contents.AbortDate = smithy_client_1.expectNonNull(smithy_client_1.parseRfc7231DateTime(output.headers["x-amz-abort-date"]));
7349
+ contents.AbortDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc7231DateTime)(output.headers["x-amz-abort-date"]));
7350
7350
  }
7351
7351
  if (output.headers["x-amz-abort-rule-id"] !== undefined) {
7352
7352
  contents.AbortRuleId = output.headers["x-amz-abort-rule-id"];
@@ -7354,45 +7354,45 @@ const deserializeAws_restXmlListPartsCommand = async (output, context) => {
7354
7354
  if (output.headers["x-amz-request-charged"] !== undefined) {
7355
7355
  contents.RequestCharged = output.headers["x-amz-request-charged"];
7356
7356
  }
7357
- const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
7357
+ const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
7358
7358
  if (data["Bucket"] !== undefined) {
7359
- contents.Bucket = smithy_client_1.expectString(data["Bucket"]);
7359
+ contents.Bucket = (0, smithy_client_1.expectString)(data["Bucket"]);
7360
7360
  }
7361
7361
  if (data["ChecksumAlgorithm"] !== undefined) {
7362
- contents.ChecksumAlgorithm = smithy_client_1.expectString(data["ChecksumAlgorithm"]);
7362
+ contents.ChecksumAlgorithm = (0, smithy_client_1.expectString)(data["ChecksumAlgorithm"]);
7363
7363
  }
7364
7364
  if (data["Initiator"] !== undefined) {
7365
7365
  contents.Initiator = deserializeAws_restXmlInitiator(data["Initiator"], context);
7366
7366
  }
7367
7367
  if (data["IsTruncated"] !== undefined) {
7368
- contents.IsTruncated = smithy_client_1.parseBoolean(data["IsTruncated"]);
7368
+ contents.IsTruncated = (0, smithy_client_1.parseBoolean)(data["IsTruncated"]);
7369
7369
  }
7370
7370
  if (data["Key"] !== undefined) {
7371
- contents.Key = smithy_client_1.expectString(data["Key"]);
7371
+ contents.Key = (0, smithy_client_1.expectString)(data["Key"]);
7372
7372
  }
7373
7373
  if (data["MaxParts"] !== undefined) {
7374
- contents.MaxParts = smithy_client_1.strictParseInt32(data["MaxParts"]);
7374
+ contents.MaxParts = (0, smithy_client_1.strictParseInt32)(data["MaxParts"]);
7375
7375
  }
7376
7376
  if (data["NextPartNumberMarker"] !== undefined) {
7377
- contents.NextPartNumberMarker = smithy_client_1.expectString(data["NextPartNumberMarker"]);
7377
+ contents.NextPartNumberMarker = (0, smithy_client_1.expectString)(data["NextPartNumberMarker"]);
7378
7378
  }
7379
7379
  if (data["Owner"] !== undefined) {
7380
7380
  contents.Owner = deserializeAws_restXmlOwner(data["Owner"], context);
7381
7381
  }
7382
7382
  if (data["PartNumberMarker"] !== undefined) {
7383
- contents.PartNumberMarker = smithy_client_1.expectString(data["PartNumberMarker"]);
7383
+ contents.PartNumberMarker = (0, smithy_client_1.expectString)(data["PartNumberMarker"]);
7384
7384
  }
7385
7385
  if (data.Part === "") {
7386
7386
  contents.Parts = [];
7387
7387
  }
7388
7388
  if (data["Part"] !== undefined) {
7389
- contents.Parts = deserializeAws_restXmlParts(smithy_client_1.getArrayIfSingleItem(data["Part"]), context);
7389
+ contents.Parts = deserializeAws_restXmlParts((0, smithy_client_1.getArrayIfSingleItem)(data["Part"]), context);
7390
7390
  }
7391
7391
  if (data["StorageClass"] !== undefined) {
7392
- contents.StorageClass = smithy_client_1.expectString(data["StorageClass"]);
7392
+ contents.StorageClass = (0, smithy_client_1.expectString)(data["StorageClass"]);
7393
7393
  }
7394
7394
  if (data["UploadId"] !== undefined) {
7395
- contents.UploadId = smithy_client_1.expectString(data["UploadId"]);
7395
+ contents.UploadId = (0, smithy_client_1.expectString)(data["UploadId"]);
7396
7396
  }
7397
7397
  return Promise.resolve(contents);
7398
7398
  };
@@ -7413,7 +7413,7 @@ const deserializeAws_restXmlListPartsCommandError = async (output, context) => {
7413
7413
  $fault: "client",
7414
7414
  $metadata: deserializeMetadata(output),
7415
7415
  });
7416
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7416
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7417
7417
  }
7418
7418
  };
7419
7419
  const deserializeAws_restXmlPutBucketAccelerateConfigurationCommand = async (output, context) => {
@@ -7443,7 +7443,7 @@ const deserializeAws_restXmlPutBucketAccelerateConfigurationCommandError = async
7443
7443
  $fault: "client",
7444
7444
  $metadata: deserializeMetadata(output),
7445
7445
  });
7446
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7446
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7447
7447
  }
7448
7448
  };
7449
7449
  const deserializeAws_restXmlPutBucketAclCommand = async (output, context) => {
@@ -7473,7 +7473,7 @@ const deserializeAws_restXmlPutBucketAclCommandError = async (output, context) =
7473
7473
  $fault: "client",
7474
7474
  $metadata: deserializeMetadata(output),
7475
7475
  });
7476
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7476
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7477
7477
  }
7478
7478
  };
7479
7479
  const deserializeAws_restXmlPutBucketAnalyticsConfigurationCommand = async (output, context) => {
@@ -7503,7 +7503,7 @@ const deserializeAws_restXmlPutBucketAnalyticsConfigurationCommandError = async
7503
7503
  $fault: "client",
7504
7504
  $metadata: deserializeMetadata(output),
7505
7505
  });
7506
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7506
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7507
7507
  }
7508
7508
  };
7509
7509
  const deserializeAws_restXmlPutBucketCorsCommand = async (output, context) => {
@@ -7533,7 +7533,7 @@ const deserializeAws_restXmlPutBucketCorsCommandError = async (output, context)
7533
7533
  $fault: "client",
7534
7534
  $metadata: deserializeMetadata(output),
7535
7535
  });
7536
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7536
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7537
7537
  }
7538
7538
  };
7539
7539
  const deserializeAws_restXmlPutBucketEncryptionCommand = async (output, context) => {
@@ -7563,7 +7563,7 @@ const deserializeAws_restXmlPutBucketEncryptionCommandError = async (output, con
7563
7563
  $fault: "client",
7564
7564
  $metadata: deserializeMetadata(output),
7565
7565
  });
7566
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7566
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7567
7567
  }
7568
7568
  };
7569
7569
  const deserializeAws_restXmlPutBucketIntelligentTieringConfigurationCommand = async (output, context) => {
@@ -7593,7 +7593,7 @@ const deserializeAws_restXmlPutBucketIntelligentTieringConfigurationCommandError
7593
7593
  $fault: "client",
7594
7594
  $metadata: deserializeMetadata(output),
7595
7595
  });
7596
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7596
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7597
7597
  }
7598
7598
  };
7599
7599
  const deserializeAws_restXmlPutBucketInventoryConfigurationCommand = async (output, context) => {
@@ -7623,7 +7623,7 @@ const deserializeAws_restXmlPutBucketInventoryConfigurationCommandError = async
7623
7623
  $fault: "client",
7624
7624
  $metadata: deserializeMetadata(output),
7625
7625
  });
7626
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7626
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7627
7627
  }
7628
7628
  };
7629
7629
  const deserializeAws_restXmlPutBucketLifecycleConfigurationCommand = async (output, context) => {
@@ -7653,7 +7653,7 @@ const deserializeAws_restXmlPutBucketLifecycleConfigurationCommandError = async
7653
7653
  $fault: "client",
7654
7654
  $metadata: deserializeMetadata(output),
7655
7655
  });
7656
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7656
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7657
7657
  }
7658
7658
  };
7659
7659
  const deserializeAws_restXmlPutBucketLoggingCommand = async (output, context) => {
@@ -7683,7 +7683,7 @@ const deserializeAws_restXmlPutBucketLoggingCommandError = async (output, contex
7683
7683
  $fault: "client",
7684
7684
  $metadata: deserializeMetadata(output),
7685
7685
  });
7686
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7686
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7687
7687
  }
7688
7688
  };
7689
7689
  const deserializeAws_restXmlPutBucketMetricsConfigurationCommand = async (output, context) => {
@@ -7713,7 +7713,7 @@ const deserializeAws_restXmlPutBucketMetricsConfigurationCommandError = async (o
7713
7713
  $fault: "client",
7714
7714
  $metadata: deserializeMetadata(output),
7715
7715
  });
7716
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7716
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7717
7717
  }
7718
7718
  };
7719
7719
  const deserializeAws_restXmlPutBucketNotificationConfigurationCommand = async (output, context) => {
@@ -7743,7 +7743,7 @@ const deserializeAws_restXmlPutBucketNotificationConfigurationCommandError = asy
7743
7743
  $fault: "client",
7744
7744
  $metadata: deserializeMetadata(output),
7745
7745
  });
7746
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7746
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7747
7747
  }
7748
7748
  };
7749
7749
  const deserializeAws_restXmlPutBucketOwnershipControlsCommand = async (output, context) => {
@@ -7773,7 +7773,7 @@ const deserializeAws_restXmlPutBucketOwnershipControlsCommandError = async (outp
7773
7773
  $fault: "client",
7774
7774
  $metadata: deserializeMetadata(output),
7775
7775
  });
7776
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7776
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7777
7777
  }
7778
7778
  };
7779
7779
  const deserializeAws_restXmlPutBucketPolicyCommand = async (output, context) => {
@@ -7803,7 +7803,7 @@ const deserializeAws_restXmlPutBucketPolicyCommandError = async (output, context
7803
7803
  $fault: "client",
7804
7804
  $metadata: deserializeMetadata(output),
7805
7805
  });
7806
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7806
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7807
7807
  }
7808
7808
  };
7809
7809
  const deserializeAws_restXmlPutBucketReplicationCommand = async (output, context) => {
@@ -7833,7 +7833,7 @@ const deserializeAws_restXmlPutBucketReplicationCommandError = async (output, co
7833
7833
  $fault: "client",
7834
7834
  $metadata: deserializeMetadata(output),
7835
7835
  });
7836
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7836
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7837
7837
  }
7838
7838
  };
7839
7839
  const deserializeAws_restXmlPutBucketRequestPaymentCommand = async (output, context) => {
@@ -7863,7 +7863,7 @@ const deserializeAws_restXmlPutBucketRequestPaymentCommandError = async (output,
7863
7863
  $fault: "client",
7864
7864
  $metadata: deserializeMetadata(output),
7865
7865
  });
7866
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7866
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7867
7867
  }
7868
7868
  };
7869
7869
  const deserializeAws_restXmlPutBucketTaggingCommand = async (output, context) => {
@@ -7893,7 +7893,7 @@ const deserializeAws_restXmlPutBucketTaggingCommandError = async (output, contex
7893
7893
  $fault: "client",
7894
7894
  $metadata: deserializeMetadata(output),
7895
7895
  });
7896
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7896
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7897
7897
  }
7898
7898
  };
7899
7899
  const deserializeAws_restXmlPutBucketVersioningCommand = async (output, context) => {
@@ -7923,7 +7923,7 @@ const deserializeAws_restXmlPutBucketVersioningCommandError = async (output, con
7923
7923
  $fault: "client",
7924
7924
  $metadata: deserializeMetadata(output),
7925
7925
  });
7926
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7926
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7927
7927
  }
7928
7928
  };
7929
7929
  const deserializeAws_restXmlPutBucketWebsiteCommand = async (output, context) => {
@@ -7953,7 +7953,7 @@ const deserializeAws_restXmlPutBucketWebsiteCommandError = async (output, contex
7953
7953
  $fault: "client",
7954
7954
  $metadata: deserializeMetadata(output),
7955
7955
  });
7956
- throw smithy_client_1.decorateServiceException(response, parsedBody);
7956
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
7957
7957
  }
7958
7958
  };
7959
7959
  const deserializeAws_restXmlPutObjectCommand = async (output, context) => {
@@ -8014,7 +8014,7 @@ const deserializeAws_restXmlPutObjectCommand = async (output, context) => {
8014
8014
  contents.SSEKMSEncryptionContext = output.headers["x-amz-server-side-encryption-context"];
8015
8015
  }
8016
8016
  if (output.headers["x-amz-server-side-encryption-bucket-key-enabled"] !== undefined) {
8017
- contents.BucketKeyEnabled = smithy_client_1.parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
8017
+ contents.BucketKeyEnabled = (0, smithy_client_1.parseBoolean)(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
8018
8018
  }
8019
8019
  if (output.headers["x-amz-request-charged"] !== undefined) {
8020
8020
  contents.RequestCharged = output.headers["x-amz-request-charged"];
@@ -8039,7 +8039,7 @@ const deserializeAws_restXmlPutObjectCommandError = async (output, context) => {
8039
8039
  $fault: "client",
8040
8040
  $metadata: deserializeMetadata(output),
8041
8041
  });
8042
- throw smithy_client_1.decorateServiceException(response, parsedBody);
8042
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8043
8043
  }
8044
8044
  };
8045
8045
  const deserializeAws_restXmlPutObjectAclCommand = async (output, context) => {
@@ -8076,7 +8076,7 @@ const deserializeAws_restXmlPutObjectAclCommandError = async (output, context) =
8076
8076
  $fault: "client",
8077
8077
  $metadata: deserializeMetadata(output),
8078
8078
  });
8079
- throw smithy_client_1.decorateServiceException(response, parsedBody);
8079
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8080
8080
  }
8081
8081
  };
8082
8082
  const deserializeAws_restXmlPutObjectLegalHoldCommand = async (output, context) => {
@@ -8110,7 +8110,7 @@ const deserializeAws_restXmlPutObjectLegalHoldCommandError = async (output, cont
8110
8110
  $fault: "client",
8111
8111
  $metadata: deserializeMetadata(output),
8112
8112
  });
8113
- throw smithy_client_1.decorateServiceException(response, parsedBody);
8113
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8114
8114
  }
8115
8115
  };
8116
8116
  const deserializeAws_restXmlPutObjectLockConfigurationCommand = async (output, context) => {
@@ -8144,7 +8144,7 @@ const deserializeAws_restXmlPutObjectLockConfigurationCommandError = async (outp
8144
8144
  $fault: "client",
8145
8145
  $metadata: deserializeMetadata(output),
8146
8146
  });
8147
- throw smithy_client_1.decorateServiceException(response, parsedBody);
8147
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8148
8148
  }
8149
8149
  };
8150
8150
  const deserializeAws_restXmlPutObjectRetentionCommand = async (output, context) => {
@@ -8178,7 +8178,7 @@ const deserializeAws_restXmlPutObjectRetentionCommandError = async (output, cont
8178
8178
  $fault: "client",
8179
8179
  $metadata: deserializeMetadata(output),
8180
8180
  });
8181
- throw smithy_client_1.decorateServiceException(response, parsedBody);
8181
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8182
8182
  }
8183
8183
  };
8184
8184
  const deserializeAws_restXmlPutObjectTaggingCommand = async (output, context) => {
@@ -8212,7 +8212,7 @@ const deserializeAws_restXmlPutObjectTaggingCommandError = async (output, contex
8212
8212
  $fault: "client",
8213
8213
  $metadata: deserializeMetadata(output),
8214
8214
  });
8215
- throw smithy_client_1.decorateServiceException(response, parsedBody);
8215
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8216
8216
  }
8217
8217
  };
8218
8218
  const deserializeAws_restXmlPutPublicAccessBlockCommand = async (output, context) => {
@@ -8242,7 +8242,7 @@ const deserializeAws_restXmlPutPublicAccessBlockCommandError = async (output, co
8242
8242
  $fault: "client",
8243
8243
  $metadata: deserializeMetadata(output),
8244
8244
  });
8245
- throw smithy_client_1.decorateServiceException(response, parsedBody);
8245
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8246
8246
  }
8247
8247
  };
8248
8248
  const deserializeAws_restXmlRestoreObjectCommand = async (output, context) => {
@@ -8283,7 +8283,7 @@ const deserializeAws_restXmlRestoreObjectCommandError = async (output, context)
8283
8283
  $fault: "client",
8284
8284
  $metadata: deserializeMetadata(output),
8285
8285
  });
8286
- throw smithy_client_1.decorateServiceException(response, parsedBody);
8286
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8287
8287
  }
8288
8288
  };
8289
8289
  const deserializeAws_restXmlSelectObjectContentCommand = async (output, context) => {
@@ -8329,7 +8329,7 @@ const deserializeAws_restXmlSelectObjectContentCommandError = async (output, con
8329
8329
  $fault: "client",
8330
8330
  $metadata: deserializeMetadata(output),
8331
8331
  });
8332
- throw smithy_client_1.decorateServiceException(response, parsedBody);
8332
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8333
8333
  }
8334
8334
  };
8335
8335
  const deserializeAws_restXmlUploadPartCommand = async (output, context) => {
@@ -8378,7 +8378,7 @@ const deserializeAws_restXmlUploadPartCommand = async (output, context) => {
8378
8378
  contents.SSEKMSKeyId = output.headers["x-amz-server-side-encryption-aws-kms-key-id"];
8379
8379
  }
8380
8380
  if (output.headers["x-amz-server-side-encryption-bucket-key-enabled"] !== undefined) {
8381
- contents.BucketKeyEnabled = smithy_client_1.parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
8381
+ contents.BucketKeyEnabled = (0, smithy_client_1.parseBoolean)(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
8382
8382
  }
8383
8383
  if (output.headers["x-amz-request-charged"] !== undefined) {
8384
8384
  contents.RequestCharged = output.headers["x-amz-request-charged"];
@@ -8403,7 +8403,7 @@ const deserializeAws_restXmlUploadPartCommandError = async (output, context) =>
8403
8403
  $fault: "client",
8404
8404
  $metadata: deserializeMetadata(output),
8405
8405
  });
8406
- throw smithy_client_1.decorateServiceException(response, parsedBody);
8406
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8407
8407
  }
8408
8408
  };
8409
8409
  const deserializeAws_restXmlUploadPartCopyCommand = async (output, context) => {
@@ -8437,12 +8437,12 @@ const deserializeAws_restXmlUploadPartCopyCommand = async (output, context) => {
8437
8437
  contents.SSEKMSKeyId = output.headers["x-amz-server-side-encryption-aws-kms-key-id"];
8438
8438
  }
8439
8439
  if (output.headers["x-amz-server-side-encryption-bucket-key-enabled"] !== undefined) {
8440
- contents.BucketKeyEnabled = smithy_client_1.parseBoolean(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
8440
+ contents.BucketKeyEnabled = (0, smithy_client_1.parseBoolean)(output.headers["x-amz-server-side-encryption-bucket-key-enabled"]);
8441
8441
  }
8442
8442
  if (output.headers["x-amz-request-charged"] !== undefined) {
8443
8443
  contents.RequestCharged = output.headers["x-amz-request-charged"];
8444
8444
  }
8445
- const data = smithy_client_1.expectObject(await parseBody(output.body, context));
8445
+ const data = (0, smithy_client_1.expectObject)(await parseBody(output.body, context));
8446
8446
  contents.CopyPartResult = deserializeAws_restXmlCopyPartResult(data, context);
8447
8447
  return Promise.resolve(contents);
8448
8448
  };
@@ -8463,7 +8463,7 @@ const deserializeAws_restXmlUploadPartCopyCommandError = async (output, context)
8463
8463
  $fault: "client",
8464
8464
  $metadata: deserializeMetadata(output),
8465
8465
  });
8466
- throw smithy_client_1.decorateServiceException(response, parsedBody);
8466
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8467
8467
  }
8468
8468
  };
8469
8469
  const deserializeAws_restXmlWriteGetObjectResponseCommand = async (output, context) => {
@@ -8493,7 +8493,7 @@ const deserializeAws_restXmlWriteGetObjectResponseCommandError = async (output,
8493
8493
  $fault: "client",
8494
8494
  $metadata: deserializeMetadata(output),
8495
8495
  });
8496
- throw smithy_client_1.decorateServiceException(response, parsedBody);
8496
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
8497
8497
  }
8498
8498
  };
8499
8499
  const deserializeAws_restXmlSelectObjectContentEventStream_event = async (output, context) => {
@@ -8554,7 +8554,7 @@ const deserializeAws_restXmlBucketAlreadyExistsResponse = async (parsedOutput, c
8554
8554
  $metadata: deserializeMetadata(parsedOutput),
8555
8555
  ...contents,
8556
8556
  });
8557
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
8557
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
8558
8558
  };
8559
8559
  const deserializeAws_restXmlBucketAlreadyOwnedByYouResponse = async (parsedOutput, context) => {
8560
8560
  const contents = {};
@@ -8563,22 +8563,22 @@ const deserializeAws_restXmlBucketAlreadyOwnedByYouResponse = async (parsedOutpu
8563
8563
  $metadata: deserializeMetadata(parsedOutput),
8564
8564
  ...contents,
8565
8565
  });
8566
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
8566
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
8567
8567
  };
8568
8568
  const deserializeAws_restXmlInvalidObjectStateResponse = async (parsedOutput, context) => {
8569
8569
  const contents = {};
8570
8570
  const data = parsedOutput.body;
8571
8571
  if (data["AccessTier"] !== undefined) {
8572
- contents.AccessTier = smithy_client_1.expectString(data["AccessTier"]);
8572
+ contents.AccessTier = (0, smithy_client_1.expectString)(data["AccessTier"]);
8573
8573
  }
8574
8574
  if (data["StorageClass"] !== undefined) {
8575
- contents.StorageClass = smithy_client_1.expectString(data["StorageClass"]);
8575
+ contents.StorageClass = (0, smithy_client_1.expectString)(data["StorageClass"]);
8576
8576
  }
8577
8577
  const exception = new models_0_1.InvalidObjectState({
8578
8578
  $metadata: deserializeMetadata(parsedOutput),
8579
8579
  ...contents,
8580
8580
  });
8581
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
8581
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
8582
8582
  };
8583
8583
  const deserializeAws_restXmlNoSuchBucketResponse = async (parsedOutput, context) => {
8584
8584
  const contents = {};
@@ -8587,7 +8587,7 @@ const deserializeAws_restXmlNoSuchBucketResponse = async (parsedOutput, context)
8587
8587
  $metadata: deserializeMetadata(parsedOutput),
8588
8588
  ...contents,
8589
8589
  });
8590
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
8590
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
8591
8591
  };
8592
8592
  const deserializeAws_restXmlNoSuchKeyResponse = async (parsedOutput, context) => {
8593
8593
  const contents = {};
@@ -8596,7 +8596,7 @@ const deserializeAws_restXmlNoSuchKeyResponse = async (parsedOutput, context) =>
8596
8596
  $metadata: deserializeMetadata(parsedOutput),
8597
8597
  ...contents,
8598
8598
  });
8599
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
8599
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
8600
8600
  };
8601
8601
  const deserializeAws_restXmlNoSuchUploadResponse = async (parsedOutput, context) => {
8602
8602
  const contents = {};
@@ -8605,7 +8605,7 @@ const deserializeAws_restXmlNoSuchUploadResponse = async (parsedOutput, context)
8605
8605
  $metadata: deserializeMetadata(parsedOutput),
8606
8606
  ...contents,
8607
8607
  });
8608
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
8608
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
8609
8609
  };
8610
8610
  const deserializeAws_restXmlNotFoundResponse = async (parsedOutput, context) => {
8611
8611
  const contents = {};
@@ -8614,7 +8614,7 @@ const deserializeAws_restXmlNotFoundResponse = async (parsedOutput, context) =>
8614
8614
  $metadata: deserializeMetadata(parsedOutput),
8615
8615
  ...contents,
8616
8616
  });
8617
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
8617
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
8618
8618
  };
8619
8619
  const deserializeAws_restXmlObjectAlreadyInActiveTierErrorResponse = async (parsedOutput, context) => {
8620
8620
  const contents = {};
@@ -8623,7 +8623,7 @@ const deserializeAws_restXmlObjectAlreadyInActiveTierErrorResponse = async (pars
8623
8623
  $metadata: deserializeMetadata(parsedOutput),
8624
8624
  ...contents,
8625
8625
  });
8626
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
8626
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
8627
8627
  };
8628
8628
  const deserializeAws_restXmlObjectNotInActiveTierErrorResponse = async (parsedOutput, context) => {
8629
8629
  const contents = {};
@@ -8632,7 +8632,7 @@ const deserializeAws_restXmlObjectNotInActiveTierErrorResponse = async (parsedOu
8632
8632
  $metadata: deserializeMetadata(parsedOutput),
8633
8633
  ...contents,
8634
8634
  });
8635
- return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
8635
+ return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
8636
8636
  };
8637
8637
  const serializeAws_restXmlAbortIncompleteMultipartUpload = (input, context) => {
8638
8638
  const bodyNode = new xml_builder_1.XmlNode("AbortIncompleteMultipartUpload");
@@ -10691,7 +10691,7 @@ const deserializeAws_restXmlAbortIncompleteMultipartUpload = (output, context) =
10691
10691
  DaysAfterInitiation: undefined,
10692
10692
  };
10693
10693
  if (output["DaysAfterInitiation"] !== undefined) {
10694
- contents.DaysAfterInitiation = smithy_client_1.strictParseInt32(output["DaysAfterInitiation"]);
10694
+ contents.DaysAfterInitiation = (0, smithy_client_1.strictParseInt32)(output["DaysAfterInitiation"]);
10695
10695
  }
10696
10696
  return contents;
10697
10697
  };
@@ -10700,7 +10700,7 @@ const deserializeAws_restXmlAccessControlTranslation = (output, context) => {
10700
10700
  Owner: undefined,
10701
10701
  };
10702
10702
  if (output["Owner"] !== undefined) {
10703
- contents.Owner = smithy_client_1.expectString(output["Owner"]);
10703
+ contents.Owner = (0, smithy_client_1.expectString)(output["Owner"]);
10704
10704
  }
10705
10705
  return contents;
10706
10706
  };
@@ -10711,7 +10711,7 @@ const deserializeAws_restXmlAllowedHeaders = (output, context) => {
10711
10711
  if (entry === null) {
10712
10712
  return null;
10713
10713
  }
10714
- return smithy_client_1.expectString(entry);
10714
+ return (0, smithy_client_1.expectString)(entry);
10715
10715
  });
10716
10716
  };
10717
10717
  const deserializeAws_restXmlAllowedMethods = (output, context) => {
@@ -10721,7 +10721,7 @@ const deserializeAws_restXmlAllowedMethods = (output, context) => {
10721
10721
  if (entry === null) {
10722
10722
  return null;
10723
10723
  }
10724
- return smithy_client_1.expectString(entry);
10724
+ return (0, smithy_client_1.expectString)(entry);
10725
10725
  });
10726
10726
  };
10727
10727
  const deserializeAws_restXmlAllowedOrigins = (output, context) => {
@@ -10731,7 +10731,7 @@ const deserializeAws_restXmlAllowedOrigins = (output, context) => {
10731
10731
  if (entry === null) {
10732
10732
  return null;
10733
10733
  }
10734
- return smithy_client_1.expectString(entry);
10734
+ return (0, smithy_client_1.expectString)(entry);
10735
10735
  });
10736
10736
  };
10737
10737
  const deserializeAws_restXmlAnalyticsAndOperator = (output, context) => {
@@ -10740,13 +10740,13 @@ const deserializeAws_restXmlAnalyticsAndOperator = (output, context) => {
10740
10740
  Tags: undefined,
10741
10741
  };
10742
10742
  if (output["Prefix"] !== undefined) {
10743
- contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
10743
+ contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
10744
10744
  }
10745
10745
  if (output.Tag === "") {
10746
10746
  contents.Tags = [];
10747
10747
  }
10748
10748
  if (output["Tag"] !== undefined) {
10749
- contents.Tags = deserializeAws_restXmlTagSet(smithy_client_1.getArrayIfSingleItem(output["Tag"]), context);
10749
+ contents.Tags = deserializeAws_restXmlTagSet((0, smithy_client_1.getArrayIfSingleItem)(output["Tag"]), context);
10750
10750
  }
10751
10751
  return contents;
10752
10752
  };
@@ -10757,10 +10757,10 @@ const deserializeAws_restXmlAnalyticsConfiguration = (output, context) => {
10757
10757
  StorageClassAnalysis: undefined,
10758
10758
  };
10759
10759
  if (output["Id"] !== undefined) {
10760
- contents.Id = smithy_client_1.expectString(output["Id"]);
10760
+ contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
10761
10761
  }
10762
10762
  if (output["Filter"] !== undefined) {
10763
- contents.Filter = deserializeAws_restXmlAnalyticsFilter(smithy_client_1.expectUnion(output["Filter"]), context);
10763
+ contents.Filter = deserializeAws_restXmlAnalyticsFilter((0, smithy_client_1.expectUnion)(output["Filter"]), context);
10764
10764
  }
10765
10765
  if (output["StorageClassAnalysis"] !== undefined) {
10766
10766
  contents.StorageClassAnalysis = deserializeAws_restXmlStorageClassAnalysis(output["StorageClassAnalysis"], context);
@@ -10789,7 +10789,7 @@ const deserializeAws_restXmlAnalyticsExportDestination = (output, context) => {
10789
10789
  const deserializeAws_restXmlAnalyticsFilter = (output, context) => {
10790
10790
  if (output["Prefix"] !== undefined) {
10791
10791
  return {
10792
- Prefix: smithy_client_1.expectString(output["Prefix"]),
10792
+ Prefix: (0, smithy_client_1.expectString)(output["Prefix"]),
10793
10793
  };
10794
10794
  }
10795
10795
  if (output["Tag"] !== undefined) {
@@ -10812,16 +10812,16 @@ const deserializeAws_restXmlAnalyticsS3BucketDestination = (output, context) =>
10812
10812
  Prefix: undefined,
10813
10813
  };
10814
10814
  if (output["Format"] !== undefined) {
10815
- contents.Format = smithy_client_1.expectString(output["Format"]);
10815
+ contents.Format = (0, smithy_client_1.expectString)(output["Format"]);
10816
10816
  }
10817
10817
  if (output["BucketAccountId"] !== undefined) {
10818
- contents.BucketAccountId = smithy_client_1.expectString(output["BucketAccountId"]);
10818
+ contents.BucketAccountId = (0, smithy_client_1.expectString)(output["BucketAccountId"]);
10819
10819
  }
10820
10820
  if (output["Bucket"] !== undefined) {
10821
- contents.Bucket = smithy_client_1.expectString(output["Bucket"]);
10821
+ contents.Bucket = (0, smithy_client_1.expectString)(output["Bucket"]);
10822
10822
  }
10823
10823
  if (output["Prefix"] !== undefined) {
10824
- contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
10824
+ contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
10825
10825
  }
10826
10826
  return contents;
10827
10827
  };
@@ -10831,10 +10831,10 @@ const deserializeAws_restXmlBucket = (output, context) => {
10831
10831
  CreationDate: undefined,
10832
10832
  };
10833
10833
  if (output["Name"] !== undefined) {
10834
- contents.Name = smithy_client_1.expectString(output["Name"]);
10834
+ contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
10835
10835
  }
10836
10836
  if (output["CreationDate"] !== undefined) {
10837
- contents.CreationDate = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["CreationDate"]));
10837
+ contents.CreationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["CreationDate"]));
10838
10838
  }
10839
10839
  return contents;
10840
10840
  };
@@ -10856,16 +10856,16 @@ const deserializeAws_restXmlChecksum = (output, context) => {
10856
10856
  ChecksumSHA256: undefined,
10857
10857
  };
10858
10858
  if (output["ChecksumCRC32"] !== undefined) {
10859
- contents.ChecksumCRC32 = smithy_client_1.expectString(output["ChecksumCRC32"]);
10859
+ contents.ChecksumCRC32 = (0, smithy_client_1.expectString)(output["ChecksumCRC32"]);
10860
10860
  }
10861
10861
  if (output["ChecksumCRC32C"] !== undefined) {
10862
- contents.ChecksumCRC32C = smithy_client_1.expectString(output["ChecksumCRC32C"]);
10862
+ contents.ChecksumCRC32C = (0, smithy_client_1.expectString)(output["ChecksumCRC32C"]);
10863
10863
  }
10864
10864
  if (output["ChecksumSHA1"] !== undefined) {
10865
- contents.ChecksumSHA1 = smithy_client_1.expectString(output["ChecksumSHA1"]);
10865
+ contents.ChecksumSHA1 = (0, smithy_client_1.expectString)(output["ChecksumSHA1"]);
10866
10866
  }
10867
10867
  if (output["ChecksumSHA256"] !== undefined) {
10868
- contents.ChecksumSHA256 = smithy_client_1.expectString(output["ChecksumSHA256"]);
10868
+ contents.ChecksumSHA256 = (0, smithy_client_1.expectString)(output["ChecksumSHA256"]);
10869
10869
  }
10870
10870
  return contents;
10871
10871
  };
@@ -10876,7 +10876,7 @@ const deserializeAws_restXmlChecksumAlgorithmList = (output, context) => {
10876
10876
  if (entry === null) {
10877
10877
  return null;
10878
10878
  }
10879
- return smithy_client_1.expectString(entry);
10879
+ return (0, smithy_client_1.expectString)(entry);
10880
10880
  });
10881
10881
  };
10882
10882
  const deserializeAws_restXmlCommonPrefix = (output, context) => {
@@ -10884,7 +10884,7 @@ const deserializeAws_restXmlCommonPrefix = (output, context) => {
10884
10884
  Prefix: undefined,
10885
10885
  };
10886
10886
  if (output["Prefix"] !== undefined) {
10887
- contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
10887
+ contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
10888
10888
  }
10889
10889
  return contents;
10890
10890
  };
@@ -10904,10 +10904,10 @@ const deserializeAws_restXmlCondition = (output, context) => {
10904
10904
  KeyPrefixEquals: undefined,
10905
10905
  };
10906
10906
  if (output["HttpErrorCodeReturnedEquals"] !== undefined) {
10907
- contents.HttpErrorCodeReturnedEquals = smithy_client_1.expectString(output["HttpErrorCodeReturnedEquals"]);
10907
+ contents.HttpErrorCodeReturnedEquals = (0, smithy_client_1.expectString)(output["HttpErrorCodeReturnedEquals"]);
10908
10908
  }
10909
10909
  if (output["KeyPrefixEquals"] !== undefined) {
10910
- contents.KeyPrefixEquals = smithy_client_1.expectString(output["KeyPrefixEquals"]);
10910
+ contents.KeyPrefixEquals = (0, smithy_client_1.expectString)(output["KeyPrefixEquals"]);
10911
10911
  }
10912
10912
  return contents;
10913
10913
  };
@@ -10925,22 +10925,22 @@ const deserializeAws_restXmlCopyObjectResult = (output, context) => {
10925
10925
  ChecksumSHA256: undefined,
10926
10926
  };
10927
10927
  if (output["ETag"] !== undefined) {
10928
- contents.ETag = smithy_client_1.expectString(output["ETag"]);
10928
+ contents.ETag = (0, smithy_client_1.expectString)(output["ETag"]);
10929
10929
  }
10930
10930
  if (output["LastModified"] !== undefined) {
10931
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["LastModified"]));
10931
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["LastModified"]));
10932
10932
  }
10933
10933
  if (output["ChecksumCRC32"] !== undefined) {
10934
- contents.ChecksumCRC32 = smithy_client_1.expectString(output["ChecksumCRC32"]);
10934
+ contents.ChecksumCRC32 = (0, smithy_client_1.expectString)(output["ChecksumCRC32"]);
10935
10935
  }
10936
10936
  if (output["ChecksumCRC32C"] !== undefined) {
10937
- contents.ChecksumCRC32C = smithy_client_1.expectString(output["ChecksumCRC32C"]);
10937
+ contents.ChecksumCRC32C = (0, smithy_client_1.expectString)(output["ChecksumCRC32C"]);
10938
10938
  }
10939
10939
  if (output["ChecksumSHA1"] !== undefined) {
10940
- contents.ChecksumSHA1 = smithy_client_1.expectString(output["ChecksumSHA1"]);
10940
+ contents.ChecksumSHA1 = (0, smithy_client_1.expectString)(output["ChecksumSHA1"]);
10941
10941
  }
10942
10942
  if (output["ChecksumSHA256"] !== undefined) {
10943
- contents.ChecksumSHA256 = smithy_client_1.expectString(output["ChecksumSHA256"]);
10943
+ contents.ChecksumSHA256 = (0, smithy_client_1.expectString)(output["ChecksumSHA256"]);
10944
10944
  }
10945
10945
  return contents;
10946
10946
  };
@@ -10954,22 +10954,22 @@ const deserializeAws_restXmlCopyPartResult = (output, context) => {
10954
10954
  ChecksumSHA256: undefined,
10955
10955
  };
10956
10956
  if (output["ETag"] !== undefined) {
10957
- contents.ETag = smithy_client_1.expectString(output["ETag"]);
10957
+ contents.ETag = (0, smithy_client_1.expectString)(output["ETag"]);
10958
10958
  }
10959
10959
  if (output["LastModified"] !== undefined) {
10960
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["LastModified"]));
10960
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["LastModified"]));
10961
10961
  }
10962
10962
  if (output["ChecksumCRC32"] !== undefined) {
10963
- contents.ChecksumCRC32 = smithy_client_1.expectString(output["ChecksumCRC32"]);
10963
+ contents.ChecksumCRC32 = (0, smithy_client_1.expectString)(output["ChecksumCRC32"]);
10964
10964
  }
10965
10965
  if (output["ChecksumCRC32C"] !== undefined) {
10966
- contents.ChecksumCRC32C = smithy_client_1.expectString(output["ChecksumCRC32C"]);
10966
+ contents.ChecksumCRC32C = (0, smithy_client_1.expectString)(output["ChecksumCRC32C"]);
10967
10967
  }
10968
10968
  if (output["ChecksumSHA1"] !== undefined) {
10969
- contents.ChecksumSHA1 = smithy_client_1.expectString(output["ChecksumSHA1"]);
10969
+ contents.ChecksumSHA1 = (0, smithy_client_1.expectString)(output["ChecksumSHA1"]);
10970
10970
  }
10971
10971
  if (output["ChecksumSHA256"] !== undefined) {
10972
- contents.ChecksumSHA256 = smithy_client_1.expectString(output["ChecksumSHA256"]);
10972
+ contents.ChecksumSHA256 = (0, smithy_client_1.expectString)(output["ChecksumSHA256"]);
10973
10973
  }
10974
10974
  return contents;
10975
10975
  };
@@ -10983,34 +10983,34 @@ const deserializeAws_restXmlCORSRule = (output, context) => {
10983
10983
  MaxAgeSeconds: undefined,
10984
10984
  };
10985
10985
  if (output["ID"] !== undefined) {
10986
- contents.ID = smithy_client_1.expectString(output["ID"]);
10986
+ contents.ID = (0, smithy_client_1.expectString)(output["ID"]);
10987
10987
  }
10988
10988
  if (output.AllowedHeader === "") {
10989
10989
  contents.AllowedHeaders = [];
10990
10990
  }
10991
10991
  if (output["AllowedHeader"] !== undefined) {
10992
- contents.AllowedHeaders = deserializeAws_restXmlAllowedHeaders(smithy_client_1.getArrayIfSingleItem(output["AllowedHeader"]), context);
10992
+ contents.AllowedHeaders = deserializeAws_restXmlAllowedHeaders((0, smithy_client_1.getArrayIfSingleItem)(output["AllowedHeader"]), context);
10993
10993
  }
10994
10994
  if (output.AllowedMethod === "") {
10995
10995
  contents.AllowedMethods = [];
10996
10996
  }
10997
10997
  if (output["AllowedMethod"] !== undefined) {
10998
- contents.AllowedMethods = deserializeAws_restXmlAllowedMethods(smithy_client_1.getArrayIfSingleItem(output["AllowedMethod"]), context);
10998
+ contents.AllowedMethods = deserializeAws_restXmlAllowedMethods((0, smithy_client_1.getArrayIfSingleItem)(output["AllowedMethod"]), context);
10999
10999
  }
11000
11000
  if (output.AllowedOrigin === "") {
11001
11001
  contents.AllowedOrigins = [];
11002
11002
  }
11003
11003
  if (output["AllowedOrigin"] !== undefined) {
11004
- contents.AllowedOrigins = deserializeAws_restXmlAllowedOrigins(smithy_client_1.getArrayIfSingleItem(output["AllowedOrigin"]), context);
11004
+ contents.AllowedOrigins = deserializeAws_restXmlAllowedOrigins((0, smithy_client_1.getArrayIfSingleItem)(output["AllowedOrigin"]), context);
11005
11005
  }
11006
11006
  if (output.ExposeHeader === "") {
11007
11007
  contents.ExposeHeaders = [];
11008
11008
  }
11009
11009
  if (output["ExposeHeader"] !== undefined) {
11010
- contents.ExposeHeaders = deserializeAws_restXmlExposeHeaders(smithy_client_1.getArrayIfSingleItem(output["ExposeHeader"]), context);
11010
+ contents.ExposeHeaders = deserializeAws_restXmlExposeHeaders((0, smithy_client_1.getArrayIfSingleItem)(output["ExposeHeader"]), context);
11011
11011
  }
11012
11012
  if (output["MaxAgeSeconds"] !== undefined) {
11013
- contents.MaxAgeSeconds = smithy_client_1.strictParseInt32(output["MaxAgeSeconds"]);
11013
+ contents.MaxAgeSeconds = (0, smithy_client_1.strictParseInt32)(output["MaxAgeSeconds"]);
11014
11014
  }
11015
11015
  return contents;
11016
11016
  };
@@ -11031,13 +11031,13 @@ const deserializeAws_restXmlDefaultRetention = (output, context) => {
11031
11031
  Years: undefined,
11032
11032
  };
11033
11033
  if (output["Mode"] !== undefined) {
11034
- contents.Mode = smithy_client_1.expectString(output["Mode"]);
11034
+ contents.Mode = (0, smithy_client_1.expectString)(output["Mode"]);
11035
11035
  }
11036
11036
  if (output["Days"] !== undefined) {
11037
- contents.Days = smithy_client_1.strictParseInt32(output["Days"]);
11037
+ contents.Days = (0, smithy_client_1.strictParseInt32)(output["Days"]);
11038
11038
  }
11039
11039
  if (output["Years"] !== undefined) {
11040
- contents.Years = smithy_client_1.strictParseInt32(output["Years"]);
11040
+ contents.Years = (0, smithy_client_1.strictParseInt32)(output["Years"]);
11041
11041
  }
11042
11042
  return contents;
11043
11043
  };
@@ -11049,16 +11049,16 @@ const deserializeAws_restXmlDeletedObject = (output, context) => {
11049
11049
  DeleteMarkerVersionId: undefined,
11050
11050
  };
11051
11051
  if (output["Key"] !== undefined) {
11052
- contents.Key = smithy_client_1.expectString(output["Key"]);
11052
+ contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
11053
11053
  }
11054
11054
  if (output["VersionId"] !== undefined) {
11055
- contents.VersionId = smithy_client_1.expectString(output["VersionId"]);
11055
+ contents.VersionId = (0, smithy_client_1.expectString)(output["VersionId"]);
11056
11056
  }
11057
11057
  if (output["DeleteMarker"] !== undefined) {
11058
- contents.DeleteMarker = smithy_client_1.parseBoolean(output["DeleteMarker"]);
11058
+ contents.DeleteMarker = (0, smithy_client_1.parseBoolean)(output["DeleteMarker"]);
11059
11059
  }
11060
11060
  if (output["DeleteMarkerVersionId"] !== undefined) {
11061
- contents.DeleteMarkerVersionId = smithy_client_1.expectString(output["DeleteMarkerVersionId"]);
11061
+ contents.DeleteMarkerVersionId = (0, smithy_client_1.expectString)(output["DeleteMarkerVersionId"]);
11062
11062
  }
11063
11063
  return contents;
11064
11064
  };
@@ -11084,16 +11084,16 @@ const deserializeAws_restXmlDeleteMarkerEntry = (output, context) => {
11084
11084
  contents.Owner = deserializeAws_restXmlOwner(output["Owner"], context);
11085
11085
  }
11086
11086
  if (output["Key"] !== undefined) {
11087
- contents.Key = smithy_client_1.expectString(output["Key"]);
11087
+ contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
11088
11088
  }
11089
11089
  if (output["VersionId"] !== undefined) {
11090
- contents.VersionId = smithy_client_1.expectString(output["VersionId"]);
11090
+ contents.VersionId = (0, smithy_client_1.expectString)(output["VersionId"]);
11091
11091
  }
11092
11092
  if (output["IsLatest"] !== undefined) {
11093
- contents.IsLatest = smithy_client_1.parseBoolean(output["IsLatest"]);
11093
+ contents.IsLatest = (0, smithy_client_1.parseBoolean)(output["IsLatest"]);
11094
11094
  }
11095
11095
  if (output["LastModified"] !== undefined) {
11096
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["LastModified"]));
11096
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["LastModified"]));
11097
11097
  }
11098
11098
  return contents;
11099
11099
  };
@@ -11102,7 +11102,7 @@ const deserializeAws_restXmlDeleteMarkerReplication = (output, context) => {
11102
11102
  Status: undefined,
11103
11103
  };
11104
11104
  if (output["Status"] !== undefined) {
11105
- contents.Status = smithy_client_1.expectString(output["Status"]);
11105
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
11106
11106
  }
11107
11107
  return contents;
11108
11108
  };
@@ -11127,13 +11127,13 @@ const deserializeAws_restXmlDestination = (output, context) => {
11127
11127
  Metrics: undefined,
11128
11128
  };
11129
11129
  if (output["Bucket"] !== undefined) {
11130
- contents.Bucket = smithy_client_1.expectString(output["Bucket"]);
11130
+ contents.Bucket = (0, smithy_client_1.expectString)(output["Bucket"]);
11131
11131
  }
11132
11132
  if (output["Account"] !== undefined) {
11133
- contents.Account = smithy_client_1.expectString(output["Account"]);
11133
+ contents.Account = (0, smithy_client_1.expectString)(output["Account"]);
11134
11134
  }
11135
11135
  if (output["StorageClass"] !== undefined) {
11136
- contents.StorageClass = smithy_client_1.expectString(output["StorageClass"]);
11136
+ contents.StorageClass = (0, smithy_client_1.expectString)(output["StorageClass"]);
11137
11137
  }
11138
11138
  if (output["AccessControlTranslation"] !== undefined) {
11139
11139
  contents.AccessControlTranslation = deserializeAws_restXmlAccessControlTranslation(output["AccessControlTranslation"], context);
@@ -11154,7 +11154,7 @@ const deserializeAws_restXmlEncryptionConfiguration = (output, context) => {
11154
11154
  ReplicaKmsKeyID: undefined,
11155
11155
  };
11156
11156
  if (output["ReplicaKmsKeyID"] !== undefined) {
11157
- contents.ReplicaKmsKeyID = smithy_client_1.expectString(output["ReplicaKmsKeyID"]);
11157
+ contents.ReplicaKmsKeyID = (0, smithy_client_1.expectString)(output["ReplicaKmsKeyID"]);
11158
11158
  }
11159
11159
  return contents;
11160
11160
  };
@@ -11170,16 +11170,16 @@ const deserializeAws_restXml_Error = (output, context) => {
11170
11170
  Message: undefined,
11171
11171
  };
11172
11172
  if (output["Key"] !== undefined) {
11173
- contents.Key = smithy_client_1.expectString(output["Key"]);
11173
+ contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
11174
11174
  }
11175
11175
  if (output["VersionId"] !== undefined) {
11176
- contents.VersionId = smithy_client_1.expectString(output["VersionId"]);
11176
+ contents.VersionId = (0, smithy_client_1.expectString)(output["VersionId"]);
11177
11177
  }
11178
11178
  if (output["Code"] !== undefined) {
11179
- contents.Code = smithy_client_1.expectString(output["Code"]);
11179
+ contents.Code = (0, smithy_client_1.expectString)(output["Code"]);
11180
11180
  }
11181
11181
  if (output["Message"] !== undefined) {
11182
- contents.Message = smithy_client_1.expectString(output["Message"]);
11182
+ contents.Message = (0, smithy_client_1.expectString)(output["Message"]);
11183
11183
  }
11184
11184
  return contents;
11185
11185
  };
@@ -11188,7 +11188,7 @@ const deserializeAws_restXmlErrorDocument = (output, context) => {
11188
11188
  Key: undefined,
11189
11189
  };
11190
11190
  if (output["Key"] !== undefined) {
11191
- contents.Key = smithy_client_1.expectString(output["Key"]);
11191
+ contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
11192
11192
  }
11193
11193
  return contents;
11194
11194
  };
@@ -11213,7 +11213,7 @@ const deserializeAws_restXmlEventList = (output, context) => {
11213
11213
  if (entry === null) {
11214
11214
  return null;
11215
11215
  }
11216
- return smithy_client_1.expectString(entry);
11216
+ return (0, smithy_client_1.expectString)(entry);
11217
11217
  });
11218
11218
  };
11219
11219
  const deserializeAws_restXmlExistingObjectReplication = (output, context) => {
@@ -11221,7 +11221,7 @@ const deserializeAws_restXmlExistingObjectReplication = (output, context) => {
11221
11221
  Status: undefined,
11222
11222
  };
11223
11223
  if (output["Status"] !== undefined) {
11224
- contents.Status = smithy_client_1.expectString(output["Status"]);
11224
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
11225
11225
  }
11226
11226
  return contents;
11227
11227
  };
@@ -11232,7 +11232,7 @@ const deserializeAws_restXmlExposeHeaders = (output, context) => {
11232
11232
  if (entry === null) {
11233
11233
  return null;
11234
11234
  }
11235
- return smithy_client_1.expectString(entry);
11235
+ return (0, smithy_client_1.expectString)(entry);
11236
11236
  });
11237
11237
  };
11238
11238
  const deserializeAws_restXmlFilterRule = (output, context) => {
@@ -11241,10 +11241,10 @@ const deserializeAws_restXmlFilterRule = (output, context) => {
11241
11241
  Value: undefined,
11242
11242
  };
11243
11243
  if (output["Name"] !== undefined) {
11244
- contents.Name = smithy_client_1.expectString(output["Name"]);
11244
+ contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
11245
11245
  }
11246
11246
  if (output["Value"] !== undefined) {
11247
- contents.Value = smithy_client_1.expectString(output["Value"]);
11247
+ contents.Value = (0, smithy_client_1.expectString)(output["Value"]);
11248
11248
  }
11249
11249
  return contents;
11250
11250
  };
@@ -11268,25 +11268,25 @@ const deserializeAws_restXmlGetObjectAttributesParts = (output, context) => {
11268
11268
  Parts: undefined,
11269
11269
  };
11270
11270
  if (output["PartsCount"] !== undefined) {
11271
- contents.TotalPartsCount = smithy_client_1.strictParseInt32(output["PartsCount"]);
11271
+ contents.TotalPartsCount = (0, smithy_client_1.strictParseInt32)(output["PartsCount"]);
11272
11272
  }
11273
11273
  if (output["PartNumberMarker"] !== undefined) {
11274
- contents.PartNumberMarker = smithy_client_1.expectString(output["PartNumberMarker"]);
11274
+ contents.PartNumberMarker = (0, smithy_client_1.expectString)(output["PartNumberMarker"]);
11275
11275
  }
11276
11276
  if (output["NextPartNumberMarker"] !== undefined) {
11277
- contents.NextPartNumberMarker = smithy_client_1.expectString(output["NextPartNumberMarker"]);
11277
+ contents.NextPartNumberMarker = (0, smithy_client_1.expectString)(output["NextPartNumberMarker"]);
11278
11278
  }
11279
11279
  if (output["MaxParts"] !== undefined) {
11280
- contents.MaxParts = smithy_client_1.strictParseInt32(output["MaxParts"]);
11280
+ contents.MaxParts = (0, smithy_client_1.strictParseInt32)(output["MaxParts"]);
11281
11281
  }
11282
11282
  if (output["IsTruncated"] !== undefined) {
11283
- contents.IsTruncated = smithy_client_1.parseBoolean(output["IsTruncated"]);
11283
+ contents.IsTruncated = (0, smithy_client_1.parseBoolean)(output["IsTruncated"]);
11284
11284
  }
11285
11285
  if (output.Part === "") {
11286
11286
  contents.Parts = [];
11287
11287
  }
11288
11288
  if (output["Part"] !== undefined) {
11289
- contents.Parts = deserializeAws_restXmlPartsList(smithy_client_1.getArrayIfSingleItem(output["Part"]), context);
11289
+ contents.Parts = deserializeAws_restXmlPartsList((0, smithy_client_1.getArrayIfSingleItem)(output["Part"]), context);
11290
11290
  }
11291
11291
  return contents;
11292
11292
  };
@@ -11299,7 +11299,7 @@ const deserializeAws_restXmlGrant = (output, context) => {
11299
11299
  contents.Grantee = deserializeAws_restXmlGrantee(output["Grantee"], context);
11300
11300
  }
11301
11301
  if (output["Permission"] !== undefined) {
11302
- contents.Permission = smithy_client_1.expectString(output["Permission"]);
11302
+ contents.Permission = (0, smithy_client_1.expectString)(output["Permission"]);
11303
11303
  }
11304
11304
  return contents;
11305
11305
  };
@@ -11312,19 +11312,19 @@ const deserializeAws_restXmlGrantee = (output, context) => {
11312
11312
  Type: undefined,
11313
11313
  };
11314
11314
  if (output["DisplayName"] !== undefined) {
11315
- contents.DisplayName = smithy_client_1.expectString(output["DisplayName"]);
11315
+ contents.DisplayName = (0, smithy_client_1.expectString)(output["DisplayName"]);
11316
11316
  }
11317
11317
  if (output["EmailAddress"] !== undefined) {
11318
- contents.EmailAddress = smithy_client_1.expectString(output["EmailAddress"]);
11318
+ contents.EmailAddress = (0, smithy_client_1.expectString)(output["EmailAddress"]);
11319
11319
  }
11320
11320
  if (output["ID"] !== undefined) {
11321
- contents.ID = smithy_client_1.expectString(output["ID"]);
11321
+ contents.ID = (0, smithy_client_1.expectString)(output["ID"]);
11322
11322
  }
11323
11323
  if (output["URI"] !== undefined) {
11324
- contents.URI = smithy_client_1.expectString(output["URI"]);
11324
+ contents.URI = (0, smithy_client_1.expectString)(output["URI"]);
11325
11325
  }
11326
11326
  if (output["xsi:type"] !== undefined) {
11327
- contents.Type = smithy_client_1.expectString(output["xsi:type"]);
11327
+ contents.Type = (0, smithy_client_1.expectString)(output["xsi:type"]);
11328
11328
  }
11329
11329
  return contents;
11330
11330
  };
@@ -11343,7 +11343,7 @@ const deserializeAws_restXmlIndexDocument = (output, context) => {
11343
11343
  Suffix: undefined,
11344
11344
  };
11345
11345
  if (output["Suffix"] !== undefined) {
11346
- contents.Suffix = smithy_client_1.expectString(output["Suffix"]);
11346
+ contents.Suffix = (0, smithy_client_1.expectString)(output["Suffix"]);
11347
11347
  }
11348
11348
  return contents;
11349
11349
  };
@@ -11353,10 +11353,10 @@ const deserializeAws_restXmlInitiator = (output, context) => {
11353
11353
  DisplayName: undefined,
11354
11354
  };
11355
11355
  if (output["ID"] !== undefined) {
11356
- contents.ID = smithy_client_1.expectString(output["ID"]);
11356
+ contents.ID = (0, smithy_client_1.expectString)(output["ID"]);
11357
11357
  }
11358
11358
  if (output["DisplayName"] !== undefined) {
11359
- contents.DisplayName = smithy_client_1.expectString(output["DisplayName"]);
11359
+ contents.DisplayName = (0, smithy_client_1.expectString)(output["DisplayName"]);
11360
11360
  }
11361
11361
  return contents;
11362
11362
  };
@@ -11366,13 +11366,13 @@ const deserializeAws_restXmlIntelligentTieringAndOperator = (output, context) =>
11366
11366
  Tags: undefined,
11367
11367
  };
11368
11368
  if (output["Prefix"] !== undefined) {
11369
- contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
11369
+ contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
11370
11370
  }
11371
11371
  if (output.Tag === "") {
11372
11372
  contents.Tags = [];
11373
11373
  }
11374
11374
  if (output["Tag"] !== undefined) {
11375
- contents.Tags = deserializeAws_restXmlTagSet(smithy_client_1.getArrayIfSingleItem(output["Tag"]), context);
11375
+ contents.Tags = deserializeAws_restXmlTagSet((0, smithy_client_1.getArrayIfSingleItem)(output["Tag"]), context);
11376
11376
  }
11377
11377
  return contents;
11378
11378
  };
@@ -11384,19 +11384,19 @@ const deserializeAws_restXmlIntelligentTieringConfiguration = (output, context)
11384
11384
  Tierings: undefined,
11385
11385
  };
11386
11386
  if (output["Id"] !== undefined) {
11387
- contents.Id = smithy_client_1.expectString(output["Id"]);
11387
+ contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
11388
11388
  }
11389
11389
  if (output["Filter"] !== undefined) {
11390
11390
  contents.Filter = deserializeAws_restXmlIntelligentTieringFilter(output["Filter"], context);
11391
11391
  }
11392
11392
  if (output["Status"] !== undefined) {
11393
- contents.Status = smithy_client_1.expectString(output["Status"]);
11393
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
11394
11394
  }
11395
11395
  if (output.Tiering === "") {
11396
11396
  contents.Tierings = [];
11397
11397
  }
11398
11398
  if (output["Tiering"] !== undefined) {
11399
- contents.Tierings = deserializeAws_restXmlTieringList(smithy_client_1.getArrayIfSingleItem(output["Tiering"]), context);
11399
+ contents.Tierings = deserializeAws_restXmlTieringList((0, smithy_client_1.getArrayIfSingleItem)(output["Tiering"]), context);
11400
11400
  }
11401
11401
  return contents;
11402
11402
  };
@@ -11417,7 +11417,7 @@ const deserializeAws_restXmlIntelligentTieringFilter = (output, context) => {
11417
11417
  And: undefined,
11418
11418
  };
11419
11419
  if (output["Prefix"] !== undefined) {
11420
- contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
11420
+ contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
11421
11421
  }
11422
11422
  if (output["Tag"] !== undefined) {
11423
11423
  contents.Tag = deserializeAws_restXmlTag(output["Tag"], context);
@@ -11441,22 +11441,22 @@ const deserializeAws_restXmlInventoryConfiguration = (output, context) => {
11441
11441
  contents.Destination = deserializeAws_restXmlInventoryDestination(output["Destination"], context);
11442
11442
  }
11443
11443
  if (output["IsEnabled"] !== undefined) {
11444
- contents.IsEnabled = smithy_client_1.parseBoolean(output["IsEnabled"]);
11444
+ contents.IsEnabled = (0, smithy_client_1.parseBoolean)(output["IsEnabled"]);
11445
11445
  }
11446
11446
  if (output["Filter"] !== undefined) {
11447
11447
  contents.Filter = deserializeAws_restXmlInventoryFilter(output["Filter"], context);
11448
11448
  }
11449
11449
  if (output["Id"] !== undefined) {
11450
- contents.Id = smithy_client_1.expectString(output["Id"]);
11450
+ contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
11451
11451
  }
11452
11452
  if (output["IncludedObjectVersions"] !== undefined) {
11453
- contents.IncludedObjectVersions = smithy_client_1.expectString(output["IncludedObjectVersions"]);
11453
+ contents.IncludedObjectVersions = (0, smithy_client_1.expectString)(output["IncludedObjectVersions"]);
11454
11454
  }
11455
11455
  if (output.OptionalFields === "") {
11456
11456
  contents.OptionalFields = [];
11457
11457
  }
11458
11458
  if (output["OptionalFields"] !== undefined && output["OptionalFields"]["Field"] !== undefined) {
11459
- contents.OptionalFields = deserializeAws_restXmlInventoryOptionalFields(smithy_client_1.getArrayIfSingleItem(output["OptionalFields"]["Field"]), context);
11459
+ contents.OptionalFields = deserializeAws_restXmlInventoryOptionalFields((0, smithy_client_1.getArrayIfSingleItem)(output["OptionalFields"]["Field"]), context);
11460
11460
  }
11461
11461
  if (output["Schedule"] !== undefined) {
11462
11462
  contents.Schedule = deserializeAws_restXmlInventorySchedule(output["Schedule"], context);
@@ -11500,7 +11500,7 @@ const deserializeAws_restXmlInventoryFilter = (output, context) => {
11500
11500
  Prefix: undefined,
11501
11501
  };
11502
11502
  if (output["Prefix"] !== undefined) {
11503
- contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
11503
+ contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
11504
11504
  }
11505
11505
  return contents;
11506
11506
  };
@@ -11511,7 +11511,7 @@ const deserializeAws_restXmlInventoryOptionalFields = (output, context) => {
11511
11511
  if (entry === null) {
11512
11512
  return null;
11513
11513
  }
11514
- return smithy_client_1.expectString(entry);
11514
+ return (0, smithy_client_1.expectString)(entry);
11515
11515
  });
11516
11516
  };
11517
11517
  const deserializeAws_restXmlInventoryS3BucketDestination = (output, context) => {
@@ -11523,16 +11523,16 @@ const deserializeAws_restXmlInventoryS3BucketDestination = (output, context) =>
11523
11523
  Encryption: undefined,
11524
11524
  };
11525
11525
  if (output["AccountId"] !== undefined) {
11526
- contents.AccountId = smithy_client_1.expectString(output["AccountId"]);
11526
+ contents.AccountId = (0, smithy_client_1.expectString)(output["AccountId"]);
11527
11527
  }
11528
11528
  if (output["Bucket"] !== undefined) {
11529
- contents.Bucket = smithy_client_1.expectString(output["Bucket"]);
11529
+ contents.Bucket = (0, smithy_client_1.expectString)(output["Bucket"]);
11530
11530
  }
11531
11531
  if (output["Format"] !== undefined) {
11532
- contents.Format = smithy_client_1.expectString(output["Format"]);
11532
+ contents.Format = (0, smithy_client_1.expectString)(output["Format"]);
11533
11533
  }
11534
11534
  if (output["Prefix"] !== undefined) {
11535
- contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
11535
+ contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
11536
11536
  }
11537
11537
  if (output["Encryption"] !== undefined) {
11538
11538
  contents.Encryption = deserializeAws_restXmlInventoryEncryption(output["Encryption"], context);
@@ -11544,7 +11544,7 @@ const deserializeAws_restXmlInventorySchedule = (output, context) => {
11544
11544
  Frequency: undefined,
11545
11545
  };
11546
11546
  if (output["Frequency"] !== undefined) {
11547
- contents.Frequency = smithy_client_1.expectString(output["Frequency"]);
11547
+ contents.Frequency = (0, smithy_client_1.expectString)(output["Frequency"]);
11548
11548
  }
11549
11549
  return contents;
11550
11550
  };
@@ -11556,16 +11556,16 @@ const deserializeAws_restXmlLambdaFunctionConfiguration = (output, context) => {
11556
11556
  Filter: undefined,
11557
11557
  };
11558
11558
  if (output["Id"] !== undefined) {
11559
- contents.Id = smithy_client_1.expectString(output["Id"]);
11559
+ contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
11560
11560
  }
11561
11561
  if (output["CloudFunction"] !== undefined) {
11562
- contents.LambdaFunctionArn = smithy_client_1.expectString(output["CloudFunction"]);
11562
+ contents.LambdaFunctionArn = (0, smithy_client_1.expectString)(output["CloudFunction"]);
11563
11563
  }
11564
11564
  if (output.Event === "") {
11565
11565
  contents.Events = [];
11566
11566
  }
11567
11567
  if (output["Event"] !== undefined) {
11568
- contents.Events = deserializeAws_restXmlEventList(smithy_client_1.getArrayIfSingleItem(output["Event"]), context);
11568
+ contents.Events = deserializeAws_restXmlEventList((0, smithy_client_1.getArrayIfSingleItem)(output["Event"]), context);
11569
11569
  }
11570
11570
  if (output["Filter"] !== undefined) {
11571
11571
  contents.Filter = deserializeAws_restXmlNotificationConfigurationFilter(output["Filter"], context);
@@ -11589,13 +11589,13 @@ const deserializeAws_restXmlLifecycleExpiration = (output, context) => {
11589
11589
  ExpiredObjectDeleteMarker: undefined,
11590
11590
  };
11591
11591
  if (output["Date"] !== undefined) {
11592
- contents.Date = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["Date"]));
11592
+ contents.Date = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["Date"]));
11593
11593
  }
11594
11594
  if (output["Days"] !== undefined) {
11595
- contents.Days = smithy_client_1.strictParseInt32(output["Days"]);
11595
+ contents.Days = (0, smithy_client_1.strictParseInt32)(output["Days"]);
11596
11596
  }
11597
11597
  if (output["ExpiredObjectDeleteMarker"] !== undefined) {
11598
- contents.ExpiredObjectDeleteMarker = smithy_client_1.parseBoolean(output["ExpiredObjectDeleteMarker"]);
11598
+ contents.ExpiredObjectDeleteMarker = (0, smithy_client_1.parseBoolean)(output["ExpiredObjectDeleteMarker"]);
11599
11599
  }
11600
11600
  return contents;
11601
11601
  };
@@ -11615,28 +11615,28 @@ const deserializeAws_restXmlLifecycleRule = (output, context) => {
11615
11615
  contents.Expiration = deserializeAws_restXmlLifecycleExpiration(output["Expiration"], context);
11616
11616
  }
11617
11617
  if (output["ID"] !== undefined) {
11618
- contents.ID = smithy_client_1.expectString(output["ID"]);
11618
+ contents.ID = (0, smithy_client_1.expectString)(output["ID"]);
11619
11619
  }
11620
11620
  if (output["Prefix"] !== undefined) {
11621
- contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
11621
+ contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
11622
11622
  }
11623
11623
  if (output["Filter"] !== undefined) {
11624
- contents.Filter = deserializeAws_restXmlLifecycleRuleFilter(smithy_client_1.expectUnion(output["Filter"]), context);
11624
+ contents.Filter = deserializeAws_restXmlLifecycleRuleFilter((0, smithy_client_1.expectUnion)(output["Filter"]), context);
11625
11625
  }
11626
11626
  if (output["Status"] !== undefined) {
11627
- contents.Status = smithy_client_1.expectString(output["Status"]);
11627
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
11628
11628
  }
11629
11629
  if (output.Transition === "") {
11630
11630
  contents.Transitions = [];
11631
11631
  }
11632
11632
  if (output["Transition"] !== undefined) {
11633
- contents.Transitions = deserializeAws_restXmlTransitionList(smithy_client_1.getArrayIfSingleItem(output["Transition"]), context);
11633
+ contents.Transitions = deserializeAws_restXmlTransitionList((0, smithy_client_1.getArrayIfSingleItem)(output["Transition"]), context);
11634
11634
  }
11635
11635
  if (output.NoncurrentVersionTransition === "") {
11636
11636
  contents.NoncurrentVersionTransitions = [];
11637
11637
  }
11638
11638
  if (output["NoncurrentVersionTransition"] !== undefined) {
11639
- contents.NoncurrentVersionTransitions = deserializeAws_restXmlNoncurrentVersionTransitionList(smithy_client_1.getArrayIfSingleItem(output["NoncurrentVersionTransition"]), context);
11639
+ contents.NoncurrentVersionTransitions = deserializeAws_restXmlNoncurrentVersionTransitionList((0, smithy_client_1.getArrayIfSingleItem)(output["NoncurrentVersionTransition"]), context);
11640
11640
  }
11641
11641
  if (output["NoncurrentVersionExpiration"] !== undefined) {
11642
11642
  contents.NoncurrentVersionExpiration = deserializeAws_restXmlNoncurrentVersionExpiration(output["NoncurrentVersionExpiration"], context);
@@ -11654,26 +11654,26 @@ const deserializeAws_restXmlLifecycleRuleAndOperator = (output, context) => {
11654
11654
  ObjectSizeLessThan: undefined,
11655
11655
  };
11656
11656
  if (output["Prefix"] !== undefined) {
11657
- contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
11657
+ contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
11658
11658
  }
11659
11659
  if (output.Tag === "") {
11660
11660
  contents.Tags = [];
11661
11661
  }
11662
11662
  if (output["Tag"] !== undefined) {
11663
- contents.Tags = deserializeAws_restXmlTagSet(smithy_client_1.getArrayIfSingleItem(output["Tag"]), context);
11663
+ contents.Tags = deserializeAws_restXmlTagSet((0, smithy_client_1.getArrayIfSingleItem)(output["Tag"]), context);
11664
11664
  }
11665
11665
  if (output["ObjectSizeGreaterThan"] !== undefined) {
11666
- contents.ObjectSizeGreaterThan = smithy_client_1.strictParseLong(output["ObjectSizeGreaterThan"]);
11666
+ contents.ObjectSizeGreaterThan = (0, smithy_client_1.strictParseLong)(output["ObjectSizeGreaterThan"]);
11667
11667
  }
11668
11668
  if (output["ObjectSizeLessThan"] !== undefined) {
11669
- contents.ObjectSizeLessThan = smithy_client_1.strictParseLong(output["ObjectSizeLessThan"]);
11669
+ contents.ObjectSizeLessThan = (0, smithy_client_1.strictParseLong)(output["ObjectSizeLessThan"]);
11670
11670
  }
11671
11671
  return contents;
11672
11672
  };
11673
11673
  const deserializeAws_restXmlLifecycleRuleFilter = (output, context) => {
11674
11674
  if (output["Prefix"] !== undefined) {
11675
11675
  return {
11676
- Prefix: smithy_client_1.expectString(output["Prefix"]),
11676
+ Prefix: (0, smithy_client_1.expectString)(output["Prefix"]),
11677
11677
  };
11678
11678
  }
11679
11679
  if (output["Tag"] !== undefined) {
@@ -11683,12 +11683,12 @@ const deserializeAws_restXmlLifecycleRuleFilter = (output, context) => {
11683
11683
  }
11684
11684
  if (output["ObjectSizeGreaterThan"] !== undefined) {
11685
11685
  return {
11686
- ObjectSizeGreaterThan: smithy_client_1.strictParseLong(output["ObjectSizeGreaterThan"]),
11686
+ ObjectSizeGreaterThan: (0, smithy_client_1.strictParseLong)(output["ObjectSizeGreaterThan"]),
11687
11687
  };
11688
11688
  }
11689
11689
  if (output["ObjectSizeLessThan"] !== undefined) {
11690
11690
  return {
11691
- ObjectSizeLessThan: smithy_client_1.strictParseLong(output["ObjectSizeLessThan"]),
11691
+ ObjectSizeLessThan: (0, smithy_client_1.strictParseLong)(output["ObjectSizeLessThan"]),
11692
11692
  };
11693
11693
  }
11694
11694
  if (output["And"] !== undefined) {
@@ -11715,16 +11715,16 @@ const deserializeAws_restXmlLoggingEnabled = (output, context) => {
11715
11715
  TargetPrefix: undefined,
11716
11716
  };
11717
11717
  if (output["TargetBucket"] !== undefined) {
11718
- contents.TargetBucket = smithy_client_1.expectString(output["TargetBucket"]);
11718
+ contents.TargetBucket = (0, smithy_client_1.expectString)(output["TargetBucket"]);
11719
11719
  }
11720
11720
  if (output.TargetGrants === "") {
11721
11721
  contents.TargetGrants = [];
11722
11722
  }
11723
11723
  if (output["TargetGrants"] !== undefined && output["TargetGrants"]["Grant"] !== undefined) {
11724
- contents.TargetGrants = deserializeAws_restXmlTargetGrants(smithy_client_1.getArrayIfSingleItem(output["TargetGrants"]["Grant"]), context);
11724
+ contents.TargetGrants = deserializeAws_restXmlTargetGrants((0, smithy_client_1.getArrayIfSingleItem)(output["TargetGrants"]["Grant"]), context);
11725
11725
  }
11726
11726
  if (output["TargetPrefix"] !== undefined) {
11727
- contents.TargetPrefix = smithy_client_1.expectString(output["TargetPrefix"]);
11727
+ contents.TargetPrefix = (0, smithy_client_1.expectString)(output["TargetPrefix"]);
11728
11728
  }
11729
11729
  return contents;
11730
11730
  };
@@ -11734,7 +11734,7 @@ const deserializeAws_restXmlMetrics = (output, context) => {
11734
11734
  EventThreshold: undefined,
11735
11735
  };
11736
11736
  if (output["Status"] !== undefined) {
11737
- contents.Status = smithy_client_1.expectString(output["Status"]);
11737
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
11738
11738
  }
11739
11739
  if (output["EventThreshold"] !== undefined) {
11740
11740
  contents.EventThreshold = deserializeAws_restXmlReplicationTimeValue(output["EventThreshold"], context);
@@ -11748,16 +11748,16 @@ const deserializeAws_restXmlMetricsAndOperator = (output, context) => {
11748
11748
  AccessPointArn: undefined,
11749
11749
  };
11750
11750
  if (output["Prefix"] !== undefined) {
11751
- contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
11751
+ contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
11752
11752
  }
11753
11753
  if (output.Tag === "") {
11754
11754
  contents.Tags = [];
11755
11755
  }
11756
11756
  if (output["Tag"] !== undefined) {
11757
- contents.Tags = deserializeAws_restXmlTagSet(smithy_client_1.getArrayIfSingleItem(output["Tag"]), context);
11757
+ contents.Tags = deserializeAws_restXmlTagSet((0, smithy_client_1.getArrayIfSingleItem)(output["Tag"]), context);
11758
11758
  }
11759
11759
  if (output["AccessPointArn"] !== undefined) {
11760
- contents.AccessPointArn = smithy_client_1.expectString(output["AccessPointArn"]);
11760
+ contents.AccessPointArn = (0, smithy_client_1.expectString)(output["AccessPointArn"]);
11761
11761
  }
11762
11762
  return contents;
11763
11763
  };
@@ -11767,10 +11767,10 @@ const deserializeAws_restXmlMetricsConfiguration = (output, context) => {
11767
11767
  Filter: undefined,
11768
11768
  };
11769
11769
  if (output["Id"] !== undefined) {
11770
- contents.Id = smithy_client_1.expectString(output["Id"]);
11770
+ contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
11771
11771
  }
11772
11772
  if (output["Filter"] !== undefined) {
11773
- contents.Filter = deserializeAws_restXmlMetricsFilter(smithy_client_1.expectUnion(output["Filter"]), context);
11773
+ contents.Filter = deserializeAws_restXmlMetricsFilter((0, smithy_client_1.expectUnion)(output["Filter"]), context);
11774
11774
  }
11775
11775
  return contents;
11776
11776
  };
@@ -11787,7 +11787,7 @@ const deserializeAws_restXmlMetricsConfigurationList = (output, context) => {
11787
11787
  const deserializeAws_restXmlMetricsFilter = (output, context) => {
11788
11788
  if (output["Prefix"] !== undefined) {
11789
11789
  return {
11790
- Prefix: smithy_client_1.expectString(output["Prefix"]),
11790
+ Prefix: (0, smithy_client_1.expectString)(output["Prefix"]),
11791
11791
  };
11792
11792
  }
11793
11793
  if (output["Tag"] !== undefined) {
@@ -11797,7 +11797,7 @@ const deserializeAws_restXmlMetricsFilter = (output, context) => {
11797
11797
  }
11798
11798
  if (output["AccessPointArn"] !== undefined) {
11799
11799
  return {
11800
- AccessPointArn: smithy_client_1.expectString(output["AccessPointArn"]),
11800
+ AccessPointArn: (0, smithy_client_1.expectString)(output["AccessPointArn"]),
11801
11801
  };
11802
11802
  }
11803
11803
  if (output["And"] !== undefined) {
@@ -11818,16 +11818,16 @@ const deserializeAws_restXmlMultipartUpload = (output, context) => {
11818
11818
  ChecksumAlgorithm: undefined,
11819
11819
  };
11820
11820
  if (output["UploadId"] !== undefined) {
11821
- contents.UploadId = smithy_client_1.expectString(output["UploadId"]);
11821
+ contents.UploadId = (0, smithy_client_1.expectString)(output["UploadId"]);
11822
11822
  }
11823
11823
  if (output["Key"] !== undefined) {
11824
- contents.Key = smithy_client_1.expectString(output["Key"]);
11824
+ contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
11825
11825
  }
11826
11826
  if (output["Initiated"] !== undefined) {
11827
- contents.Initiated = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["Initiated"]));
11827
+ contents.Initiated = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["Initiated"]));
11828
11828
  }
11829
11829
  if (output["StorageClass"] !== undefined) {
11830
- contents.StorageClass = smithy_client_1.expectString(output["StorageClass"]);
11830
+ contents.StorageClass = (0, smithy_client_1.expectString)(output["StorageClass"]);
11831
11831
  }
11832
11832
  if (output["Owner"] !== undefined) {
11833
11833
  contents.Owner = deserializeAws_restXmlOwner(output["Owner"], context);
@@ -11836,7 +11836,7 @@ const deserializeAws_restXmlMultipartUpload = (output, context) => {
11836
11836
  contents.Initiator = deserializeAws_restXmlInitiator(output["Initiator"], context);
11837
11837
  }
11838
11838
  if (output["ChecksumAlgorithm"] !== undefined) {
11839
- contents.ChecksumAlgorithm = smithy_client_1.expectString(output["ChecksumAlgorithm"]);
11839
+ contents.ChecksumAlgorithm = (0, smithy_client_1.expectString)(output["ChecksumAlgorithm"]);
11840
11840
  }
11841
11841
  return contents;
11842
11842
  };
@@ -11856,10 +11856,10 @@ const deserializeAws_restXmlNoncurrentVersionExpiration = (output, context) => {
11856
11856
  NewerNoncurrentVersions: undefined,
11857
11857
  };
11858
11858
  if (output["NoncurrentDays"] !== undefined) {
11859
- contents.NoncurrentDays = smithy_client_1.strictParseInt32(output["NoncurrentDays"]);
11859
+ contents.NoncurrentDays = (0, smithy_client_1.strictParseInt32)(output["NoncurrentDays"]);
11860
11860
  }
11861
11861
  if (output["NewerNoncurrentVersions"] !== undefined) {
11862
- contents.NewerNoncurrentVersions = smithy_client_1.strictParseInt32(output["NewerNoncurrentVersions"]);
11862
+ contents.NewerNoncurrentVersions = (0, smithy_client_1.strictParseInt32)(output["NewerNoncurrentVersions"]);
11863
11863
  }
11864
11864
  return contents;
11865
11865
  };
@@ -11870,13 +11870,13 @@ const deserializeAws_restXmlNoncurrentVersionTransition = (output, context) => {
11870
11870
  NewerNoncurrentVersions: undefined,
11871
11871
  };
11872
11872
  if (output["NoncurrentDays"] !== undefined) {
11873
- contents.NoncurrentDays = smithy_client_1.strictParseInt32(output["NoncurrentDays"]);
11873
+ contents.NoncurrentDays = (0, smithy_client_1.strictParseInt32)(output["NoncurrentDays"]);
11874
11874
  }
11875
11875
  if (output["StorageClass"] !== undefined) {
11876
- contents.StorageClass = smithy_client_1.expectString(output["StorageClass"]);
11876
+ contents.StorageClass = (0, smithy_client_1.expectString)(output["StorageClass"]);
11877
11877
  }
11878
11878
  if (output["NewerNoncurrentVersions"] !== undefined) {
11879
- contents.NewerNoncurrentVersions = smithy_client_1.strictParseInt32(output["NewerNoncurrentVersions"]);
11879
+ contents.NewerNoncurrentVersions = (0, smithy_client_1.strictParseInt32)(output["NewerNoncurrentVersions"]);
11880
11880
  }
11881
11881
  return contents;
11882
11882
  };
@@ -11910,25 +11910,25 @@ const deserializeAws_restXml_Object = (output, context) => {
11910
11910
  Owner: undefined,
11911
11911
  };
11912
11912
  if (output["Key"] !== undefined) {
11913
- contents.Key = smithy_client_1.expectString(output["Key"]);
11913
+ contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
11914
11914
  }
11915
11915
  if (output["LastModified"] !== undefined) {
11916
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["LastModified"]));
11916
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["LastModified"]));
11917
11917
  }
11918
11918
  if (output["ETag"] !== undefined) {
11919
- contents.ETag = smithy_client_1.expectString(output["ETag"]);
11919
+ contents.ETag = (0, smithy_client_1.expectString)(output["ETag"]);
11920
11920
  }
11921
11921
  if (output.ChecksumAlgorithm === "") {
11922
11922
  contents.ChecksumAlgorithm = [];
11923
11923
  }
11924
11924
  if (output["ChecksumAlgorithm"] !== undefined) {
11925
- contents.ChecksumAlgorithm = deserializeAws_restXmlChecksumAlgorithmList(smithy_client_1.getArrayIfSingleItem(output["ChecksumAlgorithm"]), context);
11925
+ contents.ChecksumAlgorithm = deserializeAws_restXmlChecksumAlgorithmList((0, smithy_client_1.getArrayIfSingleItem)(output["ChecksumAlgorithm"]), context);
11926
11926
  }
11927
11927
  if (output["Size"] !== undefined) {
11928
- contents.Size = smithy_client_1.strictParseLong(output["Size"]);
11928
+ contents.Size = (0, smithy_client_1.strictParseLong)(output["Size"]);
11929
11929
  }
11930
11930
  if (output["StorageClass"] !== undefined) {
11931
- contents.StorageClass = smithy_client_1.expectString(output["StorageClass"]);
11931
+ contents.StorageClass = (0, smithy_client_1.expectString)(output["StorageClass"]);
11932
11932
  }
11933
11933
  if (output["Owner"] !== undefined) {
11934
11934
  contents.Owner = deserializeAws_restXmlOwner(output["Owner"], context);
@@ -11951,7 +11951,7 @@ const deserializeAws_restXmlObjectLockConfiguration = (output, context) => {
11951
11951
  Rule: undefined,
11952
11952
  };
11953
11953
  if (output["ObjectLockEnabled"] !== undefined) {
11954
- contents.ObjectLockEnabled = smithy_client_1.expectString(output["ObjectLockEnabled"]);
11954
+ contents.ObjectLockEnabled = (0, smithy_client_1.expectString)(output["ObjectLockEnabled"]);
11955
11955
  }
11956
11956
  if (output["Rule"] !== undefined) {
11957
11957
  contents.Rule = deserializeAws_restXmlObjectLockRule(output["Rule"], context);
@@ -11963,7 +11963,7 @@ const deserializeAws_restXmlObjectLockLegalHold = (output, context) => {
11963
11963
  Status: undefined,
11964
11964
  };
11965
11965
  if (output["Status"] !== undefined) {
11966
- contents.Status = smithy_client_1.expectString(output["Status"]);
11966
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
11967
11967
  }
11968
11968
  return contents;
11969
11969
  };
@@ -11973,10 +11973,10 @@ const deserializeAws_restXmlObjectLockRetention = (output, context) => {
11973
11973
  RetainUntilDate: undefined,
11974
11974
  };
11975
11975
  if (output["Mode"] !== undefined) {
11976
- contents.Mode = smithy_client_1.expectString(output["Mode"]);
11976
+ contents.Mode = (0, smithy_client_1.expectString)(output["Mode"]);
11977
11977
  }
11978
11978
  if (output["RetainUntilDate"] !== undefined) {
11979
- contents.RetainUntilDate = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["RetainUntilDate"]));
11979
+ contents.RetainUntilDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["RetainUntilDate"]));
11980
11980
  }
11981
11981
  return contents;
11982
11982
  };
@@ -11999,22 +11999,22 @@ const deserializeAws_restXmlObjectPart = (output, context) => {
11999
11999
  ChecksumSHA256: undefined,
12000
12000
  };
12001
12001
  if (output["PartNumber"] !== undefined) {
12002
- contents.PartNumber = smithy_client_1.strictParseInt32(output["PartNumber"]);
12002
+ contents.PartNumber = (0, smithy_client_1.strictParseInt32)(output["PartNumber"]);
12003
12003
  }
12004
12004
  if (output["Size"] !== undefined) {
12005
- contents.Size = smithy_client_1.strictParseLong(output["Size"]);
12005
+ contents.Size = (0, smithy_client_1.strictParseLong)(output["Size"]);
12006
12006
  }
12007
12007
  if (output["ChecksumCRC32"] !== undefined) {
12008
- contents.ChecksumCRC32 = smithy_client_1.expectString(output["ChecksumCRC32"]);
12008
+ contents.ChecksumCRC32 = (0, smithy_client_1.expectString)(output["ChecksumCRC32"]);
12009
12009
  }
12010
12010
  if (output["ChecksumCRC32C"] !== undefined) {
12011
- contents.ChecksumCRC32C = smithy_client_1.expectString(output["ChecksumCRC32C"]);
12011
+ contents.ChecksumCRC32C = (0, smithy_client_1.expectString)(output["ChecksumCRC32C"]);
12012
12012
  }
12013
12013
  if (output["ChecksumSHA1"] !== undefined) {
12014
- contents.ChecksumSHA1 = smithy_client_1.expectString(output["ChecksumSHA1"]);
12014
+ contents.ChecksumSHA1 = (0, smithy_client_1.expectString)(output["ChecksumSHA1"]);
12015
12015
  }
12016
12016
  if (output["ChecksumSHA256"] !== undefined) {
12017
- contents.ChecksumSHA256 = smithy_client_1.expectString(output["ChecksumSHA256"]);
12017
+ contents.ChecksumSHA256 = (0, smithy_client_1.expectString)(output["ChecksumSHA256"]);
12018
12018
  }
12019
12019
  return contents;
12020
12020
  };
@@ -12031,31 +12031,31 @@ const deserializeAws_restXmlObjectVersion = (output, context) => {
12031
12031
  Owner: undefined,
12032
12032
  };
12033
12033
  if (output["ETag"] !== undefined) {
12034
- contents.ETag = smithy_client_1.expectString(output["ETag"]);
12034
+ contents.ETag = (0, smithy_client_1.expectString)(output["ETag"]);
12035
12035
  }
12036
12036
  if (output.ChecksumAlgorithm === "") {
12037
12037
  contents.ChecksumAlgorithm = [];
12038
12038
  }
12039
12039
  if (output["ChecksumAlgorithm"] !== undefined) {
12040
- contents.ChecksumAlgorithm = deserializeAws_restXmlChecksumAlgorithmList(smithy_client_1.getArrayIfSingleItem(output["ChecksumAlgorithm"]), context);
12040
+ contents.ChecksumAlgorithm = deserializeAws_restXmlChecksumAlgorithmList((0, smithy_client_1.getArrayIfSingleItem)(output["ChecksumAlgorithm"]), context);
12041
12041
  }
12042
12042
  if (output["Size"] !== undefined) {
12043
- contents.Size = smithy_client_1.strictParseLong(output["Size"]);
12043
+ contents.Size = (0, smithy_client_1.strictParseLong)(output["Size"]);
12044
12044
  }
12045
12045
  if (output["StorageClass"] !== undefined) {
12046
- contents.StorageClass = smithy_client_1.expectString(output["StorageClass"]);
12046
+ contents.StorageClass = (0, smithy_client_1.expectString)(output["StorageClass"]);
12047
12047
  }
12048
12048
  if (output["Key"] !== undefined) {
12049
- contents.Key = smithy_client_1.expectString(output["Key"]);
12049
+ contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
12050
12050
  }
12051
12051
  if (output["VersionId"] !== undefined) {
12052
- contents.VersionId = smithy_client_1.expectString(output["VersionId"]);
12052
+ contents.VersionId = (0, smithy_client_1.expectString)(output["VersionId"]);
12053
12053
  }
12054
12054
  if (output["IsLatest"] !== undefined) {
12055
- contents.IsLatest = smithy_client_1.parseBoolean(output["IsLatest"]);
12055
+ contents.IsLatest = (0, smithy_client_1.parseBoolean)(output["IsLatest"]);
12056
12056
  }
12057
12057
  if (output["LastModified"] !== undefined) {
12058
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["LastModified"]));
12058
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["LastModified"]));
12059
12059
  }
12060
12060
  if (output["Owner"] !== undefined) {
12061
12061
  contents.Owner = deserializeAws_restXmlOwner(output["Owner"], context);
@@ -12078,10 +12078,10 @@ const deserializeAws_restXmlOwner = (output, context) => {
12078
12078
  ID: undefined,
12079
12079
  };
12080
12080
  if (output["DisplayName"] !== undefined) {
12081
- contents.DisplayName = smithy_client_1.expectString(output["DisplayName"]);
12081
+ contents.DisplayName = (0, smithy_client_1.expectString)(output["DisplayName"]);
12082
12082
  }
12083
12083
  if (output["ID"] !== undefined) {
12084
- contents.ID = smithy_client_1.expectString(output["ID"]);
12084
+ contents.ID = (0, smithy_client_1.expectString)(output["ID"]);
12085
12085
  }
12086
12086
  return contents;
12087
12087
  };
@@ -12093,7 +12093,7 @@ const deserializeAws_restXmlOwnershipControls = (output, context) => {
12093
12093
  contents.Rules = [];
12094
12094
  }
12095
12095
  if (output["Rule"] !== undefined) {
12096
- contents.Rules = deserializeAws_restXmlOwnershipControlsRules(smithy_client_1.getArrayIfSingleItem(output["Rule"]), context);
12096
+ contents.Rules = deserializeAws_restXmlOwnershipControlsRules((0, smithy_client_1.getArrayIfSingleItem)(output["Rule"]), context);
12097
12097
  }
12098
12098
  return contents;
12099
12099
  };
@@ -12102,7 +12102,7 @@ const deserializeAws_restXmlOwnershipControlsRule = (output, context) => {
12102
12102
  ObjectOwnership: undefined,
12103
12103
  };
12104
12104
  if (output["ObjectOwnership"] !== undefined) {
12105
- contents.ObjectOwnership = smithy_client_1.expectString(output["ObjectOwnership"]);
12105
+ contents.ObjectOwnership = (0, smithy_client_1.expectString)(output["ObjectOwnership"]);
12106
12106
  }
12107
12107
  return contents;
12108
12108
  };
@@ -12128,28 +12128,28 @@ const deserializeAws_restXmlPart = (output, context) => {
12128
12128
  ChecksumSHA256: undefined,
12129
12129
  };
12130
12130
  if (output["PartNumber"] !== undefined) {
12131
- contents.PartNumber = smithy_client_1.strictParseInt32(output["PartNumber"]);
12131
+ contents.PartNumber = (0, smithy_client_1.strictParseInt32)(output["PartNumber"]);
12132
12132
  }
12133
12133
  if (output["LastModified"] !== undefined) {
12134
- contents.LastModified = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["LastModified"]));
12134
+ contents.LastModified = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["LastModified"]));
12135
12135
  }
12136
12136
  if (output["ETag"] !== undefined) {
12137
- contents.ETag = smithy_client_1.expectString(output["ETag"]);
12137
+ contents.ETag = (0, smithy_client_1.expectString)(output["ETag"]);
12138
12138
  }
12139
12139
  if (output["Size"] !== undefined) {
12140
- contents.Size = smithy_client_1.strictParseLong(output["Size"]);
12140
+ contents.Size = (0, smithy_client_1.strictParseLong)(output["Size"]);
12141
12141
  }
12142
12142
  if (output["ChecksumCRC32"] !== undefined) {
12143
- contents.ChecksumCRC32 = smithy_client_1.expectString(output["ChecksumCRC32"]);
12143
+ contents.ChecksumCRC32 = (0, smithy_client_1.expectString)(output["ChecksumCRC32"]);
12144
12144
  }
12145
12145
  if (output["ChecksumCRC32C"] !== undefined) {
12146
- contents.ChecksumCRC32C = smithy_client_1.expectString(output["ChecksumCRC32C"]);
12146
+ contents.ChecksumCRC32C = (0, smithy_client_1.expectString)(output["ChecksumCRC32C"]);
12147
12147
  }
12148
12148
  if (output["ChecksumSHA1"] !== undefined) {
12149
- contents.ChecksumSHA1 = smithy_client_1.expectString(output["ChecksumSHA1"]);
12149
+ contents.ChecksumSHA1 = (0, smithy_client_1.expectString)(output["ChecksumSHA1"]);
12150
12150
  }
12151
12151
  if (output["ChecksumSHA256"] !== undefined) {
12152
- contents.ChecksumSHA256 = smithy_client_1.expectString(output["ChecksumSHA256"]);
12152
+ contents.ChecksumSHA256 = (0, smithy_client_1.expectString)(output["ChecksumSHA256"]);
12153
12153
  }
12154
12154
  return contents;
12155
12155
  };
@@ -12178,7 +12178,7 @@ const deserializeAws_restXmlPolicyStatus = (output, context) => {
12178
12178
  IsPublic: undefined,
12179
12179
  };
12180
12180
  if (output["IsPublic"] !== undefined) {
12181
- contents.IsPublic = smithy_client_1.parseBoolean(output["IsPublic"]);
12181
+ contents.IsPublic = (0, smithy_client_1.parseBoolean)(output["IsPublic"]);
12182
12182
  }
12183
12183
  return contents;
12184
12184
  };
@@ -12189,13 +12189,13 @@ const deserializeAws_restXmlProgress = (output, context) => {
12189
12189
  BytesReturned: undefined,
12190
12190
  };
12191
12191
  if (output["BytesScanned"] !== undefined) {
12192
- contents.BytesScanned = smithy_client_1.strictParseLong(output["BytesScanned"]);
12192
+ contents.BytesScanned = (0, smithy_client_1.strictParseLong)(output["BytesScanned"]);
12193
12193
  }
12194
12194
  if (output["BytesProcessed"] !== undefined) {
12195
- contents.BytesProcessed = smithy_client_1.strictParseLong(output["BytesProcessed"]);
12195
+ contents.BytesProcessed = (0, smithy_client_1.strictParseLong)(output["BytesProcessed"]);
12196
12196
  }
12197
12197
  if (output["BytesReturned"] !== undefined) {
12198
- contents.BytesReturned = smithy_client_1.strictParseLong(output["BytesReturned"]);
12198
+ contents.BytesReturned = (0, smithy_client_1.strictParseLong)(output["BytesReturned"]);
12199
12199
  }
12200
12200
  return contents;
12201
12201
  };
@@ -12216,16 +12216,16 @@ const deserializeAws_restXmlPublicAccessBlockConfiguration = (output, context) =
12216
12216
  RestrictPublicBuckets: undefined,
12217
12217
  };
12218
12218
  if (output["BlockPublicAcls"] !== undefined) {
12219
- contents.BlockPublicAcls = smithy_client_1.parseBoolean(output["BlockPublicAcls"]);
12219
+ contents.BlockPublicAcls = (0, smithy_client_1.parseBoolean)(output["BlockPublicAcls"]);
12220
12220
  }
12221
12221
  if (output["IgnorePublicAcls"] !== undefined) {
12222
- contents.IgnorePublicAcls = smithy_client_1.parseBoolean(output["IgnorePublicAcls"]);
12222
+ contents.IgnorePublicAcls = (0, smithy_client_1.parseBoolean)(output["IgnorePublicAcls"]);
12223
12223
  }
12224
12224
  if (output["BlockPublicPolicy"] !== undefined) {
12225
- contents.BlockPublicPolicy = smithy_client_1.parseBoolean(output["BlockPublicPolicy"]);
12225
+ contents.BlockPublicPolicy = (0, smithy_client_1.parseBoolean)(output["BlockPublicPolicy"]);
12226
12226
  }
12227
12227
  if (output["RestrictPublicBuckets"] !== undefined) {
12228
- contents.RestrictPublicBuckets = smithy_client_1.parseBoolean(output["RestrictPublicBuckets"]);
12228
+ contents.RestrictPublicBuckets = (0, smithy_client_1.parseBoolean)(output["RestrictPublicBuckets"]);
12229
12229
  }
12230
12230
  return contents;
12231
12231
  };
@@ -12237,16 +12237,16 @@ const deserializeAws_restXmlQueueConfiguration = (output, context) => {
12237
12237
  Filter: undefined,
12238
12238
  };
12239
12239
  if (output["Id"] !== undefined) {
12240
- contents.Id = smithy_client_1.expectString(output["Id"]);
12240
+ contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
12241
12241
  }
12242
12242
  if (output["Queue"] !== undefined) {
12243
- contents.QueueArn = smithy_client_1.expectString(output["Queue"]);
12243
+ contents.QueueArn = (0, smithy_client_1.expectString)(output["Queue"]);
12244
12244
  }
12245
12245
  if (output.Event === "") {
12246
12246
  contents.Events = [];
12247
12247
  }
12248
12248
  if (output["Event"] !== undefined) {
12249
- contents.Events = deserializeAws_restXmlEventList(smithy_client_1.getArrayIfSingleItem(output["Event"]), context);
12249
+ contents.Events = deserializeAws_restXmlEventList((0, smithy_client_1.getArrayIfSingleItem)(output["Event"]), context);
12250
12250
  }
12251
12251
  if (output["Filter"] !== undefined) {
12252
12252
  contents.Filter = deserializeAws_restXmlNotificationConfigurationFilter(output["Filter"], context);
@@ -12281,19 +12281,19 @@ const deserializeAws_restXmlRedirect = (output, context) => {
12281
12281
  ReplaceKeyWith: undefined,
12282
12282
  };
12283
12283
  if (output["HostName"] !== undefined) {
12284
- contents.HostName = smithy_client_1.expectString(output["HostName"]);
12284
+ contents.HostName = (0, smithy_client_1.expectString)(output["HostName"]);
12285
12285
  }
12286
12286
  if (output["HttpRedirectCode"] !== undefined) {
12287
- contents.HttpRedirectCode = smithy_client_1.expectString(output["HttpRedirectCode"]);
12287
+ contents.HttpRedirectCode = (0, smithy_client_1.expectString)(output["HttpRedirectCode"]);
12288
12288
  }
12289
12289
  if (output["Protocol"] !== undefined) {
12290
- contents.Protocol = smithy_client_1.expectString(output["Protocol"]);
12290
+ contents.Protocol = (0, smithy_client_1.expectString)(output["Protocol"]);
12291
12291
  }
12292
12292
  if (output["ReplaceKeyPrefixWith"] !== undefined) {
12293
- contents.ReplaceKeyPrefixWith = smithy_client_1.expectString(output["ReplaceKeyPrefixWith"]);
12293
+ contents.ReplaceKeyPrefixWith = (0, smithy_client_1.expectString)(output["ReplaceKeyPrefixWith"]);
12294
12294
  }
12295
12295
  if (output["ReplaceKeyWith"] !== undefined) {
12296
- contents.ReplaceKeyWith = smithy_client_1.expectString(output["ReplaceKeyWith"]);
12296
+ contents.ReplaceKeyWith = (0, smithy_client_1.expectString)(output["ReplaceKeyWith"]);
12297
12297
  }
12298
12298
  return contents;
12299
12299
  };
@@ -12303,10 +12303,10 @@ const deserializeAws_restXmlRedirectAllRequestsTo = (output, context) => {
12303
12303
  Protocol: undefined,
12304
12304
  };
12305
12305
  if (output["HostName"] !== undefined) {
12306
- contents.HostName = smithy_client_1.expectString(output["HostName"]);
12306
+ contents.HostName = (0, smithy_client_1.expectString)(output["HostName"]);
12307
12307
  }
12308
12308
  if (output["Protocol"] !== undefined) {
12309
- contents.Protocol = smithy_client_1.expectString(output["Protocol"]);
12309
+ contents.Protocol = (0, smithy_client_1.expectString)(output["Protocol"]);
12310
12310
  }
12311
12311
  return contents;
12312
12312
  };
@@ -12315,7 +12315,7 @@ const deserializeAws_restXmlReplicaModifications = (output, context) => {
12315
12315
  Status: undefined,
12316
12316
  };
12317
12317
  if (output["Status"] !== undefined) {
12318
- contents.Status = smithy_client_1.expectString(output["Status"]);
12318
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
12319
12319
  }
12320
12320
  return contents;
12321
12321
  };
@@ -12325,13 +12325,13 @@ const deserializeAws_restXmlReplicationConfiguration = (output, context) => {
12325
12325
  Rules: undefined,
12326
12326
  };
12327
12327
  if (output["Role"] !== undefined) {
12328
- contents.Role = smithy_client_1.expectString(output["Role"]);
12328
+ contents.Role = (0, smithy_client_1.expectString)(output["Role"]);
12329
12329
  }
12330
12330
  if (output.Rule === "") {
12331
12331
  contents.Rules = [];
12332
12332
  }
12333
12333
  if (output["Rule"] !== undefined) {
12334
- contents.Rules = deserializeAws_restXmlReplicationRules(smithy_client_1.getArrayIfSingleItem(output["Rule"]), context);
12334
+ contents.Rules = deserializeAws_restXmlReplicationRules((0, smithy_client_1.getArrayIfSingleItem)(output["Rule"]), context);
12335
12335
  }
12336
12336
  return contents;
12337
12337
  };
@@ -12348,19 +12348,19 @@ const deserializeAws_restXmlReplicationRule = (output, context) => {
12348
12348
  DeleteMarkerReplication: undefined,
12349
12349
  };
12350
12350
  if (output["ID"] !== undefined) {
12351
- contents.ID = smithy_client_1.expectString(output["ID"]);
12351
+ contents.ID = (0, smithy_client_1.expectString)(output["ID"]);
12352
12352
  }
12353
12353
  if (output["Priority"] !== undefined) {
12354
- contents.Priority = smithy_client_1.strictParseInt32(output["Priority"]);
12354
+ contents.Priority = (0, smithy_client_1.strictParseInt32)(output["Priority"]);
12355
12355
  }
12356
12356
  if (output["Prefix"] !== undefined) {
12357
- contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
12357
+ contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
12358
12358
  }
12359
12359
  if (output["Filter"] !== undefined) {
12360
- contents.Filter = deserializeAws_restXmlReplicationRuleFilter(smithy_client_1.expectUnion(output["Filter"]), context);
12360
+ contents.Filter = deserializeAws_restXmlReplicationRuleFilter((0, smithy_client_1.expectUnion)(output["Filter"]), context);
12361
12361
  }
12362
12362
  if (output["Status"] !== undefined) {
12363
- contents.Status = smithy_client_1.expectString(output["Status"]);
12363
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
12364
12364
  }
12365
12365
  if (output["SourceSelectionCriteria"] !== undefined) {
12366
12366
  contents.SourceSelectionCriteria = deserializeAws_restXmlSourceSelectionCriteria(output["SourceSelectionCriteria"], context);
@@ -12382,20 +12382,20 @@ const deserializeAws_restXmlReplicationRuleAndOperator = (output, context) => {
12382
12382
  Tags: undefined,
12383
12383
  };
12384
12384
  if (output["Prefix"] !== undefined) {
12385
- contents.Prefix = smithy_client_1.expectString(output["Prefix"]);
12385
+ contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
12386
12386
  }
12387
12387
  if (output.Tag === "") {
12388
12388
  contents.Tags = [];
12389
12389
  }
12390
12390
  if (output["Tag"] !== undefined) {
12391
- contents.Tags = deserializeAws_restXmlTagSet(smithy_client_1.getArrayIfSingleItem(output["Tag"]), context);
12391
+ contents.Tags = deserializeAws_restXmlTagSet((0, smithy_client_1.getArrayIfSingleItem)(output["Tag"]), context);
12392
12392
  }
12393
12393
  return contents;
12394
12394
  };
12395
12395
  const deserializeAws_restXmlReplicationRuleFilter = (output, context) => {
12396
12396
  if (output["Prefix"] !== undefined) {
12397
12397
  return {
12398
- Prefix: smithy_client_1.expectString(output["Prefix"]),
12398
+ Prefix: (0, smithy_client_1.expectString)(output["Prefix"]),
12399
12399
  };
12400
12400
  }
12401
12401
  if (output["Tag"] !== undefined) {
@@ -12426,7 +12426,7 @@ const deserializeAws_restXmlReplicationTime = (output, context) => {
12426
12426
  Time: undefined,
12427
12427
  };
12428
12428
  if (output["Status"] !== undefined) {
12429
- contents.Status = smithy_client_1.expectString(output["Status"]);
12429
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
12430
12430
  }
12431
12431
  if (output["Time"] !== undefined) {
12432
12432
  contents.Time = deserializeAws_restXmlReplicationTimeValue(output["Time"], context);
@@ -12438,7 +12438,7 @@ const deserializeAws_restXmlReplicationTimeValue = (output, context) => {
12438
12438
  Minutes: undefined,
12439
12439
  };
12440
12440
  if (output["Minutes"] !== undefined) {
12441
- contents.Minutes = smithy_client_1.strictParseInt32(output["Minutes"]);
12441
+ contents.Minutes = (0, smithy_client_1.strictParseInt32)(output["Minutes"]);
12442
12442
  }
12443
12443
  return contents;
12444
12444
  };
@@ -12473,7 +12473,7 @@ const deserializeAws_restXmlS3KeyFilter = (output, context) => {
12473
12473
  contents.FilterRules = [];
12474
12474
  }
12475
12475
  if (output["FilterRule"] !== undefined) {
12476
- contents.FilterRules = deserializeAws_restXmlFilterRuleList(smithy_client_1.getArrayIfSingleItem(output["FilterRule"]), context);
12476
+ contents.FilterRules = deserializeAws_restXmlFilterRuleList((0, smithy_client_1.getArrayIfSingleItem)(output["FilterRule"]), context);
12477
12477
  }
12478
12478
  return contents;
12479
12479
  };
@@ -12511,10 +12511,10 @@ const deserializeAws_restXmlServerSideEncryptionByDefault = (output, context) =>
12511
12511
  KMSMasterKeyID: undefined,
12512
12512
  };
12513
12513
  if (output["SSEAlgorithm"] !== undefined) {
12514
- contents.SSEAlgorithm = smithy_client_1.expectString(output["SSEAlgorithm"]);
12514
+ contents.SSEAlgorithm = (0, smithy_client_1.expectString)(output["SSEAlgorithm"]);
12515
12515
  }
12516
12516
  if (output["KMSMasterKeyID"] !== undefined) {
12517
- contents.KMSMasterKeyID = smithy_client_1.expectString(output["KMSMasterKeyID"]);
12517
+ contents.KMSMasterKeyID = (0, smithy_client_1.expectString)(output["KMSMasterKeyID"]);
12518
12518
  }
12519
12519
  return contents;
12520
12520
  };
@@ -12526,7 +12526,7 @@ const deserializeAws_restXmlServerSideEncryptionConfiguration = (output, context
12526
12526
  contents.Rules = [];
12527
12527
  }
12528
12528
  if (output["Rule"] !== undefined) {
12529
- contents.Rules = deserializeAws_restXmlServerSideEncryptionRules(smithy_client_1.getArrayIfSingleItem(output["Rule"]), context);
12529
+ contents.Rules = deserializeAws_restXmlServerSideEncryptionRules((0, smithy_client_1.getArrayIfSingleItem)(output["Rule"]), context);
12530
12530
  }
12531
12531
  return contents;
12532
12532
  };
@@ -12539,7 +12539,7 @@ const deserializeAws_restXmlServerSideEncryptionRule = (output, context) => {
12539
12539
  contents.ApplyServerSideEncryptionByDefault = deserializeAws_restXmlServerSideEncryptionByDefault(output["ApplyServerSideEncryptionByDefault"], context);
12540
12540
  }
12541
12541
  if (output["BucketKeyEnabled"] !== undefined) {
12542
- contents.BucketKeyEnabled = smithy_client_1.parseBoolean(output["BucketKeyEnabled"]);
12542
+ contents.BucketKeyEnabled = (0, smithy_client_1.parseBoolean)(output["BucketKeyEnabled"]);
12543
12543
  }
12544
12544
  return contents;
12545
12545
  };
@@ -12571,7 +12571,7 @@ const deserializeAws_restXmlSSEKMS = (output, context) => {
12571
12571
  KeyId: undefined,
12572
12572
  };
12573
12573
  if (output["KeyId"] !== undefined) {
12574
- contents.KeyId = smithy_client_1.expectString(output["KeyId"]);
12574
+ contents.KeyId = (0, smithy_client_1.expectString)(output["KeyId"]);
12575
12575
  }
12576
12576
  return contents;
12577
12577
  };
@@ -12580,7 +12580,7 @@ const deserializeAws_restXmlSseKmsEncryptedObjects = (output, context) => {
12580
12580
  Status: undefined,
12581
12581
  };
12582
12582
  if (output["Status"] !== undefined) {
12583
- contents.Status = smithy_client_1.expectString(output["Status"]);
12583
+ contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
12584
12584
  }
12585
12585
  return contents;
12586
12586
  };
@@ -12595,13 +12595,13 @@ const deserializeAws_restXmlStats = (output, context) => {
12595
12595
  BytesReturned: undefined,
12596
12596
  };
12597
12597
  if (output["BytesScanned"] !== undefined) {
12598
- contents.BytesScanned = smithy_client_1.strictParseLong(output["BytesScanned"]);
12598
+ contents.BytesScanned = (0, smithy_client_1.strictParseLong)(output["BytesScanned"]);
12599
12599
  }
12600
12600
  if (output["BytesProcessed"] !== undefined) {
12601
- contents.BytesProcessed = smithy_client_1.strictParseLong(output["BytesProcessed"]);
12601
+ contents.BytesProcessed = (0, smithy_client_1.strictParseLong)(output["BytesProcessed"]);
12602
12602
  }
12603
12603
  if (output["BytesReturned"] !== undefined) {
12604
- contents.BytesReturned = smithy_client_1.strictParseLong(output["BytesReturned"]);
12604
+ contents.BytesReturned = (0, smithy_client_1.strictParseLong)(output["BytesReturned"]);
12605
12605
  }
12606
12606
  return contents;
12607
12607
  };
@@ -12629,7 +12629,7 @@ const deserializeAws_restXmlStorageClassAnalysisDataExport = (output, context) =
12629
12629
  Destination: undefined,
12630
12630
  };
12631
12631
  if (output["OutputSchemaVersion"] !== undefined) {
12632
- contents.OutputSchemaVersion = smithy_client_1.expectString(output["OutputSchemaVersion"]);
12632
+ contents.OutputSchemaVersion = (0, smithy_client_1.expectString)(output["OutputSchemaVersion"]);
12633
12633
  }
12634
12634
  if (output["Destination"] !== undefined) {
12635
12635
  contents.Destination = deserializeAws_restXmlAnalyticsExportDestination(output["Destination"], context);
@@ -12642,10 +12642,10 @@ const deserializeAws_restXmlTag = (output, context) => {
12642
12642
  Value: undefined,
12643
12643
  };
12644
12644
  if (output["Key"] !== undefined) {
12645
- contents.Key = smithy_client_1.expectString(output["Key"]);
12645
+ contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
12646
12646
  }
12647
12647
  if (output["Value"] !== undefined) {
12648
- contents.Value = smithy_client_1.expectString(output["Value"]);
12648
+ contents.Value = (0, smithy_client_1.expectString)(output["Value"]);
12649
12649
  }
12650
12650
  return contents;
12651
12651
  };
@@ -12668,7 +12668,7 @@ const deserializeAws_restXmlTargetGrant = (output, context) => {
12668
12668
  contents.Grantee = deserializeAws_restXmlGrantee(output["Grantee"], context);
12669
12669
  }
12670
12670
  if (output["Permission"] !== undefined) {
12671
- contents.Permission = smithy_client_1.expectString(output["Permission"]);
12671
+ contents.Permission = (0, smithy_client_1.expectString)(output["Permission"]);
12672
12672
  }
12673
12673
  return contents;
12674
12674
  };
@@ -12688,10 +12688,10 @@ const deserializeAws_restXmlTiering = (output, context) => {
12688
12688
  AccessTier: undefined,
12689
12689
  };
12690
12690
  if (output["Days"] !== undefined) {
12691
- contents.Days = smithy_client_1.strictParseInt32(output["Days"]);
12691
+ contents.Days = (0, smithy_client_1.strictParseInt32)(output["Days"]);
12692
12692
  }
12693
12693
  if (output["AccessTier"] !== undefined) {
12694
- contents.AccessTier = smithy_client_1.expectString(output["AccessTier"]);
12694
+ contents.AccessTier = (0, smithy_client_1.expectString)(output["AccessTier"]);
12695
12695
  }
12696
12696
  return contents;
12697
12697
  };
@@ -12713,16 +12713,16 @@ const deserializeAws_restXmlTopicConfiguration = (output, context) => {
12713
12713
  Filter: undefined,
12714
12714
  };
12715
12715
  if (output["Id"] !== undefined) {
12716
- contents.Id = smithy_client_1.expectString(output["Id"]);
12716
+ contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
12717
12717
  }
12718
12718
  if (output["Topic"] !== undefined) {
12719
- contents.TopicArn = smithy_client_1.expectString(output["Topic"]);
12719
+ contents.TopicArn = (0, smithy_client_1.expectString)(output["Topic"]);
12720
12720
  }
12721
12721
  if (output.Event === "") {
12722
12722
  contents.Events = [];
12723
12723
  }
12724
12724
  if (output["Event"] !== undefined) {
12725
- contents.Events = deserializeAws_restXmlEventList(smithy_client_1.getArrayIfSingleItem(output["Event"]), context);
12725
+ contents.Events = deserializeAws_restXmlEventList((0, smithy_client_1.getArrayIfSingleItem)(output["Event"]), context);
12726
12726
  }
12727
12727
  if (output["Filter"] !== undefined) {
12728
12728
  contents.Filter = deserializeAws_restXmlNotificationConfigurationFilter(output["Filter"], context);
@@ -12746,13 +12746,13 @@ const deserializeAws_restXmlTransition = (output, context) => {
12746
12746
  StorageClass: undefined,
12747
12747
  };
12748
12748
  if (output["Date"] !== undefined) {
12749
- contents.Date = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["Date"]));
12749
+ contents.Date = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["Date"]));
12750
12750
  }
12751
12751
  if (output["Days"] !== undefined) {
12752
- contents.Days = smithy_client_1.strictParseInt32(output["Days"]);
12752
+ contents.Days = (0, smithy_client_1.strictParseInt32)(output["Days"]);
12753
12753
  }
12754
12754
  if (output["StorageClass"] !== undefined) {
12755
- contents.StorageClass = smithy_client_1.expectString(output["StorageClass"]);
12755
+ contents.StorageClass = (0, smithy_client_1.expectString)(output["StorageClass"]);
12756
12756
  }
12757
12757
  return contents;
12758
12758
  };
@@ -12789,12 +12789,12 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
12789
12789
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
12790
12790
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
12791
12791
  if (encoded.length) {
12792
- const parsedObj = fast_xml_parser_1.parse(encoded, {
12792
+ const parsedObj = (0, fast_xml_parser_1.parse)(encoded, {
12793
12793
  attributeNamePrefix: "",
12794
12794
  ignoreAttributes: false,
12795
12795
  parseNodeValue: false,
12796
12796
  trimValues: false,
12797
- tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : entities_1.decodeHTML(val)),
12797
+ tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : (0, entities_1.decodeHTML)(val)),
12798
12798
  });
12799
12799
  const textNodeName = "#text";
12800
12800
  const key = Object.keys(parsedObj)[0];
@@ -12803,7 +12803,7 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
12803
12803
  parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
12804
12804
  delete parsedObjToReturn[textNodeName];
12805
12805
  }
12806
- return smithy_client_1.getValueFromTextNode(parsedObjToReturn);
12806
+ return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn);
12807
12807
  }
12808
12808
  return {};
12809
12809
  });