@aws-sdk/client-s3 3.295.0 → 3.297.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 (107) hide show
  1. package/dist-cjs/protocols/Aws_restXml.js +88 -436
  2. package/dist-es/protocols/Aws_restXml.js +88 -436
  3. package/dist-types/S3.d.ts +94 -0
  4. package/dist-types/S3Client.d.ts +24 -4
  5. package/dist-types/commands/AbortMultipartUploadCommand.d.ts +16 -0
  6. package/dist-types/commands/CompleteMultipartUploadCommand.d.ts +16 -0
  7. package/dist-types/commands/CopyObjectCommand.d.ts +16 -0
  8. package/dist-types/commands/CreateBucketCommand.d.ts +16 -0
  9. package/dist-types/commands/CreateMultipartUploadCommand.d.ts +16 -0
  10. package/dist-types/commands/DeleteBucketAnalyticsConfigurationCommand.d.ts +16 -0
  11. package/dist-types/commands/DeleteBucketCommand.d.ts +16 -0
  12. package/dist-types/commands/DeleteBucketCorsCommand.d.ts +16 -0
  13. package/dist-types/commands/DeleteBucketEncryptionCommand.d.ts +16 -0
  14. package/dist-types/commands/DeleteBucketIntelligentTieringConfigurationCommand.d.ts +16 -0
  15. package/dist-types/commands/DeleteBucketInventoryConfigurationCommand.d.ts +16 -0
  16. package/dist-types/commands/DeleteBucketLifecycleCommand.d.ts +16 -0
  17. package/dist-types/commands/DeleteBucketMetricsConfigurationCommand.d.ts +16 -0
  18. package/dist-types/commands/DeleteBucketOwnershipControlsCommand.d.ts +16 -0
  19. package/dist-types/commands/DeleteBucketPolicyCommand.d.ts +16 -0
  20. package/dist-types/commands/DeleteBucketReplicationCommand.d.ts +16 -0
  21. package/dist-types/commands/DeleteBucketTaggingCommand.d.ts +16 -0
  22. package/dist-types/commands/DeleteBucketWebsiteCommand.d.ts +16 -0
  23. package/dist-types/commands/DeleteObjectCommand.d.ts +16 -0
  24. package/dist-types/commands/DeleteObjectTaggingCommand.d.ts +16 -0
  25. package/dist-types/commands/DeleteObjectsCommand.d.ts +16 -0
  26. package/dist-types/commands/DeletePublicAccessBlockCommand.d.ts +16 -0
  27. package/dist-types/commands/GetBucketAccelerateConfigurationCommand.d.ts +16 -0
  28. package/dist-types/commands/GetBucketAclCommand.d.ts +16 -0
  29. package/dist-types/commands/GetBucketAnalyticsConfigurationCommand.d.ts +16 -0
  30. package/dist-types/commands/GetBucketCorsCommand.d.ts +16 -0
  31. package/dist-types/commands/GetBucketEncryptionCommand.d.ts +16 -0
  32. package/dist-types/commands/GetBucketIntelligentTieringConfigurationCommand.d.ts +16 -0
  33. package/dist-types/commands/GetBucketInventoryConfigurationCommand.d.ts +16 -0
  34. package/dist-types/commands/GetBucketLifecycleConfigurationCommand.d.ts +16 -0
  35. package/dist-types/commands/GetBucketLocationCommand.d.ts +16 -0
  36. package/dist-types/commands/GetBucketLoggingCommand.d.ts +16 -0
  37. package/dist-types/commands/GetBucketMetricsConfigurationCommand.d.ts +16 -0
  38. package/dist-types/commands/GetBucketNotificationConfigurationCommand.d.ts +16 -0
  39. package/dist-types/commands/GetBucketOwnershipControlsCommand.d.ts +16 -0
  40. package/dist-types/commands/GetBucketPolicyCommand.d.ts +16 -0
  41. package/dist-types/commands/GetBucketPolicyStatusCommand.d.ts +16 -0
  42. package/dist-types/commands/GetBucketReplicationCommand.d.ts +16 -0
  43. package/dist-types/commands/GetBucketRequestPaymentCommand.d.ts +16 -0
  44. package/dist-types/commands/GetBucketTaggingCommand.d.ts +16 -0
  45. package/dist-types/commands/GetBucketVersioningCommand.d.ts +16 -0
  46. package/dist-types/commands/GetBucketWebsiteCommand.d.ts +16 -0
  47. package/dist-types/commands/GetObjectAclCommand.d.ts +16 -0
  48. package/dist-types/commands/GetObjectAttributesCommand.d.ts +16 -0
  49. package/dist-types/commands/GetObjectCommand.d.ts +16 -0
  50. package/dist-types/commands/GetObjectLegalHoldCommand.d.ts +16 -0
  51. package/dist-types/commands/GetObjectLockConfigurationCommand.d.ts +16 -0
  52. package/dist-types/commands/GetObjectRetentionCommand.d.ts +16 -0
  53. package/dist-types/commands/GetObjectTaggingCommand.d.ts +16 -0
  54. package/dist-types/commands/GetObjectTorrentCommand.d.ts +16 -0
  55. package/dist-types/commands/GetPublicAccessBlockCommand.d.ts +16 -0
  56. package/dist-types/commands/HeadBucketCommand.d.ts +16 -0
  57. package/dist-types/commands/HeadObjectCommand.d.ts +16 -0
  58. package/dist-types/commands/ListBucketAnalyticsConfigurationsCommand.d.ts +16 -0
  59. package/dist-types/commands/ListBucketIntelligentTieringConfigurationsCommand.d.ts +16 -0
  60. package/dist-types/commands/ListBucketInventoryConfigurationsCommand.d.ts +16 -0
  61. package/dist-types/commands/ListBucketMetricsConfigurationsCommand.d.ts +16 -0
  62. package/dist-types/commands/ListBucketsCommand.d.ts +16 -0
  63. package/dist-types/commands/ListMultipartUploadsCommand.d.ts +16 -0
  64. package/dist-types/commands/ListObjectVersionsCommand.d.ts +16 -0
  65. package/dist-types/commands/ListObjectsCommand.d.ts +16 -0
  66. package/dist-types/commands/ListObjectsV2Command.d.ts +16 -0
  67. package/dist-types/commands/ListPartsCommand.d.ts +16 -0
  68. package/dist-types/commands/PutBucketAccelerateConfigurationCommand.d.ts +16 -0
  69. package/dist-types/commands/PutBucketAclCommand.d.ts +16 -0
  70. package/dist-types/commands/PutBucketAnalyticsConfigurationCommand.d.ts +16 -0
  71. package/dist-types/commands/PutBucketCorsCommand.d.ts +16 -0
  72. package/dist-types/commands/PutBucketEncryptionCommand.d.ts +16 -0
  73. package/dist-types/commands/PutBucketIntelligentTieringConfigurationCommand.d.ts +16 -0
  74. package/dist-types/commands/PutBucketInventoryConfigurationCommand.d.ts +16 -0
  75. package/dist-types/commands/PutBucketLifecycleConfigurationCommand.d.ts +16 -0
  76. package/dist-types/commands/PutBucketLoggingCommand.d.ts +16 -0
  77. package/dist-types/commands/PutBucketMetricsConfigurationCommand.d.ts +16 -0
  78. package/dist-types/commands/PutBucketNotificationConfigurationCommand.d.ts +16 -0
  79. package/dist-types/commands/PutBucketOwnershipControlsCommand.d.ts +16 -0
  80. package/dist-types/commands/PutBucketPolicyCommand.d.ts +16 -0
  81. package/dist-types/commands/PutBucketReplicationCommand.d.ts +16 -0
  82. package/dist-types/commands/PutBucketRequestPaymentCommand.d.ts +16 -0
  83. package/dist-types/commands/PutBucketTaggingCommand.d.ts +16 -0
  84. package/dist-types/commands/PutBucketVersioningCommand.d.ts +16 -0
  85. package/dist-types/commands/PutBucketWebsiteCommand.d.ts +16 -0
  86. package/dist-types/commands/PutObjectAclCommand.d.ts +16 -0
  87. package/dist-types/commands/PutObjectCommand.d.ts +17 -2
  88. package/dist-types/commands/PutObjectLegalHoldCommand.d.ts +16 -0
  89. package/dist-types/commands/PutObjectLockConfigurationCommand.d.ts +16 -0
  90. package/dist-types/commands/PutObjectRetentionCommand.d.ts +16 -0
  91. package/dist-types/commands/PutObjectTaggingCommand.d.ts +16 -0
  92. package/dist-types/commands/PutPublicAccessBlockCommand.d.ts +16 -0
  93. package/dist-types/commands/RestoreObjectCommand.d.ts +16 -0
  94. package/dist-types/commands/SelectObjectContentCommand.d.ts +16 -0
  95. package/dist-types/commands/UploadPartCommand.d.ts +17 -2
  96. package/dist-types/commands/UploadPartCopyCommand.d.ts +16 -0
  97. package/dist-types/commands/WriteGetObjectResponseCommand.d.ts +17 -2
  98. package/dist-types/models/S3ServiceException.d.ts +2 -0
  99. package/dist-types/models/models_0.d.ts +684 -0
  100. package/dist-types/models/models_1.d.ts +90 -0
  101. package/dist-types/pagination/Interfaces.d.ts +3 -0
  102. package/dist-types/pagination/ListObjectsV2Paginator.d.ts +3 -0
  103. package/dist-types/pagination/ListPartsPaginator.d.ts +3 -0
  104. package/dist-types/ts3.4/commands/PutObjectCommand.d.ts +1 -2
  105. package/dist-types/ts3.4/commands/UploadPartCommand.d.ts +1 -2
  106. package/dist-types/ts3.4/commands/WriteGetObjectResponseCommand.d.ts +1 -2
  107. package/package.json +45 -45
