@aws-sdk/client-s3-control 3.121.0 → 3.130.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.
@@ -4696,7 +4696,7 @@ const deserializeAws_restXmlTooManyTagsExceptionResponse = async (parsedOutput,
4696
4696
  };
4697
4697
  const serializeAws_restXmlAbortIncompleteMultipartUpload = (input, context) => {
4698
4698
  const bodyNode = new xml_builder_1.XmlNode("AbortIncompleteMultipartUpload");
4699
- if (input.DaysAfterInitiation !== undefined && input.DaysAfterInitiation !== null) {
4699
+ if (input.DaysAfterInitiation != null) {
4700
4700
  const node = new xml_builder_1.XmlNode("DaysAfterInitiation")
4701
4701
  .addChildNode(new xml_builder_1.XmlText(String(input.DaysAfterInitiation)))
4702
4702
  .withName("DaysAfterInitiation");
@@ -4706,11 +4706,11 @@ const serializeAws_restXmlAbortIncompleteMultipartUpload = (input, context) => {
4706
4706
  };
4707
4707
  const serializeAws_restXmlAccountLevel = (input, context) => {
4708
4708
  const bodyNode = new xml_builder_1.XmlNode("AccountLevel");
4709
- if (input.ActivityMetrics !== undefined && input.ActivityMetrics !== null) {
4709
+ if (input.ActivityMetrics != null) {
4710
4710
  const node = serializeAws_restXmlActivityMetrics(input.ActivityMetrics, context).withName("ActivityMetrics");
4711
4711
  bodyNode.addChildNode(node);
4712
4712
  }
4713
- if (input.BucketLevel !== undefined && input.BucketLevel !== null) {
4713
+ if (input.BucketLevel != null) {
4714
4714
  const node = serializeAws_restXmlBucketLevel(input.BucketLevel, context).withName("BucketLevel");
4715
4715
  bodyNode.addChildNode(node);
4716
4716
  }
@@ -4718,7 +4718,7 @@ const serializeAws_restXmlAccountLevel = (input, context) => {
4718
4718
  };
4719
4719
  const serializeAws_restXmlActivityMetrics = (input, context) => {
4720
4720
  const bodyNode = new xml_builder_1.XmlNode("ActivityMetrics");
4721
- if (input.IsEnabled !== undefined && input.IsEnabled !== null) {
4721
+ if (input.IsEnabled != null) {
4722
4722
  const node = new xml_builder_1.XmlNode("IsEnabled").addChildNode(new xml_builder_1.XmlText(String(input.IsEnabled))).withName("IsEnabled");
4723
4723
  bodyNode.addChildNode(node);
4724
4724
  }
@@ -4726,13 +4726,13 @@ const serializeAws_restXmlActivityMetrics = (input, context) => {
4726
4726
  };
4727
4727
  const serializeAws_restXmlAwsLambdaTransformation = (input, context) => {
4728
4728
  const bodyNode = new xml_builder_1.XmlNode("AwsLambdaTransformation");
4729
- if (input.FunctionArn !== undefined && input.FunctionArn !== null) {
4729
+ if (input.FunctionArn != null) {
4730
4730
  const node = new xml_builder_1.XmlNode("FunctionArnString")
4731
4731
  .addChildNode(new xml_builder_1.XmlText(input.FunctionArn))
4732
4732
  .withName("FunctionArn");
4733
4733
  bodyNode.addChildNode(node);
4734
4734
  }
4735
- if (input.FunctionPayload !== undefined && input.FunctionPayload !== null) {
4735
+ if (input.FunctionPayload != null) {
4736
4736
  const node = new xml_builder_1.XmlNode("AwsLambdaTransformationPayload")
4737
4737
  .addChildNode(new xml_builder_1.XmlText(input.FunctionPayload))
4738
4738
  .withName("FunctionPayload");
@@ -4742,11 +4742,11 @@ const serializeAws_restXmlAwsLambdaTransformation = (input, context) => {
4742
4742
  };
4743
4743
  const serializeAws_restXmlBucketLevel = (input, context) => {
4744
4744
  const bodyNode = new xml_builder_1.XmlNode("BucketLevel");
4745
- if (input.ActivityMetrics !== undefined && input.ActivityMetrics !== null) {
4745
+ if (input.ActivityMetrics != null) {
4746
4746
  const node = serializeAws_restXmlActivityMetrics(input.ActivityMetrics, context).withName("ActivityMetrics");
4747
4747
  bodyNode.addChildNode(node);
4748
4748
  }
4749
- if (input.PrefixLevel !== undefined && input.PrefixLevel !== null) {
4749
+ if (input.PrefixLevel != null) {
4750
4750
  const node = serializeAws_restXmlPrefixLevel(input.PrefixLevel, context).withName("PrefixLevel");
4751
4751
  bodyNode.addChildNode(node);
4752
4752
  }
@@ -4765,7 +4765,7 @@ const serializeAws_restXmlBuckets = (input, context) => {
4765
4765
  };
4766
4766
  const serializeAws_restXmlCloudWatchMetrics = (input, context) => {
4767
4767
  const bodyNode = new xml_builder_1.XmlNode("CloudWatchMetrics");
4768
- if (input.IsEnabled !== undefined && input.IsEnabled !== null) {
4768
+ if (input.IsEnabled != null) {
4769
4769
  const node = new xml_builder_1.XmlNode("IsEnabled").addChildNode(new xml_builder_1.XmlText(String(input.IsEnabled))).withName("IsEnabled");
4770
4770
  bodyNode.addChildNode(node);
4771
4771
  }
@@ -4773,7 +4773,7 @@ const serializeAws_restXmlCloudWatchMetrics = (input, context) => {
4773
4773
  };
4774
4774
  const serializeAws_restXmlCreateBucketConfiguration = (input, context) => {
4775
4775
  const bodyNode = new xml_builder_1.XmlNode("CreateBucketConfiguration");
4776
- if (input.LocationConstraint !== undefined && input.LocationConstraint !== null) {
4776
+ if (input.LocationConstraint != null) {
4777
4777
  const node = new xml_builder_1.XmlNode("BucketLocationConstraint")
4778
4778
  .addChildNode(new xml_builder_1.XmlText(input.LocationConstraint))
4779
4779
  .withName("LocationConstraint");
@@ -4783,15 +4783,15 @@ const serializeAws_restXmlCreateBucketConfiguration = (input, context) => {
4783
4783
  };
4784
4784
  const serializeAws_restXmlCreateMultiRegionAccessPointInput = (input, context) => {
4785
4785
  const bodyNode = new xml_builder_1.XmlNode("CreateMultiRegionAccessPointInput");
4786
- if (input.Name !== undefined && input.Name !== null) {
4786
+ if (input.Name != null) {
4787
4787
  const node = new xml_builder_1.XmlNode("MultiRegionAccessPointName").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
4788
4788
  bodyNode.addChildNode(node);
4789
4789
  }
4790
- if (input.PublicAccessBlock !== undefined && input.PublicAccessBlock !== null) {
4790
+ if (input.PublicAccessBlock != null) {
4791
4791
  const node = serializeAws_restXmlPublicAccessBlockConfiguration(input.PublicAccessBlock, context).withName("PublicAccessBlock");
4792
4792
  bodyNode.addChildNode(node);
4793
4793
  }
4794
- if (input.Regions !== undefined && input.Regions !== null) {
4794
+ if (input.Regions != null) {
4795
4795
  const nodes = serializeAws_restXmlRegionCreationList(input.Regions, context);
4796
4796
  const containerNode = new xml_builder_1.XmlNode("Regions");
4797
4797
  nodes.map((node) => {
@@ -4803,7 +4803,7 @@ const serializeAws_restXmlCreateMultiRegionAccessPointInput = (input, context) =
4803
4803
  };
4804
4804
  const serializeAws_restXmlDeleteMultiRegionAccessPointInput = (input, context) => {
4805
4805
  const bodyNode = new xml_builder_1.XmlNode("DeleteMultiRegionAccessPointInput");
4806
- if (input.Name !== undefined && input.Name !== null) {
4806
+ if (input.Name != null) {
4807
4807
  const node = new xml_builder_1.XmlNode("MultiRegionAccessPointName").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
4808
4808
  bodyNode.addChildNode(node);
4809
4809
  }
@@ -4811,7 +4811,7 @@ const serializeAws_restXmlDeleteMultiRegionAccessPointInput = (input, context) =
4811
4811
  };
4812
4812
  const serializeAws_restXml_Exclude = (input, context) => {
4813
4813
  const bodyNode = new xml_builder_1.XmlNode("Exclude");
4814
- if (input.Buckets !== undefined && input.Buckets !== null) {
4814
+ if (input.Buckets != null) {
4815
4815
  const nodes = serializeAws_restXmlBuckets(input.Buckets, context);
4816
4816
  const containerNode = new xml_builder_1.XmlNode("Buckets");
4817
4817
  nodes.map((node) => {
@@ -4819,7 +4819,7 @@ const serializeAws_restXml_Exclude = (input, context) => {
4819
4819
  });
4820
4820
  bodyNode.addChildNode(containerNode);
4821
4821
  }
4822
- if (input.Regions !== undefined && input.Regions !== null) {
4822
+ if (input.Regions != null) {
4823
4823
  const nodes = serializeAws_restXmlRegions(input.Regions, context);
4824
4824
  const containerNode = new xml_builder_1.XmlNode("Regions");
4825
4825
  nodes.map((node) => {
@@ -4831,11 +4831,11 @@ const serializeAws_restXml_Exclude = (input, context) => {
4831
4831
  };
4832
4832
  const serializeAws_restXmlGeneratedManifestEncryption = (input, context) => {
4833
4833
  const bodyNode = new xml_builder_1.XmlNode("GeneratedManifestEncryption");
4834
- if (input.SSES3 !== undefined && input.SSES3 !== null) {
4834
+ if (input.SSES3 != null) {
4835
4835
  const node = serializeAws_restXmlSSES3Encryption(input.SSES3, context).withName("SSE-S3");
4836
4836
  bodyNode.addChildNode(node);
4837
4837
  }
4838
- if (input.SSEKMS !== undefined && input.SSEKMS !== null) {
4838
+ if (input.SSEKMS != null) {
4839
4839
  const node = serializeAws_restXmlSSEKMSEncryption(input.SSEKMS, context).withName("SSE-KMS");
4840
4840
  bodyNode.addChildNode(node);
4841
4841
  }
@@ -4843,7 +4843,7 @@ const serializeAws_restXmlGeneratedManifestEncryption = (input, context) => {
4843
4843
  };
4844
4844
  const serializeAws_restXmlInclude = (input, context) => {
4845
4845
  const bodyNode = new xml_builder_1.XmlNode("Include");
4846
- if (input.Buckets !== undefined && input.Buckets !== null) {
4846
+ if (input.Buckets != null) {
4847
4847
  const nodes = serializeAws_restXmlBuckets(input.Buckets, context);
4848
4848
  const containerNode = new xml_builder_1.XmlNode("Buckets");
4849
4849
  nodes.map((node) => {
@@ -4851,7 +4851,7 @@ const serializeAws_restXmlInclude = (input, context) => {
4851
4851
  });
4852
4852
  bodyNode.addChildNode(containerNode);
4853
4853
  }
4854
- if (input.Regions !== undefined && input.Regions !== null) {
4854
+ if (input.Regions != null) {
4855
4855
  const nodes = serializeAws_restXmlRegions(input.Regions, context);
4856
4856
  const containerNode = new xml_builder_1.XmlNode("Regions");
4857
4857
  nodes.map((node) => {
@@ -4863,11 +4863,11 @@ const serializeAws_restXmlInclude = (input, context) => {
4863
4863
  };
4864
4864
  const serializeAws_restXmlJobManifest = (input, context) => {
4865
4865
  const bodyNode = new xml_builder_1.XmlNode("JobManifest");
4866
- if (input.Spec !== undefined && input.Spec !== null) {
4866
+ if (input.Spec != null) {
4867
4867
  const node = serializeAws_restXmlJobManifestSpec(input.Spec, context).withName("Spec");
4868
4868
  bodyNode.addChildNode(node);
4869
4869
  }
4870
- if (input.Location !== undefined && input.Location !== null) {
4870
+ if (input.Location != null) {
4871
4871
  const node = serializeAws_restXmlJobManifestLocation(input.Location, context).withName("Location");
4872
4872
  bodyNode.addChildNode(node);
4873
4873
  }
@@ -4902,25 +4902,25 @@ const serializeAws_restXmlJobManifestGenerator = (input, context) => {
4902
4902
  };
4903
4903
  const serializeAws_restXmlJobManifestGeneratorFilter = (input, context) => {
4904
4904
  const bodyNode = new xml_builder_1.XmlNode("JobManifestGeneratorFilter");
4905
- if (input.EligibleForReplication !== undefined && input.EligibleForReplication !== null) {
4905
+ if (input.EligibleForReplication != null) {
4906
4906
  const node = new xml_builder_1.XmlNode("Boolean")
4907
4907
  .addChildNode(new xml_builder_1.XmlText(String(input.EligibleForReplication)))
4908
4908
  .withName("EligibleForReplication");
4909
4909
  bodyNode.addChildNode(node);
4910
4910
  }
4911
- if (input.CreatedAfter !== undefined && input.CreatedAfter !== null) {
4911
+ if (input.CreatedAfter != null) {
4912
4912
  const node = new xml_builder_1.XmlNode("ObjectCreationTime")
4913
4913
  .addChildNode(new xml_builder_1.XmlText(input.CreatedAfter.toISOString().split(".")[0] + "Z"))
4914
4914
  .withName("CreatedAfter");
4915
4915
  bodyNode.addChildNode(node);
4916
4916
  }
4917
- if (input.CreatedBefore !== undefined && input.CreatedBefore !== null) {
4917
+ if (input.CreatedBefore != null) {
4918
4918
  const node = new xml_builder_1.XmlNode("ObjectCreationTime")
4919
4919
  .addChildNode(new xml_builder_1.XmlText(input.CreatedBefore.toISOString().split(".")[0] + "Z"))
4920
4920
  .withName("CreatedBefore");
4921
4921
  bodyNode.addChildNode(node);
4922
4922
  }
4923
- if (input.ObjectReplicationStatuses !== undefined && input.ObjectReplicationStatuses !== null) {
4923
+ if (input.ObjectReplicationStatuses != null) {
4924
4924
  const nodes = serializeAws_restXmlReplicationStatusFilterList(input.ObjectReplicationStatuses, context);
4925
4925
  const containerNode = new xml_builder_1.XmlNode("ObjectReplicationStatuses");
4926
4926
  nodes.map((node) => {
@@ -4932,17 +4932,17 @@ const serializeAws_restXmlJobManifestGeneratorFilter = (input, context) => {
4932
4932
  };
4933
4933
  const serializeAws_restXmlJobManifestLocation = (input, context) => {
4934
4934
  const bodyNode = new xml_builder_1.XmlNode("JobManifestLocation");
4935
- if (input.ObjectArn !== undefined && input.ObjectArn !== null) {
4935
+ if (input.ObjectArn != null) {
4936
4936
  const node = new xml_builder_1.XmlNode("S3KeyArnString").addChildNode(new xml_builder_1.XmlText(input.ObjectArn)).withName("ObjectArn");
4937
4937
  bodyNode.addChildNode(node);
4938
4938
  }
4939
- if (input.ObjectVersionId !== undefined && input.ObjectVersionId !== null) {
4939
+ if (input.ObjectVersionId != null) {
4940
4940
  const node = new xml_builder_1.XmlNode("S3ObjectVersionId")
4941
4941
  .addChildNode(new xml_builder_1.XmlText(input.ObjectVersionId))
4942
4942
  .withName("ObjectVersionId");
4943
4943
  bodyNode.addChildNode(node);
4944
4944
  }
4945
- if (input.ETag !== undefined && input.ETag !== null) {
4945
+ if (input.ETag != null) {
4946
4946
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String").addChildNode(new xml_builder_1.XmlText(input.ETag)).withName("ETag");
4947
4947
  bodyNode.addChildNode(node);
4948
4948
  }
@@ -4950,11 +4950,11 @@ const serializeAws_restXmlJobManifestLocation = (input, context) => {
4950
4950
  };
4951
4951
  const serializeAws_restXmlJobManifestSpec = (input, context) => {
4952
4952
  const bodyNode = new xml_builder_1.XmlNode("JobManifestSpec");
4953
- if (input.Format !== undefined && input.Format !== null) {
4953
+ if (input.Format != null) {
4954
4954
  const node = new xml_builder_1.XmlNode("JobManifestFormat").addChildNode(new xml_builder_1.XmlText(input.Format)).withName("Format");
4955
4955
  bodyNode.addChildNode(node);
4956
4956
  }
4957
- if (input.Fields !== undefined && input.Fields !== null) {
4957
+ if (input.Fields != null) {
4958
4958
  const nodes = serializeAws_restXmlJobManifestFieldList(input.Fields, context);
4959
4959
  const containerNode = new xml_builder_1.XmlNode("Fields");
4960
4960
  nodes.map((node) => {
@@ -4966,39 +4966,39 @@ const serializeAws_restXmlJobManifestSpec = (input, context) => {
4966
4966
  };
4967
4967
  const serializeAws_restXmlJobOperation = (input, context) => {
4968
4968
  const bodyNode = new xml_builder_1.XmlNode("JobOperation");
4969
- if (input.LambdaInvoke !== undefined && input.LambdaInvoke !== null) {
4969
+ if (input.LambdaInvoke != null) {
4970
4970
  const node = serializeAws_restXmlLambdaInvokeOperation(input.LambdaInvoke, context).withName("LambdaInvoke");
4971
4971
  bodyNode.addChildNode(node);
4972
4972
  }
4973
- if (input.S3PutObjectCopy !== undefined && input.S3PutObjectCopy !== null) {
4973
+ if (input.S3PutObjectCopy != null) {
4974
4974
  const node = serializeAws_restXmlS3CopyObjectOperation(input.S3PutObjectCopy, context).withName("S3PutObjectCopy");
4975
4975
  bodyNode.addChildNode(node);
4976
4976
  }
4977
- if (input.S3PutObjectAcl !== undefined && input.S3PutObjectAcl !== null) {
4977
+ if (input.S3PutObjectAcl != null) {
4978
4978
  const node = serializeAws_restXmlS3SetObjectAclOperation(input.S3PutObjectAcl, context).withName("S3PutObjectAcl");
4979
4979
  bodyNode.addChildNode(node);
4980
4980
  }
4981
- if (input.S3PutObjectTagging !== undefined && input.S3PutObjectTagging !== null) {
4981
+ if (input.S3PutObjectTagging != null) {
4982
4982
  const node = serializeAws_restXmlS3SetObjectTaggingOperation(input.S3PutObjectTagging, context).withName("S3PutObjectTagging");
4983
4983
  bodyNode.addChildNode(node);
4984
4984
  }
4985
- if (input.S3DeleteObjectTagging !== undefined && input.S3DeleteObjectTagging !== null) {
4985
+ if (input.S3DeleteObjectTagging != null) {
4986
4986
  const node = serializeAws_restXmlS3DeleteObjectTaggingOperation(input.S3DeleteObjectTagging, context).withName("S3DeleteObjectTagging");
4987
4987
  bodyNode.addChildNode(node);
4988
4988
  }
4989
- if (input.S3InitiateRestoreObject !== undefined && input.S3InitiateRestoreObject !== null) {
4989
+ if (input.S3InitiateRestoreObject != null) {
4990
4990
  const node = serializeAws_restXmlS3InitiateRestoreObjectOperation(input.S3InitiateRestoreObject, context).withName("S3InitiateRestoreObject");
4991
4991
  bodyNode.addChildNode(node);
4992
4992
  }
4993
- if (input.S3PutObjectLegalHold !== undefined && input.S3PutObjectLegalHold !== null) {
4993
+ if (input.S3PutObjectLegalHold != null) {
4994
4994
  const node = serializeAws_restXmlS3SetObjectLegalHoldOperation(input.S3PutObjectLegalHold, context).withName("S3PutObjectLegalHold");
4995
4995
  bodyNode.addChildNode(node);
4996
4996
  }
4997
- if (input.S3PutObjectRetention !== undefined && input.S3PutObjectRetention !== null) {
4997
+ if (input.S3PutObjectRetention != null) {
4998
4998
  const node = serializeAws_restXmlS3SetObjectRetentionOperation(input.S3PutObjectRetention, context).withName("S3PutObjectRetention");
4999
4999
  bodyNode.addChildNode(node);
5000
5000
  }
5001
- if (input.S3ReplicateObject !== undefined && input.S3ReplicateObject !== null) {
5001
+ if (input.S3ReplicateObject != null) {
5002
5002
  const node = serializeAws_restXmlS3ReplicateObjectOperation(input.S3ReplicateObject, context).withName("S3ReplicateObject");
5003
5003
  bodyNode.addChildNode(node);
5004
5004
  }
@@ -5006,23 +5006,23 @@ const serializeAws_restXmlJobOperation = (input, context) => {
5006
5006
  };
5007
5007
  const serializeAws_restXmlJobReport = (input, context) => {
5008
5008
  const bodyNode = new xml_builder_1.XmlNode("JobReport");
5009
- if (input.Bucket !== undefined && input.Bucket !== null) {
5009
+ if (input.Bucket != null) {
5010
5010
  const node = new xml_builder_1.XmlNode("S3BucketArnString").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
5011
5011
  bodyNode.addChildNode(node);
5012
5012
  }
5013
- if (input.Format !== undefined && input.Format !== null) {
5013
+ if (input.Format != null) {
5014
5014
  const node = new xml_builder_1.XmlNode("JobReportFormat").addChildNode(new xml_builder_1.XmlText(input.Format)).withName("Format");
5015
5015
  bodyNode.addChildNode(node);
5016
5016
  }
5017
- if (input.Enabled !== undefined && input.Enabled !== null) {
5017
+ if (input.Enabled != null) {
5018
5018
  const node = new xml_builder_1.XmlNode("Boolean").addChildNode(new xml_builder_1.XmlText(String(input.Enabled))).withName("Enabled");
5019
5019
  bodyNode.addChildNode(node);
5020
5020
  }
5021
- if (input.Prefix !== undefined && input.Prefix !== null) {
5021
+ if (input.Prefix != null) {
5022
5022
  const node = new xml_builder_1.XmlNode("ReportPrefixString").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
5023
5023
  bodyNode.addChildNode(node);
5024
5024
  }
5025
- if (input.ReportScope !== undefined && input.ReportScope !== null) {
5025
+ if (input.ReportScope != null) {
5026
5026
  const node = new xml_builder_1.XmlNode("JobReportScope").addChildNode(new xml_builder_1.XmlText(input.ReportScope)).withName("ReportScope");
5027
5027
  bodyNode.addChildNode(node);
5028
5028
  }
@@ -5030,7 +5030,7 @@ const serializeAws_restXmlJobReport = (input, context) => {
5030
5030
  };
5031
5031
  const serializeAws_restXmlLambdaInvokeOperation = (input, context) => {
5032
5032
  const bodyNode = new xml_builder_1.XmlNode("LambdaInvokeOperation");
5033
- if (input.FunctionArn !== undefined && input.FunctionArn !== null) {
5033
+ if (input.FunctionArn != null) {
5034
5034
  const node = new xml_builder_1.XmlNode("FunctionArnString")
5035
5035
  .addChildNode(new xml_builder_1.XmlText(input.FunctionArn))
5036
5036
  .withName("FunctionArn");
@@ -5040,7 +5040,7 @@ const serializeAws_restXmlLambdaInvokeOperation = (input, context) => {
5040
5040
  };
5041
5041
  const serializeAws_restXmlLifecycleConfiguration = (input, context) => {
5042
5042
  const bodyNode = new xml_builder_1.XmlNode("LifecycleConfiguration");
5043
- if (input.Rules !== undefined && input.Rules !== null) {
5043
+ if (input.Rules != null) {
5044
5044
  const nodes = serializeAws_restXmlLifecycleRules(input.Rules, context);
5045
5045
  const containerNode = new xml_builder_1.XmlNode("Rules");
5046
5046
  nodes.map((node) => {
@@ -5052,17 +5052,17 @@ const serializeAws_restXmlLifecycleConfiguration = (input, context) => {
5052
5052
  };
5053
5053
  const serializeAws_restXmlLifecycleExpiration = (input, context) => {
5054
5054
  const bodyNode = new xml_builder_1.XmlNode("LifecycleExpiration");
5055
- if (input.Date !== undefined && input.Date !== null) {
5055
+ if (input.Date != null) {
5056
5056
  const node = new xml_builder_1.XmlNode("Date")
5057
5057
  .addChildNode(new xml_builder_1.XmlText(input.Date.toISOString().split(".")[0] + "Z"))
5058
5058
  .withName("Date");
5059
5059
  bodyNode.addChildNode(node);
5060
5060
  }
5061
- if (input.Days !== undefined && input.Days !== null) {
5061
+ if (input.Days != null) {
5062
5062
  const node = new xml_builder_1.XmlNode("Days").addChildNode(new xml_builder_1.XmlText(String(input.Days))).withName("Days");
5063
5063
  bodyNode.addChildNode(node);
5064
5064
  }
5065
- if (input.ExpiredObjectDeleteMarker !== undefined && input.ExpiredObjectDeleteMarker !== null) {
5065
+ if (input.ExpiredObjectDeleteMarker != null) {
5066
5066
  const node = new xml_builder_1.XmlNode("ExpiredObjectDeleteMarker")
5067
5067
  .addChildNode(new xml_builder_1.XmlText(String(input.ExpiredObjectDeleteMarker)))
5068
5068
  .withName("ExpiredObjectDeleteMarker");
@@ -5072,23 +5072,23 @@ const serializeAws_restXmlLifecycleExpiration = (input, context) => {
5072
5072
  };
5073
5073
  const serializeAws_restXmlLifecycleRule = (input, context) => {
5074
5074
  const bodyNode = new xml_builder_1.XmlNode("LifecycleRule");
5075
- if (input.Expiration !== undefined && input.Expiration !== null) {
5075
+ if (input.Expiration != null) {
5076
5076
  const node = serializeAws_restXmlLifecycleExpiration(input.Expiration, context).withName("Expiration");
5077
5077
  bodyNode.addChildNode(node);
5078
5078
  }
5079
- if (input.ID !== undefined && input.ID !== null) {
5079
+ if (input.ID != null) {
5080
5080
  const node = new xml_builder_1.XmlNode("ID").addChildNode(new xml_builder_1.XmlText(input.ID)).withName("ID");
5081
5081
  bodyNode.addChildNode(node);
5082
5082
  }
5083
- if (input.Filter !== undefined && input.Filter !== null) {
5083
+ if (input.Filter != null) {
5084
5084
  const node = serializeAws_restXmlLifecycleRuleFilter(input.Filter, context).withName("Filter");
5085
5085
  bodyNode.addChildNode(node);
5086
5086
  }
5087
- if (input.Status !== undefined && input.Status !== null) {
5087
+ if (input.Status != null) {
5088
5088
  const node = new xml_builder_1.XmlNode("ExpirationStatus").addChildNode(new xml_builder_1.XmlText(input.Status)).withName("Status");
5089
5089
  bodyNode.addChildNode(node);
5090
5090
  }
5091
- if (input.Transitions !== undefined && input.Transitions !== null) {
5091
+ if (input.Transitions != null) {
5092
5092
  const nodes = serializeAws_restXmlTransitionList(input.Transitions, context);
5093
5093
  const containerNode = new xml_builder_1.XmlNode("Transitions");
5094
5094
  nodes.map((node) => {
@@ -5096,7 +5096,7 @@ const serializeAws_restXmlLifecycleRule = (input, context) => {
5096
5096
  });
5097
5097
  bodyNode.addChildNode(containerNode);
5098
5098
  }
5099
- if (input.NoncurrentVersionTransitions !== undefined && input.NoncurrentVersionTransitions !== null) {
5099
+ if (input.NoncurrentVersionTransitions != null) {
5100
5100
  const nodes = serializeAws_restXmlNoncurrentVersionTransitionList(input.NoncurrentVersionTransitions, context);
5101
5101
  const containerNode = new xml_builder_1.XmlNode("NoncurrentVersionTransitions");
5102
5102
  nodes.map((node) => {
@@ -5104,11 +5104,11 @@ const serializeAws_restXmlLifecycleRule = (input, context) => {
5104
5104
  });
5105
5105
  bodyNode.addChildNode(containerNode);
5106
5106
  }
5107
- if (input.NoncurrentVersionExpiration !== undefined && input.NoncurrentVersionExpiration !== null) {
5107
+ if (input.NoncurrentVersionExpiration != null) {
5108
5108
  const node = serializeAws_restXmlNoncurrentVersionExpiration(input.NoncurrentVersionExpiration, context).withName("NoncurrentVersionExpiration");
5109
5109
  bodyNode.addChildNode(node);
5110
5110
  }
5111
- if (input.AbortIncompleteMultipartUpload !== undefined && input.AbortIncompleteMultipartUpload !== null) {
5111
+ if (input.AbortIncompleteMultipartUpload != null) {
5112
5112
  const node = serializeAws_restXmlAbortIncompleteMultipartUpload(input.AbortIncompleteMultipartUpload, context).withName("AbortIncompleteMultipartUpload");
5113
5113
  bodyNode.addChildNode(node);
5114
5114
  }
@@ -5116,11 +5116,11 @@ const serializeAws_restXmlLifecycleRule = (input, context) => {
5116
5116
  };
5117
5117
  const serializeAws_restXmlLifecycleRuleAndOperator = (input, context) => {
5118
5118
  const bodyNode = new xml_builder_1.XmlNode("LifecycleRuleAndOperator");
5119
- if (input.Prefix !== undefined && input.Prefix !== null) {
5119
+ if (input.Prefix != null) {
5120
5120
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
5121
5121
  bodyNode.addChildNode(node);
5122
5122
  }
5123
- if (input.Tags !== undefined && input.Tags !== null) {
5123
+ if (input.Tags != null) {
5124
5124
  const nodes = serializeAws_restXmlS3TagSet(input.Tags, context);
5125
5125
  const containerNode = new xml_builder_1.XmlNode("Tags");
5126
5126
  nodes.map((node) => {
@@ -5132,15 +5132,15 @@ const serializeAws_restXmlLifecycleRuleAndOperator = (input, context) => {
5132
5132
  };
5133
5133
  const serializeAws_restXmlLifecycleRuleFilter = (input, context) => {
5134
5134
  const bodyNode = new xml_builder_1.XmlNode("LifecycleRuleFilter");
5135
- if (input.Prefix !== undefined && input.Prefix !== null) {
5135
+ if (input.Prefix != null) {
5136
5136
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
5137
5137
  bodyNode.addChildNode(node);
5138
5138
  }
5139
- if (input.Tag !== undefined && input.Tag !== null) {
5139
+ if (input.Tag != null) {
5140
5140
  const node = serializeAws_restXmlS3Tag(input.Tag, context).withName("Tag");
5141
5141
  bodyNode.addChildNode(node);
5142
5142
  }
5143
- if (input.And !== undefined && input.And !== null) {
5143
+ if (input.And != null) {
5144
5144
  const node = serializeAws_restXmlLifecycleRuleAndOperator(input.And, context).withName("And");
5145
5145
  bodyNode.addChildNode(node);
5146
5146
  }
@@ -5159,7 +5159,7 @@ const serializeAws_restXmlLifecycleRules = (input, context) => {
5159
5159
  };
5160
5160
  const serializeAws_restXmlNoncurrentVersionExpiration = (input, context) => {
5161
5161
  const bodyNode = new xml_builder_1.XmlNode("NoncurrentVersionExpiration");
5162
- if (input.NoncurrentDays !== undefined && input.NoncurrentDays !== null) {
5162
+ if (input.NoncurrentDays != null) {
5163
5163
  const node = new xml_builder_1.XmlNode("Days")
5164
5164
  .addChildNode(new xml_builder_1.XmlText(String(input.NoncurrentDays)))
5165
5165
  .withName("NoncurrentDays");
@@ -5169,13 +5169,13 @@ const serializeAws_restXmlNoncurrentVersionExpiration = (input, context) => {
5169
5169
  };
5170
5170
  const serializeAws_restXmlNoncurrentVersionTransition = (input, context) => {
5171
5171
  const bodyNode = new xml_builder_1.XmlNode("NoncurrentVersionTransition");
5172
- if (input.NoncurrentDays !== undefined && input.NoncurrentDays !== null) {
5172
+ if (input.NoncurrentDays != null) {
5173
5173
  const node = new xml_builder_1.XmlNode("Days")
5174
5174
  .addChildNode(new xml_builder_1.XmlText(String(input.NoncurrentDays)))
5175
5175
  .withName("NoncurrentDays");
5176
5176
  bodyNode.addChildNode(node);
5177
5177
  }
5178
- if (input.StorageClass !== undefined && input.StorageClass !== null) {
5178
+ if (input.StorageClass != null) {
5179
5179
  const node = new xml_builder_1.XmlNode("TransitionStorageClass")
5180
5180
  .addChildNode(new xml_builder_1.XmlText(input.StorageClass))
5181
5181
  .withName("StorageClass");
@@ -5207,19 +5207,19 @@ const serializeAws_restXmlObjectLambdaAllowedFeaturesList = (input, context) =>
5207
5207
  };
5208
5208
  const serializeAws_restXmlObjectLambdaConfiguration = (input, context) => {
5209
5209
  const bodyNode = new xml_builder_1.XmlNode("ObjectLambdaConfiguration");
5210
- if (input.SupportingAccessPoint !== undefined && input.SupportingAccessPoint !== null) {
5210
+ if (input.SupportingAccessPoint != null) {
5211
5211
  const node = new xml_builder_1.XmlNode("ObjectLambdaSupportingAccessPointArn")
5212
5212
  .addChildNode(new xml_builder_1.XmlText(input.SupportingAccessPoint))
5213
5213
  .withName("SupportingAccessPoint");
5214
5214
  bodyNode.addChildNode(node);
5215
5215
  }
5216
- if (input.CloudWatchMetricsEnabled !== undefined && input.CloudWatchMetricsEnabled !== null) {
5216
+ if (input.CloudWatchMetricsEnabled != null) {
5217
5217
  const node = new xml_builder_1.XmlNode("Boolean")
5218
5218
  .addChildNode(new xml_builder_1.XmlText(String(input.CloudWatchMetricsEnabled)))
5219
5219
  .withName("CloudWatchMetricsEnabled");
5220
5220
  bodyNode.addChildNode(node);
5221
5221
  }
5222
- if (input.AllowedFeatures !== undefined && input.AllowedFeatures !== null) {
5222
+ if (input.AllowedFeatures != null) {
5223
5223
  const nodes = serializeAws_restXmlObjectLambdaAllowedFeaturesList(input.AllowedFeatures, context);
5224
5224
  const containerNode = new xml_builder_1.XmlNode("AllowedFeatures");
5225
5225
  nodes.map((node) => {
@@ -5227,7 +5227,7 @@ const serializeAws_restXmlObjectLambdaConfiguration = (input, context) => {
5227
5227
  });
5228
5228
  bodyNode.addChildNode(containerNode);
5229
5229
  }
5230
- if (input.TransformationConfigurations !== undefined && input.TransformationConfigurations !== null) {
5230
+ if (input.TransformationConfigurations != null) {
5231
5231
  const nodes = serializeAws_restXmlObjectLambdaTransformationConfigurationsList(input.TransformationConfigurations, context);
5232
5232
  const containerNode = new xml_builder_1.XmlNode("TransformationConfigurations");
5233
5233
  nodes.map((node) => {
@@ -5255,7 +5255,7 @@ const serializeAws_restXmlObjectLambdaContentTransformation = (input, context) =
5255
5255
  };
5256
5256
  const serializeAws_restXmlObjectLambdaTransformationConfiguration = (input, context) => {
5257
5257
  const bodyNode = new xml_builder_1.XmlNode("ObjectLambdaTransformationConfiguration");
5258
- if (input.Actions !== undefined && input.Actions !== null) {
5258
+ if (input.Actions != null) {
5259
5259
  const nodes = serializeAws_restXmlObjectLambdaTransformationConfigurationActionsList(input.Actions, context);
5260
5260
  const containerNode = new xml_builder_1.XmlNode("Actions");
5261
5261
  nodes.map((node) => {
@@ -5263,7 +5263,7 @@ const serializeAws_restXmlObjectLambdaTransformationConfiguration = (input, cont
5263
5263
  });
5264
5264
  bodyNode.addChildNode(containerNode);
5265
5265
  }
5266
- if (input.ContentTransformation !== undefined && input.ContentTransformation !== null) {
5266
+ if (input.ContentTransformation != null) {
5267
5267
  const node = serializeAws_restXmlObjectLambdaContentTransformation(input.ContentTransformation, context).withName("ContentTransformation");
5268
5268
  bodyNode.addChildNode(node);
5269
5269
  }
@@ -5293,7 +5293,7 @@ const serializeAws_restXmlObjectLambdaTransformationConfigurationsList = (input,
5293
5293
  };
5294
5294
  const serializeAws_restXmlPrefixLevel = (input, context) => {
5295
5295
  const bodyNode = new xml_builder_1.XmlNode("PrefixLevel");
5296
- if (input.StorageMetrics !== undefined && input.StorageMetrics !== null) {
5296
+ if (input.StorageMetrics != null) {
5297
5297
  const node = serializeAws_restXmlPrefixLevelStorageMetrics(input.StorageMetrics, context).withName("StorageMetrics");
5298
5298
  bodyNode.addChildNode(node);
5299
5299
  }
@@ -5301,11 +5301,11 @@ const serializeAws_restXmlPrefixLevel = (input, context) => {
5301
5301
  };
5302
5302
  const serializeAws_restXmlPrefixLevelStorageMetrics = (input, context) => {
5303
5303
  const bodyNode = new xml_builder_1.XmlNode("PrefixLevelStorageMetrics");
5304
- if (input.IsEnabled !== undefined && input.IsEnabled !== null) {
5304
+ if (input.IsEnabled != null) {
5305
5305
  const node = new xml_builder_1.XmlNode("IsEnabled").addChildNode(new xml_builder_1.XmlText(String(input.IsEnabled))).withName("IsEnabled");
5306
5306
  bodyNode.addChildNode(node);
5307
5307
  }
5308
- if (input.SelectionCriteria !== undefined && input.SelectionCriteria !== null) {
5308
+ if (input.SelectionCriteria != null) {
5309
5309
  const node = serializeAws_restXmlSelectionCriteria(input.SelectionCriteria, context).withName("SelectionCriteria");
5310
5310
  bodyNode.addChildNode(node);
5311
5311
  }
@@ -5313,25 +5313,25 @@ const serializeAws_restXmlPrefixLevelStorageMetrics = (input, context) => {
5313
5313
  };
5314
5314
  const serializeAws_restXmlPublicAccessBlockConfiguration = (input, context) => {
5315
5315
  const bodyNode = new xml_builder_1.XmlNode("PublicAccessBlockConfiguration");
5316
- if (input.BlockPublicAcls !== undefined && input.BlockPublicAcls !== null) {
5316
+ if (input.BlockPublicAcls != null) {
5317
5317
  const node = new xml_builder_1.XmlNode("Setting")
5318
5318
  .addChildNode(new xml_builder_1.XmlText(String(input.BlockPublicAcls)))
5319
5319
  .withName("BlockPublicAcls");
5320
5320
  bodyNode.addChildNode(node);
5321
5321
  }
5322
- if (input.IgnorePublicAcls !== undefined && input.IgnorePublicAcls !== null) {
5322
+ if (input.IgnorePublicAcls != null) {
5323
5323
  const node = new xml_builder_1.XmlNode("Setting")
5324
5324
  .addChildNode(new xml_builder_1.XmlText(String(input.IgnorePublicAcls)))
5325
5325
  .withName("IgnorePublicAcls");
5326
5326
  bodyNode.addChildNode(node);
5327
5327
  }
5328
- if (input.BlockPublicPolicy !== undefined && input.BlockPublicPolicy !== null) {
5328
+ if (input.BlockPublicPolicy != null) {
5329
5329
  const node = new xml_builder_1.XmlNode("Setting")
5330
5330
  .addChildNode(new xml_builder_1.XmlText(String(input.BlockPublicPolicy)))
5331
5331
  .withName("BlockPublicPolicy");
5332
5332
  bodyNode.addChildNode(node);
5333
5333
  }
5334
- if (input.RestrictPublicBuckets !== undefined && input.RestrictPublicBuckets !== null) {
5334
+ if (input.RestrictPublicBuckets != null) {
5335
5335
  const node = new xml_builder_1.XmlNode("Setting")
5336
5336
  .addChildNode(new xml_builder_1.XmlText(String(input.RestrictPublicBuckets)))
5337
5337
  .withName("RestrictPublicBuckets");
@@ -5341,11 +5341,11 @@ const serializeAws_restXmlPublicAccessBlockConfiguration = (input, context) => {
5341
5341
  };
5342
5342
  const serializeAws_restXmlPutMultiRegionAccessPointPolicyInput = (input, context) => {
5343
5343
  const bodyNode = new xml_builder_1.XmlNode("PutMultiRegionAccessPointPolicyInput");
5344
- if (input.Name !== undefined && input.Name !== null) {
5344
+ if (input.Name != null) {
5345
5345
  const node = new xml_builder_1.XmlNode("MultiRegionAccessPointName").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
5346
5346
  bodyNode.addChildNode(node);
5347
5347
  }
5348
- if (input.Policy !== undefined && input.Policy !== null) {
5348
+ if (input.Policy != null) {
5349
5349
  const node = new xml_builder_1.XmlNode("Policy").addChildNode(new xml_builder_1.XmlText(input.Policy)).withName("Policy");
5350
5350
  bodyNode.addChildNode(node);
5351
5351
  }
@@ -5353,7 +5353,7 @@ const serializeAws_restXmlPutMultiRegionAccessPointPolicyInput = (input, context
5353
5353
  };
5354
5354
  const serializeAws_restXmlRegion = (input, context) => {
5355
5355
  const bodyNode = new xml_builder_1.XmlNode("Region");
5356
- if (input.Bucket !== undefined && input.Bucket !== null) {
5356
+ if (input.Bucket != null) {
5357
5357
  const node = new xml_builder_1.XmlNode("BucketName").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
5358
5358
  bodyNode.addChildNode(node);
5359
5359
  }
@@ -5394,11 +5394,11 @@ const serializeAws_restXmlReplicationStatusFilterList = (input, context) => {
5394
5394
  };
5395
5395
  const serializeAws_restXmlS3AccessControlList = (input, context) => {
5396
5396
  const bodyNode = new xml_builder_1.XmlNode("S3AccessControlList");
5397
- if (input.Owner !== undefined && input.Owner !== null) {
5397
+ if (input.Owner != null) {
5398
5398
  const node = serializeAws_restXmlS3ObjectOwner(input.Owner, context).withName("Owner");
5399
5399
  bodyNode.addChildNode(node);
5400
5400
  }
5401
- if (input.Grants !== undefined && input.Grants !== null) {
5401
+ if (input.Grants != null) {
5402
5402
  const nodes = serializeAws_restXmlS3GrantList(input.Grants, context);
5403
5403
  const containerNode = new xml_builder_1.XmlNode("Grants");
5404
5404
  nodes.map((node) => {
@@ -5410,11 +5410,11 @@ const serializeAws_restXmlS3AccessControlList = (input, context) => {
5410
5410
  };
5411
5411
  const serializeAws_restXmlS3AccessControlPolicy = (input, context) => {
5412
5412
  const bodyNode = new xml_builder_1.XmlNode("S3AccessControlPolicy");
5413
- if (input.AccessControlList !== undefined && input.AccessControlList !== null) {
5413
+ if (input.AccessControlList != null) {
5414
5414
  const node = serializeAws_restXmlS3AccessControlList(input.AccessControlList, context).withName("AccessControlList");
5415
5415
  bodyNode.addChildNode(node);
5416
5416
  }
5417
- if (input.CannedAccessControlList !== undefined && input.CannedAccessControlList !== null) {
5417
+ if (input.CannedAccessControlList != null) {
5418
5418
  const node = new xml_builder_1.XmlNode("S3CannedAccessControlList")
5419
5419
  .addChildNode(new xml_builder_1.XmlText(input.CannedAccessControlList))
5420
5420
  .withName("CannedAccessControlList");
@@ -5424,29 +5424,29 @@ const serializeAws_restXmlS3AccessControlPolicy = (input, context) => {
5424
5424
  };
5425
5425
  const serializeAws_restXmlS3BucketDestination = (input, context) => {
5426
5426
  const bodyNode = new xml_builder_1.XmlNode("S3BucketDestination");
5427
- if (input.Format !== undefined && input.Format !== null) {
5427
+ if (input.Format != null) {
5428
5428
  const node = new xml_builder_1.XmlNode("Format").addChildNode(new xml_builder_1.XmlText(input.Format)).withName("Format");
5429
5429
  bodyNode.addChildNode(node);
5430
5430
  }
5431
- if (input.OutputSchemaVersion !== undefined && input.OutputSchemaVersion !== null) {
5431
+ if (input.OutputSchemaVersion != null) {
5432
5432
  const node = new xml_builder_1.XmlNode("OutputSchemaVersion")
5433
5433
  .addChildNode(new xml_builder_1.XmlText(input.OutputSchemaVersion))
5434
5434
  .withName("OutputSchemaVersion");
5435
5435
  bodyNode.addChildNode(node);
5436
5436
  }
5437
- if (input.AccountId !== undefined && input.AccountId !== null) {
5437
+ if (input.AccountId != null) {
5438
5438
  const node = new xml_builder_1.XmlNode("AccountId").addChildNode(new xml_builder_1.XmlText(input.AccountId)).withName("AccountId");
5439
5439
  bodyNode.addChildNode(node);
5440
5440
  }
5441
- if (input.Arn !== undefined && input.Arn !== null) {
5441
+ if (input.Arn != null) {
5442
5442
  const node = new xml_builder_1.XmlNode("S3BucketArnString").addChildNode(new xml_builder_1.XmlText(input.Arn)).withName("Arn");
5443
5443
  bodyNode.addChildNode(node);
5444
5444
  }
5445
- if (input.Prefix !== undefined && input.Prefix !== null) {
5445
+ if (input.Prefix != null) {
5446
5446
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
5447
5447
  bodyNode.addChildNode(node);
5448
5448
  }
5449
- if (input.Encryption !== undefined && input.Encryption !== null) {
5449
+ if (input.Encryption != null) {
5450
5450
  const node = serializeAws_restXmlStorageLensDataExportEncryption(input.Encryption, context).withName("Encryption");
5451
5451
  bodyNode.addChildNode(node);
5452
5452
  }
@@ -5454,19 +5454,19 @@ const serializeAws_restXmlS3BucketDestination = (input, context) => {
5454
5454
  };
5455
5455
  const serializeAws_restXmlS3CopyObjectOperation = (input, context) => {
5456
5456
  const bodyNode = new xml_builder_1.XmlNode("S3CopyObjectOperation");
5457
- if (input.TargetResource !== undefined && input.TargetResource !== null) {
5457
+ if (input.TargetResource != null) {
5458
5458
  const node = new xml_builder_1.XmlNode("S3BucketArnString")
5459
5459
  .addChildNode(new xml_builder_1.XmlText(input.TargetResource))
5460
5460
  .withName("TargetResource");
5461
5461
  bodyNode.addChildNode(node);
5462
5462
  }
5463
- if (input.CannedAccessControlList !== undefined && input.CannedAccessControlList !== null) {
5463
+ if (input.CannedAccessControlList != null) {
5464
5464
  const node = new xml_builder_1.XmlNode("S3CannedAccessControlList")
5465
5465
  .addChildNode(new xml_builder_1.XmlText(input.CannedAccessControlList))
5466
5466
  .withName("CannedAccessControlList");
5467
5467
  bodyNode.addChildNode(node);
5468
5468
  }
5469
- if (input.AccessControlGrants !== undefined && input.AccessControlGrants !== null) {
5469
+ if (input.AccessControlGrants != null) {
5470
5470
  const nodes = serializeAws_restXmlS3GrantList(input.AccessControlGrants, context);
5471
5471
  const containerNode = new xml_builder_1.XmlNode("AccessControlGrants");
5472
5472
  nodes.map((node) => {
@@ -5474,23 +5474,23 @@ const serializeAws_restXmlS3CopyObjectOperation = (input, context) => {
5474
5474
  });
5475
5475
  bodyNode.addChildNode(containerNode);
5476
5476
  }
5477
- if (input.MetadataDirective !== undefined && input.MetadataDirective !== null) {
5477
+ if (input.MetadataDirective != null) {
5478
5478
  const node = new xml_builder_1.XmlNode("S3MetadataDirective")
5479
5479
  .addChildNode(new xml_builder_1.XmlText(input.MetadataDirective))
5480
5480
  .withName("MetadataDirective");
5481
5481
  bodyNode.addChildNode(node);
5482
5482
  }
5483
- if (input.ModifiedSinceConstraint !== undefined && input.ModifiedSinceConstraint !== null) {
5483
+ if (input.ModifiedSinceConstraint != null) {
5484
5484
  const node = new xml_builder_1.XmlNode("TimeStamp")
5485
5485
  .addChildNode(new xml_builder_1.XmlText(input.ModifiedSinceConstraint.toISOString().split(".")[0] + "Z"))
5486
5486
  .withName("ModifiedSinceConstraint");
5487
5487
  bodyNode.addChildNode(node);
5488
5488
  }
5489
- if (input.NewObjectMetadata !== undefined && input.NewObjectMetadata !== null) {
5489
+ if (input.NewObjectMetadata != null) {
5490
5490
  const node = serializeAws_restXmlS3ObjectMetadata(input.NewObjectMetadata, context).withName("NewObjectMetadata");
5491
5491
  bodyNode.addChildNode(node);
5492
5492
  }
5493
- if (input.NewObjectTagging !== undefined && input.NewObjectTagging !== null) {
5493
+ if (input.NewObjectTagging != null) {
5494
5494
  const nodes = serializeAws_restXmlS3TagSet(input.NewObjectTagging, context);
5495
5495
  const containerNode = new xml_builder_1.XmlNode("NewObjectTagging");
5496
5496
  nodes.map((node) => {
@@ -5498,67 +5498,67 @@ const serializeAws_restXmlS3CopyObjectOperation = (input, context) => {
5498
5498
  });
5499
5499
  bodyNode.addChildNode(containerNode);
5500
5500
  }
5501
- if (input.RedirectLocation !== undefined && input.RedirectLocation !== null) {
5501
+ if (input.RedirectLocation != null) {
5502
5502
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength2048String")
5503
5503
  .addChildNode(new xml_builder_1.XmlText(input.RedirectLocation))
5504
5504
  .withName("RedirectLocation");
5505
5505
  bodyNode.addChildNode(node);
5506
5506
  }
5507
- if (input.RequesterPays !== undefined && input.RequesterPays !== null) {
5507
+ if (input.RequesterPays != null) {
5508
5508
  const node = new xml_builder_1.XmlNode("Boolean")
5509
5509
  .addChildNode(new xml_builder_1.XmlText(String(input.RequesterPays)))
5510
5510
  .withName("RequesterPays");
5511
5511
  bodyNode.addChildNode(node);
5512
5512
  }
5513
- if (input.StorageClass !== undefined && input.StorageClass !== null) {
5513
+ if (input.StorageClass != null) {
5514
5514
  const node = new xml_builder_1.XmlNode("S3StorageClass")
5515
5515
  .addChildNode(new xml_builder_1.XmlText(input.StorageClass))
5516
5516
  .withName("StorageClass");
5517
5517
  bodyNode.addChildNode(node);
5518
5518
  }
5519
- if (input.UnModifiedSinceConstraint !== undefined && input.UnModifiedSinceConstraint !== null) {
5519
+ if (input.UnModifiedSinceConstraint != null) {
5520
5520
  const node = new xml_builder_1.XmlNode("TimeStamp")
5521
5521
  .addChildNode(new xml_builder_1.XmlText(input.UnModifiedSinceConstraint.toISOString().split(".")[0] + "Z"))
5522
5522
  .withName("UnModifiedSinceConstraint");
5523
5523
  bodyNode.addChildNode(node);
5524
5524
  }
5525
- if (input.SSEAwsKmsKeyId !== undefined && input.SSEAwsKmsKeyId !== null) {
5525
+ if (input.SSEAwsKmsKeyId != null) {
5526
5526
  const node = new xml_builder_1.XmlNode("KmsKeyArnString")
5527
5527
  .addChildNode(new xml_builder_1.XmlText(input.SSEAwsKmsKeyId))
5528
5528
  .withName("SSEAwsKmsKeyId");
5529
5529
  bodyNode.addChildNode(node);
5530
5530
  }
5531
- if (input.TargetKeyPrefix !== undefined && input.TargetKeyPrefix !== null) {
5531
+ if (input.TargetKeyPrefix != null) {
5532
5532
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
5533
5533
  .addChildNode(new xml_builder_1.XmlText(input.TargetKeyPrefix))
5534
5534
  .withName("TargetKeyPrefix");
5535
5535
  bodyNode.addChildNode(node);
5536
5536
  }
5537
- if (input.ObjectLockLegalHoldStatus !== undefined && input.ObjectLockLegalHoldStatus !== null) {
5537
+ if (input.ObjectLockLegalHoldStatus != null) {
5538
5538
  const node = new xml_builder_1.XmlNode("S3ObjectLockLegalHoldStatus")
5539
5539
  .addChildNode(new xml_builder_1.XmlText(input.ObjectLockLegalHoldStatus))
5540
5540
  .withName("ObjectLockLegalHoldStatus");
5541
5541
  bodyNode.addChildNode(node);
5542
5542
  }
5543
- if (input.ObjectLockMode !== undefined && input.ObjectLockMode !== null) {
5543
+ if (input.ObjectLockMode != null) {
5544
5544
  const node = new xml_builder_1.XmlNode("S3ObjectLockMode")
5545
5545
  .addChildNode(new xml_builder_1.XmlText(input.ObjectLockMode))
5546
5546
  .withName("ObjectLockMode");
5547
5547
  bodyNode.addChildNode(node);
5548
5548
  }
5549
- if (input.ObjectLockRetainUntilDate !== undefined && input.ObjectLockRetainUntilDate !== null) {
5549
+ if (input.ObjectLockRetainUntilDate != null) {
5550
5550
  const node = new xml_builder_1.XmlNode("TimeStamp")
5551
5551
  .addChildNode(new xml_builder_1.XmlText(input.ObjectLockRetainUntilDate.toISOString().split(".")[0] + "Z"))
5552
5552
  .withName("ObjectLockRetainUntilDate");
5553
5553
  bodyNode.addChildNode(node);
5554
5554
  }
5555
- if (input.BucketKeyEnabled !== undefined && input.BucketKeyEnabled !== null) {
5555
+ if (input.BucketKeyEnabled != null) {
5556
5556
  const node = new xml_builder_1.XmlNode("Boolean")
5557
5557
  .addChildNode(new xml_builder_1.XmlText(String(input.BucketKeyEnabled)))
5558
5558
  .withName("BucketKeyEnabled");
5559
5559
  bodyNode.addChildNode(node);
5560
5560
  }
5561
- if (input.ChecksumAlgorithm !== undefined && input.ChecksumAlgorithm !== null) {
5561
+ if (input.ChecksumAlgorithm != null) {
5562
5562
  const node = new xml_builder_1.XmlNode("S3ChecksumAlgorithm")
5563
5563
  .addChildNode(new xml_builder_1.XmlText(input.ChecksumAlgorithm))
5564
5564
  .withName("ChecksumAlgorithm");
@@ -5572,11 +5572,11 @@ const serializeAws_restXmlS3DeleteObjectTaggingOperation = (input, context) => {
5572
5572
  };
5573
5573
  const serializeAws_restXmlS3Grant = (input, context) => {
5574
5574
  const bodyNode = new xml_builder_1.XmlNode("S3Grant");
5575
- if (input.Grantee !== undefined && input.Grantee !== null) {
5575
+ if (input.Grantee != null) {
5576
5576
  const node = serializeAws_restXmlS3Grantee(input.Grantee, context).withName("Grantee");
5577
5577
  bodyNode.addChildNode(node);
5578
5578
  }
5579
- if (input.Permission !== undefined && input.Permission !== null) {
5579
+ if (input.Permission != null) {
5580
5580
  const node = new xml_builder_1.XmlNode("S3Permission").addChildNode(new xml_builder_1.XmlText(input.Permission)).withName("Permission");
5581
5581
  bodyNode.addChildNode(node);
5582
5582
  }
@@ -5584,19 +5584,19 @@ const serializeAws_restXmlS3Grant = (input, context) => {
5584
5584
  };
5585
5585
  const serializeAws_restXmlS3Grantee = (input, context) => {
5586
5586
  const bodyNode = new xml_builder_1.XmlNode("S3Grantee");
5587
- if (input.TypeIdentifier !== undefined && input.TypeIdentifier !== null) {
5587
+ if (input.TypeIdentifier != null) {
5588
5588
  const node = new xml_builder_1.XmlNode("S3GranteeTypeIdentifier")
5589
5589
  .addChildNode(new xml_builder_1.XmlText(input.TypeIdentifier))
5590
5590
  .withName("TypeIdentifier");
5591
5591
  bodyNode.addChildNode(node);
5592
5592
  }
5593
- if (input.Identifier !== undefined && input.Identifier !== null) {
5593
+ if (input.Identifier != null) {
5594
5594
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
5595
5595
  .addChildNode(new xml_builder_1.XmlText(input.Identifier))
5596
5596
  .withName("Identifier");
5597
5597
  bodyNode.addChildNode(node);
5598
5598
  }
5599
- if (input.DisplayName !== undefined && input.DisplayName !== null) {
5599
+ if (input.DisplayName != null) {
5600
5600
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
5601
5601
  .addChildNode(new xml_builder_1.XmlText(input.DisplayName))
5602
5602
  .withName("DisplayName");
@@ -5617,13 +5617,13 @@ const serializeAws_restXmlS3GrantList = (input, context) => {
5617
5617
  };
5618
5618
  const serializeAws_restXmlS3InitiateRestoreObjectOperation = (input, context) => {
5619
5619
  const bodyNode = new xml_builder_1.XmlNode("S3InitiateRestoreObjectOperation");
5620
- if (input.ExpirationInDays !== undefined && input.ExpirationInDays !== null) {
5620
+ if (input.ExpirationInDays != null) {
5621
5621
  const node = new xml_builder_1.XmlNode("S3ExpirationInDays")
5622
5622
  .addChildNode(new xml_builder_1.XmlText(String(input.ExpirationInDays)))
5623
5623
  .withName("ExpirationInDays");
5624
5624
  bodyNode.addChildNode(node);
5625
5625
  }
5626
- if (input.GlacierJobTier !== undefined && input.GlacierJobTier !== null) {
5626
+ if (input.GlacierJobTier != null) {
5627
5627
  const node = new xml_builder_1.XmlNode("S3GlacierJobTier")
5628
5628
  .addChildNode(new xml_builder_1.XmlText(input.GlacierJobTier))
5629
5629
  .withName("GlacierJobTier");
@@ -5633,27 +5633,27 @@ const serializeAws_restXmlS3InitiateRestoreObjectOperation = (input, context) =>
5633
5633
  };
5634
5634
  const serializeAws_restXmlS3JobManifestGenerator = (input, context) => {
5635
5635
  const bodyNode = new xml_builder_1.XmlNode("S3JobManifestGenerator");
5636
- if (input.ExpectedBucketOwner !== undefined && input.ExpectedBucketOwner !== null) {
5636
+ if (input.ExpectedBucketOwner != null) {
5637
5637
  const node = new xml_builder_1.XmlNode("AccountId")
5638
5638
  .addChildNode(new xml_builder_1.XmlText(input.ExpectedBucketOwner))
5639
5639
  .withName("ExpectedBucketOwner");
5640
5640
  bodyNode.addChildNode(node);
5641
5641
  }
5642
- if (input.SourceBucket !== undefined && input.SourceBucket !== null) {
5642
+ if (input.SourceBucket != null) {
5643
5643
  const node = new xml_builder_1.XmlNode("S3BucketArnString")
5644
5644
  .addChildNode(new xml_builder_1.XmlText(input.SourceBucket))
5645
5645
  .withName("SourceBucket");
5646
5646
  bodyNode.addChildNode(node);
5647
5647
  }
5648
- if (input.ManifestOutputLocation !== undefined && input.ManifestOutputLocation !== null) {
5648
+ if (input.ManifestOutputLocation != null) {
5649
5649
  const node = serializeAws_restXmlS3ManifestOutputLocation(input.ManifestOutputLocation, context).withName("ManifestOutputLocation");
5650
5650
  bodyNode.addChildNode(node);
5651
5651
  }
5652
- if (input.Filter !== undefined && input.Filter !== null) {
5652
+ if (input.Filter != null) {
5653
5653
  const node = serializeAws_restXmlJobManifestGeneratorFilter(input.Filter, context).withName("Filter");
5654
5654
  bodyNode.addChildNode(node);
5655
5655
  }
5656
- if (input.EnableManifestOutput !== undefined && input.EnableManifestOutput !== null) {
5656
+ if (input.EnableManifestOutput != null) {
5657
5657
  const node = new xml_builder_1.XmlNode("Boolean")
5658
5658
  .addChildNode(new xml_builder_1.XmlText(String(input.EnableManifestOutput)))
5659
5659
  .withName("EnableManifestOutput");
@@ -5663,27 +5663,27 @@ const serializeAws_restXmlS3JobManifestGenerator = (input, context) => {
5663
5663
  };
5664
5664
  const serializeAws_restXmlS3ManifestOutputLocation = (input, context) => {
5665
5665
  const bodyNode = new xml_builder_1.XmlNode("S3ManifestOutputLocation");
5666
- if (input.ExpectedManifestBucketOwner !== undefined && input.ExpectedManifestBucketOwner !== null) {
5666
+ if (input.ExpectedManifestBucketOwner != null) {
5667
5667
  const node = new xml_builder_1.XmlNode("AccountId")
5668
5668
  .addChildNode(new xml_builder_1.XmlText(input.ExpectedManifestBucketOwner))
5669
5669
  .withName("ExpectedManifestBucketOwner");
5670
5670
  bodyNode.addChildNode(node);
5671
5671
  }
5672
- if (input.Bucket !== undefined && input.Bucket !== null) {
5672
+ if (input.Bucket != null) {
5673
5673
  const node = new xml_builder_1.XmlNode("S3BucketArnString").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
5674
5674
  bodyNode.addChildNode(node);
5675
5675
  }
5676
- if (input.ManifestPrefix !== undefined && input.ManifestPrefix !== null) {
5676
+ if (input.ManifestPrefix != null) {
5677
5677
  const node = new xml_builder_1.XmlNode("ManifestPrefixString")
5678
5678
  .addChildNode(new xml_builder_1.XmlText(input.ManifestPrefix))
5679
5679
  .withName("ManifestPrefix");
5680
5680
  bodyNode.addChildNode(node);
5681
5681
  }
5682
- if (input.ManifestEncryption !== undefined && input.ManifestEncryption !== null) {
5682
+ if (input.ManifestEncryption != null) {
5683
5683
  const node = serializeAws_restXmlGeneratedManifestEncryption(input.ManifestEncryption, context).withName("ManifestEncryption");
5684
5684
  bodyNode.addChildNode(node);
5685
5685
  }
5686
- if (input.ManifestFormat !== undefined && input.ManifestFormat !== null) {
5686
+ if (input.ManifestFormat != null) {
5687
5687
  const node = new xml_builder_1.XmlNode("GeneratedManifestFormat")
5688
5688
  .addChildNode(new xml_builder_1.XmlText(input.ManifestFormat))
5689
5689
  .withName("ManifestFormat");
@@ -5693,7 +5693,7 @@ const serializeAws_restXmlS3ManifestOutputLocation = (input, context) => {
5693
5693
  };
5694
5694
  const serializeAws_restXmlS3ObjectLockLegalHold = (input, context) => {
5695
5695
  const bodyNode = new xml_builder_1.XmlNode("S3ObjectLockLegalHold");
5696
- if (input.Status !== undefined && input.Status !== null) {
5696
+ if (input.Status != null) {
5697
5697
  const node = new xml_builder_1.XmlNode("S3ObjectLockLegalHoldStatus")
5698
5698
  .addChildNode(new xml_builder_1.XmlText(input.Status))
5699
5699
  .withName("Status");
@@ -5703,31 +5703,31 @@ const serializeAws_restXmlS3ObjectLockLegalHold = (input, context) => {
5703
5703
  };
5704
5704
  const serializeAws_restXmlS3ObjectMetadata = (input, context) => {
5705
5705
  const bodyNode = new xml_builder_1.XmlNode("S3ObjectMetadata");
5706
- if (input.CacheControl !== undefined && input.CacheControl !== null) {
5706
+ if (input.CacheControl != null) {
5707
5707
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
5708
5708
  .addChildNode(new xml_builder_1.XmlText(input.CacheControl))
5709
5709
  .withName("CacheControl");
5710
5710
  bodyNode.addChildNode(node);
5711
5711
  }
5712
- if (input.ContentDisposition !== undefined && input.ContentDisposition !== null) {
5712
+ if (input.ContentDisposition != null) {
5713
5713
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
5714
5714
  .addChildNode(new xml_builder_1.XmlText(input.ContentDisposition))
5715
5715
  .withName("ContentDisposition");
5716
5716
  bodyNode.addChildNode(node);
5717
5717
  }
5718
- if (input.ContentEncoding !== undefined && input.ContentEncoding !== null) {
5718
+ if (input.ContentEncoding != null) {
5719
5719
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
5720
5720
  .addChildNode(new xml_builder_1.XmlText(input.ContentEncoding))
5721
5721
  .withName("ContentEncoding");
5722
5722
  bodyNode.addChildNode(node);
5723
5723
  }
5724
- if (input.ContentLanguage !== undefined && input.ContentLanguage !== null) {
5724
+ if (input.ContentLanguage != null) {
5725
5725
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
5726
5726
  .addChildNode(new xml_builder_1.XmlText(input.ContentLanguage))
5727
5727
  .withName("ContentLanguage");
5728
5728
  bodyNode.addChildNode(node);
5729
5729
  }
5730
- if (input.UserMetadata !== undefined && input.UserMetadata !== null) {
5730
+ if (input.UserMetadata != null) {
5731
5731
  const nodes = serializeAws_restXmlS3UserMetadata(input.UserMetadata, context);
5732
5732
  const containerNode = new xml_builder_1.XmlNode("UserMetadata");
5733
5733
  nodes.map((node) => {
@@ -5735,37 +5735,37 @@ const serializeAws_restXmlS3ObjectMetadata = (input, context) => {
5735
5735
  });
5736
5736
  bodyNode.addChildNode(containerNode);
5737
5737
  }
5738
- if (input.ContentLength !== undefined && input.ContentLength !== null) {
5738
+ if (input.ContentLength != null) {
5739
5739
  const node = new xml_builder_1.XmlNode("S3ContentLength")
5740
5740
  .addChildNode(new xml_builder_1.XmlText(String(input.ContentLength)))
5741
5741
  .withName("ContentLength");
5742
5742
  bodyNode.addChildNode(node);
5743
5743
  }
5744
- if (input.ContentMD5 !== undefined && input.ContentMD5 !== null) {
5744
+ if (input.ContentMD5 != null) {
5745
5745
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
5746
5746
  .addChildNode(new xml_builder_1.XmlText(input.ContentMD5))
5747
5747
  .withName("ContentMD5");
5748
5748
  bodyNode.addChildNode(node);
5749
5749
  }
5750
- if (input.ContentType !== undefined && input.ContentType !== null) {
5750
+ if (input.ContentType != null) {
5751
5751
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
5752
5752
  .addChildNode(new xml_builder_1.XmlText(input.ContentType))
5753
5753
  .withName("ContentType");
5754
5754
  bodyNode.addChildNode(node);
5755
5755
  }
5756
- if (input.HttpExpiresDate !== undefined && input.HttpExpiresDate !== null) {
5756
+ if (input.HttpExpiresDate != null) {
5757
5757
  const node = new xml_builder_1.XmlNode("TimeStamp")
5758
5758
  .addChildNode(new xml_builder_1.XmlText(input.HttpExpiresDate.toISOString().split(".")[0] + "Z"))
5759
5759
  .withName("HttpExpiresDate");
5760
5760
  bodyNode.addChildNode(node);
5761
5761
  }
5762
- if (input.RequesterCharged !== undefined && input.RequesterCharged !== null) {
5762
+ if (input.RequesterCharged != null) {
5763
5763
  const node = new xml_builder_1.XmlNode("Boolean")
5764
5764
  .addChildNode(new xml_builder_1.XmlText(String(input.RequesterCharged)))
5765
5765
  .withName("RequesterCharged");
5766
5766
  bodyNode.addChildNode(node);
5767
5767
  }
5768
- if (input.SSEAlgorithm !== undefined && input.SSEAlgorithm !== null) {
5768
+ if (input.SSEAlgorithm != null) {
5769
5769
  const node = new xml_builder_1.XmlNode("S3SSEAlgorithm")
5770
5770
  .addChildNode(new xml_builder_1.XmlText(input.SSEAlgorithm))
5771
5771
  .withName("SSEAlgorithm");
@@ -5775,11 +5775,11 @@ const serializeAws_restXmlS3ObjectMetadata = (input, context) => {
5775
5775
  };
5776
5776
  const serializeAws_restXmlS3ObjectOwner = (input, context) => {
5777
5777
  const bodyNode = new xml_builder_1.XmlNode("S3ObjectOwner");
5778
- if (input.ID !== undefined && input.ID !== null) {
5778
+ if (input.ID != null) {
5779
5779
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String").addChildNode(new xml_builder_1.XmlText(input.ID)).withName("ID");
5780
5780
  bodyNode.addChildNode(node);
5781
5781
  }
5782
- if (input.DisplayName !== undefined && input.DisplayName !== null) {
5782
+ if (input.DisplayName != null) {
5783
5783
  const node = new xml_builder_1.XmlNode("NonEmptyMaxLength1024String")
5784
5784
  .addChildNode(new xml_builder_1.XmlText(input.DisplayName))
5785
5785
  .withName("DisplayName");
@@ -5793,13 +5793,13 @@ const serializeAws_restXmlS3ReplicateObjectOperation = (input, context) => {
5793
5793
  };
5794
5794
  const serializeAws_restXmlS3Retention = (input, context) => {
5795
5795
  const bodyNode = new xml_builder_1.XmlNode("S3Retention");
5796
- if (input.RetainUntilDate !== undefined && input.RetainUntilDate !== null) {
5796
+ if (input.RetainUntilDate != null) {
5797
5797
  const node = new xml_builder_1.XmlNode("TimeStamp")
5798
5798
  .addChildNode(new xml_builder_1.XmlText(input.RetainUntilDate.toISOString().split(".")[0] + "Z"))
5799
5799
  .withName("RetainUntilDate");
5800
5800
  bodyNode.addChildNode(node);
5801
5801
  }
5802
- if (input.Mode !== undefined && input.Mode !== null) {
5802
+ if (input.Mode != null) {
5803
5803
  const node = new xml_builder_1.XmlNode("S3ObjectLockRetentionMode").addChildNode(new xml_builder_1.XmlText(input.Mode)).withName("Mode");
5804
5804
  bodyNode.addChildNode(node);
5805
5805
  }
@@ -5807,7 +5807,7 @@ const serializeAws_restXmlS3Retention = (input, context) => {
5807
5807
  };
5808
5808
  const serializeAws_restXmlS3SetObjectAclOperation = (input, context) => {
5809
5809
  const bodyNode = new xml_builder_1.XmlNode("S3SetObjectAclOperation");
5810
- if (input.AccessControlPolicy !== undefined && input.AccessControlPolicy !== null) {
5810
+ if (input.AccessControlPolicy != null) {
5811
5811
  const node = serializeAws_restXmlS3AccessControlPolicy(input.AccessControlPolicy, context).withName("AccessControlPolicy");
5812
5812
  bodyNode.addChildNode(node);
5813
5813
  }
@@ -5815,7 +5815,7 @@ const serializeAws_restXmlS3SetObjectAclOperation = (input, context) => {
5815
5815
  };
5816
5816
  const serializeAws_restXmlS3SetObjectLegalHoldOperation = (input, context) => {
5817
5817
  const bodyNode = new xml_builder_1.XmlNode("S3SetObjectLegalHoldOperation");
5818
- if (input.LegalHold !== undefined && input.LegalHold !== null) {
5818
+ if (input.LegalHold != null) {
5819
5819
  const node = serializeAws_restXmlS3ObjectLockLegalHold(input.LegalHold, context).withName("LegalHold");
5820
5820
  bodyNode.addChildNode(node);
5821
5821
  }
@@ -5823,13 +5823,13 @@ const serializeAws_restXmlS3SetObjectLegalHoldOperation = (input, context) => {
5823
5823
  };
5824
5824
  const serializeAws_restXmlS3SetObjectRetentionOperation = (input, context) => {
5825
5825
  const bodyNode = new xml_builder_1.XmlNode("S3SetObjectRetentionOperation");
5826
- if (input.BypassGovernanceRetention !== undefined && input.BypassGovernanceRetention !== null) {
5826
+ if (input.BypassGovernanceRetention != null) {
5827
5827
  const node = new xml_builder_1.XmlNode("Boolean")
5828
5828
  .addChildNode(new xml_builder_1.XmlText(String(input.BypassGovernanceRetention)))
5829
5829
  .withName("BypassGovernanceRetention");
5830
5830
  bodyNode.addChildNode(node);
5831
5831
  }
5832
- if (input.Retention !== undefined && input.Retention !== null) {
5832
+ if (input.Retention != null) {
5833
5833
  const node = serializeAws_restXmlS3Retention(input.Retention, context).withName("Retention");
5834
5834
  bodyNode.addChildNode(node);
5835
5835
  }
@@ -5837,7 +5837,7 @@ const serializeAws_restXmlS3SetObjectRetentionOperation = (input, context) => {
5837
5837
  };
5838
5838
  const serializeAws_restXmlS3SetObjectTaggingOperation = (input, context) => {
5839
5839
  const bodyNode = new xml_builder_1.XmlNode("S3SetObjectTaggingOperation");
5840
- if (input.TagSet !== undefined && input.TagSet !== null) {
5840
+ if (input.TagSet != null) {
5841
5841
  const nodes = serializeAws_restXmlS3TagSet(input.TagSet, context);
5842
5842
  const containerNode = new xml_builder_1.XmlNode("TagSet");
5843
5843
  nodes.map((node) => {
@@ -5849,11 +5849,11 @@ const serializeAws_restXmlS3SetObjectTaggingOperation = (input, context) => {
5849
5849
  };
5850
5850
  const serializeAws_restXmlS3Tag = (input, context) => {
5851
5851
  const bodyNode = new xml_builder_1.XmlNode("S3Tag");
5852
- if (input.Key !== undefined && input.Key !== null) {
5852
+ if (input.Key != null) {
5853
5853
  const node = new xml_builder_1.XmlNode("TagKeyString").addChildNode(new xml_builder_1.XmlText(input.Key)).withName("Key");
5854
5854
  bodyNode.addChildNode(node);
5855
5855
  }
5856
- if (input.Value !== undefined && input.Value !== null) {
5856
+ if (input.Value != null) {
5857
5857
  const node = new xml_builder_1.XmlNode("TagValueString").addChildNode(new xml_builder_1.XmlText(input.Value)).withName("Value");
5858
5858
  bodyNode.addChildNode(node);
5859
5859
  }
@@ -5885,19 +5885,19 @@ const serializeAws_restXmlS3UserMetadata = (input, context) => {
5885
5885
  };
5886
5886
  const serializeAws_restXmlSelectionCriteria = (input, context) => {
5887
5887
  const bodyNode = new xml_builder_1.XmlNode("SelectionCriteria");
5888
- if (input.Delimiter !== undefined && input.Delimiter !== null) {
5888
+ if (input.Delimiter != null) {
5889
5889
  const node = new xml_builder_1.XmlNode("StorageLensPrefixLevelDelimiter")
5890
5890
  .addChildNode(new xml_builder_1.XmlText(input.Delimiter))
5891
5891
  .withName("Delimiter");
5892
5892
  bodyNode.addChildNode(node);
5893
5893
  }
5894
- if (input.MaxDepth !== undefined && input.MaxDepth !== null) {
5894
+ if (input.MaxDepth != null) {
5895
5895
  const node = new xml_builder_1.XmlNode("StorageLensPrefixLevelMaxDepth")
5896
5896
  .addChildNode(new xml_builder_1.XmlText(String(input.MaxDepth)))
5897
5897
  .withName("MaxDepth");
5898
5898
  bodyNode.addChildNode(node);
5899
5899
  }
5900
- if (input.MinStorageBytesPercentage !== undefined && input.MinStorageBytesPercentage !== null) {
5900
+ if (input.MinStorageBytesPercentage != null) {
5901
5901
  const node = new xml_builder_1.XmlNode("MinStorageBytesPercentage")
5902
5902
  .addChildNode(new xml_builder_1.XmlText(String(input.MinStorageBytesPercentage)))
5903
5903
  .withName("MinStorageBytesPercentage");
@@ -5907,7 +5907,7 @@ const serializeAws_restXmlSelectionCriteria = (input, context) => {
5907
5907
  };
5908
5908
  const serializeAws_restXmlSSEKMS = (input, context) => {
5909
5909
  const bodyNode = new xml_builder_1.XmlNode("SSE-KMS");
5910
- if (input.KeyId !== undefined && input.KeyId !== null) {
5910
+ if (input.KeyId != null) {
5911
5911
  const node = new xml_builder_1.XmlNode("SSEKMSKeyId").addChildNode(new xml_builder_1.XmlText(input.KeyId)).withName("KeyId");
5912
5912
  bodyNode.addChildNode(node);
5913
5913
  }
@@ -5915,7 +5915,7 @@ const serializeAws_restXmlSSEKMS = (input, context) => {
5915
5915
  };
5916
5916
  const serializeAws_restXmlSSEKMSEncryption = (input, context) => {
5917
5917
  const bodyNode = new xml_builder_1.XmlNode("SSE-KMS");
5918
- if (input.KeyId !== undefined && input.KeyId !== null) {
5918
+ if (input.KeyId != null) {
5919
5919
  const node = new xml_builder_1.XmlNode("KmsKeyArnString").addChildNode(new xml_builder_1.XmlText(input.KeyId)).withName("KeyId");
5920
5920
  bodyNode.addChildNode(node);
5921
5921
  }
@@ -5931,7 +5931,7 @@ const serializeAws_restXmlSSES3Encryption = (input, context) => {
5931
5931
  };
5932
5932
  const serializeAws_restXmlStorageLensAwsOrg = (input, context) => {
5933
5933
  const bodyNode = new xml_builder_1.XmlNode("StorageLensAwsOrg");
5934
- if (input.Arn !== undefined && input.Arn !== null) {
5934
+ if (input.Arn != null) {
5935
5935
  const node = new xml_builder_1.XmlNode("AwsOrgArn").addChildNode(new xml_builder_1.XmlText(input.Arn)).withName("Arn");
5936
5936
  bodyNode.addChildNode(node);
5937
5937
  }
@@ -5939,35 +5939,35 @@ const serializeAws_restXmlStorageLensAwsOrg = (input, context) => {
5939
5939
  };
5940
5940
  const serializeAws_restXmlStorageLensConfiguration = (input, context) => {
5941
5941
  const bodyNode = new xml_builder_1.XmlNode("StorageLensConfiguration");
5942
- if (input.Id !== undefined && input.Id !== null) {
5942
+ if (input.Id != null) {
5943
5943
  const node = new xml_builder_1.XmlNode("ConfigId").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
5944
5944
  bodyNode.addChildNode(node);
5945
5945
  }
5946
- if (input.AccountLevel !== undefined && input.AccountLevel !== null) {
5946
+ if (input.AccountLevel != null) {
5947
5947
  const node = serializeAws_restXmlAccountLevel(input.AccountLevel, context).withName("AccountLevel");
5948
5948
  bodyNode.addChildNode(node);
5949
5949
  }
5950
- if (input.Include !== undefined && input.Include !== null) {
5950
+ if (input.Include != null) {
5951
5951
  const node = serializeAws_restXmlInclude(input.Include, context).withName("Include");
5952
5952
  bodyNode.addChildNode(node);
5953
5953
  }
5954
- if (input.Exclude !== undefined && input.Exclude !== null) {
5954
+ if (input.Exclude != null) {
5955
5955
  const node = serializeAws_restXml_Exclude(input.Exclude, context).withName("Exclude");
5956
5956
  bodyNode.addChildNode(node);
5957
5957
  }
5958
- if (input.DataExport !== undefined && input.DataExport !== null) {
5958
+ if (input.DataExport != null) {
5959
5959
  const node = serializeAws_restXmlStorageLensDataExport(input.DataExport, context).withName("DataExport");
5960
5960
  bodyNode.addChildNode(node);
5961
5961
  }
5962
- if (input.IsEnabled !== undefined && input.IsEnabled !== null) {
5962
+ if (input.IsEnabled != null) {
5963
5963
  const node = new xml_builder_1.XmlNode("IsEnabled").addChildNode(new xml_builder_1.XmlText(String(input.IsEnabled))).withName("IsEnabled");
5964
5964
  bodyNode.addChildNode(node);
5965
5965
  }
5966
- if (input.AwsOrg !== undefined && input.AwsOrg !== null) {
5966
+ if (input.AwsOrg != null) {
5967
5967
  const node = serializeAws_restXmlStorageLensAwsOrg(input.AwsOrg, context).withName("AwsOrg");
5968
5968
  bodyNode.addChildNode(node);
5969
5969
  }
5970
- if (input.StorageLensArn !== undefined && input.StorageLensArn !== null) {
5970
+ if (input.StorageLensArn != null) {
5971
5971
  const node = new xml_builder_1.XmlNode("StorageLensArn")
5972
5972
  .addChildNode(new xml_builder_1.XmlText(input.StorageLensArn))
5973
5973
  .withName("StorageLensArn");
@@ -5977,11 +5977,11 @@ const serializeAws_restXmlStorageLensConfiguration = (input, context) => {
5977
5977
  };
5978
5978
  const serializeAws_restXmlStorageLensDataExport = (input, context) => {
5979
5979
  const bodyNode = new xml_builder_1.XmlNode("StorageLensDataExport");
5980
- if (input.S3BucketDestination !== undefined && input.S3BucketDestination !== null) {
5980
+ if (input.S3BucketDestination != null) {
5981
5981
  const node = serializeAws_restXmlS3BucketDestination(input.S3BucketDestination, context).withName("S3BucketDestination");
5982
5982
  bodyNode.addChildNode(node);
5983
5983
  }
5984
- if (input.CloudWatchMetrics !== undefined && input.CloudWatchMetrics !== null) {
5984
+ if (input.CloudWatchMetrics != null) {
5985
5985
  const node = serializeAws_restXmlCloudWatchMetrics(input.CloudWatchMetrics, context).withName("CloudWatchMetrics");
5986
5986
  bodyNode.addChildNode(node);
5987
5987
  }
@@ -5989,11 +5989,11 @@ const serializeAws_restXmlStorageLensDataExport = (input, context) => {
5989
5989
  };
5990
5990
  const serializeAws_restXmlStorageLensDataExportEncryption = (input, context) => {
5991
5991
  const bodyNode = new xml_builder_1.XmlNode("StorageLensDataExportEncryption");
5992
- if (input.SSES3 !== undefined && input.SSES3 !== null) {
5992
+ if (input.SSES3 != null) {
5993
5993
  const node = serializeAws_restXmlSSES3(input.SSES3, context).withName("SSE-S3");
5994
5994
  bodyNode.addChildNode(node);
5995
5995
  }
5996
- if (input.SSEKMS !== undefined && input.SSEKMS !== null) {
5996
+ if (input.SSEKMS != null) {
5997
5997
  const node = serializeAws_restXmlSSEKMS(input.SSEKMS, context).withName("SSE-KMS");
5998
5998
  bodyNode.addChildNode(node);
5999
5999
  }
@@ -6001,11 +6001,11 @@ const serializeAws_restXmlStorageLensDataExportEncryption = (input, context) =>
6001
6001
  };
6002
6002
  const serializeAws_restXmlStorageLensTag = (input, context) => {
6003
6003
  const bodyNode = new xml_builder_1.XmlNode("StorageLensTag");
6004
- if (input.Key !== undefined && input.Key !== null) {
6004
+ if (input.Key != null) {
6005
6005
  const node = new xml_builder_1.XmlNode("TagKeyString").addChildNode(new xml_builder_1.XmlText(input.Key)).withName("Key");
6006
6006
  bodyNode.addChildNode(node);
6007
6007
  }
6008
- if (input.Value !== undefined && input.Value !== null) {
6008
+ if (input.Value != null) {
6009
6009
  const node = new xml_builder_1.XmlNode("TagValueString").addChildNode(new xml_builder_1.XmlText(input.Value)).withName("Value");
6010
6010
  bodyNode.addChildNode(node);
6011
6011
  }
@@ -6024,7 +6024,7 @@ const serializeAws_restXmlStorageLensTags = (input, context) => {
6024
6024
  };
6025
6025
  const serializeAws_restXmlTagging = (input, context) => {
6026
6026
  const bodyNode = new xml_builder_1.XmlNode("Tagging");
6027
- if (input.TagSet !== undefined && input.TagSet !== null) {
6027
+ if (input.TagSet != null) {
6028
6028
  const nodes = serializeAws_restXmlS3TagSet(input.TagSet, context);
6029
6029
  const containerNode = new xml_builder_1.XmlNode("TagSet");
6030
6030
  nodes.map((node) => {
@@ -6036,17 +6036,17 @@ const serializeAws_restXmlTagging = (input, context) => {
6036
6036
  };
6037
6037
  const serializeAws_restXmlTransition = (input, context) => {
6038
6038
  const bodyNode = new xml_builder_1.XmlNode("Transition");
6039
- if (input.Date !== undefined && input.Date !== null) {
6039
+ if (input.Date != null) {
6040
6040
  const node = new xml_builder_1.XmlNode("Date")
6041
6041
  .addChildNode(new xml_builder_1.XmlText(input.Date.toISOString().split(".")[0] + "Z"))
6042
6042
  .withName("Date");
6043
6043
  bodyNode.addChildNode(node);
6044
6044
  }
6045
- if (input.Days !== undefined && input.Days !== null) {
6045
+ if (input.Days != null) {
6046
6046
  const node = new xml_builder_1.XmlNode("Days").addChildNode(new xml_builder_1.XmlText(String(input.Days))).withName("Days");
6047
6047
  bodyNode.addChildNode(node);
6048
6048
  }
6049
- if (input.StorageClass !== undefined && input.StorageClass !== null) {
6049
+ if (input.StorageClass != null) {
6050
6050
  const node = new xml_builder_1.XmlNode("TransitionStorageClass")
6051
6051
  .addChildNode(new xml_builder_1.XmlText(input.StorageClass))
6052
6052
  .withName("StorageClass");
@@ -6067,7 +6067,7 @@ const serializeAws_restXmlTransitionList = (input, context) => {
6067
6067
  };
6068
6068
  const serializeAws_restXmlVpcConfiguration = (input, context) => {
6069
6069
  const bodyNode = new xml_builder_1.XmlNode("VpcConfiguration");
6070
- if (input.VpcId !== undefined && input.VpcId !== null) {
6070
+ if (input.VpcId != null) {
6071
6071
  const node = new xml_builder_1.XmlNode("VpcId").addChildNode(new xml_builder_1.XmlText(input.VpcId)).withName("VpcId");
6072
6072
  bodyNode.addChildNode(node);
6073
6073
  }