@aws-sdk/client-s3 3.893.0 → 3.895.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.
package/dist-cjs/index.js CHANGED
@@ -3782,12 +3782,12 @@ var de_DeleteObjectsCommand = /* @__PURE__ */ __name(async (output, context) =>
3782
3782
  [_RC]: [, output.headers[_xarc]]
3783
3783
  });
3784
3784
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
3785
- if (data.Deleted === "") {
3785
+ if (String(data.Deleted).trim() === "") {
3786
3786
  contents[_De] = [];
3787
3787
  } else if (data[_De] != null) {
3788
3788
  contents[_De] = de_DeletedObjects((0, import_smithy_client.getArrayIfSingleItem)(data[_De]), context);
3789
3789
  }
3790
- if (data.Error === "") {
3790
+ if (String(data.Error).trim() === "") {
3791
3791
  contents[_Err] = [];
3792
3792
  } else if (data[_Er] != null) {
3793
3793
  contents[_Err] = de_Errors((0, import_smithy_client.getArrayIfSingleItem)(data[_Er]), context);
@@ -3837,7 +3837,7 @@ var de_GetBucketAclCommand = /* @__PURE__ */ __name(async (output, context) => {
3837
3837
  $metadata: deserializeMetadata(output)
3838
3838
  });
3839
3839
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
3840
- if (data.AccessControlList === "") {
3840
+ if (String(data.AccessControlList).trim() === "") {
3841
3841
  contents[_Gr] = [];
3842
3842
  } else if (data[_ACLc] != null && data[_ACLc][_G] != null) {
3843
3843
  contents[_Gr] = de_Grants((0, import_smithy_client.getArrayIfSingleItem)(data[_ACLc][_G]), context);
@@ -3866,7 +3866,7 @@ var de_GetBucketCorsCommand = /* @__PURE__ */ __name(async (output, context) =>
3866
3866
  $metadata: deserializeMetadata(output)
3867
3867
  });
3868
3868
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
3869
- if (data.CORSRule === "") {
3869
+ if (String(data.CORSRule).trim() === "") {
3870
3870
  contents[_CORSRu] = [];
3871
3871
  } else if (data[_CORSR] != null) {
3872
3872
  contents[_CORSRu] = de_CORSRules((0, import_smithy_client.getArrayIfSingleItem)(data[_CORSR]), context);
@@ -3915,7 +3915,7 @@ var de_GetBucketLifecycleConfigurationCommand = /* @__PURE__ */ __name(async (ou
3915
3915
  [_TDMOS]: [, output.headers[_xatdmos]]
3916
3916
  });
3917
3917
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
3918
- if (data.Rule === "") {
3918
+ if (String(data.Rule).trim() === "") {
3919
3919
  contents[_Rul] = [];
3920
3920
  } else if (data[_Ru] != null) {
3921
3921
  contents[_Rul] = de_LifecycleRules((0, import_smithy_client.getArrayIfSingleItem)(data[_Ru]), context);
@@ -3992,17 +3992,17 @@ var de_GetBucketNotificationConfigurationCommand = /* @__PURE__ */ __name(async
3992
3992
  if (data[_EBC] != null) {
3993
3993
  contents[_EBC] = de_EventBridgeConfiguration(data[_EBC], context);
3994
3994
  }
3995
- if (data.CloudFunctionConfiguration === "") {
3995
+ if (String(data.CloudFunctionConfiguration).trim() === "") {
3996
3996
  contents[_LFC] = [];
3997
3997
  } else if (data[_CFC] != null) {
3998
3998
  contents[_LFC] = de_LambdaFunctionConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_CFC]), context);
3999
3999
  }
4000
- if (data.QueueConfiguration === "") {
4000
+ if (String(data.QueueConfiguration).trim() === "") {
4001
4001
  contents[_QCu] = [];
4002
4002
  } else if (data[_QC] != null) {
4003
4003
  contents[_QCu] = de_QueueConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_QC]), context);
4004
4004
  }
4005
- if (data.TopicConfiguration === "") {
4005
+ if (String(data.TopicConfiguration).trim() === "") {
4006
4006
  contents[_TCop] = [];
4007
4007
  } else if (data[_TCo] != null) {
4008
4008
  contents[_TCop] = de_TopicConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_TCo]), context);
@@ -4074,7 +4074,7 @@ var de_GetBucketTaggingCommand = /* @__PURE__ */ __name(async (output, context)
4074
4074
  $metadata: deserializeMetadata(output)
4075
4075
  });
4076
4076
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
4077
- if (data.TagSet === "") {
4077
+ if (String(data.TagSet).trim() === "") {
4078
4078
  contents[_TS] = [];
4079
4079
  } else if (data[_TS] != null && data[_TS][_Ta] != null) {
4080
4080
  contents[_TS] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(data[_TS][_Ta]), context);
@@ -4114,7 +4114,7 @@ var de_GetBucketWebsiteCommand = /* @__PURE__ */ __name(async (output, context)
4114
4114
  if (data[_RART] != null) {
4115
4115
  contents[_RART] = de_RedirectAllRequestsTo(data[_RART], context);
4116
4116
  }
4117
- if (data.RoutingRules === "") {
4117
+ if (String(data.RoutingRules).trim() === "") {
4118
4118
  contents[_RRo] = [];
4119
4119
  } else if (data[_RRo] != null && data[_RRo][_RRou] != null) {
4120
4120
  contents[_RRo] = de_RoutingRules((0, import_smithy_client.getArrayIfSingleItem)(data[_RRo][_RRou]), context);
@@ -4189,7 +4189,7 @@ var de_GetObjectAclCommand = /* @__PURE__ */ __name(async (output, context) => {
4189
4189
  [_RC]: [, output.headers[_xarc]]
4190
4190
  });
4191
4191
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
4192
- if (data.AccessControlList === "") {
4192
+ if (String(data.AccessControlList).trim() === "") {
4193
4193
  contents[_Gr] = [];
4194
4194
  } else if (data[_ACLc] != null && data[_ACLc][_G] != null) {
4195
4195
  contents[_Gr] = de_Grants((0, import_smithy_client.getArrayIfSingleItem)(data[_ACLc][_G]), context);
@@ -4270,7 +4270,7 @@ var de_GetObjectTaggingCommand = /* @__PURE__ */ __name(async (output, context)
4270
4270
  [_VI]: [, output.headers[_xavi]]
4271
4271
  });
4272
4272
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
4273
- if (data.TagSet === "") {
4273
+ if (String(data.TagSet).trim() === "") {
4274
4274
  contents[_TS] = [];
4275
4275
  } else if (data[_TS] != null && data[_TS][_Ta] != null) {
4276
4276
  contents[_TS] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(data[_TS][_Ta]), context);
@@ -4382,7 +4382,7 @@ var de_ListBucketAnalyticsConfigurationsCommand = /* @__PURE__ */ __name(async (
4382
4382
  $metadata: deserializeMetadata(output)
4383
4383
  });
4384
4384
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
4385
- if (data.AnalyticsConfiguration === "") {
4385
+ if (String(data.AnalyticsConfiguration).trim() === "") {
4386
4386
  contents[_ACLn] = [];
4387
4387
  } else if (data[_AC] != null) {
4388
4388
  contents[_ACLn] = de_AnalyticsConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_AC]), context);
@@ -4409,7 +4409,7 @@ var de_ListBucketIntelligentTieringConfigurationsCommand = /* @__PURE__ */ __nam
4409
4409
  if (data[_CTon] != null) {
4410
4410
  contents[_CTon] = (0, import_smithy_client.expectString)(data[_CTon]);
4411
4411
  }
4412
- if (data.IntelligentTieringConfiguration === "") {
4412
+ if (String(data.IntelligentTieringConfiguration).trim() === "") {
4413
4413
  contents[_ITCL] = [];
4414
4414
  } else if (data[_ITC] != null) {
4415
4415
  contents[_ITCL] = de_IntelligentTieringConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_ITC]), context);
@@ -4433,7 +4433,7 @@ var de_ListBucketInventoryConfigurationsCommand = /* @__PURE__ */ __name(async (
4433
4433
  if (data[_CTon] != null) {
4434
4434
  contents[_CTon] = (0, import_smithy_client.expectString)(data[_CTon]);
4435
4435
  }
4436
- if (data.InventoryConfiguration === "") {
4436
+ if (String(data.InventoryConfiguration).trim() === "") {
4437
4437
  contents[_ICL] = [];
4438
4438
  } else if (data[_IC] != null) {
4439
4439
  contents[_ICL] = de_InventoryConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_IC]), context);
@@ -4460,7 +4460,7 @@ var de_ListBucketMetricsConfigurationsCommand = /* @__PURE__ */ __name(async (ou
4460
4460
  if (data[_IT] != null) {
4461
4461
  contents[_IT] = (0, import_smithy_client.parseBoolean)(data[_IT]);
4462
4462
  }
4463
- if (data.MetricsConfiguration === "") {
4463
+ if (String(data.MetricsConfiguration).trim() === "") {
4464
4464
  contents[_MCL] = [];
4465
4465
  } else if (data[_MC] != null) {
4466
4466
  contents[_MCL] = de_MetricsConfigurationList((0, import_smithy_client.getArrayIfSingleItem)(data[_MC]), context);
@@ -4478,7 +4478,7 @@ var de_ListBucketsCommand = /* @__PURE__ */ __name(async (output, context) => {
4478
4478
  $metadata: deserializeMetadata(output)
4479
4479
  });
4480
4480
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
4481
- if (data.Buckets === "") {
4481
+ if (String(data.Buckets).trim() === "") {
4482
4482
  contents[_Bu] = [];
4483
4483
  } else if (data[_Bu] != null && data[_Bu][_B] != null) {
4484
4484
  contents[_Bu] = de_Buckets((0, import_smithy_client.getArrayIfSingleItem)(data[_Bu][_B]), context);
@@ -4502,7 +4502,7 @@ var de_ListDirectoryBucketsCommand = /* @__PURE__ */ __name(async (output, conte
4502
4502
  $metadata: deserializeMetadata(output)
4503
4503
  });
4504
4504
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
4505
- if (data.Buckets === "") {
4505
+ if (String(data.Buckets).trim() === "") {
4506
4506
  contents[_Bu] = [];
4507
4507
  } else if (data[_Bu] != null && data[_Bu][_B] != null) {
4508
4508
  contents[_Bu] = de_Buckets((0, import_smithy_client.getArrayIfSingleItem)(data[_Bu][_B]), context);
@@ -4524,7 +4524,7 @@ var de_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (output, conte
4524
4524
  if (data[_B] != null) {
4525
4525
  contents[_B] = (0, import_smithy_client.expectString)(data[_B]);
4526
4526
  }
4527
- if (data.CommonPrefixes === "") {
4527
+ if (String(data.CommonPrefixes).trim() === "") {
4528
4528
  contents[_CP] = [];
4529
4529
  } else if (data[_CP] != null) {
4530
4530
  contents[_CP] = de_CommonPrefixList((0, import_smithy_client.getArrayIfSingleItem)(data[_CP]), context);
@@ -4556,7 +4556,7 @@ var de_ListMultipartUploadsCommand = /* @__PURE__ */ __name(async (output, conte
4556
4556
  if (data[_UIM] != null) {
4557
4557
  contents[_UIM] = (0, import_smithy_client.expectString)(data[_UIM]);
4558
4558
  }
4559
- if (data.Upload === "") {
4559
+ if (String(data.Upload).trim() === "") {
4560
4560
  contents[_Up] = [];
4561
4561
  } else if (data[_U] != null) {
4562
4562
  contents[_Up] = de_MultipartUploadList((0, import_smithy_client.getArrayIfSingleItem)(data[_U]), context);
@@ -4572,12 +4572,12 @@ var de_ListObjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
4572
4572
  [_RC]: [, output.headers[_xarc]]
4573
4573
  });
4574
4574
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
4575
- if (data.CommonPrefixes === "") {
4575
+ if (String(data.CommonPrefixes).trim() === "") {
4576
4576
  contents[_CP] = [];
4577
4577
  } else if (data[_CP] != null) {
4578
4578
  contents[_CP] = de_CommonPrefixList((0, import_smithy_client.getArrayIfSingleItem)(data[_CP]), context);
4579
4579
  }
4580
- if (data.Contents === "") {
4580
+ if (String(data.Contents).trim() === "") {
4581
4581
  contents[_Co] = [];
4582
4582
  } else if (data[_Co] != null) {
4583
4583
  contents[_Co] = de_ObjectList((0, import_smithy_client.getArrayIfSingleItem)(data[_Co]), context);
@@ -4617,12 +4617,12 @@ var de_ListObjectsV2Command = /* @__PURE__ */ __name(async (output, context) =>
4617
4617
  [_RC]: [, output.headers[_xarc]]
4618
4618
  });
4619
4619
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
4620
- if (data.CommonPrefixes === "") {
4620
+ if (String(data.CommonPrefixes).trim() === "") {
4621
4621
  contents[_CP] = [];
4622
4622
  } else if (data[_CP] != null) {
4623
4623
  contents[_CP] = de_CommonPrefixList((0, import_smithy_client.getArrayIfSingleItem)(data[_CP]), context);
4624
4624
  }
4625
- if (data.Contents === "") {
4625
+ if (String(data.Contents).trim() === "") {
4626
4626
  contents[_Co] = [];
4627
4627
  } else if (data[_Co] != null) {
4628
4628
  contents[_Co] = de_ObjectList((0, import_smithy_client.getArrayIfSingleItem)(data[_Co]), context);
@@ -4668,12 +4668,12 @@ var de_ListObjectVersionsCommand = /* @__PURE__ */ __name(async (output, context
4668
4668
  [_RC]: [, output.headers[_xarc]]
4669
4669
  });
4670
4670
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core.parseXmlBody)(output.body, context)), "body");
4671
- if (data.CommonPrefixes === "") {
4671
+ if (String(data.CommonPrefixes).trim() === "") {
4672
4672
  contents[_CP] = [];
4673
4673
  } else if (data[_CP] != null) {
4674
4674
  contents[_CP] = de_CommonPrefixList((0, import_smithy_client.getArrayIfSingleItem)(data[_CP]), context);
4675
4675
  }
4676
- if (data.DeleteMarker === "") {
4676
+ if (String(data.DeleteMarker).trim() === "") {
4677
4677
  contents[_DMe] = [];
4678
4678
  } else if (data[_DM] != null) {
4679
4679
  contents[_DMe] = de_DeleteMarkers((0, import_smithy_client.getArrayIfSingleItem)(data[_DM]), context);
@@ -4708,7 +4708,7 @@ var de_ListObjectVersionsCommand = /* @__PURE__ */ __name(async (output, context
4708
4708
  if (data[_VIM] != null) {
4709
4709
  contents[_VIM] = (0, import_smithy_client.expectString)(data[_VIM]);
4710
4710
  }
4711
- if (data.Version === "") {
4711
+ if (String(data.Version).trim() === "") {
4712
4712
  contents[_Ve] = [];
4713
4713
  } else if (data[_V] != null) {
4714
4714
  contents[_Ve] = de_ObjectVersionList((0, import_smithy_client.getArrayIfSingleItem)(data[_V]), context);
@@ -4759,7 +4759,7 @@ var de_ListPartsCommand = /* @__PURE__ */ __name(async (output, context) => {
4759
4759
  if (data[_PNM] != null) {
4760
4760
  contents[_PNM] = (0, import_smithy_client.expectString)(data[_PNM]);
4761
4761
  }
4762
- if (data.Part === "") {
4762
+ if (String(data.Part).trim() === "") {
4763
4763
  contents[_Part] = [];
4764
4764
  } else if (data[_Par] != null) {
4765
4765
  contents[_Part] = de_Parts((0, import_smithy_client.getArrayIfSingleItem)(data[_Par]), context);
@@ -6793,7 +6793,7 @@ var de_AnalyticsAndOperator = /* @__PURE__ */ __name((output, context) => {
6793
6793
  if (output[_P] != null) {
6794
6794
  contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
6795
6795
  }
6796
- if (output.Tag === "") {
6796
+ if (String(output.Tag).trim() === "") {
6797
6797
  contents[_Tag] = [];
6798
6798
  } else if (output[_Ta] != null) {
6799
6799
  contents[_Tag] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta]), context);
@@ -6805,7 +6805,7 @@ var de_AnalyticsConfiguration = /* @__PURE__ */ __name((output, context) => {
6805
6805
  if (output[_I] != null) {
6806
6806
  contents[_I] = (0, import_smithy_client.expectString)(output[_I]);
6807
6807
  }
6808
- if (output.Filter === "") {
6808
+ if (String(output.Filter).trim() === "") {
6809
6809
  } else if (output[_F] != null) {
6810
6810
  contents[_F] = de_AnalyticsFilter((0, import_smithy_client.expectUnion)(output[_F]), context);
6811
6811
  }
@@ -6992,22 +6992,22 @@ var de_CORSRule = /* @__PURE__ */ __name((output, context) => {
6992
6992
  if (output[_ID_] != null) {
6993
6993
  contents[_ID_] = (0, import_smithy_client.expectString)(output[_ID_]);
6994
6994
  }
6995
- if (output.AllowedHeader === "") {
6995
+ if (String(output.AllowedHeader).trim() === "") {
6996
6996
  contents[_AHl] = [];
6997
6997
  } else if (output[_AH] != null) {
6998
6998
  contents[_AHl] = de_AllowedHeaders((0, import_smithy_client.getArrayIfSingleItem)(output[_AH]), context);
6999
6999
  }
7000
- if (output.AllowedMethod === "") {
7000
+ if (String(output.AllowedMethod).trim() === "") {
7001
7001
  contents[_AMl] = [];
7002
7002
  } else if (output[_AM] != null) {
7003
7003
  contents[_AMl] = de_AllowedMethods((0, import_smithy_client.getArrayIfSingleItem)(output[_AM]), context);
7004
7004
  }
7005
- if (output.AllowedOrigin === "") {
7005
+ if (String(output.AllowedOrigin).trim() === "") {
7006
7006
  contents[_AOl] = [];
7007
7007
  } else if (output[_AO] != null) {
7008
7008
  contents[_AOl] = de_AllowedOrigins((0, import_smithy_client.getArrayIfSingleItem)(output[_AO]), context);
7009
7009
  }
7010
- if (output.ExposeHeader === "") {
7010
+ if (String(output.ExposeHeader).trim() === "") {
7011
7011
  contents[_EH] = [];
7012
7012
  } else if (output[_EHx] != null) {
7013
7013
  contents[_EH] = de_ExposeHeaders((0, import_smithy_client.getArrayIfSingleItem)(output[_EHx]), context);
@@ -7247,7 +7247,7 @@ var de_GetObjectAttributesParts = /* @__PURE__ */ __name((output, context) => {
7247
7247
  if (output[_IT] != null) {
7248
7248
  contents[_IT] = (0, import_smithy_client.parseBoolean)(output[_IT]);
7249
7249
  }
7250
- if (output.Part === "") {
7250
+ if (String(output.Part).trim() === "") {
7251
7251
  contents[_Part] = [];
7252
7252
  } else if (output[_Par] != null) {
7253
7253
  contents[_Part] = de_PartsList((0, import_smithy_client.getArrayIfSingleItem)(output[_Par]), context);
@@ -7310,7 +7310,7 @@ var de_IntelligentTieringAndOperator = /* @__PURE__ */ __name((output, context)
7310
7310
  if (output[_P] != null) {
7311
7311
  contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
7312
7312
  }
7313
- if (output.Tag === "") {
7313
+ if (String(output.Tag).trim() === "") {
7314
7314
  contents[_Tag] = [];
7315
7315
  } else if (output[_Ta] != null) {
7316
7316
  contents[_Tag] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta]), context);
@@ -7328,7 +7328,7 @@ var de_IntelligentTieringConfiguration = /* @__PURE__ */ __name((output, context
7328
7328
  if (output[_S] != null) {
7329
7329
  contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
7330
7330
  }
7331
- if (output.Tiering === "") {
7331
+ if (String(output.Tiering).trim() === "") {
7332
7332
  contents[_Tie] = [];
7333
7333
  } else if (output[_Tier] != null) {
7334
7334
  contents[_Tie] = de_TieringList((0, import_smithy_client.getArrayIfSingleItem)(output[_Tier]), context);
@@ -7370,7 +7370,7 @@ var de_InventoryConfiguration = /* @__PURE__ */ __name((output, context) => {
7370
7370
  if (output[_IOV] != null) {
7371
7371
  contents[_IOV] = (0, import_smithy_client.expectString)(output[_IOV]);
7372
7372
  }
7373
- if (output.OptionalFields === "") {
7373
+ if (String(output.OptionalFields).trim() === "") {
7374
7374
  contents[_OF] = [];
7375
7375
  } else if (output[_OF] != null && output[_OF][_Fi] != null) {
7376
7376
  contents[_OF] = de_InventoryOptionalFields((0, import_smithy_client.getArrayIfSingleItem)(output[_OF][_Fi]), context);
@@ -7486,7 +7486,7 @@ var de_LambdaFunctionConfiguration = /* @__PURE__ */ __name((output, context) =>
7486
7486
  if (output[_CF] != null) {
7487
7487
  contents[_LFA] = (0, import_smithy_client.expectString)(output[_CF]);
7488
7488
  }
7489
- if (output.Event === "") {
7489
+ if (String(output.Event).trim() === "") {
7490
7490
  contents[_Eve] = [];
7491
7491
  } else if (output[_Ev] != null) {
7492
7492
  contents[_Eve] = de_EventList((0, import_smithy_client.getArrayIfSingleItem)(output[_Ev]), context);
@@ -7531,12 +7531,12 @@ var de_LifecycleRule = /* @__PURE__ */ __name((output, context) => {
7531
7531
  if (output[_S] != null) {
7532
7532
  contents[_S] = (0, import_smithy_client.expectString)(output[_S]);
7533
7533
  }
7534
- if (output.Transition === "") {
7534
+ if (String(output.Transition).trim() === "") {
7535
7535
  contents[_Tr] = [];
7536
7536
  } else if (output[_Tra] != null) {
7537
7537
  contents[_Tr] = de_TransitionList((0, import_smithy_client.getArrayIfSingleItem)(output[_Tra]), context);
7538
7538
  }
7539
- if (output.NoncurrentVersionTransition === "") {
7539
+ if (String(output.NoncurrentVersionTransition).trim() === "") {
7540
7540
  contents[_NVT] = [];
7541
7541
  } else if (output[_NVTo] != null) {
7542
7542
  contents[_NVT] = de_NoncurrentVersionTransitionList((0, import_smithy_client.getArrayIfSingleItem)(output[_NVTo]), context);
@@ -7554,7 +7554,7 @@ var de_LifecycleRuleAndOperator = /* @__PURE__ */ __name((output, context) => {
7554
7554
  if (output[_P] != null) {
7555
7555
  contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
7556
7556
  }
7557
- if (output.Tag === "") {
7557
+ if (String(output.Tag).trim() === "") {
7558
7558
  contents[_Tag] = [];
7559
7559
  } else if (output[_Ta] != null) {
7560
7560
  contents[_Tag] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta]), context);
@@ -7596,7 +7596,7 @@ var de_LoggingEnabled = /* @__PURE__ */ __name((output, context) => {
7596
7596
  if (output[_TB] != null) {
7597
7597
  contents[_TB] = (0, import_smithy_client.expectString)(output[_TB]);
7598
7598
  }
7599
- if (output.TargetGrants === "") {
7599
+ if (String(output.TargetGrants).trim() === "") {
7600
7600
  contents[_TG] = [];
7601
7601
  } else if (output[_TG] != null && output[_TG][_G] != null) {
7602
7602
  contents[_TG] = de_TargetGrants((0, import_smithy_client.getArrayIfSingleItem)(output[_TG][_G]), context);
@@ -7644,7 +7644,7 @@ var de_MetricsAndOperator = /* @__PURE__ */ __name((output, context) => {
7644
7644
  if (output[_P] != null) {
7645
7645
  contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
7646
7646
  }
7647
- if (output.Tag === "") {
7647
+ if (String(output.Tag).trim() === "") {
7648
7648
  contents[_Tag] = [];
7649
7649
  } else if (output[_Ta] != null) {
7650
7650
  contents[_Tag] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta]), context);
@@ -7659,7 +7659,7 @@ var de_MetricsConfiguration = /* @__PURE__ */ __name((output, context) => {
7659
7659
  if (output[_I] != null) {
7660
7660
  contents[_I] = (0, import_smithy_client.expectString)(output[_I]);
7661
7661
  }
7662
- if (output.Filter === "") {
7662
+ if (String(output.Filter).trim() === "") {
7663
7663
  } else if (output[_F] != null) {
7664
7664
  contents[_F] = de_MetricsFilter((0, import_smithy_client.expectUnion)(output[_F]), context);
7665
7665
  }
@@ -7772,7 +7772,7 @@ var de__Object = /* @__PURE__ */ __name((output, context) => {
7772
7772
  if (output[_ETa] != null) {
7773
7773
  contents[_ETa] = (0, import_smithy_client.expectString)(output[_ETa]);
7774
7774
  }
7775
- if (output.ChecksumAlgorithm === "") {
7775
+ if (String(output.ChecksumAlgorithm).trim() === "") {
7776
7776
  contents[_CA] = [];
7777
7777
  } else if (output[_CA] != null) {
7778
7778
  contents[_CA] = de_ChecksumAlgorithmList((0, import_smithy_client.getArrayIfSingleItem)(output[_CA]), context);
@@ -7863,7 +7863,7 @@ var de_ObjectVersion = /* @__PURE__ */ __name((output, context) => {
7863
7863
  if (output[_ETa] != null) {
7864
7864
  contents[_ETa] = (0, import_smithy_client.expectString)(output[_ETa]);
7865
7865
  }
7866
- if (output.ChecksumAlgorithm === "") {
7866
+ if (String(output.ChecksumAlgorithm).trim() === "") {
7867
7867
  contents[_CA] = [];
7868
7868
  } else if (output[_CA] != null) {
7869
7869
  contents[_CA] = de_ChecksumAlgorithmList((0, import_smithy_client.getArrayIfSingleItem)(output[_CA]), context);
@@ -7914,7 +7914,7 @@ var de_Owner = /* @__PURE__ */ __name((output, context) => {
7914
7914
  }, "de_Owner");
7915
7915
  var de_OwnershipControls = /* @__PURE__ */ __name((output, context) => {
7916
7916
  const contents = {};
7917
- if (output.Rule === "") {
7917
+ if (String(output.Rule).trim() === "") {
7918
7918
  contents[_Rul] = [];
7919
7919
  } else if (output[_Ru] != null) {
7920
7920
  contents[_Rul] = de_OwnershipControlsRules((0, import_smithy_client.getArrayIfSingleItem)(output[_Ru]), context);
@@ -8025,7 +8025,7 @@ var de_QueueConfiguration = /* @__PURE__ */ __name((output, context) => {
8025
8025
  if (output[_Qu] != null) {
8026
8026
  contents[_QA] = (0, import_smithy_client.expectString)(output[_Qu]);
8027
8027
  }
8028
- if (output.Event === "") {
8028
+ if (String(output.Event).trim() === "") {
8029
8029
  contents[_Eve] = [];
8030
8030
  } else if (output[_Ev] != null) {
8031
8031
  contents[_Eve] = de_EventList((0, import_smithy_client.getArrayIfSingleItem)(output[_Ev]), context);
@@ -8091,7 +8091,7 @@ var de_ReplicationConfiguration = /* @__PURE__ */ __name((output, context) => {
8091
8091
  if (output[_Ro] != null) {
8092
8092
  contents[_Ro] = (0, import_smithy_client.expectString)(output[_Ro]);
8093
8093
  }
8094
- if (output.Rule === "") {
8094
+ if (String(output.Rule).trim() === "") {
8095
8095
  contents[_Rul] = [];
8096
8096
  } else if (output[_Ru] != null) {
8097
8097
  contents[_Rul] = de_ReplicationRules((0, import_smithy_client.getArrayIfSingleItem)(output[_Ru]), context);
@@ -8134,7 +8134,7 @@ var de_ReplicationRuleAndOperator = /* @__PURE__ */ __name((output, context) =>
8134
8134
  if (output[_P] != null) {
8135
8135
  contents[_P] = (0, import_smithy_client.expectString)(output[_P]);
8136
8136
  }
8137
- if (output.Tag === "") {
8137
+ if (String(output.Tag).trim() === "") {
8138
8138
  contents[_Tag] = [];
8139
8139
  } else if (output[_Ta] != null) {
8140
8140
  contents[_Tag] = de_TagSet((0, import_smithy_client.getArrayIfSingleItem)(output[_Ta]), context);
@@ -8203,7 +8203,7 @@ var de_RoutingRules = /* @__PURE__ */ __name((output, context) => {
8203
8203
  }, "de_RoutingRules");
8204
8204
  var de_S3KeyFilter = /* @__PURE__ */ __name((output, context) => {
8205
8205
  const contents = {};
8206
- if (output.FilterRule === "") {
8206
+ if (String(output.FilterRule).trim() === "") {
8207
8207
  contents[_FRi] = [];
8208
8208
  } else if (output[_FR] != null) {
8209
8209
  contents[_FRi] = de_FilterRuleList((0, import_smithy_client.getArrayIfSingleItem)(output[_FR]), context);
@@ -8238,7 +8238,7 @@ var de_ServerSideEncryptionByDefault = /* @__PURE__ */ __name((output, context)
8238
8238
  }, "de_ServerSideEncryptionByDefault");
8239
8239
  var de_ServerSideEncryptionConfiguration = /* @__PURE__ */ __name((output, context) => {
8240
8240
  const contents = {};
8241
- if (output.Rule === "") {
8241
+ if (String(output.Rule).trim() === "") {
8242
8242
  contents[_Rul] = [];
8243
8243
  } else if (output[_Ru] != null) {
8244
8244
  contents[_Rul] = de_ServerSideEncryptionRules((0, import_smithy_client.getArrayIfSingleItem)(output[_Ru]), context);
@@ -8401,7 +8401,7 @@ var de_TopicConfiguration = /* @__PURE__ */ __name((output, context) => {
8401
8401
  if (output[_Top] != null) {
8402
8402
  contents[_TA] = (0, import_smithy_client.expectString)(output[_Top]);
8403
8403
  }
8404
- if (output.Event === "") {
8404
+ if (String(output.Event).trim() === "") {
8405
8405
  contents[_Eve] = [];
8406
8406
  } else if (output[_Ev] != null) {
8407
8407
  contents[_Eve] = de_EventList((0, import_smithy_client.getArrayIfSingleItem)(output[_Ev]), context);
@@ -2548,13 +2548,13 @@ export const de_DeleteObjectsCommand = async (output, context) => {
2548
2548
  [_RC]: [, output.headers[_xarc]],
2549
2549
  });
2550
2550
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2551
- if (data.Deleted === "") {
2551
+ if (String(data.Deleted).trim() === "") {
2552
2552
  contents[_De] = [];
2553
2553
  }
2554
2554
  else if (data[_De] != null) {
2555
2555
  contents[_De] = de_DeletedObjects(__getArrayIfSingleItem(data[_De]), context);
2556
2556
  }
2557
- if (data.Error === "") {
2557
+ if (String(data.Error).trim() === "") {
2558
2558
  contents[_Err] = [];
2559
2559
  }
2560
2560
  else if (data[_Er] != null) {
@@ -2605,7 +2605,7 @@ export const de_GetBucketAclCommand = async (output, context) => {
2605
2605
  $metadata: deserializeMetadata(output),
2606
2606
  });
2607
2607
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2608
- if (data.AccessControlList === "") {
2608
+ if (String(data.AccessControlList).trim() === "") {
2609
2609
  contents[_Gr] = [];
2610
2610
  }
2611
2611
  else if (data[_ACLc] != null && data[_ACLc][_G] != null) {
@@ -2635,7 +2635,7 @@ export const de_GetBucketCorsCommand = async (output, context) => {
2635
2635
  $metadata: deserializeMetadata(output),
2636
2636
  });
2637
2637
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2638
- if (data.CORSRule === "") {
2638
+ if (String(data.CORSRule).trim() === "") {
2639
2639
  contents[_CORSRu] = [];
2640
2640
  }
2641
2641
  else if (data[_CORSR] != null) {
@@ -2685,7 +2685,7 @@ export const de_GetBucketLifecycleConfigurationCommand = async (output, context)
2685
2685
  [_TDMOS]: [, output.headers[_xatdmos]],
2686
2686
  });
2687
2687
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2688
- if (data.Rule === "") {
2688
+ if (String(data.Rule).trim() === "") {
2689
2689
  contents[_Rul] = [];
2690
2690
  }
2691
2691
  else if (data[_Ru] != null) {
@@ -2763,19 +2763,19 @@ export const de_GetBucketNotificationConfigurationCommand = async (output, conte
2763
2763
  if (data[_EBC] != null) {
2764
2764
  contents[_EBC] = de_EventBridgeConfiguration(data[_EBC], context);
2765
2765
  }
2766
- if (data.CloudFunctionConfiguration === "") {
2766
+ if (String(data.CloudFunctionConfiguration).trim() === "") {
2767
2767
  contents[_LFC] = [];
2768
2768
  }
2769
2769
  else if (data[_CFC] != null) {
2770
2770
  contents[_LFC] = de_LambdaFunctionConfigurationList(__getArrayIfSingleItem(data[_CFC]), context);
2771
2771
  }
2772
- if (data.QueueConfiguration === "") {
2772
+ if (String(data.QueueConfiguration).trim() === "") {
2773
2773
  contents[_QCu] = [];
2774
2774
  }
2775
2775
  else if (data[_QC] != null) {
2776
2776
  contents[_QCu] = de_QueueConfigurationList(__getArrayIfSingleItem(data[_QC]), context);
2777
2777
  }
2778
- if (data.TopicConfiguration === "") {
2778
+ if (String(data.TopicConfiguration).trim() === "") {
2779
2779
  contents[_TCop] = [];
2780
2780
  }
2781
2781
  else if (data[_TCo] != null) {
@@ -2848,7 +2848,7 @@ export const de_GetBucketTaggingCommand = async (output, context) => {
2848
2848
  $metadata: deserializeMetadata(output),
2849
2849
  });
2850
2850
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2851
- if (data.TagSet === "") {
2851
+ if (String(data.TagSet).trim() === "") {
2852
2852
  contents[_TS] = [];
2853
2853
  }
2854
2854
  else if (data[_TS] != null && data[_TS][_Ta] != null) {
@@ -2889,7 +2889,7 @@ export const de_GetBucketWebsiteCommand = async (output, context) => {
2889
2889
  if (data[_RART] != null) {
2890
2890
  contents[_RART] = de_RedirectAllRequestsTo(data[_RART], context);
2891
2891
  }
2892
- if (data.RoutingRules === "") {
2892
+ if (String(data.RoutingRules).trim() === "") {
2893
2893
  contents[_RRo] = [];
2894
2894
  }
2895
2895
  else if (data[_RRo] != null && data[_RRo][_RRou] != null) {
@@ -2967,7 +2967,7 @@ export const de_GetObjectAclCommand = async (output, context) => {
2967
2967
  [_RC]: [, output.headers[_xarc]],
2968
2968
  });
2969
2969
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2970
- if (data.AccessControlList === "") {
2970
+ if (String(data.AccessControlList).trim() === "") {
2971
2971
  contents[_Gr] = [];
2972
2972
  }
2973
2973
  else if (data[_ACLc] != null && data[_ACLc][_G] != null) {
@@ -3049,7 +3049,7 @@ export const de_GetObjectTaggingCommand = async (output, context) => {
3049
3049
  [_VI]: [, output.headers[_xavi]],
3050
3050
  });
3051
3051
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3052
- if (data.TagSet === "") {
3052
+ if (String(data.TagSet).trim() === "") {
3053
3053
  contents[_TS] = [];
3054
3054
  }
3055
3055
  else if (data[_TS] != null && data[_TS][_Ta] != null) {
@@ -3164,7 +3164,7 @@ export const de_ListBucketAnalyticsConfigurationsCommand = async (output, contex
3164
3164
  $metadata: deserializeMetadata(output),
3165
3165
  });
3166
3166
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3167
- if (data.AnalyticsConfiguration === "") {
3167
+ if (String(data.AnalyticsConfiguration).trim() === "") {
3168
3168
  contents[_ACLn] = [];
3169
3169
  }
3170
3170
  else if (data[_AC] != null) {
@@ -3192,7 +3192,7 @@ export const de_ListBucketIntelligentTieringConfigurationsCommand = async (outpu
3192
3192
  if (data[_CTon] != null) {
3193
3193
  contents[_CTon] = __expectString(data[_CTon]);
3194
3194
  }
3195
- if (data.IntelligentTieringConfiguration === "") {
3195
+ if (String(data.IntelligentTieringConfiguration).trim() === "") {
3196
3196
  contents[_ITCL] = [];
3197
3197
  }
3198
3198
  else if (data[_ITC] != null) {
@@ -3217,7 +3217,7 @@ export const de_ListBucketInventoryConfigurationsCommand = async (output, contex
3217
3217
  if (data[_CTon] != null) {
3218
3218
  contents[_CTon] = __expectString(data[_CTon]);
3219
3219
  }
3220
- if (data.InventoryConfiguration === "") {
3220
+ if (String(data.InventoryConfiguration).trim() === "") {
3221
3221
  contents[_ICL] = [];
3222
3222
  }
3223
3223
  else if (data[_IC] != null) {
@@ -3245,7 +3245,7 @@ export const de_ListBucketMetricsConfigurationsCommand = async (output, context)
3245
3245
  if (data[_IT] != null) {
3246
3246
  contents[_IT] = __parseBoolean(data[_IT]);
3247
3247
  }
3248
- if (data.MetricsConfiguration === "") {
3248
+ if (String(data.MetricsConfiguration).trim() === "") {
3249
3249
  contents[_MCL] = [];
3250
3250
  }
3251
3251
  else if (data[_MC] != null) {
@@ -3264,7 +3264,7 @@ export const de_ListBucketsCommand = async (output, context) => {
3264
3264
  $metadata: deserializeMetadata(output),
3265
3265
  });
3266
3266
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3267
- if (data.Buckets === "") {
3267
+ if (String(data.Buckets).trim() === "") {
3268
3268
  contents[_Bu] = [];
3269
3269
  }
3270
3270
  else if (data[_Bu] != null && data[_Bu][_B] != null) {
@@ -3289,7 +3289,7 @@ export const de_ListDirectoryBucketsCommand = async (output, context) => {
3289
3289
  $metadata: deserializeMetadata(output),
3290
3290
  });
3291
3291
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3292
- if (data.Buckets === "") {
3292
+ if (String(data.Buckets).trim() === "") {
3293
3293
  contents[_Bu] = [];
3294
3294
  }
3295
3295
  else if (data[_Bu] != null && data[_Bu][_B] != null) {
@@ -3312,7 +3312,7 @@ export const de_ListMultipartUploadsCommand = async (output, context) => {
3312
3312
  if (data[_B] != null) {
3313
3313
  contents[_B] = __expectString(data[_B]);
3314
3314
  }
3315
- if (data.CommonPrefixes === "") {
3315
+ if (String(data.CommonPrefixes).trim() === "") {
3316
3316
  contents[_CP] = [];
3317
3317
  }
3318
3318
  else if (data[_CP] != null) {
@@ -3345,7 +3345,7 @@ export const de_ListMultipartUploadsCommand = async (output, context) => {
3345
3345
  if (data[_UIM] != null) {
3346
3346
  contents[_UIM] = __expectString(data[_UIM]);
3347
3347
  }
3348
- if (data.Upload === "") {
3348
+ if (String(data.Upload).trim() === "") {
3349
3349
  contents[_Up] = [];
3350
3350
  }
3351
3351
  else if (data[_U] != null) {
@@ -3362,13 +3362,13 @@ export const de_ListObjectsCommand = async (output, context) => {
3362
3362
  [_RC]: [, output.headers[_xarc]],
3363
3363
  });
3364
3364
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3365
- if (data.CommonPrefixes === "") {
3365
+ if (String(data.CommonPrefixes).trim() === "") {
3366
3366
  contents[_CP] = [];
3367
3367
  }
3368
3368
  else if (data[_CP] != null) {
3369
3369
  contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context);
3370
3370
  }
3371
- if (data.Contents === "") {
3371
+ if (String(data.Contents).trim() === "") {
3372
3372
  contents[_Co] = [];
3373
3373
  }
3374
3374
  else if (data[_Co] != null) {
@@ -3409,13 +3409,13 @@ export const de_ListObjectsV2Command = async (output, context) => {
3409
3409
  [_RC]: [, output.headers[_xarc]],
3410
3410
  });
3411
3411
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3412
- if (data.CommonPrefixes === "") {
3412
+ if (String(data.CommonPrefixes).trim() === "") {
3413
3413
  contents[_CP] = [];
3414
3414
  }
3415
3415
  else if (data[_CP] != null) {
3416
3416
  contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context);
3417
3417
  }
3418
- if (data.Contents === "") {
3418
+ if (String(data.Contents).trim() === "") {
3419
3419
  contents[_Co] = [];
3420
3420
  }
3421
3421
  else if (data[_Co] != null) {
@@ -3462,13 +3462,13 @@ export const de_ListObjectVersionsCommand = async (output, context) => {
3462
3462
  [_RC]: [, output.headers[_xarc]],
3463
3463
  });
3464
3464
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
3465
- if (data.CommonPrefixes === "") {
3465
+ if (String(data.CommonPrefixes).trim() === "") {
3466
3466
  contents[_CP] = [];
3467
3467
  }
3468
3468
  else if (data[_CP] != null) {
3469
3469
  contents[_CP] = de_CommonPrefixList(__getArrayIfSingleItem(data[_CP]), context);
3470
3470
  }
3471
- if (data.DeleteMarker === "") {
3471
+ if (String(data.DeleteMarker).trim() === "") {
3472
3472
  contents[_DMe] = [];
3473
3473
  }
3474
3474
  else if (data[_DM] != null) {
@@ -3504,7 +3504,7 @@ export const de_ListObjectVersionsCommand = async (output, context) => {
3504
3504
  if (data[_VIM] != null) {
3505
3505
  contents[_VIM] = __expectString(data[_VIM]);
3506
3506
  }
3507
- if (data.Version === "") {
3507
+ if (String(data.Version).trim() === "") {
3508
3508
  contents[_Ve] = [];
3509
3509
  }
3510
3510
  else if (data[_V] != null) {
@@ -3556,7 +3556,7 @@ export const de_ListPartsCommand = async (output, context) => {
3556
3556
  if (data[_PNM] != null) {
3557
3557
  contents[_PNM] = __expectString(data[_PNM]);
3558
3558
  }
3559
- if (data.Part === "") {
3559
+ if (String(data.Part).trim() === "") {
3560
3560
  contents[_Part] = [];
3561
3561
  }
3562
3562
  else if (data[_Par] != null) {
@@ -5637,7 +5637,7 @@ const de_AnalyticsAndOperator = (output, context) => {
5637
5637
  if (output[_P] != null) {
5638
5638
  contents[_P] = __expectString(output[_P]);
5639
5639
  }
5640
- if (output.Tag === "") {
5640
+ if (String(output.Tag).trim() === "") {
5641
5641
  contents[_Tag] = [];
5642
5642
  }
5643
5643
  else if (output[_Ta] != null) {
@@ -5650,7 +5650,7 @@ const de_AnalyticsConfiguration = (output, context) => {
5650
5650
  if (output[_I] != null) {
5651
5651
  contents[_I] = __expectString(output[_I]);
5652
5652
  }
5653
- if (output.Filter === "") {
5653
+ if (String(output.Filter).trim() === "") {
5654
5654
  }
5655
5655
  else if (output[_F] != null) {
5656
5656
  contents[_F] = de_AnalyticsFilter(__expectUnion(output[_F]), context);
@@ -5846,25 +5846,25 @@ const de_CORSRule = (output, context) => {
5846
5846
  if (output[_ID_] != null) {
5847
5847
  contents[_ID_] = __expectString(output[_ID_]);
5848
5848
  }
5849
- if (output.AllowedHeader === "") {
5849
+ if (String(output.AllowedHeader).trim() === "") {
5850
5850
  contents[_AHl] = [];
5851
5851
  }
5852
5852
  else if (output[_AH] != null) {
5853
5853
  contents[_AHl] = de_AllowedHeaders(__getArrayIfSingleItem(output[_AH]), context);
5854
5854
  }
5855
- if (output.AllowedMethod === "") {
5855
+ if (String(output.AllowedMethod).trim() === "") {
5856
5856
  contents[_AMl] = [];
5857
5857
  }
5858
5858
  else if (output[_AM] != null) {
5859
5859
  contents[_AMl] = de_AllowedMethods(__getArrayIfSingleItem(output[_AM]), context);
5860
5860
  }
5861
- if (output.AllowedOrigin === "") {
5861
+ if (String(output.AllowedOrigin).trim() === "") {
5862
5862
  contents[_AOl] = [];
5863
5863
  }
5864
5864
  else if (output[_AO] != null) {
5865
5865
  contents[_AOl] = de_AllowedOrigins(__getArrayIfSingleItem(output[_AO]), context);
5866
5866
  }
5867
- if (output.ExposeHeader === "") {
5867
+ if (String(output.ExposeHeader).trim() === "") {
5868
5868
  contents[_EH] = [];
5869
5869
  }
5870
5870
  else if (output[_EHx] != null) {
@@ -6119,7 +6119,7 @@ const de_GetObjectAttributesParts = (output, context) => {
6119
6119
  if (output[_IT] != null) {
6120
6120
  contents[_IT] = __parseBoolean(output[_IT]);
6121
6121
  }
6122
- if (output.Part === "") {
6122
+ if (String(output.Part).trim() === "") {
6123
6123
  contents[_Part] = [];
6124
6124
  }
6125
6125
  else if (output[_Par] != null) {
@@ -6185,7 +6185,7 @@ const de_IntelligentTieringAndOperator = (output, context) => {
6185
6185
  if (output[_P] != null) {
6186
6186
  contents[_P] = __expectString(output[_P]);
6187
6187
  }
6188
- if (output.Tag === "") {
6188
+ if (String(output.Tag).trim() === "") {
6189
6189
  contents[_Tag] = [];
6190
6190
  }
6191
6191
  else if (output[_Ta] != null) {
@@ -6204,7 +6204,7 @@ const de_IntelligentTieringConfiguration = (output, context) => {
6204
6204
  if (output[_S] != null) {
6205
6205
  contents[_S] = __expectString(output[_S]);
6206
6206
  }
6207
- if (output.Tiering === "") {
6207
+ if (String(output.Tiering).trim() === "") {
6208
6208
  contents[_Tie] = [];
6209
6209
  }
6210
6210
  else if (output[_Tier] != null) {
@@ -6249,7 +6249,7 @@ const de_InventoryConfiguration = (output, context) => {
6249
6249
  if (output[_IOV] != null) {
6250
6250
  contents[_IOV] = __expectString(output[_IOV]);
6251
6251
  }
6252
- if (output.OptionalFields === "") {
6252
+ if (String(output.OptionalFields).trim() === "") {
6253
6253
  contents[_OF] = [];
6254
6254
  }
6255
6255
  else if (output[_OF] != null && output[_OF][_Fi] != null) {
@@ -6370,7 +6370,7 @@ const de_LambdaFunctionConfiguration = (output, context) => {
6370
6370
  if (output[_CF] != null) {
6371
6371
  contents[_LFA] = __expectString(output[_CF]);
6372
6372
  }
6373
- if (output.Event === "") {
6373
+ if (String(output.Event).trim() === "") {
6374
6374
  contents[_Eve] = [];
6375
6375
  }
6376
6376
  else if (output[_Ev] != null) {
@@ -6418,13 +6418,13 @@ const de_LifecycleRule = (output, context) => {
6418
6418
  if (output[_S] != null) {
6419
6419
  contents[_S] = __expectString(output[_S]);
6420
6420
  }
6421
- if (output.Transition === "") {
6421
+ if (String(output.Transition).trim() === "") {
6422
6422
  contents[_Tr] = [];
6423
6423
  }
6424
6424
  else if (output[_Tra] != null) {
6425
6425
  contents[_Tr] = de_TransitionList(__getArrayIfSingleItem(output[_Tra]), context);
6426
6426
  }
6427
- if (output.NoncurrentVersionTransition === "") {
6427
+ if (String(output.NoncurrentVersionTransition).trim() === "") {
6428
6428
  contents[_NVT] = [];
6429
6429
  }
6430
6430
  else if (output[_NVTo] != null) {
@@ -6443,7 +6443,7 @@ const de_LifecycleRuleAndOperator = (output, context) => {
6443
6443
  if (output[_P] != null) {
6444
6444
  contents[_P] = __expectString(output[_P]);
6445
6445
  }
6446
- if (output.Tag === "") {
6446
+ if (String(output.Tag).trim() === "") {
6447
6447
  contents[_Tag] = [];
6448
6448
  }
6449
6449
  else if (output[_Ta] != null) {
@@ -6488,7 +6488,7 @@ const de_LoggingEnabled = (output, context) => {
6488
6488
  if (output[_TB] != null) {
6489
6489
  contents[_TB] = __expectString(output[_TB]);
6490
6490
  }
6491
- if (output.TargetGrants === "") {
6491
+ if (String(output.TargetGrants).trim() === "") {
6492
6492
  contents[_TG] = [];
6493
6493
  }
6494
6494
  else if (output[_TG] != null && output[_TG][_G] != null) {
@@ -6537,7 +6537,7 @@ const de_MetricsAndOperator = (output, context) => {
6537
6537
  if (output[_P] != null) {
6538
6538
  contents[_P] = __expectString(output[_P]);
6539
6539
  }
6540
- if (output.Tag === "") {
6540
+ if (String(output.Tag).trim() === "") {
6541
6541
  contents[_Tag] = [];
6542
6542
  }
6543
6543
  else if (output[_Ta] != null) {
@@ -6553,7 +6553,7 @@ const de_MetricsConfiguration = (output, context) => {
6553
6553
  if (output[_I] != null) {
6554
6554
  contents[_I] = __expectString(output[_I]);
6555
6555
  }
6556
- if (output.Filter === "") {
6556
+ if (String(output.Filter).trim() === "") {
6557
6557
  }
6558
6558
  else if (output[_F] != null) {
6559
6559
  contents[_F] = de_MetricsFilter(__expectUnion(output[_F]), context);
@@ -6673,7 +6673,7 @@ const de__Object = (output, context) => {
6673
6673
  if (output[_ETa] != null) {
6674
6674
  contents[_ETa] = __expectString(output[_ETa]);
6675
6675
  }
6676
- if (output.ChecksumAlgorithm === "") {
6676
+ if (String(output.ChecksumAlgorithm).trim() === "") {
6677
6677
  contents[_CA] = [];
6678
6678
  }
6679
6679
  else if (output[_CA] != null) {
@@ -6767,7 +6767,7 @@ const de_ObjectVersion = (output, context) => {
6767
6767
  if (output[_ETa] != null) {
6768
6768
  contents[_ETa] = __expectString(output[_ETa]);
6769
6769
  }
6770
- if (output.ChecksumAlgorithm === "") {
6770
+ if (String(output.ChecksumAlgorithm).trim() === "") {
6771
6771
  contents[_CA] = [];
6772
6772
  }
6773
6773
  else if (output[_CA] != null) {
@@ -6821,7 +6821,7 @@ const de_Owner = (output, context) => {
6821
6821
  };
6822
6822
  const de_OwnershipControls = (output, context) => {
6823
6823
  const contents = {};
6824
- if (output.Rule === "") {
6824
+ if (String(output.Rule).trim() === "") {
6825
6825
  contents[_Rul] = [];
6826
6826
  }
6827
6827
  else if (output[_Ru] != null) {
@@ -6939,7 +6939,7 @@ const de_QueueConfiguration = (output, context) => {
6939
6939
  if (output[_Qu] != null) {
6940
6940
  contents[_QA] = __expectString(output[_Qu]);
6941
6941
  }
6942
- if (output.Event === "") {
6942
+ if (String(output.Event).trim() === "") {
6943
6943
  contents[_Eve] = [];
6944
6944
  }
6945
6945
  else if (output[_Ev] != null) {
@@ -7008,7 +7008,7 @@ const de_ReplicationConfiguration = (output, context) => {
7008
7008
  if (output[_Ro] != null) {
7009
7009
  contents[_Ro] = __expectString(output[_Ro]);
7010
7010
  }
7011
- if (output.Rule === "") {
7011
+ if (String(output.Rule).trim() === "") {
7012
7012
  contents[_Rul] = [];
7013
7013
  }
7014
7014
  else if (output[_Ru] != null) {
@@ -7052,7 +7052,7 @@ const de_ReplicationRuleAndOperator = (output, context) => {
7052
7052
  if (output[_P] != null) {
7053
7053
  contents[_P] = __expectString(output[_P]);
7054
7054
  }
7055
- if (output.Tag === "") {
7055
+ if (String(output.Tag).trim() === "") {
7056
7056
  contents[_Tag] = [];
7057
7057
  }
7058
7058
  else if (output[_Ta] != null) {
@@ -7126,7 +7126,7 @@ const de_RoutingRules = (output, context) => {
7126
7126
  };
7127
7127
  const de_S3KeyFilter = (output, context) => {
7128
7128
  const contents = {};
7129
- if (output.FilterRule === "") {
7129
+ if (String(output.FilterRule).trim() === "") {
7130
7130
  contents[_FRi] = [];
7131
7131
  }
7132
7132
  else if (output[_FR] != null) {
@@ -7162,7 +7162,7 @@ const de_ServerSideEncryptionByDefault = (output, context) => {
7162
7162
  };
7163
7163
  const de_ServerSideEncryptionConfiguration = (output, context) => {
7164
7164
  const contents = {};
7165
- if (output.Rule === "") {
7165
+ if (String(output.Rule).trim() === "") {
7166
7166
  contents[_Rul] = [];
7167
7167
  }
7168
7168
  else if (output[_Ru] != null) {
@@ -7334,7 +7334,7 @@ const de_TopicConfiguration = (output, context) => {
7334
7334
  if (output[_Top] != null) {
7335
7335
  contents[_TA] = __expectString(output[_Top]);
7336
7336
  }
7337
- if (output.Event === "") {
7337
+ if (String(output.Event).trim() === "") {
7338
7338
  contents[_Eve] = [];
7339
7339
  }
7340
7340
  else if (output[_Ev] != null) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-s3",
3
3
  "description": "AWS SDK for JavaScript S3 Client for Node.js, Browser and React Native",
4
- "version": "3.893.0",
4
+ "version": "3.895.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-s3",
@@ -29,25 +29,25 @@
29
29
  "@aws-crypto/sha1-browser": "5.2.0",
30
30
  "@aws-crypto/sha256-browser": "5.2.0",
31
31
  "@aws-crypto/sha256-js": "5.2.0",
32
- "@aws-sdk/core": "3.893.0",
33
- "@aws-sdk/credential-provider-node": "3.893.0",
32
+ "@aws-sdk/core": "3.894.0",
33
+ "@aws-sdk/credential-provider-node": "3.895.0",
34
34
  "@aws-sdk/middleware-bucket-endpoint": "3.893.0",
35
35
  "@aws-sdk/middleware-expect-continue": "3.893.0",
36
- "@aws-sdk/middleware-flexible-checksums": "3.893.0",
36
+ "@aws-sdk/middleware-flexible-checksums": "3.894.0",
37
37
  "@aws-sdk/middleware-host-header": "3.893.0",
38
38
  "@aws-sdk/middleware-location-constraint": "3.893.0",
39
39
  "@aws-sdk/middleware-logger": "3.893.0",
40
40
  "@aws-sdk/middleware-recursion-detection": "3.893.0",
41
- "@aws-sdk/middleware-sdk-s3": "3.893.0",
41
+ "@aws-sdk/middleware-sdk-s3": "3.894.0",
42
42
  "@aws-sdk/middleware-ssec": "3.893.0",
43
- "@aws-sdk/middleware-user-agent": "3.893.0",
43
+ "@aws-sdk/middleware-user-agent": "3.895.0",
44
44
  "@aws-sdk/region-config-resolver": "3.893.0",
45
- "@aws-sdk/signature-v4-multi-region": "3.893.0",
45
+ "@aws-sdk/signature-v4-multi-region": "3.894.0",
46
46
  "@aws-sdk/types": "3.893.0",
47
- "@aws-sdk/util-endpoints": "3.893.0",
47
+ "@aws-sdk/util-endpoints": "3.895.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.893.0",
49
- "@aws-sdk/util-user-agent-node": "3.893.0",
50
- "@aws-sdk/xml-builder": "3.893.0",
49
+ "@aws-sdk/util-user-agent-node": "3.895.0",
50
+ "@aws-sdk/xml-builder": "3.894.0",
51
51
  "@smithy/config-resolver": "^4.2.2",
52
52
  "@smithy/core": "^3.11.1",
53
53
  "@smithy/eventstream-serde-browser": "^4.1.1",
@@ -86,7 +86,7 @@
86
86
  "uuid": "^9.0.1"
87
87
  },
88
88
  "devDependencies": {
89
- "@aws-sdk/signature-v4-crt": "3.893.0",
89
+ "@aws-sdk/signature-v4-crt": "3.895.0",
90
90
  "@tsconfig/node18": "18.2.4",
91
91
  "@types/node": "^18.19.69",
92
92
  "concurrently": "7.0.0",