@@ -8121,18 +8121,14 @@ const serializeAws_restXmlWebsiteConfiguration = (input, context) => {
8121
8121
  return bodyNode;
8122
8122
  };
8123
8123
  const deserializeAws_restXmlAbortIncompleteMultipartUpload = (output, context) => {
8124
- const contents = {
8125
- DaysAfterInitiation: undefined,
8126
- };
8124
+ const contents = {};
8127
8125
  if (output["DaysAfterInitiation"] !== undefined) {
8128
8126
  contents.DaysAfterInitiation = (0, smithy_client_1.strictParseInt32)(output["DaysAfterInitiation"]);
8129
8127
  }
8130
8128
  return contents;
8131
8129
  };
8132
8130
  const deserializeAws_restXmlAccessControlTranslation = (output, context) => {
8133
- const contents = {
8134
- Owner: undefined,
8135
- };
8131
+ const contents = {};
8136
8132
  if (output["Owner"] !== undefined) {
8137
8133
  contents.Owner = (0, smithy_client_1.expectString)(output["Owner"]);
8138
8134
  }
@@ -8160,10 +8156,7 @@ const deserializeAws_restXmlAllowedOrigins = (output, context) => {
8160
8156
  });
8161
8157
  };
8162
8158
  const deserializeAws_restXmlAnalyticsAndOperator = (output, context) => {
8163
- const contents = {
8164
- Prefix: undefined,
8165
- Tags: undefined,
8166
- };
8159
+ const contents = {};
8167
8160
  if (output["Prefix"] !== undefined) {
8168
8161
  contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
8169
8162
  }
@@ -8176,11 +8169,7 @@ const deserializeAws_restXmlAnalyticsAndOperator = (output, context) => {
8176
8169
  return contents;
8177
8170
  };
8178
8171
  const deserializeAws_restXmlAnalyticsConfiguration = (output, context) => {
8179
- const contents = {
8180
- Id: undefined,
8181
- Filter: undefined,
8182
- StorageClassAnalysis: undefined,
8183
- };
8172
+ const contents = {};
8184
8173
  if (output["Id"] !== undefined) {
8185
8174
  contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
8186
8175
  }
@@ -8202,9 +8191,7 @@ const deserializeAws_restXmlAnalyticsConfigurationList = (output, context) => {
8202
8191
  });
8203
8192
  };
8204
8193
  const deserializeAws_restXmlAnalyticsExportDestination = (output, context) => {
8205
- const contents = {
8206
- S3BucketDestination: undefined,
8207
- };
8194
+ const contents = {};
8208
8195
  if (output["S3BucketDestination"] !== undefined) {
8209
8196
  contents.S3BucketDestination = deserializeAws_restXmlAnalyticsS3BucketDestination(output["S3BucketDestination"], context);
8210
8197
  }
@@ -8229,12 +8216,7 @@ const deserializeAws_restXmlAnalyticsFilter = (output, context) => {
8229
8216
  return { $unknown: Object.entries(output)[0] };
8230
8217
  };
8231
8218
  const deserializeAws_restXmlAnalyticsS3BucketDestination = (output, context) => {
8232
- const contents = {
8233
- Format: undefined,
8234
- BucketAccountId: undefined,
8235
- Bucket: undefined,
8236
- Prefix: undefined,
8237
- };
8219
+ const contents = {};
8238
8220
  if (output["Format"] !== undefined) {
8239
8221
  contents.Format = (0, smithy_client_1.expectString)(output["Format"]);
8240
8222
  }
@@ -8250,10 +8232,7 @@ const deserializeAws_restXmlAnalyticsS3BucketDestination = (output, context) =>
8250
8232
  return contents;
8251
8233
  };
8252
8234
  const deserializeAws_restXmlBucket = (output, context) => {
8253
- const contents = {
8254
- Name: undefined,
8255
- CreationDate: undefined,
8256
- };
8235
+ const contents = {};
8257
8236
  if (output["Name"] !== undefined) {
8258
8237
  contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
8259
8238
  }
@@ -8270,12 +8249,7 @@ const deserializeAws_restXmlBuckets = (output, context) => {
8270
8249
  });
8271
8250
  };
8272
8251
  const deserializeAws_restXmlChecksum = (output, context) => {
8273
- const contents = {
8274
- ChecksumCRC32: undefined,
8275
- ChecksumCRC32C: undefined,
8276
- ChecksumSHA1: undefined,
8277
- ChecksumSHA256: undefined,
8278
- };
8252
+ const contents = {};
8279
8253
  if (output["ChecksumCRC32"] !== undefined) {
8280
8254
  contents.ChecksumCRC32 = (0, smithy_client_1.expectString)(output["ChecksumCRC32"]);
8281
8255
  }
@@ -8298,9 +8272,7 @@ const deserializeAws_restXmlChecksumAlgorithmList = (output, context) => {
8298
8272
  });
8299
8273
  };
8300
8274
  const deserializeAws_restXmlCommonPrefix = (output, context) => {
8301
- const contents = {
8302
- Prefix: undefined,
8303
- };
8275
+ const contents = {};
8304
8276
  if (output["Prefix"] !== undefined) {
8305
8277
  contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
8306
8278
  }
@@ -8314,10 +8286,7 @@ const deserializeAws_restXmlCommonPrefixList = (output, context) => {
8314
8286
  });
8315
8287
  };
8316
8288
  const deserializeAws_restXmlCondition = (output, context) => {
8317
- const contents = {
8318
- HttpErrorCodeReturnedEquals: undefined,
8319
- KeyPrefixEquals: undefined,
8320
- };
8289
+ const contents = {};
8321
8290
  if (output["HttpErrorCodeReturnedEquals"] !== undefined) {
8322
8291
  contents.HttpErrorCodeReturnedEquals = (0, smithy_client_1.expectString)(output["HttpErrorCodeReturnedEquals"]);
8323
8292
  }
@@ -8331,14 +8300,7 @@ const deserializeAws_restXmlContinuationEvent = (output, context) => {
8331
8300
  return contents;
8332
8301
  };
8333
8302
  const deserializeAws_restXmlCopyObjectResult = (output, context) => {
8334
- const contents = {
8335
- ETag: undefined,
8336
- LastModified: undefined,
8337
- ChecksumCRC32: undefined,
8338
- ChecksumCRC32C: undefined,
8339
- ChecksumSHA1: undefined,
8340
- ChecksumSHA256: undefined,
8341
- };
8303
+ const contents = {};
8342
8304
  if (output["ETag"] !== undefined) {
8343
8305
  contents.ETag = (0, smithy_client_1.expectString)(output["ETag"]);
8344
8306
  }
@@ -8360,14 +8322,7 @@ const deserializeAws_restXmlCopyObjectResult = (output, context) => {
8360
8322
  return contents;
8361
8323
  };
8362
8324
  const deserializeAws_restXmlCopyPartResult = (output, context) => {
8363
- const contents = {
8364
- ETag: undefined,
8365
- LastModified: undefined,
8366
- ChecksumCRC32: undefined,
8367
- ChecksumCRC32C: undefined,
8368
- ChecksumSHA1: undefined,
8369
- ChecksumSHA256: undefined,
8370
- };
8325
+ const contents = {};
8371
8326
  if (output["ETag"] !== undefined) {
8372
8327
  contents.ETag = (0, smithy_client_1.expectString)(output["ETag"]);
8373
8328
  }
@@ -8389,14 +8344,7 @@ const deserializeAws_restXmlCopyPartResult = (output, context) => {
8389
8344
  return contents;
8390
8345
  };
8391
8346
  const deserializeAws_restXmlCORSRule = (output, context) => {
8392
- const contents = {
8393
- ID: undefined,
8394
- AllowedHeaders: undefined,
8395
- AllowedMethods: undefined,
8396
- AllowedOrigins: undefined,
8397
- ExposeHeaders: undefined,
8398
- MaxAgeSeconds: undefined,
8399
- };
8347
+ const contents = {};
8400
8348
  if (output["ID"] !== undefined) {
8401
8349
  contents.ID = (0, smithy_client_1.expectString)(output["ID"]);
8402
8350
  }
@@ -8437,11 +8385,7 @@ const deserializeAws_restXmlCORSRules = (output, context) => {
8437
8385
  });
8438
8386
  };
8439
8387
  const deserializeAws_restXmlDefaultRetention = (output, context) => {
8440
- const contents = {
8441
- Mode: undefined,
8442
- Days: undefined,
8443
- Years: undefined,
8444
- };
8388
+ const contents = {};
8445
8389
  if (output["Mode"] !== undefined) {
8446
8390
  contents.Mode = (0, smithy_client_1.expectString)(output["Mode"]);
8447
8391
  }
@@ -8454,12 +8398,7 @@ const deserializeAws_restXmlDefaultRetention = (output, context) => {
8454
8398
  return contents;
8455
8399
  };
8456
8400
  const deserializeAws_restXmlDeletedObject = (output, context) => {
8457
- const contents = {
8458
- Key: undefined,
8459
- VersionId: undefined,
8460
- DeleteMarker: undefined,
8461
- DeleteMarkerVersionId: undefined,
8462
- };
8401
+ const contents = {};
8463
8402
  if (output["Key"] !== undefined) {
8464
8403
  contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
8465
8404
  }
@@ -8482,13 +8421,7 @@ const deserializeAws_restXmlDeletedObjects = (output, context) => {
8482
8421
  });
8483
8422
  };
8484
8423
  const deserializeAws_restXmlDeleteMarkerEntry = (output, context) => {
8485
- const contents = {
8486
- Owner: undefined,
8487
- Key: undefined,
8488
- VersionId: undefined,
8489
- IsLatest: undefined,
8490
- LastModified: undefined,
8491
- };
8424
+ const contents = {};
8492
8425
  if (output["Owner"] !== undefined) {
8493
8426
  contents.Owner = deserializeAws_restXmlOwner(output["Owner"], context);
8494
8427
  }
@@ -8507,9 +8440,7 @@ const deserializeAws_restXmlDeleteMarkerEntry = (output, context) => {
8507
8440
  return contents;
8508
8441
  };
8509
8442
  const deserializeAws_restXmlDeleteMarkerReplication = (output, context) => {
8510
- const contents = {
8511
- Status: undefined,
8512
- };
8443
+ const contents = {};
8513
8444
  if (output["Status"] !== undefined) {
8514
8445
  contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
8515
8446
  }
@@ -8523,15 +8454,7 @@ const deserializeAws_restXmlDeleteMarkers = (output, context) => {
8523
8454
  });
8524
8455
  };
8525
8456
  const deserializeAws_restXmlDestination = (output, context) => {
8526
- const contents = {
8527
- Bucket: undefined,
8528
- Account: undefined,
8529
- StorageClass: undefined,
8530
- AccessControlTranslation: undefined,
8531
- EncryptionConfiguration: undefined,
8532
- ReplicationTime: undefined,
8533
- Metrics: undefined,
8534
- };
8457
+ const contents = {};
8535
8458
  if (output["Bucket"] !== undefined) {
8536
8459
  contents.Bucket = (0, smithy_client_1.expectString)(output["Bucket"]);
8537
8460
  }
@@ -8556,9 +8479,7 @@ const deserializeAws_restXmlDestination = (output, context) => {
8556
8479
  return contents;
8557
8480
  };
8558
8481
  const deserializeAws_restXmlEncryptionConfiguration = (output, context) => {
8559
- const contents = {
8560
- ReplicaKmsKeyID: undefined,
8561
- };
8482
+ const contents = {};
8562
8483
  if (output["ReplicaKmsKeyID"] !== undefined) {
8563
8484
  contents.ReplicaKmsKeyID = (0, smithy_client_1.expectString)(output["ReplicaKmsKeyID"]);
8564
8485
  }
@@ -8569,12 +8490,7 @@ const deserializeAws_restXmlEndEvent = (output, context) => {
8569
8490
  return contents;
8570
8491
  };
8571
8492
  const deserializeAws_restXml_Error = (output, context) => {
8572
- const contents = {
8573
- Key: undefined,
8574
- VersionId: undefined,
8575
- Code: undefined,
8576
- Message: undefined,
8577
- };
8493
+ const contents = {};
8578
8494
  if (output["Key"] !== undefined) {
8579
8495
  contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
8580
8496
  }
@@ -8590,9 +8506,7 @@ const deserializeAws_restXml_Error = (output, context) => {
8590
8506
  return contents;
8591
8507
  };
8592
8508
  const deserializeAws_restXmlErrorDocument = (output, context) => {
8593
- const contents = {
8594
- Key: undefined,
8595
- };
8509
+ const contents = {};
8596
8510
  if (output["Key"] !== undefined) {
8597
8511
  contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
8598
8512
  }
@@ -8617,9 +8531,7 @@ const deserializeAws_restXmlEventList = (output, context) => {
8617
8531
  });
8618
8532
  };
8619
8533
  const deserializeAws_restXmlExistingObjectReplication = (output, context) => {
8620
- const contents = {
8621
- Status: undefined,
8622
- };
8534
+ const contents = {};
8623
8535
  if (output["Status"] !== undefined) {
8624
8536
  contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
8625
8537
  }
@@ -8633,10 +8545,7 @@ const deserializeAws_restXmlExposeHeaders = (output, context) => {
8633
8545
  });
8634
8546
  };
8635
8547
  const deserializeAws_restXmlFilterRule = (output, context) => {
8636
- const contents = {
8637
- Name: undefined,
8638
- Value: undefined,
8639
- };
8548
+ const contents = {};
8640
8549
  if (output["Name"] !== undefined) {
8641
8550
  contents.Name = (0, smithy_client_1.expectString)(output["Name"]);
8642
8551
  }
@@ -8653,14 +8562,7 @@ const deserializeAws_restXmlFilterRuleList = (output, context) => {
8653
8562
  });
8654
8563
  };
8655
8564
  const deserializeAws_restXmlGetObjectAttributesParts = (output, context) => {
8656
- const contents = {
8657
- TotalPartsCount: undefined,
8658
- PartNumberMarker: undefined,
8659
- NextPartNumberMarker: undefined,
8660
- MaxParts: undefined,
8661
- IsTruncated: undefined,
8662
- Parts: undefined,
8663
- };
8565
+ const contents = {};
8664
8566
  if (output["PartsCount"] !== undefined) {
8665
8567
  contents.TotalPartsCount = (0, smithy_client_1.strictParseInt32)(output["PartsCount"]);
8666
8568
  }
@@ -8685,10 +8587,7 @@ const deserializeAws_restXmlGetObjectAttributesParts = (output, context) => {
8685
8587
  return contents;
8686
8588
  };
8687
8589
  const deserializeAws_restXmlGrant = (output, context) => {
8688
- const contents = {
8689
- Grantee: undefined,
8690
- Permission: undefined,
8691
- };
8590
+ const contents = {};
8692
8591
  if (output["Grantee"] !== undefined) {
8693
8592
  contents.Grantee = deserializeAws_restXmlGrantee(output["Grantee"], context);
8694
8593
  }
@@ -8698,13 +8597,7 @@ const deserializeAws_restXmlGrant = (output, context) => {
8698
8597
  return contents;
8699
8598
  };
8700
8599
  const deserializeAws_restXmlGrantee = (output, context) => {
8701
- const contents = {
8702
- DisplayName: undefined,
8703
- EmailAddress: undefined,
8704
- ID: undefined,
8705
- URI: undefined,
8706
- Type: undefined,
8707
- };
8600
+ const contents = {};
8708
8601
  if (output["DisplayName"] !== undefined) {
8709
8602
  contents.DisplayName = (0, smithy_client_1.expectString)(output["DisplayName"]);
8710
8603
  }
@@ -8730,19 +8623,14 @@ const deserializeAws_restXmlGrants = (output, context) => {
8730
8623
  });
8731
8624
  };
8732
8625
  const deserializeAws_restXmlIndexDocument = (output, context) => {
8733
- const contents = {
8734
- Suffix: undefined,
8735
- };
8626
+ const contents = {};
8736
8627
  if (output["Suffix"] !== undefined) {
8737
8628
  contents.Suffix = (0, smithy_client_1.expectString)(output["Suffix"]);
8738
8629
  }
8739
8630
  return contents;
8740
8631
  };
8741
8632
  const deserializeAws_restXmlInitiator = (output, context) => {
8742
- const contents = {
8743
- ID: undefined,
8744
- DisplayName: undefined,
8745
- };
8633
+ const contents = {};
8746
8634
  if (output["ID"] !== undefined) {
8747
8635
  contents.ID = (0, smithy_client_1.expectString)(output["ID"]);
8748
8636
  }
@@ -8752,10 +8640,7 @@ const deserializeAws_restXmlInitiator = (output, context) => {
8752
8640
  return contents;
8753
8641
  };
8754
8642
  const deserializeAws_restXmlIntelligentTieringAndOperator = (output, context) => {
8755
- const contents = {
8756
- Prefix: undefined,
8757
- Tags: undefined,
8758
- };
8643
+ const contents = {};
8759
8644
  if (output["Prefix"] !== undefined) {
8760
8645
  contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
8761
8646
  }
@@ -8768,12 +8653,7 @@ const deserializeAws_restXmlIntelligentTieringAndOperator = (output, context) =>
8768
8653
  return contents;
8769
8654
  };
8770
8655
  const deserializeAws_restXmlIntelligentTieringConfiguration = (output, context) => {
8771
- const contents = {
8772
- Id: undefined,
8773
- Filter: undefined,
8774
- Status: undefined,
8775
- Tierings: undefined,
8776
- };
8656
+ const contents = {};
8777
8657
  if (output["Id"] !== undefined) {
8778
8658
  contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
8779
8659
  }
@@ -8799,11 +8679,7 @@ const deserializeAws_restXmlIntelligentTieringConfigurationList = (output, conte
8799
8679
  });
8800
8680
  };
8801
8681
  const deserializeAws_restXmlIntelligentTieringFilter = (output, context) => {
8802
- const contents = {
8803
- Prefix: undefined,
8804
- Tag: undefined,
8805
- And: undefined,
8806
- };
8682
+ const contents = {};
8807
8683
  if (output["Prefix"] !== undefined) {
8808
8684
  contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
8809
8685
  }
@@ -8816,15 +8692,7 @@ const deserializeAws_restXmlIntelligentTieringFilter = (output, context) => {
8816
8692
  return contents;
8817
8693
  };
8818
8694
  const deserializeAws_restXmlInventoryConfiguration = (output, context) => {
8819
- const contents = {
8820
- Destination: undefined,
8821
- IsEnabled: undefined,
8822
- Filter: undefined,
8823
- Id: undefined,
8824
- IncludedObjectVersions: undefined,
8825
- OptionalFields: undefined,
8826
- Schedule: undefined,
8827
- };
8695
+ const contents = {};
8828
8696
  if (output["Destination"] !== undefined) {
8829
8697
  contents.Destination = deserializeAws_restXmlInventoryDestination(output["Destination"], context);
8830
8698
  }
@@ -8859,19 +8727,14 @@ const deserializeAws_restXmlInventoryConfigurationList = (output, context) => {
8859
8727
  });
8860
8728
  };
8861
8729
  const deserializeAws_restXmlInventoryDestination = (output, context) => {
8862
- const contents = {
8863
- S3BucketDestination: undefined,
8864
- };
8730
+ const contents = {};
8865
8731
  if (output["S3BucketDestination"] !== undefined) {
8866
8732
  contents.S3BucketDestination = deserializeAws_restXmlInventoryS3BucketDestination(output["S3BucketDestination"], context);
8867
8733
  }
8868
8734
  return contents;
8869
8735
  };
8870
8736
  const deserializeAws_restXmlInventoryEncryption = (output, context) => {
8871
- const contents = {
8872
- SSES3: undefined,
8873
- SSEKMS: undefined,
8874
- };
8737
+ const contents = {};
8875
8738
  if (output["SSE-S3"] !== undefined) {
8876
8739
  contents.SSES3 = deserializeAws_restXmlSSES3(output["SSE-S3"], context);
8877
8740
  }
@@ -8881,9 +8744,7 @@ const deserializeAws_restXmlInventoryEncryption = (output, context) => {
8881
8744
  return contents;
8882
8745
  };
8883
8746
  const deserializeAws_restXmlInventoryFilter = (output, context) => {
8884
- const contents = {
8885
- Prefix: undefined,
8886
- };
8747
+ const contents = {};
8887
8748
  if (output["Prefix"] !== undefined) {
8888
8749
  contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
8889
8750
  }
@@ -8897,13 +8758,7 @@ const deserializeAws_restXmlInventoryOptionalFields = (output, context) => {
8897
8758
  });
8898
8759
  };
8899
8760
  const deserializeAws_restXmlInventoryS3BucketDestination = (output, context) => {
8900
- const contents = {
8901
- AccountId: undefined,
8902
- Bucket: undefined,
8903
- Format: undefined,
8904
- Prefix: undefined,
8905
- Encryption: undefined,
8906
- };
8761
+ const contents = {};
8907
8762
  if (output["AccountId"] !== undefined) {
8908
8763
  contents.AccountId = (0, smithy_client_1.expectString)(output["AccountId"]);
8909
8764
  }
@@ -8922,21 +8777,14 @@ const deserializeAws_restXmlInventoryS3BucketDestination = (output, context) =>
8922
8777
  return contents;
8923
8778
  };
8924
8779
  const deserializeAws_restXmlInventorySchedule = (output, context) => {
8925
- const contents = {
8926
- Frequency: undefined,
8927
- };
8780
+ const contents = {};
8928
8781
  if (output["Frequency"] !== undefined) {
8929
8782
  contents.Frequency = (0, smithy_client_1.expectString)(output["Frequency"]);
8930
8783
  }
8931
8784
  return contents;
8932
8785
  };
8933
8786
  const deserializeAws_restXmlLambdaFunctionConfiguration = (output, context) => {
8934
- const contents = {
8935
- Id: undefined,
8936
- LambdaFunctionArn: undefined,
8937
- Events: undefined,
8938
- Filter: undefined,
8939
- };
8787
+ const contents = {};
8940
8788
  if (output["Id"] !== undefined) {
8941
8789
  contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
8942
8790
  }
@@ -8962,11 +8810,7 @@ const deserializeAws_restXmlLambdaFunctionConfigurationList = (output, context)
8962
8810
  });
8963
8811
  };
8964
8812
  const deserializeAws_restXmlLifecycleExpiration = (output, context) => {
8965
- const contents = {
8966
- Date: undefined,
8967
- Days: undefined,
8968
- ExpiredObjectDeleteMarker: undefined,
8969
- };
8813
+ const contents = {};
8970
8814
  if (output["Date"] !== undefined) {
8971
8815
  contents.Date = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["Date"]));
8972
8816
  }
@@ -8979,17 +8823,7 @@ const deserializeAws_restXmlLifecycleExpiration = (output, context) => {
8979
8823
  return contents;
8980
8824
  };
8981
8825
  const deserializeAws_restXmlLifecycleRule = (output, context) => {
8982
- const contents = {
8983
- Expiration: undefined,
8984
- ID: undefined,
8985
- Prefix: undefined,
8986
- Filter: undefined,
8987
- Status: undefined,
8988
- Transitions: undefined,
8989
- NoncurrentVersionTransitions: undefined,
8990
- NoncurrentVersionExpiration: undefined,
8991
- AbortIncompleteMultipartUpload: undefined,
8992
- };
8826
+ const contents = {};
8993
8827
  if (output["Expiration"] !== undefined) {
8994
8828
  contents.Expiration = deserializeAws_restXmlLifecycleExpiration(output["Expiration"], context);
8995
8829
  }
@@ -9028,12 +8862,7 @@ const deserializeAws_restXmlLifecycleRule = (output, context) => {
9028
8862
  return contents;
9029
8863
  };
9030
8864
  const deserializeAws_restXmlLifecycleRuleAndOperator = (output, context) => {
9031
- const contents = {
9032
- Prefix: undefined,
9033
- Tags: undefined,
9034
- ObjectSizeGreaterThan: undefined,
9035
- ObjectSizeLessThan: undefined,
9036
- };
8865
+ const contents = {};
9037
8866
  if (output["Prefix"] !== undefined) {
9038
8867
  contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
9039
8868
  }
@@ -9087,11 +8916,7 @@ const deserializeAws_restXmlLifecycleRules = (output, context) => {
9087
8916
  });
9088
8917
  };
9089
8918
  const deserializeAws_restXmlLoggingEnabled = (output, context) => {
9090
- const contents = {
9091
- TargetBucket: undefined,
9092
- TargetGrants: undefined,
9093
- TargetPrefix: undefined,
9094
- };
8919
+ const contents = {};
9095
8920
  if (output["TargetBucket"] !== undefined) {
9096
8921
  contents.TargetBucket = (0, smithy_client_1.expectString)(output["TargetBucket"]);
9097
8922
  }
@@ -9107,10 +8932,7 @@ const deserializeAws_restXmlLoggingEnabled = (output, context) => {
9107
8932
  return contents;
9108
8933
  };
9109
8934
  const deserializeAws_restXmlMetrics = (output, context) => {
9110
- const contents = {
9111
- Status: undefined,
9112
- EventThreshold: undefined,
9113
- };
8935
+ const contents = {};
9114
8936
  if (output["Status"] !== undefined) {
9115
8937
  contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
9116
8938
  }
@@ -9120,11 +8942,7 @@ const deserializeAws_restXmlMetrics = (output, context) => {
9120
8942
  return contents;
9121
8943
  };
9122
8944
  const deserializeAws_restXmlMetricsAndOperator = (output, context) => {
9123
- const contents = {
9124
- Prefix: undefined,
9125
- Tags: undefined,
9126
- AccessPointArn: undefined,
9127
- };
8945
+ const contents = {};
9128
8946
  if (output["Prefix"] !== undefined) {
9129
8947
  contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
9130
8948
  }
@@ -9140,10 +8958,7 @@ const deserializeAws_restXmlMetricsAndOperator = (output, context) => {
9140
8958
  return contents;
9141
8959
  };
9142
8960
  const deserializeAws_restXmlMetricsConfiguration = (output, context) => {
9143
- const contents = {
9144
- Id: undefined,
9145
- Filter: undefined,
9146
- };
8961
+ const contents = {};
9147
8962
  if (output["Id"] !== undefined) {
9148
8963
  contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
9149
8964
  }
@@ -9185,15 +9000,7 @@ const deserializeAws_restXmlMetricsFilter = (output, context) => {
9185
9000
  return { $unknown: Object.entries(output)[0] };
9186
9001
  };
9187
9002
  const deserializeAws_restXmlMultipartUpload = (output, context) => {
9188
- const contents = {
9189
- UploadId: undefined,
9190
- Key: undefined,
9191
- Initiated: undefined,
9192
- StorageClass: undefined,
9193
- Owner: undefined,
9194
- Initiator: undefined,
9195
- ChecksumAlgorithm: undefined,
9196
- };
9003
+ const contents = {};
9197
9004
  if (output["UploadId"] !== undefined) {
9198
9005
  contents.UploadId = (0, smithy_client_1.expectString)(output["UploadId"]);
9199
9006
  }
@@ -9225,10 +9032,7 @@ const deserializeAws_restXmlMultipartUploadList = (output, context) => {
9225
9032
  });
9226
9033
  };
9227
9034
  const deserializeAws_restXmlNoncurrentVersionExpiration = (output, context) => {
9228
- const contents = {
9229
- NoncurrentDays: undefined,
9230
- NewerNoncurrentVersions: undefined,
9231
- };
9035
+ const contents = {};
9232
9036
  if (output["NoncurrentDays"] !== undefined) {
9233
9037
  contents.NoncurrentDays = (0, smithy_client_1.strictParseInt32)(output["NoncurrentDays"]);
9234
9038
  }
@@ -9238,11 +9042,7 @@ const deserializeAws_restXmlNoncurrentVersionExpiration = (output, context) => {
9238
9042
  return contents;
9239
9043
  };
9240
9044
  const deserializeAws_restXmlNoncurrentVersionTransition = (output, context) => {
9241
- const contents = {
9242
- NoncurrentDays: undefined,
9243
- StorageClass: undefined,
9244
- NewerNoncurrentVersions: undefined,
9245
- };
9045
+ const contents = {};
9246
9046
  if (output["NoncurrentDays"] !== undefined) {
9247
9047
  contents.NoncurrentDays = (0, smithy_client_1.strictParseInt32)(output["NoncurrentDays"]);
9248
9048
  }
@@ -9262,24 +9062,14 @@ const deserializeAws_restXmlNoncurrentVersionTransitionList = (output, context)
9262
9062
  });
9263
9063
  };
9264
9064
  const deserializeAws_restXmlNotificationConfigurationFilter = (output, context) => {
9265
- const contents = {
9266
- Key: undefined,
9267
- };
9065
+ const contents = {};
9268
9066
  if (output["S3Key"] !== undefined) {
9269
9067
  contents.Key = deserializeAws_restXmlS3KeyFilter(output["S3Key"], context);
9270
9068
  }
9271
9069
  return contents;
9272
9070
  };
9273
9071
  const deserializeAws_restXml_Object = (output, context) => {
9274
- const contents = {
9275
- Key: undefined,
9276
- LastModified: undefined,
9277
- ETag: undefined,
9278
- ChecksumAlgorithm: undefined,
9279
- Size: undefined,
9280
- StorageClass: undefined,
9281
- Owner: undefined,
9282
- };
9072
+ const contents = {};
9283
9073
  if (output["Key"] !== undefined) {
9284
9074
  contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
9285
9075
  }
@@ -9314,10 +9104,7 @@ const deserializeAws_restXmlObjectList = (output, context) => {
9314
9104
  });
9315
9105
  };
9316
9106
  const deserializeAws_restXmlObjectLockConfiguration = (output, context) => {
9317
- const contents = {
9318
- ObjectLockEnabled: undefined,
9319
- Rule: undefined,
9320
- };
9107
+ const contents = {};
9321
9108
  if (output["ObjectLockEnabled"] !== undefined) {
9322
9109
  contents.ObjectLockEnabled = (0, smithy_client_1.expectString)(output["ObjectLockEnabled"]);
9323
9110
  }
@@ -9327,19 +9114,14 @@ const deserializeAws_restXmlObjectLockConfiguration = (output, context) => {
9327
9114
  return contents;
9328
9115
  };
9329
9116
  const deserializeAws_restXmlObjectLockLegalHold = (output, context) => {
9330
- const contents = {
9331
- Status: undefined,
9332
- };
9117
+ const contents = {};
9333
9118
  if (output["Status"] !== undefined) {
9334
9119
  contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
9335
9120
  }
9336
9121
  return contents;
9337
9122
  };
9338
9123
  const deserializeAws_restXmlObjectLockRetention = (output, context) => {
9339
- const contents = {
9340
- Mode: undefined,
9341
- RetainUntilDate: undefined,
9342
- };
9124
+ const contents = {};
9343
9125
  if (output["Mode"] !== undefined) {
9344
9126
  contents.Mode = (0, smithy_client_1.expectString)(output["Mode"]);
9345
9127
  }
@@ -9349,23 +9131,14 @@ const deserializeAws_restXmlObjectLockRetention = (output, context) => {
9349
9131
  return contents;
9350
9132
  };
9351
9133
  const deserializeAws_restXmlObjectLockRule = (output, context) => {
9352
- const contents = {
9353
- DefaultRetention: undefined,
9354
- };
9134
+ const contents = {};
9355
9135
  if (output["DefaultRetention"] !== undefined) {
9356
9136
  contents.DefaultRetention = deserializeAws_restXmlDefaultRetention(output["DefaultRetention"], context);
9357
9137
  }
9358
9138
  return contents;
9359
9139
  };
9360
9140
  const deserializeAws_restXmlObjectPart = (output, context) => {
9361
- const contents = {
9362
- PartNumber: undefined,
9363
- Size: undefined,
9364
- ChecksumCRC32: undefined,
9365
- ChecksumCRC32C: undefined,
9366
- ChecksumSHA1: undefined,
9367
- ChecksumSHA256: undefined,
9368
- };
9141
+ const contents = {};
9369
9142
  if (output["PartNumber"] !== undefined) {
9370
9143
  contents.PartNumber = (0, smithy_client_1.strictParseInt32)(output["PartNumber"]);
9371
9144
  }
@@ -9387,17 +9160,7 @@ const deserializeAws_restXmlObjectPart = (output, context) => {
9387
9160
  return contents;
9388
9161
  };
9389
9162
  const deserializeAws_restXmlObjectVersion = (output, context) => {
9390
- const contents = {
9391
- ETag: undefined,
9392
- ChecksumAlgorithm: undefined,
9393
- Size: undefined,
9394
- StorageClass: undefined,
9395
- Key: undefined,
9396
- VersionId: undefined,
9397
- IsLatest: undefined,
9398
- LastModified: undefined,
9399
- Owner: undefined,
9400
- };
9163
+ const contents = {};
9401
9164
  if (output["ETag"] !== undefined) {
9402
9165
  contents.ETag = (0, smithy_client_1.expectString)(output["ETag"]);
9403
9166
  }
@@ -9438,10 +9201,7 @@ const deserializeAws_restXmlObjectVersionList = (output, context) => {
9438
9201
  });
9439
9202
  };
9440
9203
  const deserializeAws_restXmlOwner = (output, context) => {
9441
- const contents = {
9442
- DisplayName: undefined,
9443
- ID: undefined,
9444
- };
9204
+ const contents = {};
9445
9205
  if (output["DisplayName"] !== undefined) {
9446
9206
  contents.DisplayName = (0, smithy_client_1.expectString)(output["DisplayName"]);
9447
9207
  }
@@ -9451,9 +9211,7 @@ const deserializeAws_restXmlOwner = (output, context) => {
9451
9211
  return contents;
9452
9212
  };
9453
9213
  const deserializeAws_restXmlOwnershipControls = (output, context) => {
9454
- const contents = {
9455
- Rules: undefined,
9456
- };
9214
+ const contents = {};
9457
9215
  if (output.Rule === "") {
9458
9216
  contents.Rules = [];
9459
9217
  }
@@ -9463,9 +9221,7 @@ const deserializeAws_restXmlOwnershipControls = (output, context) => {
9463
9221
  return contents;
9464
9222
  };
9465
9223
  const deserializeAws_restXmlOwnershipControlsRule = (output, context) => {
9466
- const contents = {
9467
- ObjectOwnership: undefined,
9468
- };
9224
+ const contents = {};
9469
9225
  if (output["ObjectOwnership"] !== undefined) {
9470
9226
  contents.ObjectOwnership = (0, smithy_client_1.expectString)(output["ObjectOwnership"]);
9471
9227
  }
@@ -9479,16 +9235,7 @@ const deserializeAws_restXmlOwnershipControlsRules = (output, context) => {
9479
9235
  });
9480
9236
  };
9481
9237
  const deserializeAws_restXmlPart = (output, context) => {
9482
- const contents = {
9483
- PartNumber: undefined,
9484
- LastModified: undefined,
9485
- ETag: undefined,
9486
- Size: undefined,
9487
- ChecksumCRC32: undefined,
9488
- ChecksumCRC32C: undefined,
9489
- ChecksumSHA1: undefined,
9490
- ChecksumSHA256: undefined,
9491
- };
9238
+ const contents = {};
9492
9239
  if (output["PartNumber"] !== undefined) {
9493
9240
  contents.PartNumber = (0, smithy_client_1.strictParseInt32)(output["PartNumber"]);
9494
9241
  }
@@ -9530,20 +9277,14 @@ const deserializeAws_restXmlPartsList = (output, context) => {
9530
9277
  });
9531
9278
  };
9532
9279
  const deserializeAws_restXmlPolicyStatus = (output, context) => {
9533
- const contents = {
9534
- IsPublic: undefined,
9535
- };
9280
+ const contents = {};
9536
9281
  if (output["IsPublic"] !== undefined) {
9537
9282
  contents.IsPublic = (0, smithy_client_1.parseBoolean)(output["IsPublic"]);
9538
9283
  }
9539
9284
  return contents;
9540
9285
  };
9541
9286
  const deserializeAws_restXmlProgress = (output, context) => {
9542
- const contents = {
9543
- BytesScanned: undefined,
9544
- BytesProcessed: undefined,
9545
- BytesReturned: undefined,
9546
- };
9287
+ const contents = {};
9547
9288
  if (output["BytesScanned"] !== undefined) {
9548
9289
  contents.BytesScanned = (0, smithy_client_1.strictParseLong)(output["BytesScanned"]);
9549
9290
  }
@@ -9556,12 +9297,7 @@ const deserializeAws_restXmlProgress = (output, context) => {
9556
9297
  return contents;
9557
9298
  };
9558
9299
  const deserializeAws_restXmlPublicAccessBlockConfiguration = (output, context) => {
9559
- const contents = {
9560
- BlockPublicAcls: undefined,
9561
- IgnorePublicAcls: undefined,
9562
- BlockPublicPolicy: undefined,
9563
- RestrictPublicBuckets: undefined,
9564
- };
9300
+ const contents = {};
9565
9301
  if (output["BlockPublicAcls"] !== undefined) {
9566
9302
  contents.BlockPublicAcls = (0, smithy_client_1.parseBoolean)(output["BlockPublicAcls"]);
9567
9303
  }
@@ -9577,12 +9313,7 @@ const deserializeAws_restXmlPublicAccessBlockConfiguration = (output, context) =
9577
9313
  return contents;
9578
9314
  };
9579
9315
  const deserializeAws_restXmlQueueConfiguration = (output, context) => {
9580
- const contents = {
9581
- Id: undefined,
9582
- QueueArn: undefined,
9583
- Events: undefined,
9584
- Filter: undefined,
9585
- };
9316
+ const contents = {};
9586
9317
  if (output["Id"] !== undefined) {
9587
9318
  contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
9588
9319
  }
@@ -9608,13 +9339,7 @@ const deserializeAws_restXmlQueueConfigurationList = (output, context) => {
9608
9339
  });
9609
9340
  };
9610
9341
  const deserializeAws_restXmlRedirect = (output, context) => {
9611
- const contents = {
9612
- HostName: undefined,
9613
- HttpRedirectCode: undefined,
9614
- Protocol: undefined,
9615
- ReplaceKeyPrefixWith: undefined,
9616
- ReplaceKeyWith: undefined,
9617
- };
9342
+ const contents = {};
9618
9343
  if (output["HostName"] !== undefined) {
9619
9344
  contents.HostName = (0, smithy_client_1.expectString)(output["HostName"]);
9620
9345
  }
@@ -9633,10 +9358,7 @@ const deserializeAws_restXmlRedirect = (output, context) => {
9633
9358
  return contents;
9634
9359
  };
9635
9360
  const deserializeAws_restXmlRedirectAllRequestsTo = (output, context) => {
9636
- const contents = {
9637
- HostName: undefined,
9638
- Protocol: undefined,
9639
- };
9361
+ const contents = {};
9640
9362
  if (output["HostName"] !== undefined) {
9641
9363
  contents.HostName = (0, smithy_client_1.expectString)(output["HostName"]);
9642
9364
  }
@@ -9646,19 +9368,14 @@ const deserializeAws_restXmlRedirectAllRequestsTo = (output, context) => {
9646
9368
  return contents;
9647
9369
  };
9648
9370
  const deserializeAws_restXmlReplicaModifications = (output, context) => {
9649
- const contents = {
9650
- Status: undefined,
9651
- };
9371
+ const contents = {};
9652
9372
  if (output["Status"] !== undefined) {
9653
9373
  contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
9654
9374
  }
9655
9375
  return contents;
9656
9376
  };
9657
9377
  const deserializeAws_restXmlReplicationConfiguration = (output, context) => {
9658
- const contents = {
9659
- Role: undefined,
9660
- Rules: undefined,
9661
- };
9378
+ const contents = {};
9662
9379
  if (output["Role"] !== undefined) {
9663
9380
  contents.Role = (0, smithy_client_1.expectString)(output["Role"]);
9664
9381
  }
@@ -9671,17 +9388,7 @@ const deserializeAws_restXmlReplicationConfiguration = (output, context) => {
9671
9388
  return contents;
9672
9389
  };
9673
9390
  const deserializeAws_restXmlReplicationRule = (output, context) => {
9674
- const contents = {
9675
- ID: undefined,
9676
- Priority: undefined,
9677
- Prefix: undefined,
9678
- Filter: undefined,
9679
- Status: undefined,
9680
- SourceSelectionCriteria: undefined,
9681
- ExistingObjectReplication: undefined,
9682
- Destination: undefined,
9683
- DeleteMarkerReplication: undefined,
9684
- };
9391
+ const contents = {};
9685
9392
  if (output["ID"] !== undefined) {
9686
9393
  contents.ID = (0, smithy_client_1.expectString)(output["ID"]);
9687
9394
  }
@@ -9714,10 +9421,7 @@ const deserializeAws_restXmlReplicationRule = (output, context) => {
9714
9421
  return contents;
9715
9422
  };
9716
9423
  const deserializeAws_restXmlReplicationRuleAndOperator = (output, context) => {
9717
- const contents = {
9718
- Prefix: undefined,
9719
- Tags: undefined,
9720
- };
9424
+ const contents = {};
9721
9425
  if (output["Prefix"] !== undefined) {
9722
9426
  contents.Prefix = (0, smithy_client_1.expectString)(output["Prefix"]);
9723
9427
  }
@@ -9755,10 +9459,7 @@ const deserializeAws_restXmlReplicationRules = (output, context) => {
9755
9459
  });
9756
9460
  };
9757
9461
  const deserializeAws_restXmlReplicationTime = (output, context) => {
9758
- const contents = {
9759
- Status: undefined,
9760
- Time: undefined,
9761
- };
9462
+ const contents = {};
9762
9463
  if (output["Status"] !== undefined) {
9763
9464
  contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
9764
9465
  }
@@ -9768,19 +9469,14 @@ const deserializeAws_restXmlReplicationTime = (output, context) => {
9768
9469
  return contents;
9769
9470
  };
9770
9471
  const deserializeAws_restXmlReplicationTimeValue = (output, context) => {
9771
- const contents = {
9772
- Minutes: undefined,
9773
- };
9472
+ const contents = {};
9774
9473
  if (output["Minutes"] !== undefined) {
9775
9474
  contents.Minutes = (0, smithy_client_1.strictParseInt32)(output["Minutes"]);
9776
9475
  }
9777
9476
  return contents;
9778
9477
  };
9779
9478
  const deserializeAws_restXmlRoutingRule = (output, context) => {
9780
- const contents = {
9781
- Condition: undefined,
9782
- Redirect: undefined,
9783
- };
9479
+ const contents = {};
9784
9480
  if (output["Condition"] !== undefined) {
9785
9481
  contents.Condition = deserializeAws_restXmlCondition(output["Condition"], context);
9786
9482
  }
@@ -9797,9 +9493,7 @@ const deserializeAws_restXmlRoutingRules = (output, context) => {
9797
9493
  });
9798
9494
  };
9799
9495
  const deserializeAws_restXmlS3KeyFilter = (output, context) => {
9800
- const contents = {
9801
- FilterRules: undefined,
9802
- };
9496
+ const contents = {};
9803
9497
  if (output.FilterRule === "") {
9804
9498
  contents.FilterRules = [];
9805
9499
  }
@@ -9809,10 +9503,7 @@ const deserializeAws_restXmlS3KeyFilter = (output, context) => {
9809
9503
  return contents;
9810
9504
  };
9811
9505
  const deserializeAws_restXmlServerSideEncryptionByDefault = (output, context) => {
9812
- const contents = {
9813
- SSEAlgorithm: undefined,
9814
- KMSMasterKeyID: undefined,
9815
- };
9506
+ const contents = {};
9816
9507
  if (output["SSEAlgorithm"] !== undefined) {
9817
9508
  contents.SSEAlgorithm = (0, smithy_client_1.expectString)(output["SSEAlgorithm"]);
9818
9509
  }
@@ -9822,9 +9513,7 @@ const deserializeAws_restXmlServerSideEncryptionByDefault = (output, context) =>
9822
9513
  return contents;
9823
9514
  };
9824
9515
  const deserializeAws_restXmlServerSideEncryptionConfiguration = (output, context) => {
9825
- const contents = {
9826
- Rules: undefined,
9827
- };
9516
+ const contents = {};
9828
9517
  if (output.Rule === "") {
9829
9518
  contents.Rules = [];
9830
9519
  }
@@ -9834,10 +9523,7 @@ const deserializeAws_restXmlServerSideEncryptionConfiguration = (output, context
9834
9523
  return contents;
9835
9524
  };
9836
9525
  const deserializeAws_restXmlServerSideEncryptionRule = (output, context) => {
9837
- const contents = {
9838
- ApplyServerSideEncryptionByDefault: undefined,
9839
- BucketKeyEnabled: undefined,
9840
- };
9526
+ const contents = {};
9841
9527
  if (output["ApplyServerSideEncryptionByDefault"] !== undefined) {
9842
9528
  contents.ApplyServerSideEncryptionByDefault = deserializeAws_restXmlServerSideEncryptionByDefault(output["ApplyServerSideEncryptionByDefault"], context);
9843
9529
  }
@@ -9854,10 +9540,7 @@ const deserializeAws_restXmlServerSideEncryptionRules = (output, context) => {
9854
9540
  });
9855
9541
  };
9856
9542
  const deserializeAws_restXmlSourceSelectionCriteria = (output, context) => {
9857
- const contents = {
9858
- SseKmsEncryptedObjects: undefined,
9859
- ReplicaModifications: undefined,
9860
- };
9543
+ const contents = {};
9861
9544
  if (output["SseKmsEncryptedObjects"] !== undefined) {
9862
9545
  contents.SseKmsEncryptedObjects = deserializeAws_restXmlSseKmsEncryptedObjects(output["SseKmsEncryptedObjects"], context);
9863
9546
  }
@@ -9867,18 +9550,14 @@ const deserializeAws_restXmlSourceSelectionCriteria = (output, context) => {
9867
9550
  return contents;
9868
9551
  };
9869
9552
  const deserializeAws_restXmlSSEKMS = (output, context) => {
9870
- const contents = {
9871
- KeyId: undefined,
9872
- };
9553
+ const contents = {};
9873
9554
  if (output["KeyId"] !== undefined) {
9874
9555
  contents.KeyId = (0, smithy_client_1.expectString)(output["KeyId"]);
9875
9556
  }
9876
9557
  return contents;
9877
9558
  };
9878
9559
  const deserializeAws_restXmlSseKmsEncryptedObjects = (output, context) => {
9879
- const contents = {
9880
- Status: undefined,
9881
- };
9560
+ const contents = {};
9882
9561
  if (output["Status"] !== undefined) {
9883
9562
  contents.Status = (0, smithy_client_1.expectString)(output["Status"]);
9884
9563
  }
@@ -9889,11 +9568,7 @@ const deserializeAws_restXmlSSES3 = (output, context) => {
9889
9568
  return contents;
9890
9569
  };
9891
9570
  const deserializeAws_restXmlStats = (output, context) => {
9892
- const contents = {
9893
- BytesScanned: undefined,
9894
- BytesProcessed: undefined,
9895
- BytesReturned: undefined,
9896
- };
9571
+ const contents = {};
9897
9572
  if (output["BytesScanned"] !== undefined) {
9898
9573
  contents.BytesScanned = (0, smithy_client_1.strictParseLong)(output["BytesScanned"]);
9899
9574
  }
@@ -9906,19 +9581,14 @@ const deserializeAws_restXmlStats = (output, context) => {
9906
9581
  return contents;
9907
9582
  };
9908
9583
  const deserializeAws_restXmlStorageClassAnalysis = (output, context) => {
9909
- const contents = {
9910
- DataExport: undefined,
9911
- };
9584
+ const contents = {};
9912
9585
  if (output["DataExport"] !== undefined) {
9913
9586
  contents.DataExport = deserializeAws_restXmlStorageClassAnalysisDataExport(output["DataExport"], context);
9914
9587
  }
9915
9588
  return contents;
9916
9589
  };
9917
9590
  const deserializeAws_restXmlStorageClassAnalysisDataExport = (output, context) => {
9918
- const contents = {
9919
- OutputSchemaVersion: undefined,
9920
- Destination: undefined,
9921
- };
9591
+ const contents = {};
9922
9592
  if (output["OutputSchemaVersion"] !== undefined) {
9923
9593
  contents.OutputSchemaVersion = (0, smithy_client_1.expectString)(output["OutputSchemaVersion"]);
9924
9594
  }
@@ -9928,10 +9598,7 @@ const deserializeAws_restXmlStorageClassAnalysisDataExport = (output, context) =
9928
9598
  return contents;
9929
9599
  };
9930
9600
  const deserializeAws_restXmlTag = (output, context) => {
9931
- const contents = {
9932
- Key: undefined,
9933
- Value: undefined,
9934
- };
9601
+ const contents = {};
9935
9602
  if (output["Key"] !== undefined) {
9936
9603
  contents.Key = (0, smithy_client_1.expectString)(output["Key"]);
9937
9604
  }
@@ -9948,10 +9615,7 @@ const deserializeAws_restXmlTagSet = (output, context) => {
9948
9615
  });
9949
9616
  };
9950
9617
  const deserializeAws_restXmlTargetGrant = (output, context) => {
9951
- const contents = {
9952
- Grantee: undefined,
9953
- Permission: undefined,
9954
- };
9618
+ const contents = {};
9955
9619
  if (output["Grantee"] !== undefined) {
9956
9620
  contents.Grantee = deserializeAws_restXmlGrantee(output["Grantee"], context);
9957
9621
  }
@@ -9968,10 +9632,7 @@ const deserializeAws_restXmlTargetGrants = (output, context) => {
9968
9632
  });
9969
9633
  };
9970
9634
  const deserializeAws_restXmlTiering = (output, context) => {
9971
- const contents = {
9972
- Days: undefined,
9973
- AccessTier: undefined,
9974
- };
9635
+ const contents = {};
9975
9636
  if (output["Days"] !== undefined) {
9976
9637
  contents.Days = (0, smithy_client_1.strictParseInt32)(output["Days"]);
9977
9638
  }
@@ -9988,12 +9649,7 @@ const deserializeAws_restXmlTieringList = (output, context) => {
9988
9649
  });
9989
9650
  };
9990
9651
  const deserializeAws_restXmlTopicConfiguration = (output, context) => {
9991
- const contents = {
9992
- Id: undefined,
9993
- TopicArn: undefined,
9994
- Events: undefined,
9995
- Filter: undefined,
9996
- };
9652
+ const contents = {};
9997
9653
  if (output["Id"] !== undefined) {
9998
9654
  contents.Id = (0, smithy_client_1.expectString)(output["Id"]);
9999
9655
  }
@@ -10019,11 +9675,7 @@ const deserializeAws_restXmlTopicConfigurationList = (output, context) => {
10019
9675
  });
10020
9676
  };
10021
9677
  const deserializeAws_restXmlTransition = (output, context) => {
10022
- const contents = {
10023
- Date: undefined,
10024
- Days: undefined,
10025
- StorageClass: undefined,
10026
- };
9678
+ const contents = {};
10027
9679
  if (output["Date"] !== undefined) {
10028
9680
  contents.Date = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["Date"]));
10029
9681
  }