@aws-sdk/client-s3 3.121.0 → 3.129.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.
@@ -8729,7 +8729,7 @@ const deserializeAws_restXmlObjectNotInActiveTierErrorResponse = async (parsedOu
8729
8729
  };
8730
8730
  const serializeAws_restXmlAbortIncompleteMultipartUpload = (input, context) => {
8731
8731
  const bodyNode = new xml_builder_1.XmlNode("AbortIncompleteMultipartUpload");
8732
- if (input.DaysAfterInitiation !== undefined && input.DaysAfterInitiation !== null) {
8732
+ if (input.DaysAfterInitiation != null) {
8733
8733
  const node = new xml_builder_1.XmlNode("DaysAfterInitiation")
8734
8734
  .addChildNode(new xml_builder_1.XmlText(String(input.DaysAfterInitiation)))
8735
8735
  .withName("DaysAfterInitiation");
@@ -8739,7 +8739,7 @@ const serializeAws_restXmlAbortIncompleteMultipartUpload = (input, context) => {
8739
8739
  };
8740
8740
  const serializeAws_restXmlAccelerateConfiguration = (input, context) => {
8741
8741
  const bodyNode = new xml_builder_1.XmlNode("AccelerateConfiguration");
8742
- if (input.Status !== undefined && input.Status !== null) {
8742
+ if (input.Status != null) {
8743
8743
  const node = new xml_builder_1.XmlNode("BucketAccelerateStatus").addChildNode(new xml_builder_1.XmlText(input.Status)).withName("Status");
8744
8744
  bodyNode.addChildNode(node);
8745
8745
  }
@@ -8747,7 +8747,7 @@ const serializeAws_restXmlAccelerateConfiguration = (input, context) => {
8747
8747
  };
8748
8748
  const serializeAws_restXmlAccessControlPolicy = (input, context) => {
8749
8749
  const bodyNode = new xml_builder_1.XmlNode("AccessControlPolicy");
8750
- if (input.Grants !== undefined && input.Grants !== null) {
8750
+ if (input.Grants != null) {
8751
8751
  const nodes = serializeAws_restXmlGrants(input.Grants, context);
8752
8752
  const containerNode = new xml_builder_1.XmlNode("AccessControlList");
8753
8753
  nodes.map((node) => {
@@ -8755,7 +8755,7 @@ const serializeAws_restXmlAccessControlPolicy = (input, context) => {
8755
8755
  });
8756
8756
  bodyNode.addChildNode(containerNode);
8757
8757
  }
8758
- if (input.Owner !== undefined && input.Owner !== null) {
8758
+ if (input.Owner != null) {
8759
8759
  const node = serializeAws_restXmlOwner(input.Owner, context).withName("Owner");
8760
8760
  bodyNode.addChildNode(node);
8761
8761
  }
@@ -8763,7 +8763,7 @@ const serializeAws_restXmlAccessControlPolicy = (input, context) => {
8763
8763
  };
8764
8764
  const serializeAws_restXmlAccessControlTranslation = (input, context) => {
8765
8765
  const bodyNode = new xml_builder_1.XmlNode("AccessControlTranslation");
8766
- if (input.Owner !== undefined && input.Owner !== null) {
8766
+ if (input.Owner != null) {
8767
8767
  const node = new xml_builder_1.XmlNode("OwnerOverride").addChildNode(new xml_builder_1.XmlText(input.Owner)).withName("Owner");
8768
8768
  bodyNode.addChildNode(node);
8769
8769
  }
@@ -8804,11 +8804,11 @@ const serializeAws_restXmlAllowedOrigins = (input, context) => {
8804
8804
  };
8805
8805
  const serializeAws_restXmlAnalyticsAndOperator = (input, context) => {
8806
8806
  const bodyNode = new xml_builder_1.XmlNode("AnalyticsAndOperator");
8807
- if (input.Prefix !== undefined && input.Prefix !== null) {
8807
+ if (input.Prefix != null) {
8808
8808
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
8809
8809
  bodyNode.addChildNode(node);
8810
8810
  }
8811
- if (input.Tags !== undefined && input.Tags !== null) {
8811
+ if (input.Tags != null) {
8812
8812
  const nodes = serializeAws_restXmlTagSet(input.Tags, context);
8813
8813
  nodes.map((node) => {
8814
8814
  node = node.withName("Tag");
@@ -8819,15 +8819,15 @@ const serializeAws_restXmlAnalyticsAndOperator = (input, context) => {
8819
8819
  };
8820
8820
  const serializeAws_restXmlAnalyticsConfiguration = (input, context) => {
8821
8821
  const bodyNode = new xml_builder_1.XmlNode("AnalyticsConfiguration");
8822
- if (input.Id !== undefined && input.Id !== null) {
8822
+ if (input.Id != null) {
8823
8823
  const node = new xml_builder_1.XmlNode("AnalyticsId").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
8824
8824
  bodyNode.addChildNode(node);
8825
8825
  }
8826
- if (input.Filter !== undefined && input.Filter !== null) {
8826
+ if (input.Filter != null) {
8827
8827
  const node = serializeAws_restXmlAnalyticsFilter(input.Filter, context).withName("Filter");
8828
8828
  bodyNode.addChildNode(node);
8829
8829
  }
8830
- if (input.StorageClassAnalysis !== undefined && input.StorageClassAnalysis !== null) {
8830
+ if (input.StorageClassAnalysis != null) {
8831
8831
  const node = serializeAws_restXmlStorageClassAnalysis(input.StorageClassAnalysis, context).withName("StorageClassAnalysis");
8832
8832
  bodyNode.addChildNode(node);
8833
8833
  }
@@ -8835,7 +8835,7 @@ const serializeAws_restXmlAnalyticsConfiguration = (input, context) => {
8835
8835
  };
8836
8836
  const serializeAws_restXmlAnalyticsExportDestination = (input, context) => {
8837
8837
  const bodyNode = new xml_builder_1.XmlNode("AnalyticsExportDestination");
8838
- if (input.S3BucketDestination !== undefined && input.S3BucketDestination !== null) {
8838
+ if (input.S3BucketDestination != null) {
8839
8839
  const node = serializeAws_restXmlAnalyticsS3BucketDestination(input.S3BucketDestination, context).withName("S3BucketDestination");
8840
8840
  bodyNode.addChildNode(node);
8841
8841
  }
@@ -8867,23 +8867,23 @@ const serializeAws_restXmlAnalyticsFilter = (input, context) => {
8867
8867
  };
8868
8868
  const serializeAws_restXmlAnalyticsS3BucketDestination = (input, context) => {
8869
8869
  const bodyNode = new xml_builder_1.XmlNode("AnalyticsS3BucketDestination");
8870
- if (input.Format !== undefined && input.Format !== null) {
8870
+ if (input.Format != null) {
8871
8871
  const node = new xml_builder_1.XmlNode("AnalyticsS3ExportFileFormat")
8872
8872
  .addChildNode(new xml_builder_1.XmlText(input.Format))
8873
8873
  .withName("Format");
8874
8874
  bodyNode.addChildNode(node);
8875
8875
  }
8876
- if (input.BucketAccountId !== undefined && input.BucketAccountId !== null) {
8876
+ if (input.BucketAccountId != null) {
8877
8877
  const node = new xml_builder_1.XmlNode("AccountId")
8878
8878
  .addChildNode(new xml_builder_1.XmlText(input.BucketAccountId))
8879
8879
  .withName("BucketAccountId");
8880
8880
  bodyNode.addChildNode(node);
8881
8881
  }
8882
- if (input.Bucket !== undefined && input.Bucket !== null) {
8882
+ if (input.Bucket != null) {
8883
8883
  const node = new xml_builder_1.XmlNode("BucketName").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
8884
8884
  bodyNode.addChildNode(node);
8885
8885
  }
8886
- if (input.Prefix !== undefined && input.Prefix !== null) {
8886
+ if (input.Prefix != null) {
8887
8887
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
8888
8888
  bodyNode.addChildNode(node);
8889
8889
  }
@@ -8891,7 +8891,7 @@ const serializeAws_restXmlAnalyticsS3BucketDestination = (input, context) => {
8891
8891
  };
8892
8892
  const serializeAws_restXmlBucketLifecycleConfiguration = (input, context) => {
8893
8893
  const bodyNode = new xml_builder_1.XmlNode("BucketLifecycleConfiguration");
8894
- if (input.Rules !== undefined && input.Rules !== null) {
8894
+ if (input.Rules != null) {
8895
8895
  const nodes = serializeAws_restXmlLifecycleRules(input.Rules, context);
8896
8896
  nodes.map((node) => {
8897
8897
  node = node.withName("Rule");
@@ -8902,7 +8902,7 @@ const serializeAws_restXmlBucketLifecycleConfiguration = (input, context) => {
8902
8902
  };
8903
8903
  const serializeAws_restXmlBucketLoggingStatus = (input, context) => {
8904
8904
  const bodyNode = new xml_builder_1.XmlNode("BucketLoggingStatus");
8905
- if (input.LoggingEnabled !== undefined && input.LoggingEnabled !== null) {
8905
+ if (input.LoggingEnabled != null) {
8906
8906
  const node = serializeAws_restXmlLoggingEnabled(input.LoggingEnabled, context).withName("LoggingEnabled");
8907
8907
  bodyNode.addChildNode(node);
8908
8908
  }
@@ -8910,7 +8910,7 @@ const serializeAws_restXmlBucketLoggingStatus = (input, context) => {
8910
8910
  };
8911
8911
  const serializeAws_restXmlCompletedMultipartUpload = (input, context) => {
8912
8912
  const bodyNode = new xml_builder_1.XmlNode("CompletedMultipartUpload");
8913
- if (input.Parts !== undefined && input.Parts !== null) {
8913
+ if (input.Parts != null) {
8914
8914
  const nodes = serializeAws_restXmlCompletedPartList(input.Parts, context);
8915
8915
  nodes.map((node) => {
8916
8916
  node = node.withName("Part");
@@ -8921,33 +8921,33 @@ const serializeAws_restXmlCompletedMultipartUpload = (input, context) => {
8921
8921
  };
8922
8922
  const serializeAws_restXmlCompletedPart = (input, context) => {
8923
8923
  const bodyNode = new xml_builder_1.XmlNode("CompletedPart");
8924
- if (input.ETag !== undefined && input.ETag !== null) {
8924
+ if (input.ETag != null) {
8925
8925
  const node = new xml_builder_1.XmlNode("ETag").addChildNode(new xml_builder_1.XmlText(input.ETag)).withName("ETag");
8926
8926
  bodyNode.addChildNode(node);
8927
8927
  }
8928
- if (input.ChecksumCRC32 !== undefined && input.ChecksumCRC32 !== null) {
8928
+ if (input.ChecksumCRC32 != null) {
8929
8929
  const node = new xml_builder_1.XmlNode("ChecksumCRC32")
8930
8930
  .addChildNode(new xml_builder_1.XmlText(input.ChecksumCRC32))
8931
8931
  .withName("ChecksumCRC32");
8932
8932
  bodyNode.addChildNode(node);
8933
8933
  }
8934
- if (input.ChecksumCRC32C !== undefined && input.ChecksumCRC32C !== null) {
8934
+ if (input.ChecksumCRC32C != null) {
8935
8935
  const node = new xml_builder_1.XmlNode("ChecksumCRC32C")
8936
8936
  .addChildNode(new xml_builder_1.XmlText(input.ChecksumCRC32C))
8937
8937
  .withName("ChecksumCRC32C");
8938
8938
  bodyNode.addChildNode(node);
8939
8939
  }
8940
- if (input.ChecksumSHA1 !== undefined && input.ChecksumSHA1 !== null) {
8940
+ if (input.ChecksumSHA1 != null) {
8941
8941
  const node = new xml_builder_1.XmlNode("ChecksumSHA1").addChildNode(new xml_builder_1.XmlText(input.ChecksumSHA1)).withName("ChecksumSHA1");
8942
8942
  bodyNode.addChildNode(node);
8943
8943
  }
8944
- if (input.ChecksumSHA256 !== undefined && input.ChecksumSHA256 !== null) {
8944
+ if (input.ChecksumSHA256 != null) {
8945
8945
  const node = new xml_builder_1.XmlNode("ChecksumSHA256")
8946
8946
  .addChildNode(new xml_builder_1.XmlText(input.ChecksumSHA256))
8947
8947
  .withName("ChecksumSHA256");
8948
8948
  bodyNode.addChildNode(node);
8949
8949
  }
8950
- if (input.PartNumber !== undefined && input.PartNumber !== null) {
8950
+ if (input.PartNumber != null) {
8951
8951
  const node = new xml_builder_1.XmlNode("PartNumber")
8952
8952
  .addChildNode(new xml_builder_1.XmlText(String(input.PartNumber)))
8953
8953
  .withName("PartNumber");
@@ -8968,13 +8968,13 @@ const serializeAws_restXmlCompletedPartList = (input, context) => {
8968
8968
  };
8969
8969
  const serializeAws_restXmlCondition = (input, context) => {
8970
8970
  const bodyNode = new xml_builder_1.XmlNode("Condition");
8971
- if (input.HttpErrorCodeReturnedEquals !== undefined && input.HttpErrorCodeReturnedEquals !== null) {
8971
+ if (input.HttpErrorCodeReturnedEquals != null) {
8972
8972
  const node = new xml_builder_1.XmlNode("HttpErrorCodeReturnedEquals")
8973
8973
  .addChildNode(new xml_builder_1.XmlText(input.HttpErrorCodeReturnedEquals))
8974
8974
  .withName("HttpErrorCodeReturnedEquals");
8975
8975
  bodyNode.addChildNode(node);
8976
8976
  }
8977
- if (input.KeyPrefixEquals !== undefined && input.KeyPrefixEquals !== null) {
8977
+ if (input.KeyPrefixEquals != null) {
8978
8978
  const node = new xml_builder_1.XmlNode("KeyPrefixEquals")
8979
8979
  .addChildNode(new xml_builder_1.XmlText(input.KeyPrefixEquals))
8980
8980
  .withName("KeyPrefixEquals");
@@ -8984,7 +8984,7 @@ const serializeAws_restXmlCondition = (input, context) => {
8984
8984
  };
8985
8985
  const serializeAws_restXmlCORSConfiguration = (input, context) => {
8986
8986
  const bodyNode = new xml_builder_1.XmlNode("CORSConfiguration");
8987
- if (input.CORSRules !== undefined && input.CORSRules !== null) {
8987
+ if (input.CORSRules != null) {
8988
8988
  const nodes = serializeAws_restXmlCORSRules(input.CORSRules, context);
8989
8989
  nodes.map((node) => {
8990
8990
  node = node.withName("CORSRule");
@@ -8995,39 +8995,39 @@ const serializeAws_restXmlCORSConfiguration = (input, context) => {
8995
8995
  };
8996
8996
  const serializeAws_restXmlCORSRule = (input, context) => {
8997
8997
  const bodyNode = new xml_builder_1.XmlNode("CORSRule");
8998
- if (input.ID !== undefined && input.ID !== null) {
8998
+ if (input.ID != null) {
8999
8999
  const node = new xml_builder_1.XmlNode("ID").addChildNode(new xml_builder_1.XmlText(input.ID)).withName("ID");
9000
9000
  bodyNode.addChildNode(node);
9001
9001
  }
9002
- if (input.AllowedHeaders !== undefined && input.AllowedHeaders !== null) {
9002
+ if (input.AllowedHeaders != null) {
9003
9003
  const nodes = serializeAws_restXmlAllowedHeaders(input.AllowedHeaders, context);
9004
9004
  nodes.map((node) => {
9005
9005
  node = node.withName("AllowedHeader");
9006
9006
  bodyNode.addChildNode(node);
9007
9007
  });
9008
9008
  }
9009
- if (input.AllowedMethods !== undefined && input.AllowedMethods !== null) {
9009
+ if (input.AllowedMethods != null) {
9010
9010
  const nodes = serializeAws_restXmlAllowedMethods(input.AllowedMethods, context);
9011
9011
  nodes.map((node) => {
9012
9012
  node = node.withName("AllowedMethod");
9013
9013
  bodyNode.addChildNode(node);
9014
9014
  });
9015
9015
  }
9016
- if (input.AllowedOrigins !== undefined && input.AllowedOrigins !== null) {
9016
+ if (input.AllowedOrigins != null) {
9017
9017
  const nodes = serializeAws_restXmlAllowedOrigins(input.AllowedOrigins, context);
9018
9018
  nodes.map((node) => {
9019
9019
  node = node.withName("AllowedOrigin");
9020
9020
  bodyNode.addChildNode(node);
9021
9021
  });
9022
9022
  }
9023
- if (input.ExposeHeaders !== undefined && input.ExposeHeaders !== null) {
9023
+ if (input.ExposeHeaders != null) {
9024
9024
  const nodes = serializeAws_restXmlExposeHeaders(input.ExposeHeaders, context);
9025
9025
  nodes.map((node) => {
9026
9026
  node = node.withName("ExposeHeader");
9027
9027
  bodyNode.addChildNode(node);
9028
9028
  });
9029
9029
  }
9030
- if (input.MaxAgeSeconds !== undefined && input.MaxAgeSeconds !== null) {
9030
+ if (input.MaxAgeSeconds != null) {
9031
9031
  const node = new xml_builder_1.XmlNode("MaxAgeSeconds")
9032
9032
  .addChildNode(new xml_builder_1.XmlText(String(input.MaxAgeSeconds)))
9033
9033
  .withName("MaxAgeSeconds");
@@ -9048,7 +9048,7 @@ const serializeAws_restXmlCORSRules = (input, context) => {
9048
9048
  };
9049
9049
  const serializeAws_restXmlCreateBucketConfiguration = (input, context) => {
9050
9050
  const bodyNode = new xml_builder_1.XmlNode("CreateBucketConfiguration");
9051
- if (input.LocationConstraint !== undefined && input.LocationConstraint !== null) {
9051
+ if (input.LocationConstraint != null) {
9052
9052
  const node = new xml_builder_1.XmlNode("BucketLocationConstraint")
9053
9053
  .addChildNode(new xml_builder_1.XmlText(input.LocationConstraint))
9054
9054
  .withName("LocationConstraint");
@@ -9058,41 +9058,41 @@ const serializeAws_restXmlCreateBucketConfiguration = (input, context) => {
9058
9058
  };
9059
9059
  const serializeAws_restXmlCSVInput = (input, context) => {
9060
9060
  const bodyNode = new xml_builder_1.XmlNode("CSVInput");
9061
- if (input.FileHeaderInfo !== undefined && input.FileHeaderInfo !== null) {
9061
+ if (input.FileHeaderInfo != null) {
9062
9062
  const node = new xml_builder_1.XmlNode("FileHeaderInfo")
9063
9063
  .addChildNode(new xml_builder_1.XmlText(input.FileHeaderInfo))
9064
9064
  .withName("FileHeaderInfo");
9065
9065
  bodyNode.addChildNode(node);
9066
9066
  }
9067
- if (input.Comments !== undefined && input.Comments !== null) {
9067
+ if (input.Comments != null) {
9068
9068
  const node = new xml_builder_1.XmlNode("Comments").addChildNode(new xml_builder_1.XmlText(input.Comments)).withName("Comments");
9069
9069
  bodyNode.addChildNode(node);
9070
9070
  }
9071
- if (input.QuoteEscapeCharacter !== undefined && input.QuoteEscapeCharacter !== null) {
9071
+ if (input.QuoteEscapeCharacter != null) {
9072
9072
  const node = new xml_builder_1.XmlNode("QuoteEscapeCharacter")
9073
9073
  .addChildNode(new xml_builder_1.XmlText(input.QuoteEscapeCharacter))
9074
9074
  .withName("QuoteEscapeCharacter");
9075
9075
  bodyNode.addChildNode(node);
9076
9076
  }
9077
- if (input.RecordDelimiter !== undefined && input.RecordDelimiter !== null) {
9077
+ if (input.RecordDelimiter != null) {
9078
9078
  const node = new xml_builder_1.XmlNode("RecordDelimiter")
9079
9079
  .addChildNode(new xml_builder_1.XmlText(input.RecordDelimiter))
9080
9080
  .withName("RecordDelimiter");
9081
9081
  bodyNode.addChildNode(node);
9082
9082
  }
9083
- if (input.FieldDelimiter !== undefined && input.FieldDelimiter !== null) {
9083
+ if (input.FieldDelimiter != null) {
9084
9084
  const node = new xml_builder_1.XmlNode("FieldDelimiter")
9085
9085
  .addChildNode(new xml_builder_1.XmlText(input.FieldDelimiter))
9086
9086
  .withName("FieldDelimiter");
9087
9087
  bodyNode.addChildNode(node);
9088
9088
  }
9089
- if (input.QuoteCharacter !== undefined && input.QuoteCharacter !== null) {
9089
+ if (input.QuoteCharacter != null) {
9090
9090
  const node = new xml_builder_1.XmlNode("QuoteCharacter")
9091
9091
  .addChildNode(new xml_builder_1.XmlText(input.QuoteCharacter))
9092
9092
  .withName("QuoteCharacter");
9093
9093
  bodyNode.addChildNode(node);
9094
9094
  }
9095
- if (input.AllowQuotedRecordDelimiter !== undefined && input.AllowQuotedRecordDelimiter !== null) {
9095
+ if (input.AllowQuotedRecordDelimiter != null) {
9096
9096
  const node = new xml_builder_1.XmlNode("AllowQuotedRecordDelimiter")
9097
9097
  .addChildNode(new xml_builder_1.XmlText(String(input.AllowQuotedRecordDelimiter)))
9098
9098
  .withName("AllowQuotedRecordDelimiter");
@@ -9102,29 +9102,29 @@ const serializeAws_restXmlCSVInput = (input, context) => {
9102
9102
  };
9103
9103
  const serializeAws_restXmlCSVOutput = (input, context) => {
9104
9104
  const bodyNode = new xml_builder_1.XmlNode("CSVOutput");
9105
- if (input.QuoteFields !== undefined && input.QuoteFields !== null) {
9105
+ if (input.QuoteFields != null) {
9106
9106
  const node = new xml_builder_1.XmlNode("QuoteFields").addChildNode(new xml_builder_1.XmlText(input.QuoteFields)).withName("QuoteFields");
9107
9107
  bodyNode.addChildNode(node);
9108
9108
  }
9109
- if (input.QuoteEscapeCharacter !== undefined && input.QuoteEscapeCharacter !== null) {
9109
+ if (input.QuoteEscapeCharacter != null) {
9110
9110
  const node = new xml_builder_1.XmlNode("QuoteEscapeCharacter")
9111
9111
  .addChildNode(new xml_builder_1.XmlText(input.QuoteEscapeCharacter))
9112
9112
  .withName("QuoteEscapeCharacter");
9113
9113
  bodyNode.addChildNode(node);
9114
9114
  }
9115
- if (input.RecordDelimiter !== undefined && input.RecordDelimiter !== null) {
9115
+ if (input.RecordDelimiter != null) {
9116
9116
  const node = new xml_builder_1.XmlNode("RecordDelimiter")
9117
9117
  .addChildNode(new xml_builder_1.XmlText(input.RecordDelimiter))
9118
9118
  .withName("RecordDelimiter");
9119
9119
  bodyNode.addChildNode(node);
9120
9120
  }
9121
- if (input.FieldDelimiter !== undefined && input.FieldDelimiter !== null) {
9121
+ if (input.FieldDelimiter != null) {
9122
9122
  const node = new xml_builder_1.XmlNode("FieldDelimiter")
9123
9123
  .addChildNode(new xml_builder_1.XmlText(input.FieldDelimiter))
9124
9124
  .withName("FieldDelimiter");
9125
9125
  bodyNode.addChildNode(node);
9126
9126
  }
9127
- if (input.QuoteCharacter !== undefined && input.QuoteCharacter !== null) {
9127
+ if (input.QuoteCharacter != null) {
9128
9128
  const node = new xml_builder_1.XmlNode("QuoteCharacter")
9129
9129
  .addChildNode(new xml_builder_1.XmlText(input.QuoteCharacter))
9130
9130
  .withName("QuoteCharacter");
@@ -9134,15 +9134,15 @@ const serializeAws_restXmlCSVOutput = (input, context) => {
9134
9134
  };
9135
9135
  const serializeAws_restXmlDefaultRetention = (input, context) => {
9136
9136
  const bodyNode = new xml_builder_1.XmlNode("DefaultRetention");
9137
- if (input.Mode !== undefined && input.Mode !== null) {
9137
+ if (input.Mode != null) {
9138
9138
  const node = new xml_builder_1.XmlNode("ObjectLockRetentionMode").addChildNode(new xml_builder_1.XmlText(input.Mode)).withName("Mode");
9139
9139
  bodyNode.addChildNode(node);
9140
9140
  }
9141
- if (input.Days !== undefined && input.Days !== null) {
9141
+ if (input.Days != null) {
9142
9142
  const node = new xml_builder_1.XmlNode("Days").addChildNode(new xml_builder_1.XmlText(String(input.Days))).withName("Days");
9143
9143
  bodyNode.addChildNode(node);
9144
9144
  }
9145
- if (input.Years !== undefined && input.Years !== null) {
9145
+ if (input.Years != null) {
9146
9146
  const node = new xml_builder_1.XmlNode("Years").addChildNode(new xml_builder_1.XmlText(String(input.Years))).withName("Years");
9147
9147
  bodyNode.addChildNode(node);
9148
9148
  }
@@ -9150,14 +9150,14 @@ const serializeAws_restXmlDefaultRetention = (input, context) => {
9150
9150
  };
9151
9151
  const serializeAws_restXmlDelete = (input, context) => {
9152
9152
  const bodyNode = new xml_builder_1.XmlNode("Delete");
9153
- if (input.Objects !== undefined && input.Objects !== null) {
9153
+ if (input.Objects != null) {
9154
9154
  const nodes = serializeAws_restXmlObjectIdentifierList(input.Objects, context);
9155
9155
  nodes.map((node) => {
9156
9156
  node = node.withName("Object");
9157
9157
  bodyNode.addChildNode(node);
9158
9158
  });
9159
9159
  }
9160
- if (input.Quiet !== undefined && input.Quiet !== null) {
9160
+ if (input.Quiet != null) {
9161
9161
  const node = new xml_builder_1.XmlNode("Quiet").addChildNode(new xml_builder_1.XmlText(String(input.Quiet))).withName("Quiet");
9162
9162
  bodyNode.addChildNode(node);
9163
9163
  }
@@ -9165,7 +9165,7 @@ const serializeAws_restXmlDelete = (input, context) => {
9165
9165
  };
9166
9166
  const serializeAws_restXmlDeleteMarkerReplication = (input, context) => {
9167
9167
  const bodyNode = new xml_builder_1.XmlNode("DeleteMarkerReplication");
9168
- if (input.Status !== undefined && input.Status !== null) {
9168
+ if (input.Status != null) {
9169
9169
  const node = new xml_builder_1.XmlNode("DeleteMarkerReplicationStatus")
9170
9170
  .addChildNode(new xml_builder_1.XmlText(input.Status))
9171
9171
  .withName("Status");
@@ -9175,31 +9175,31 @@ const serializeAws_restXmlDeleteMarkerReplication = (input, context) => {
9175
9175
  };
9176
9176
  const serializeAws_restXmlDestination = (input, context) => {
9177
9177
  const bodyNode = new xml_builder_1.XmlNode("Destination");
9178
- if (input.Bucket !== undefined && input.Bucket !== null) {
9178
+ if (input.Bucket != null) {
9179
9179
  const node = new xml_builder_1.XmlNode("BucketName").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
9180
9180
  bodyNode.addChildNode(node);
9181
9181
  }
9182
- if (input.Account !== undefined && input.Account !== null) {
9182
+ if (input.Account != null) {
9183
9183
  const node = new xml_builder_1.XmlNode("AccountId").addChildNode(new xml_builder_1.XmlText(input.Account)).withName("Account");
9184
9184
  bodyNode.addChildNode(node);
9185
9185
  }
9186
- if (input.StorageClass !== undefined && input.StorageClass !== null) {
9186
+ if (input.StorageClass != null) {
9187
9187
  const node = new xml_builder_1.XmlNode("StorageClass").addChildNode(new xml_builder_1.XmlText(input.StorageClass)).withName("StorageClass");
9188
9188
  bodyNode.addChildNode(node);
9189
9189
  }
9190
- if (input.AccessControlTranslation !== undefined && input.AccessControlTranslation !== null) {
9190
+ if (input.AccessControlTranslation != null) {
9191
9191
  const node = serializeAws_restXmlAccessControlTranslation(input.AccessControlTranslation, context).withName("AccessControlTranslation");
9192
9192
  bodyNode.addChildNode(node);
9193
9193
  }
9194
- if (input.EncryptionConfiguration !== undefined && input.EncryptionConfiguration !== null) {
9194
+ if (input.EncryptionConfiguration != null) {
9195
9195
  const node = serializeAws_restXmlEncryptionConfiguration(input.EncryptionConfiguration, context).withName("EncryptionConfiguration");
9196
9196
  bodyNode.addChildNode(node);
9197
9197
  }
9198
- if (input.ReplicationTime !== undefined && input.ReplicationTime !== null) {
9198
+ if (input.ReplicationTime != null) {
9199
9199
  const node = serializeAws_restXmlReplicationTime(input.ReplicationTime, context).withName("ReplicationTime");
9200
9200
  bodyNode.addChildNode(node);
9201
9201
  }
9202
- if (input.Metrics !== undefined && input.Metrics !== null) {
9202
+ if (input.Metrics != null) {
9203
9203
  const node = serializeAws_restXmlMetrics(input.Metrics, context).withName("Metrics");
9204
9204
  bodyNode.addChildNode(node);
9205
9205
  }
@@ -9207,17 +9207,17 @@ const serializeAws_restXmlDestination = (input, context) => {
9207
9207
  };
9208
9208
  const serializeAws_restXmlEncryption = (input, context) => {
9209
9209
  const bodyNode = new xml_builder_1.XmlNode("Encryption");
9210
- if (input.EncryptionType !== undefined && input.EncryptionType !== null) {
9210
+ if (input.EncryptionType != null) {
9211
9211
  const node = new xml_builder_1.XmlNode("ServerSideEncryption")
9212
9212
  .addChildNode(new xml_builder_1.XmlText(input.EncryptionType))
9213
9213
  .withName("EncryptionType");
9214
9214
  bodyNode.addChildNode(node);
9215
9215
  }
9216
- if (input.KMSKeyId !== undefined && input.KMSKeyId !== null) {
9216
+ if (input.KMSKeyId != null) {
9217
9217
  const node = new xml_builder_1.XmlNode("SSEKMSKeyId").addChildNode(new xml_builder_1.XmlText(input.KMSKeyId)).withName("KMSKeyId");
9218
9218
  bodyNode.addChildNode(node);
9219
9219
  }
9220
- if (input.KMSContext !== undefined && input.KMSContext !== null) {
9220
+ if (input.KMSContext != null) {
9221
9221
  const node = new xml_builder_1.XmlNode("KMSContext").addChildNode(new xml_builder_1.XmlText(input.KMSContext)).withName("KMSContext");
9222
9222
  bodyNode.addChildNode(node);
9223
9223
  }
@@ -9225,7 +9225,7 @@ const serializeAws_restXmlEncryption = (input, context) => {
9225
9225
  };
9226
9226
  const serializeAws_restXmlEncryptionConfiguration = (input, context) => {
9227
9227
  const bodyNode = new xml_builder_1.XmlNode("EncryptionConfiguration");
9228
- if (input.ReplicaKmsKeyID !== undefined && input.ReplicaKmsKeyID !== null) {
9228
+ if (input.ReplicaKmsKeyID != null) {
9229
9229
  const node = new xml_builder_1.XmlNode("ReplicaKmsKeyID")
9230
9230
  .addChildNode(new xml_builder_1.XmlText(input.ReplicaKmsKeyID))
9231
9231
  .withName("ReplicaKmsKeyID");
@@ -9235,7 +9235,7 @@ const serializeAws_restXmlEncryptionConfiguration = (input, context) => {
9235
9235
  };
9236
9236
  const serializeAws_restXmlErrorDocument = (input, context) => {
9237
9237
  const bodyNode = new xml_builder_1.XmlNode("ErrorDocument");
9238
- if (input.Key !== undefined && input.Key !== null) {
9238
+ if (input.Key != null) {
9239
9239
  const node = new xml_builder_1.XmlNode("ObjectKey").addChildNode(new xml_builder_1.XmlText(input.Key)).withName("Key");
9240
9240
  bodyNode.addChildNode(node);
9241
9241
  }
@@ -9258,7 +9258,7 @@ const serializeAws_restXmlEventList = (input, context) => {
9258
9258
  };
9259
9259
  const serializeAws_restXmlExistingObjectReplication = (input, context) => {
9260
9260
  const bodyNode = new xml_builder_1.XmlNode("ExistingObjectReplication");
9261
- if (input.Status !== undefined && input.Status !== null) {
9261
+ if (input.Status != null) {
9262
9262
  const node = new xml_builder_1.XmlNode("ExistingObjectReplicationStatus")
9263
9263
  .addChildNode(new xml_builder_1.XmlText(input.Status))
9264
9264
  .withName("Status");
@@ -9279,11 +9279,11 @@ const serializeAws_restXmlExposeHeaders = (input, context) => {
9279
9279
  };
9280
9280
  const serializeAws_restXmlFilterRule = (input, context) => {
9281
9281
  const bodyNode = new xml_builder_1.XmlNode("FilterRule");
9282
- if (input.Name !== undefined && input.Name !== null) {
9282
+ if (input.Name != null) {
9283
9283
  const node = new xml_builder_1.XmlNode("FilterRuleName").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
9284
9284
  bodyNode.addChildNode(node);
9285
9285
  }
9286
- if (input.Value !== undefined && input.Value !== null) {
9286
+ if (input.Value != null) {
9287
9287
  const node = new xml_builder_1.XmlNode("FilterRuleValue").addChildNode(new xml_builder_1.XmlText(input.Value)).withName("Value");
9288
9288
  bodyNode.addChildNode(node);
9289
9289
  }
@@ -9302,7 +9302,7 @@ const serializeAws_restXmlFilterRuleList = (input, context) => {
9302
9302
  };
9303
9303
  const serializeAws_restXmlGlacierJobParameters = (input, context) => {
9304
9304
  const bodyNode = new xml_builder_1.XmlNode("GlacierJobParameters");
9305
- if (input.Tier !== undefined && input.Tier !== null) {
9305
+ if (input.Tier != null) {
9306
9306
  const node = new xml_builder_1.XmlNode("Tier").addChildNode(new xml_builder_1.XmlText(input.Tier)).withName("Tier");
9307
9307
  bodyNode.addChildNode(node);
9308
9308
  }
@@ -9310,12 +9310,12 @@ const serializeAws_restXmlGlacierJobParameters = (input, context) => {
9310
9310
  };
9311
9311
  const serializeAws_restXmlGrant = (input, context) => {
9312
9312
  const bodyNode = new xml_builder_1.XmlNode("Grant");
9313
- if (input.Grantee !== undefined && input.Grantee !== null) {
9313
+ if (input.Grantee != null) {
9314
9314
  const node = serializeAws_restXmlGrantee(input.Grantee, context).withName("Grantee");
9315
9315
  node.addAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
9316
9316
  bodyNode.addChildNode(node);
9317
9317
  }
9318
- if (input.Permission !== undefined && input.Permission !== null) {
9318
+ if (input.Permission != null) {
9319
9319
  const node = new xml_builder_1.XmlNode("Permission").addChildNode(new xml_builder_1.XmlText(input.Permission)).withName("Permission");
9320
9320
  bodyNode.addChildNode(node);
9321
9321
  }
@@ -9323,23 +9323,23 @@ const serializeAws_restXmlGrant = (input, context) => {
9323
9323
  };
9324
9324
  const serializeAws_restXmlGrantee = (input, context) => {
9325
9325
  const bodyNode = new xml_builder_1.XmlNode("Grantee");
9326
- if (input.DisplayName !== undefined && input.DisplayName !== null) {
9326
+ if (input.DisplayName != null) {
9327
9327
  const node = new xml_builder_1.XmlNode("DisplayName").addChildNode(new xml_builder_1.XmlText(input.DisplayName)).withName("DisplayName");
9328
9328
  bodyNode.addChildNode(node);
9329
9329
  }
9330
- if (input.EmailAddress !== undefined && input.EmailAddress !== null) {
9330
+ if (input.EmailAddress != null) {
9331
9331
  const node = new xml_builder_1.XmlNode("EmailAddress").addChildNode(new xml_builder_1.XmlText(input.EmailAddress)).withName("EmailAddress");
9332
9332
  bodyNode.addChildNode(node);
9333
9333
  }
9334
- if (input.ID !== undefined && input.ID !== null) {
9334
+ if (input.ID != null) {
9335
9335
  const node = new xml_builder_1.XmlNode("ID").addChildNode(new xml_builder_1.XmlText(input.ID)).withName("ID");
9336
9336
  bodyNode.addChildNode(node);
9337
9337
  }
9338
- if (input.URI !== undefined && input.URI !== null) {
9338
+ if (input.URI != null) {
9339
9339
  const node = new xml_builder_1.XmlNode("URI").addChildNode(new xml_builder_1.XmlText(input.URI)).withName("URI");
9340
9340
  bodyNode.addChildNode(node);
9341
9341
  }
9342
- if (input.Type !== undefined && input.Type !== null) {
9342
+ if (input.Type != null) {
9343
9343
  bodyNode.addAttribute("xsi:type", input.Type);
9344
9344
  }
9345
9345
  return bodyNode;
@@ -9357,7 +9357,7 @@ const serializeAws_restXmlGrants = (input, context) => {
9357
9357
  };
9358
9358
  const serializeAws_restXmlIndexDocument = (input, context) => {
9359
9359
  const bodyNode = new xml_builder_1.XmlNode("IndexDocument");
9360
- if (input.Suffix !== undefined && input.Suffix !== null) {
9360
+ if (input.Suffix != null) {
9361
9361
  const node = new xml_builder_1.XmlNode("Suffix").addChildNode(new xml_builder_1.XmlText(input.Suffix)).withName("Suffix");
9362
9362
  bodyNode.addChildNode(node);
9363
9363
  }
@@ -9365,21 +9365,21 @@ const serializeAws_restXmlIndexDocument = (input, context) => {
9365
9365
  };
9366
9366
  const serializeAws_restXmlInputSerialization = (input, context) => {
9367
9367
  const bodyNode = new xml_builder_1.XmlNode("InputSerialization");
9368
- if (input.CSV !== undefined && input.CSV !== null) {
9368
+ if (input.CSV != null) {
9369
9369
  const node = serializeAws_restXmlCSVInput(input.CSV, context).withName("CSV");
9370
9370
  bodyNode.addChildNode(node);
9371
9371
  }
9372
- if (input.CompressionType !== undefined && input.CompressionType !== null) {
9372
+ if (input.CompressionType != null) {
9373
9373
  const node = new xml_builder_1.XmlNode("CompressionType")
9374
9374
  .addChildNode(new xml_builder_1.XmlText(input.CompressionType))
9375
9375
  .withName("CompressionType");
9376
9376
  bodyNode.addChildNode(node);
9377
9377
  }
9378
- if (input.JSON !== undefined && input.JSON !== null) {
9378
+ if (input.JSON != null) {
9379
9379
  const node = serializeAws_restXmlJSONInput(input.JSON, context).withName("JSON");
9380
9380
  bodyNode.addChildNode(node);
9381
9381
  }
9382
- if (input.Parquet !== undefined && input.Parquet !== null) {
9382
+ if (input.Parquet != null) {
9383
9383
  const node = serializeAws_restXmlParquetInput(input.Parquet, context).withName("Parquet");
9384
9384
  bodyNode.addChildNode(node);
9385
9385
  }
@@ -9387,11 +9387,11 @@ const serializeAws_restXmlInputSerialization = (input, context) => {
9387
9387
  };
9388
9388
  const serializeAws_restXmlIntelligentTieringAndOperator = (input, context) => {
9389
9389
  const bodyNode = new xml_builder_1.XmlNode("IntelligentTieringAndOperator");
9390
- if (input.Prefix !== undefined && input.Prefix !== null) {
9390
+ if (input.Prefix != null) {
9391
9391
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
9392
9392
  bodyNode.addChildNode(node);
9393
9393
  }
9394
- if (input.Tags !== undefined && input.Tags !== null) {
9394
+ if (input.Tags != null) {
9395
9395
  const nodes = serializeAws_restXmlTagSet(input.Tags, context);
9396
9396
  nodes.map((node) => {
9397
9397
  node = node.withName("Tag");
@@ -9402,19 +9402,19 @@ const serializeAws_restXmlIntelligentTieringAndOperator = (input, context) => {
9402
9402
  };
9403
9403
  const serializeAws_restXmlIntelligentTieringConfiguration = (input, context) => {
9404
9404
  const bodyNode = new xml_builder_1.XmlNode("IntelligentTieringConfiguration");
9405
- if (input.Id !== undefined && input.Id !== null) {
9405
+ if (input.Id != null) {
9406
9406
  const node = new xml_builder_1.XmlNode("IntelligentTieringId").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
9407
9407
  bodyNode.addChildNode(node);
9408
9408
  }
9409
- if (input.Filter !== undefined && input.Filter !== null) {
9409
+ if (input.Filter != null) {
9410
9410
  const node = serializeAws_restXmlIntelligentTieringFilter(input.Filter, context).withName("Filter");
9411
9411
  bodyNode.addChildNode(node);
9412
9412
  }
9413
- if (input.Status !== undefined && input.Status !== null) {
9413
+ if (input.Status != null) {
9414
9414
  const node = new xml_builder_1.XmlNode("IntelligentTieringStatus").addChildNode(new xml_builder_1.XmlText(input.Status)).withName("Status");
9415
9415
  bodyNode.addChildNode(node);
9416
9416
  }
9417
- if (input.Tierings !== undefined && input.Tierings !== null) {
9417
+ if (input.Tierings != null) {
9418
9418
  const nodes = serializeAws_restXmlTieringList(input.Tierings, context);
9419
9419
  nodes.map((node) => {
9420
9420
  node = node.withName("Tiering");
@@ -9425,15 +9425,15 @@ const serializeAws_restXmlIntelligentTieringConfiguration = (input, context) =>
9425
9425
  };
9426
9426
  const serializeAws_restXmlIntelligentTieringFilter = (input, context) => {
9427
9427
  const bodyNode = new xml_builder_1.XmlNode("IntelligentTieringFilter");
9428
- if (input.Prefix !== undefined && input.Prefix !== null) {
9428
+ if (input.Prefix != null) {
9429
9429
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
9430
9430
  bodyNode.addChildNode(node);
9431
9431
  }
9432
- if (input.Tag !== undefined && input.Tag !== null) {
9432
+ if (input.Tag != null) {
9433
9433
  const node = serializeAws_restXmlTag(input.Tag, context).withName("Tag");
9434
9434
  bodyNode.addChildNode(node);
9435
9435
  }
9436
- if (input.And !== undefined && input.And !== null) {
9436
+ if (input.And != null) {
9437
9437
  const node = serializeAws_restXmlIntelligentTieringAndOperator(input.And, context).withName("And");
9438
9438
  bodyNode.addChildNode(node);
9439
9439
  }
@@ -9441,29 +9441,29 @@ const serializeAws_restXmlIntelligentTieringFilter = (input, context) => {
9441
9441
  };
9442
9442
  const serializeAws_restXmlInventoryConfiguration = (input, context) => {
9443
9443
  const bodyNode = new xml_builder_1.XmlNode("InventoryConfiguration");
9444
- if (input.Destination !== undefined && input.Destination !== null) {
9444
+ if (input.Destination != null) {
9445
9445
  const node = serializeAws_restXmlInventoryDestination(input.Destination, context).withName("Destination");
9446
9446
  bodyNode.addChildNode(node);
9447
9447
  }
9448
- if (input.IsEnabled !== undefined && input.IsEnabled !== null) {
9448
+ if (input.IsEnabled != null) {
9449
9449
  const node = new xml_builder_1.XmlNode("IsEnabled").addChildNode(new xml_builder_1.XmlText(String(input.IsEnabled))).withName("IsEnabled");
9450
9450
  bodyNode.addChildNode(node);
9451
9451
  }
9452
- if (input.Filter !== undefined && input.Filter !== null) {
9452
+ if (input.Filter != null) {
9453
9453
  const node = serializeAws_restXmlInventoryFilter(input.Filter, context).withName("Filter");
9454
9454
  bodyNode.addChildNode(node);
9455
9455
  }
9456
- if (input.Id !== undefined && input.Id !== null) {
9456
+ if (input.Id != null) {
9457
9457
  const node = new xml_builder_1.XmlNode("InventoryId").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
9458
9458
  bodyNode.addChildNode(node);
9459
9459
  }
9460
- if (input.IncludedObjectVersions !== undefined && input.IncludedObjectVersions !== null) {
9460
+ if (input.IncludedObjectVersions != null) {
9461
9461
  const node = new xml_builder_1.XmlNode("InventoryIncludedObjectVersions")
9462
9462
  .addChildNode(new xml_builder_1.XmlText(input.IncludedObjectVersions))
9463
9463
  .withName("IncludedObjectVersions");
9464
9464
  bodyNode.addChildNode(node);
9465
9465
  }
9466
- if (input.OptionalFields !== undefined && input.OptionalFields !== null) {
9466
+ if (input.OptionalFields != null) {
9467
9467
  const nodes = serializeAws_restXmlInventoryOptionalFields(input.OptionalFields, context);
9468
9468
  const containerNode = new xml_builder_1.XmlNode("OptionalFields");
9469
9469
  nodes.map((node) => {
@@ -9471,7 +9471,7 @@ const serializeAws_restXmlInventoryConfiguration = (input, context) => {
9471
9471
  });
9472
9472
  bodyNode.addChildNode(containerNode);
9473
9473
  }
9474
- if (input.Schedule !== undefined && input.Schedule !== null) {
9474
+ if (input.Schedule != null) {
9475
9475
  const node = serializeAws_restXmlInventorySchedule(input.Schedule, context).withName("Schedule");
9476
9476
  bodyNode.addChildNode(node);
9477
9477
  }
@@ -9479,7 +9479,7 @@ const serializeAws_restXmlInventoryConfiguration = (input, context) => {
9479
9479
  };
9480
9480
  const serializeAws_restXmlInventoryDestination = (input, context) => {
9481
9481
  const bodyNode = new xml_builder_1.XmlNode("InventoryDestination");
9482
- if (input.S3BucketDestination !== undefined && input.S3BucketDestination !== null) {
9482
+ if (input.S3BucketDestination != null) {
9483
9483
  const node = serializeAws_restXmlInventoryS3BucketDestination(input.S3BucketDestination, context).withName("S3BucketDestination");
9484
9484
  bodyNode.addChildNode(node);
9485
9485
  }
@@ -9487,11 +9487,11 @@ const serializeAws_restXmlInventoryDestination = (input, context) => {
9487
9487
  };
9488
9488
  const serializeAws_restXmlInventoryEncryption = (input, context) => {
9489
9489
  const bodyNode = new xml_builder_1.XmlNode("InventoryEncryption");
9490
- if (input.SSES3 !== undefined && input.SSES3 !== null) {
9490
+ if (input.SSES3 != null) {
9491
9491
  const node = serializeAws_restXmlSSES3(input.SSES3, context).withName("SSE-S3");
9492
9492
  bodyNode.addChildNode(node);
9493
9493
  }
9494
- if (input.SSEKMS !== undefined && input.SSEKMS !== null) {
9494
+ if (input.SSEKMS != null) {
9495
9495
  const node = serializeAws_restXmlSSEKMS(input.SSEKMS, context).withName("SSE-KMS");
9496
9496
  bodyNode.addChildNode(node);
9497
9497
  }
@@ -9499,7 +9499,7 @@ const serializeAws_restXmlInventoryEncryption = (input, context) => {
9499
9499
  };
9500
9500
  const serializeAws_restXmlInventoryFilter = (input, context) => {
9501
9501
  const bodyNode = new xml_builder_1.XmlNode("InventoryFilter");
9502
- if (input.Prefix !== undefined && input.Prefix !== null) {
9502
+ if (input.Prefix != null) {
9503
9503
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
9504
9504
  bodyNode.addChildNode(node);
9505
9505
  }
@@ -9518,23 +9518,23 @@ const serializeAws_restXmlInventoryOptionalFields = (input, context) => {
9518
9518
  };
9519
9519
  const serializeAws_restXmlInventoryS3BucketDestination = (input, context) => {
9520
9520
  const bodyNode = new xml_builder_1.XmlNode("InventoryS3BucketDestination");
9521
- if (input.AccountId !== undefined && input.AccountId !== null) {
9521
+ if (input.AccountId != null) {
9522
9522
  const node = new xml_builder_1.XmlNode("AccountId").addChildNode(new xml_builder_1.XmlText(input.AccountId)).withName("AccountId");
9523
9523
  bodyNode.addChildNode(node);
9524
9524
  }
9525
- if (input.Bucket !== undefined && input.Bucket !== null) {
9525
+ if (input.Bucket != null) {
9526
9526
  const node = new xml_builder_1.XmlNode("BucketName").addChildNode(new xml_builder_1.XmlText(input.Bucket)).withName("Bucket");
9527
9527
  bodyNode.addChildNode(node);
9528
9528
  }
9529
- if (input.Format !== undefined && input.Format !== null) {
9529
+ if (input.Format != null) {
9530
9530
  const node = new xml_builder_1.XmlNode("InventoryFormat").addChildNode(new xml_builder_1.XmlText(input.Format)).withName("Format");
9531
9531
  bodyNode.addChildNode(node);
9532
9532
  }
9533
- if (input.Prefix !== undefined && input.Prefix !== null) {
9533
+ if (input.Prefix != null) {
9534
9534
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
9535
9535
  bodyNode.addChildNode(node);
9536
9536
  }
9537
- if (input.Encryption !== undefined && input.Encryption !== null) {
9537
+ if (input.Encryption != null) {
9538
9538
  const node = serializeAws_restXmlInventoryEncryption(input.Encryption, context).withName("Encryption");
9539
9539
  bodyNode.addChildNode(node);
9540
9540
  }
@@ -9542,7 +9542,7 @@ const serializeAws_restXmlInventoryS3BucketDestination = (input, context) => {
9542
9542
  };
9543
9543
  const serializeAws_restXmlInventorySchedule = (input, context) => {
9544
9544
  const bodyNode = new xml_builder_1.XmlNode("InventorySchedule");
9545
- if (input.Frequency !== undefined && input.Frequency !== null) {
9545
+ if (input.Frequency != null) {
9546
9546
  const node = new xml_builder_1.XmlNode("InventoryFrequency").addChildNode(new xml_builder_1.XmlText(input.Frequency)).withName("Frequency");
9547
9547
  bodyNode.addChildNode(node);
9548
9548
  }
@@ -9550,7 +9550,7 @@ const serializeAws_restXmlInventorySchedule = (input, context) => {
9550
9550
  };
9551
9551
  const serializeAws_restXmlJSONInput = (input, context) => {
9552
9552
  const bodyNode = new xml_builder_1.XmlNode("JSONInput");
9553
- if (input.Type !== undefined && input.Type !== null) {
9553
+ if (input.Type != null) {
9554
9554
  const node = new xml_builder_1.XmlNode("JSONType").addChildNode(new xml_builder_1.XmlText(input.Type)).withName("Type");
9555
9555
  bodyNode.addChildNode(node);
9556
9556
  }
@@ -9558,7 +9558,7 @@ const serializeAws_restXmlJSONInput = (input, context) => {
9558
9558
  };
9559
9559
  const serializeAws_restXmlJSONOutput = (input, context) => {
9560
9560
  const bodyNode = new xml_builder_1.XmlNode("JSONOutput");
9561
- if (input.RecordDelimiter !== undefined && input.RecordDelimiter !== null) {
9561
+ if (input.RecordDelimiter != null) {
9562
9562
  const node = new xml_builder_1.XmlNode("RecordDelimiter")
9563
9563
  .addChildNode(new xml_builder_1.XmlText(input.RecordDelimiter))
9564
9564
  .withName("RecordDelimiter");
@@ -9568,24 +9568,24 @@ const serializeAws_restXmlJSONOutput = (input, context) => {
9568
9568
  };
9569
9569
  const serializeAws_restXmlLambdaFunctionConfiguration = (input, context) => {
9570
9570
  const bodyNode = new xml_builder_1.XmlNode("LambdaFunctionConfiguration");
9571
- if (input.Id !== undefined && input.Id !== null) {
9571
+ if (input.Id != null) {
9572
9572
  const node = new xml_builder_1.XmlNode("NotificationId").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
9573
9573
  bodyNode.addChildNode(node);
9574
9574
  }
9575
- if (input.LambdaFunctionArn !== undefined && input.LambdaFunctionArn !== null) {
9575
+ if (input.LambdaFunctionArn != null) {
9576
9576
  const node = new xml_builder_1.XmlNode("LambdaFunctionArn")
9577
9577
  .addChildNode(new xml_builder_1.XmlText(input.LambdaFunctionArn))
9578
9578
  .withName("CloudFunction");
9579
9579
  bodyNode.addChildNode(node);
9580
9580
  }
9581
- if (input.Events !== undefined && input.Events !== null) {
9581
+ if (input.Events != null) {
9582
9582
  const nodes = serializeAws_restXmlEventList(input.Events, context);
9583
9583
  nodes.map((node) => {
9584
9584
  node = node.withName("Event");
9585
9585
  bodyNode.addChildNode(node);
9586
9586
  });
9587
9587
  }
9588
- if (input.Filter !== undefined && input.Filter !== null) {
9588
+ if (input.Filter != null) {
9589
9589
  const node = serializeAws_restXmlNotificationConfigurationFilter(input.Filter, context).withName("Filter");
9590
9590
  bodyNode.addChildNode(node);
9591
9591
  }
@@ -9604,17 +9604,17 @@ const serializeAws_restXmlLambdaFunctionConfigurationList = (input, context) =>
9604
9604
  };
9605
9605
  const serializeAws_restXmlLifecycleExpiration = (input, context) => {
9606
9606
  const bodyNode = new xml_builder_1.XmlNode("LifecycleExpiration");
9607
- if (input.Date !== undefined && input.Date !== null) {
9607
+ if (input.Date != null) {
9608
9608
  const node = new xml_builder_1.XmlNode("Date")
9609
9609
  .addChildNode(new xml_builder_1.XmlText(input.Date.toISOString().split(".")[0] + "Z"))
9610
9610
  .withName("Date");
9611
9611
  bodyNode.addChildNode(node);
9612
9612
  }
9613
- if (input.Days !== undefined && input.Days !== null) {
9613
+ if (input.Days != null) {
9614
9614
  const node = new xml_builder_1.XmlNode("Days").addChildNode(new xml_builder_1.XmlText(String(input.Days))).withName("Days");
9615
9615
  bodyNode.addChildNode(node);
9616
9616
  }
9617
- if (input.ExpiredObjectDeleteMarker !== undefined && input.ExpiredObjectDeleteMarker !== null) {
9617
+ if (input.ExpiredObjectDeleteMarker != null) {
9618
9618
  const node = new xml_builder_1.XmlNode("ExpiredObjectDeleteMarker")
9619
9619
  .addChildNode(new xml_builder_1.XmlText(String(input.ExpiredObjectDeleteMarker)))
9620
9620
  .withName("ExpiredObjectDeleteMarker");
@@ -9624,45 +9624,45 @@ const serializeAws_restXmlLifecycleExpiration = (input, context) => {
9624
9624
  };
9625
9625
  const serializeAws_restXmlLifecycleRule = (input, context) => {
9626
9626
  const bodyNode = new xml_builder_1.XmlNode("LifecycleRule");
9627
- if (input.Expiration !== undefined && input.Expiration !== null) {
9627
+ if (input.Expiration != null) {
9628
9628
  const node = serializeAws_restXmlLifecycleExpiration(input.Expiration, context).withName("Expiration");
9629
9629
  bodyNode.addChildNode(node);
9630
9630
  }
9631
- if (input.ID !== undefined && input.ID !== null) {
9631
+ if (input.ID != null) {
9632
9632
  const node = new xml_builder_1.XmlNode("ID").addChildNode(new xml_builder_1.XmlText(input.ID)).withName("ID");
9633
9633
  bodyNode.addChildNode(node);
9634
9634
  }
9635
- if (input.Prefix !== undefined && input.Prefix !== null) {
9635
+ if (input.Prefix != null) {
9636
9636
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
9637
9637
  bodyNode.addChildNode(node);
9638
9638
  }
9639
- if (input.Filter !== undefined && input.Filter !== null) {
9639
+ if (input.Filter != null) {
9640
9640
  const node = serializeAws_restXmlLifecycleRuleFilter(input.Filter, context).withName("Filter");
9641
9641
  bodyNode.addChildNode(node);
9642
9642
  }
9643
- if (input.Status !== undefined && input.Status !== null) {
9643
+ if (input.Status != null) {
9644
9644
  const node = new xml_builder_1.XmlNode("ExpirationStatus").addChildNode(new xml_builder_1.XmlText(input.Status)).withName("Status");
9645
9645
  bodyNode.addChildNode(node);
9646
9646
  }
9647
- if (input.Transitions !== undefined && input.Transitions !== null) {
9647
+ if (input.Transitions != null) {
9648
9648
  const nodes = serializeAws_restXmlTransitionList(input.Transitions, context);
9649
9649
  nodes.map((node) => {
9650
9650
  node = node.withName("Transition");
9651
9651
  bodyNode.addChildNode(node);
9652
9652
  });
9653
9653
  }
9654
- if (input.NoncurrentVersionTransitions !== undefined && input.NoncurrentVersionTransitions !== null) {
9654
+ if (input.NoncurrentVersionTransitions != null) {
9655
9655
  const nodes = serializeAws_restXmlNoncurrentVersionTransitionList(input.NoncurrentVersionTransitions, context);
9656
9656
  nodes.map((node) => {
9657
9657
  node = node.withName("NoncurrentVersionTransition");
9658
9658
  bodyNode.addChildNode(node);
9659
9659
  });
9660
9660
  }
9661
- if (input.NoncurrentVersionExpiration !== undefined && input.NoncurrentVersionExpiration !== null) {
9661
+ if (input.NoncurrentVersionExpiration != null) {
9662
9662
  const node = serializeAws_restXmlNoncurrentVersionExpiration(input.NoncurrentVersionExpiration, context).withName("NoncurrentVersionExpiration");
9663
9663
  bodyNode.addChildNode(node);
9664
9664
  }
9665
- if (input.AbortIncompleteMultipartUpload !== undefined && input.AbortIncompleteMultipartUpload !== null) {
9665
+ if (input.AbortIncompleteMultipartUpload != null) {
9666
9666
  const node = serializeAws_restXmlAbortIncompleteMultipartUpload(input.AbortIncompleteMultipartUpload, context).withName("AbortIncompleteMultipartUpload");
9667
9667
  bodyNode.addChildNode(node);
9668
9668
  }
@@ -9670,24 +9670,24 @@ const serializeAws_restXmlLifecycleRule = (input, context) => {
9670
9670
  };
9671
9671
  const serializeAws_restXmlLifecycleRuleAndOperator = (input, context) => {
9672
9672
  const bodyNode = new xml_builder_1.XmlNode("LifecycleRuleAndOperator");
9673
- if (input.Prefix !== undefined && input.Prefix !== null) {
9673
+ if (input.Prefix != null) {
9674
9674
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
9675
9675
  bodyNode.addChildNode(node);
9676
9676
  }
9677
- if (input.Tags !== undefined && input.Tags !== null) {
9677
+ if (input.Tags != null) {
9678
9678
  const nodes = serializeAws_restXmlTagSet(input.Tags, context);
9679
9679
  nodes.map((node) => {
9680
9680
  node = node.withName("Tag");
9681
9681
  bodyNode.addChildNode(node);
9682
9682
  });
9683
9683
  }
9684
- if (input.ObjectSizeGreaterThan !== undefined && input.ObjectSizeGreaterThan !== null) {
9684
+ if (input.ObjectSizeGreaterThan != null) {
9685
9685
  const node = new xml_builder_1.XmlNode("ObjectSizeGreaterThanBytes")
9686
9686
  .addChildNode(new xml_builder_1.XmlText(String(input.ObjectSizeGreaterThan)))
9687
9687
  .withName("ObjectSizeGreaterThan");
9688
9688
  bodyNode.addChildNode(node);
9689
9689
  }
9690
- if (input.ObjectSizeLessThan !== undefined && input.ObjectSizeLessThan !== null) {
9690
+ if (input.ObjectSizeLessThan != null) {
9691
9691
  const node = new xml_builder_1.XmlNode("ObjectSizeLessThanBytes")
9692
9692
  .addChildNode(new xml_builder_1.XmlText(String(input.ObjectSizeLessThan)))
9693
9693
  .withName("ObjectSizeLessThan");
@@ -9744,11 +9744,11 @@ const serializeAws_restXmlLifecycleRules = (input, context) => {
9744
9744
  };
9745
9745
  const serializeAws_restXmlLoggingEnabled = (input, context) => {
9746
9746
  const bodyNode = new xml_builder_1.XmlNode("LoggingEnabled");
9747
- if (input.TargetBucket !== undefined && input.TargetBucket !== null) {
9747
+ if (input.TargetBucket != null) {
9748
9748
  const node = new xml_builder_1.XmlNode("TargetBucket").addChildNode(new xml_builder_1.XmlText(input.TargetBucket)).withName("TargetBucket");
9749
9749
  bodyNode.addChildNode(node);
9750
9750
  }
9751
- if (input.TargetGrants !== undefined && input.TargetGrants !== null) {
9751
+ if (input.TargetGrants != null) {
9752
9752
  const nodes = serializeAws_restXmlTargetGrants(input.TargetGrants, context);
9753
9753
  const containerNode = new xml_builder_1.XmlNode("TargetGrants");
9754
9754
  nodes.map((node) => {
@@ -9756,7 +9756,7 @@ const serializeAws_restXmlLoggingEnabled = (input, context) => {
9756
9756
  });
9757
9757
  bodyNode.addChildNode(containerNode);
9758
9758
  }
9759
- if (input.TargetPrefix !== undefined && input.TargetPrefix !== null) {
9759
+ if (input.TargetPrefix != null) {
9760
9760
  const node = new xml_builder_1.XmlNode("TargetPrefix").addChildNode(new xml_builder_1.XmlText(input.TargetPrefix)).withName("TargetPrefix");
9761
9761
  bodyNode.addChildNode(node);
9762
9762
  }
@@ -9764,11 +9764,11 @@ const serializeAws_restXmlLoggingEnabled = (input, context) => {
9764
9764
  };
9765
9765
  const serializeAws_restXmlMetadataEntry = (input, context) => {
9766
9766
  const bodyNode = new xml_builder_1.XmlNode("MetadataEntry");
9767
- if (input.Name !== undefined && input.Name !== null) {
9767
+ if (input.Name != null) {
9768
9768
  const node = new xml_builder_1.XmlNode("MetadataKey").addChildNode(new xml_builder_1.XmlText(input.Name)).withName("Name");
9769
9769
  bodyNode.addChildNode(node);
9770
9770
  }
9771
- if (input.Value !== undefined && input.Value !== null) {
9771
+ if (input.Value != null) {
9772
9772
  const node = new xml_builder_1.XmlNode("MetadataValue").addChildNode(new xml_builder_1.XmlText(input.Value)).withName("Value");
9773
9773
  bodyNode.addChildNode(node);
9774
9774
  }
@@ -9776,11 +9776,11 @@ const serializeAws_restXmlMetadataEntry = (input, context) => {
9776
9776
  };
9777
9777
  const serializeAws_restXmlMetrics = (input, context) => {
9778
9778
  const bodyNode = new xml_builder_1.XmlNode("Metrics");
9779
- if (input.Status !== undefined && input.Status !== null) {
9779
+ if (input.Status != null) {
9780
9780
  const node = new xml_builder_1.XmlNode("MetricsStatus").addChildNode(new xml_builder_1.XmlText(input.Status)).withName("Status");
9781
9781
  bodyNode.addChildNode(node);
9782
9782
  }
9783
- if (input.EventThreshold !== undefined && input.EventThreshold !== null) {
9783
+ if (input.EventThreshold != null) {
9784
9784
  const node = serializeAws_restXmlReplicationTimeValue(input.EventThreshold, context).withName("EventThreshold");
9785
9785
  bodyNode.addChildNode(node);
9786
9786
  }
@@ -9788,18 +9788,18 @@ const serializeAws_restXmlMetrics = (input, context) => {
9788
9788
  };
9789
9789
  const serializeAws_restXmlMetricsAndOperator = (input, context) => {
9790
9790
  const bodyNode = new xml_builder_1.XmlNode("MetricsAndOperator");
9791
- if (input.Prefix !== undefined && input.Prefix !== null) {
9791
+ if (input.Prefix != null) {
9792
9792
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
9793
9793
  bodyNode.addChildNode(node);
9794
9794
  }
9795
- if (input.Tags !== undefined && input.Tags !== null) {
9795
+ if (input.Tags != null) {
9796
9796
  const nodes = serializeAws_restXmlTagSet(input.Tags, context);
9797
9797
  nodes.map((node) => {
9798
9798
  node = node.withName("Tag");
9799
9799
  bodyNode.addChildNode(node);
9800
9800
  });
9801
9801
  }
9802
- if (input.AccessPointArn !== undefined && input.AccessPointArn !== null) {
9802
+ if (input.AccessPointArn != null) {
9803
9803
  const node = new xml_builder_1.XmlNode("AccessPointArn")
9804
9804
  .addChildNode(new xml_builder_1.XmlText(input.AccessPointArn))
9805
9805
  .withName("AccessPointArn");
@@ -9809,11 +9809,11 @@ const serializeAws_restXmlMetricsAndOperator = (input, context) => {
9809
9809
  };
9810
9810
  const serializeAws_restXmlMetricsConfiguration = (input, context) => {
9811
9811
  const bodyNode = new xml_builder_1.XmlNode("MetricsConfiguration");
9812
- if (input.Id !== undefined && input.Id !== null) {
9812
+ if (input.Id != null) {
9813
9813
  const node = new xml_builder_1.XmlNode("MetricsId").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
9814
9814
  bodyNode.addChildNode(node);
9815
9815
  }
9816
- if (input.Filter !== undefined && input.Filter !== null) {
9816
+ if (input.Filter != null) {
9817
9817
  const node = serializeAws_restXmlMetricsFilter(input.Filter, context).withName("Filter");
9818
9818
  bodyNode.addChildNode(node);
9819
9819
  }
@@ -9849,13 +9849,13 @@ const serializeAws_restXmlMetricsFilter = (input, context) => {
9849
9849
  };
9850
9850
  const serializeAws_restXmlNoncurrentVersionExpiration = (input, context) => {
9851
9851
  const bodyNode = new xml_builder_1.XmlNode("NoncurrentVersionExpiration");
9852
- if (input.NoncurrentDays !== undefined && input.NoncurrentDays !== null) {
9852
+ if (input.NoncurrentDays != null) {
9853
9853
  const node = new xml_builder_1.XmlNode("Days")
9854
9854
  .addChildNode(new xml_builder_1.XmlText(String(input.NoncurrentDays)))
9855
9855
  .withName("NoncurrentDays");
9856
9856
  bodyNode.addChildNode(node);
9857
9857
  }
9858
- if (input.NewerNoncurrentVersions !== undefined && input.NewerNoncurrentVersions !== null) {
9858
+ if (input.NewerNoncurrentVersions != null) {
9859
9859
  const node = new xml_builder_1.XmlNode("VersionCount")
9860
9860
  .addChildNode(new xml_builder_1.XmlText(String(input.NewerNoncurrentVersions)))
9861
9861
  .withName("NewerNoncurrentVersions");
@@ -9865,19 +9865,19 @@ const serializeAws_restXmlNoncurrentVersionExpiration = (input, context) => {
9865
9865
  };
9866
9866
  const serializeAws_restXmlNoncurrentVersionTransition = (input, context) => {
9867
9867
  const bodyNode = new xml_builder_1.XmlNode("NoncurrentVersionTransition");
9868
- if (input.NoncurrentDays !== undefined && input.NoncurrentDays !== null) {
9868
+ if (input.NoncurrentDays != null) {
9869
9869
  const node = new xml_builder_1.XmlNode("Days")
9870
9870
  .addChildNode(new xml_builder_1.XmlText(String(input.NoncurrentDays)))
9871
9871
  .withName("NoncurrentDays");
9872
9872
  bodyNode.addChildNode(node);
9873
9873
  }
9874
- if (input.StorageClass !== undefined && input.StorageClass !== null) {
9874
+ if (input.StorageClass != null) {
9875
9875
  const node = new xml_builder_1.XmlNode("TransitionStorageClass")
9876
9876
  .addChildNode(new xml_builder_1.XmlText(input.StorageClass))
9877
9877
  .withName("StorageClass");
9878
9878
  bodyNode.addChildNode(node);
9879
9879
  }
9880
- if (input.NewerNoncurrentVersions !== undefined && input.NewerNoncurrentVersions !== null) {
9880
+ if (input.NewerNoncurrentVersions != null) {
9881
9881
  const node = new xml_builder_1.XmlNode("VersionCount")
9882
9882
  .addChildNode(new xml_builder_1.XmlText(String(input.NewerNoncurrentVersions)))
9883
9883
  .withName("NewerNoncurrentVersions");
@@ -9898,28 +9898,28 @@ const serializeAws_restXmlNoncurrentVersionTransitionList = (input, context) =>
9898
9898
  };
9899
9899
  const serializeAws_restXmlNotificationConfiguration = (input, context) => {
9900
9900
  const bodyNode = new xml_builder_1.XmlNode("NotificationConfiguration");
9901
- if (input.TopicConfigurations !== undefined && input.TopicConfigurations !== null) {
9901
+ if (input.TopicConfigurations != null) {
9902
9902
  const nodes = serializeAws_restXmlTopicConfigurationList(input.TopicConfigurations, context);
9903
9903
  nodes.map((node) => {
9904
9904
  node = node.withName("TopicConfiguration");
9905
9905
  bodyNode.addChildNode(node);
9906
9906
  });
9907
9907
  }
9908
- if (input.QueueConfigurations !== undefined && input.QueueConfigurations !== null) {
9908
+ if (input.QueueConfigurations != null) {
9909
9909
  const nodes = serializeAws_restXmlQueueConfigurationList(input.QueueConfigurations, context);
9910
9910
  nodes.map((node) => {
9911
9911
  node = node.withName("QueueConfiguration");
9912
9912
  bodyNode.addChildNode(node);
9913
9913
  });
9914
9914
  }
9915
- if (input.LambdaFunctionConfigurations !== undefined && input.LambdaFunctionConfigurations !== null) {
9915
+ if (input.LambdaFunctionConfigurations != null) {
9916
9916
  const nodes = serializeAws_restXmlLambdaFunctionConfigurationList(input.LambdaFunctionConfigurations, context);
9917
9917
  nodes.map((node) => {
9918
9918
  node = node.withName("CloudFunctionConfiguration");
9919
9919
  bodyNode.addChildNode(node);
9920
9920
  });
9921
9921
  }
9922
- if (input.EventBridgeConfiguration !== undefined && input.EventBridgeConfiguration !== null) {
9922
+ if (input.EventBridgeConfiguration != null) {
9923
9923
  const node = serializeAws_restXmlEventBridgeConfiguration(input.EventBridgeConfiguration, context).withName("EventBridgeConfiguration");
9924
9924
  bodyNode.addChildNode(node);
9925
9925
  }
@@ -9927,7 +9927,7 @@ const serializeAws_restXmlNotificationConfiguration = (input, context) => {
9927
9927
  };
9928
9928
  const serializeAws_restXmlNotificationConfigurationFilter = (input, context) => {
9929
9929
  const bodyNode = new xml_builder_1.XmlNode("NotificationConfigurationFilter");
9930
- if (input.Key !== undefined && input.Key !== null) {
9930
+ if (input.Key != null) {
9931
9931
  const node = serializeAws_restXmlS3KeyFilter(input.Key, context).withName("S3Key");
9932
9932
  bodyNode.addChildNode(node);
9933
9933
  }
@@ -9935,11 +9935,11 @@ const serializeAws_restXmlNotificationConfigurationFilter = (input, context) =>
9935
9935
  };
9936
9936
  const serializeAws_restXmlObjectIdentifier = (input, context) => {
9937
9937
  const bodyNode = new xml_builder_1.XmlNode("ObjectIdentifier");
9938
- if (input.Key !== undefined && input.Key !== null) {
9938
+ if (input.Key != null) {
9939
9939
  const node = new xml_builder_1.XmlNode("ObjectKey").addChildNode(new xml_builder_1.XmlText(input.Key)).withName("Key");
9940
9940
  bodyNode.addChildNode(node);
9941
9941
  }
9942
- if (input.VersionId !== undefined && input.VersionId !== null) {
9942
+ if (input.VersionId != null) {
9943
9943
  const node = new xml_builder_1.XmlNode("ObjectVersionId").addChildNode(new xml_builder_1.XmlText(input.VersionId)).withName("VersionId");
9944
9944
  bodyNode.addChildNode(node);
9945
9945
  }
@@ -9958,13 +9958,13 @@ const serializeAws_restXmlObjectIdentifierList = (input, context) => {
9958
9958
  };
9959
9959
  const serializeAws_restXmlObjectLockConfiguration = (input, context) => {
9960
9960
  const bodyNode = new xml_builder_1.XmlNode("ObjectLockConfiguration");
9961
- if (input.ObjectLockEnabled !== undefined && input.ObjectLockEnabled !== null) {
9961
+ if (input.ObjectLockEnabled != null) {
9962
9962
  const node = new xml_builder_1.XmlNode("ObjectLockEnabled")
9963
9963
  .addChildNode(new xml_builder_1.XmlText(input.ObjectLockEnabled))
9964
9964
  .withName("ObjectLockEnabled");
9965
9965
  bodyNode.addChildNode(node);
9966
9966
  }
9967
- if (input.Rule !== undefined && input.Rule !== null) {
9967
+ if (input.Rule != null) {
9968
9968
  const node = serializeAws_restXmlObjectLockRule(input.Rule, context).withName("Rule");
9969
9969
  bodyNode.addChildNode(node);
9970
9970
  }
@@ -9972,7 +9972,7 @@ const serializeAws_restXmlObjectLockConfiguration = (input, context) => {
9972
9972
  };
9973
9973
  const serializeAws_restXmlObjectLockLegalHold = (input, context) => {
9974
9974
  const bodyNode = new xml_builder_1.XmlNode("ObjectLockLegalHold");
9975
- if (input.Status !== undefined && input.Status !== null) {
9975
+ if (input.Status != null) {
9976
9976
  const node = new xml_builder_1.XmlNode("ObjectLockLegalHoldStatus")
9977
9977
  .addChildNode(new xml_builder_1.XmlText(input.Status))
9978
9978
  .withName("Status");
@@ -9982,11 +9982,11 @@ const serializeAws_restXmlObjectLockLegalHold = (input, context) => {
9982
9982
  };
9983
9983
  const serializeAws_restXmlObjectLockRetention = (input, context) => {
9984
9984
  const bodyNode = new xml_builder_1.XmlNode("ObjectLockRetention");
9985
- if (input.Mode !== undefined && input.Mode !== null) {
9985
+ if (input.Mode != null) {
9986
9986
  const node = new xml_builder_1.XmlNode("ObjectLockRetentionMode").addChildNode(new xml_builder_1.XmlText(input.Mode)).withName("Mode");
9987
9987
  bodyNode.addChildNode(node);
9988
9988
  }
9989
- if (input.RetainUntilDate !== undefined && input.RetainUntilDate !== null) {
9989
+ if (input.RetainUntilDate != null) {
9990
9990
  const node = new xml_builder_1.XmlNode("Date")
9991
9991
  .addChildNode(new xml_builder_1.XmlText(input.RetainUntilDate.toISOString().split(".")[0] + "Z"))
9992
9992
  .withName("RetainUntilDate");
@@ -9996,7 +9996,7 @@ const serializeAws_restXmlObjectLockRetention = (input, context) => {
9996
9996
  };
9997
9997
  const serializeAws_restXmlObjectLockRule = (input, context) => {
9998
9998
  const bodyNode = new xml_builder_1.XmlNode("ObjectLockRule");
9999
- if (input.DefaultRetention !== undefined && input.DefaultRetention !== null) {
9999
+ if (input.DefaultRetention != null) {
10000
10000
  const node = serializeAws_restXmlDefaultRetention(input.DefaultRetention, context).withName("DefaultRetention");
10001
10001
  bodyNode.addChildNode(node);
10002
10002
  }
@@ -10004,7 +10004,7 @@ const serializeAws_restXmlObjectLockRule = (input, context) => {
10004
10004
  };
10005
10005
  const serializeAws_restXmlOutputLocation = (input, context) => {
10006
10006
  const bodyNode = new xml_builder_1.XmlNode("OutputLocation");
10007
- if (input.S3 !== undefined && input.S3 !== null) {
10007
+ if (input.S3 != null) {
10008
10008
  const node = serializeAws_restXmlS3Location(input.S3, context).withName("S3");
10009
10009
  bodyNode.addChildNode(node);
10010
10010
  }
@@ -10012,11 +10012,11 @@ const serializeAws_restXmlOutputLocation = (input, context) => {
10012
10012
  };
10013
10013
  const serializeAws_restXmlOutputSerialization = (input, context) => {
10014
10014
  const bodyNode = new xml_builder_1.XmlNode("OutputSerialization");
10015
- if (input.CSV !== undefined && input.CSV !== null) {
10015
+ if (input.CSV != null) {
10016
10016
  const node = serializeAws_restXmlCSVOutput(input.CSV, context).withName("CSV");
10017
10017
  bodyNode.addChildNode(node);
10018
10018
  }
10019
- if (input.JSON !== undefined && input.JSON !== null) {
10019
+ if (input.JSON != null) {
10020
10020
  const node = serializeAws_restXmlJSONOutput(input.JSON, context).withName("JSON");
10021
10021
  bodyNode.addChildNode(node);
10022
10022
  }
@@ -10024,11 +10024,11 @@ const serializeAws_restXmlOutputSerialization = (input, context) => {
10024
10024
  };
10025
10025
  const serializeAws_restXmlOwner = (input, context) => {
10026
10026
  const bodyNode = new xml_builder_1.XmlNode("Owner");
10027
- if (input.DisplayName !== undefined && input.DisplayName !== null) {
10027
+ if (input.DisplayName != null) {
10028
10028
  const node = new xml_builder_1.XmlNode("DisplayName").addChildNode(new xml_builder_1.XmlText(input.DisplayName)).withName("DisplayName");
10029
10029
  bodyNode.addChildNode(node);
10030
10030
  }
10031
- if (input.ID !== undefined && input.ID !== null) {
10031
+ if (input.ID != null) {
10032
10032
  const node = new xml_builder_1.XmlNode("ID").addChildNode(new xml_builder_1.XmlText(input.ID)).withName("ID");
10033
10033
  bodyNode.addChildNode(node);
10034
10034
  }
@@ -10036,7 +10036,7 @@ const serializeAws_restXmlOwner = (input, context) => {
10036
10036
  };
10037
10037
  const serializeAws_restXmlOwnershipControls = (input, context) => {
10038
10038
  const bodyNode = new xml_builder_1.XmlNode("OwnershipControls");
10039
- if (input.Rules !== undefined && input.Rules !== null) {
10039
+ if (input.Rules != null) {
10040
10040
  const nodes = serializeAws_restXmlOwnershipControlsRules(input.Rules, context);
10041
10041
  nodes.map((node) => {
10042
10042
  node = node.withName("Rule");
@@ -10047,7 +10047,7 @@ const serializeAws_restXmlOwnershipControls = (input, context) => {
10047
10047
  };
10048
10048
  const serializeAws_restXmlOwnershipControlsRule = (input, context) => {
10049
10049
  const bodyNode = new xml_builder_1.XmlNode("OwnershipControlsRule");
10050
- if (input.ObjectOwnership !== undefined && input.ObjectOwnership !== null) {
10050
+ if (input.ObjectOwnership != null) {
10051
10051
  const node = new xml_builder_1.XmlNode("ObjectOwnership")
10052
10052
  .addChildNode(new xml_builder_1.XmlText(input.ObjectOwnership))
10053
10053
  .withName("ObjectOwnership");
@@ -10072,25 +10072,25 @@ const serializeAws_restXmlParquetInput = (input, context) => {
10072
10072
  };
10073
10073
  const serializeAws_restXmlPublicAccessBlockConfiguration = (input, context) => {
10074
10074
  const bodyNode = new xml_builder_1.XmlNode("PublicAccessBlockConfiguration");
10075
- if (input.BlockPublicAcls !== undefined && input.BlockPublicAcls !== null) {
10075
+ if (input.BlockPublicAcls != null) {
10076
10076
  const node = new xml_builder_1.XmlNode("Setting")
10077
10077
  .addChildNode(new xml_builder_1.XmlText(String(input.BlockPublicAcls)))
10078
10078
  .withName("BlockPublicAcls");
10079
10079
  bodyNode.addChildNode(node);
10080
10080
  }
10081
- if (input.IgnorePublicAcls !== undefined && input.IgnorePublicAcls !== null) {
10081
+ if (input.IgnorePublicAcls != null) {
10082
10082
  const node = new xml_builder_1.XmlNode("Setting")
10083
10083
  .addChildNode(new xml_builder_1.XmlText(String(input.IgnorePublicAcls)))
10084
10084
  .withName("IgnorePublicAcls");
10085
10085
  bodyNode.addChildNode(node);
10086
10086
  }
10087
- if (input.BlockPublicPolicy !== undefined && input.BlockPublicPolicy !== null) {
10087
+ if (input.BlockPublicPolicy != null) {
10088
10088
  const node = new xml_builder_1.XmlNode("Setting")
10089
10089
  .addChildNode(new xml_builder_1.XmlText(String(input.BlockPublicPolicy)))
10090
10090
  .withName("BlockPublicPolicy");
10091
10091
  bodyNode.addChildNode(node);
10092
10092
  }
10093
- if (input.RestrictPublicBuckets !== undefined && input.RestrictPublicBuckets !== null) {
10093
+ if (input.RestrictPublicBuckets != null) {
10094
10094
  const node = new xml_builder_1.XmlNode("Setting")
10095
10095
  .addChildNode(new xml_builder_1.XmlText(String(input.RestrictPublicBuckets)))
10096
10096
  .withName("RestrictPublicBuckets");
@@ -10100,22 +10100,22 @@ const serializeAws_restXmlPublicAccessBlockConfiguration = (input, context) => {
10100
10100
  };
10101
10101
  const serializeAws_restXmlQueueConfiguration = (input, context) => {
10102
10102
  const bodyNode = new xml_builder_1.XmlNode("QueueConfiguration");
10103
- if (input.Id !== undefined && input.Id !== null) {
10103
+ if (input.Id != null) {
10104
10104
  const node = new xml_builder_1.XmlNode("NotificationId").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
10105
10105
  bodyNode.addChildNode(node);
10106
10106
  }
10107
- if (input.QueueArn !== undefined && input.QueueArn !== null) {
10107
+ if (input.QueueArn != null) {
10108
10108
  const node = new xml_builder_1.XmlNode("QueueArn").addChildNode(new xml_builder_1.XmlText(input.QueueArn)).withName("Queue");
10109
10109
  bodyNode.addChildNode(node);
10110
10110
  }
10111
- if (input.Events !== undefined && input.Events !== null) {
10111
+ if (input.Events != null) {
10112
10112
  const nodes = serializeAws_restXmlEventList(input.Events, context);
10113
10113
  nodes.map((node) => {
10114
10114
  node = node.withName("Event");
10115
10115
  bodyNode.addChildNode(node);
10116
10116
  });
10117
10117
  }
10118
- if (input.Filter !== undefined && input.Filter !== null) {
10118
+ if (input.Filter != null) {
10119
10119
  const node = serializeAws_restXmlNotificationConfigurationFilter(input.Filter, context).withName("Filter");
10120
10120
  bodyNode.addChildNode(node);
10121
10121
  }
@@ -10134,27 +10134,27 @@ const serializeAws_restXmlQueueConfigurationList = (input, context) => {
10134
10134
  };
10135
10135
  const serializeAws_restXmlRedirect = (input, context) => {
10136
10136
  const bodyNode = new xml_builder_1.XmlNode("Redirect");
10137
- if (input.HostName !== undefined && input.HostName !== null) {
10137
+ if (input.HostName != null) {
10138
10138
  const node = new xml_builder_1.XmlNode("HostName").addChildNode(new xml_builder_1.XmlText(input.HostName)).withName("HostName");
10139
10139
  bodyNode.addChildNode(node);
10140
10140
  }
10141
- if (input.HttpRedirectCode !== undefined && input.HttpRedirectCode !== null) {
10141
+ if (input.HttpRedirectCode != null) {
10142
10142
  const node = new xml_builder_1.XmlNode("HttpRedirectCode")
10143
10143
  .addChildNode(new xml_builder_1.XmlText(input.HttpRedirectCode))
10144
10144
  .withName("HttpRedirectCode");
10145
10145
  bodyNode.addChildNode(node);
10146
10146
  }
10147
- if (input.Protocol !== undefined && input.Protocol !== null) {
10147
+ if (input.Protocol != null) {
10148
10148
  const node = new xml_builder_1.XmlNode("Protocol").addChildNode(new xml_builder_1.XmlText(input.Protocol)).withName("Protocol");
10149
10149
  bodyNode.addChildNode(node);
10150
10150
  }
10151
- if (input.ReplaceKeyPrefixWith !== undefined && input.ReplaceKeyPrefixWith !== null) {
10151
+ if (input.ReplaceKeyPrefixWith != null) {
10152
10152
  const node = new xml_builder_1.XmlNode("ReplaceKeyPrefixWith")
10153
10153
  .addChildNode(new xml_builder_1.XmlText(input.ReplaceKeyPrefixWith))
10154
10154
  .withName("ReplaceKeyPrefixWith");
10155
10155
  bodyNode.addChildNode(node);
10156
10156
  }
10157
- if (input.ReplaceKeyWith !== undefined && input.ReplaceKeyWith !== null) {
10157
+ if (input.ReplaceKeyWith != null) {
10158
10158
  const node = new xml_builder_1.XmlNode("ReplaceKeyWith")
10159
10159
  .addChildNode(new xml_builder_1.XmlText(input.ReplaceKeyWith))
10160
10160
  .withName("ReplaceKeyWith");
@@ -10164,11 +10164,11 @@ const serializeAws_restXmlRedirect = (input, context) => {
10164
10164
  };
10165
10165
  const serializeAws_restXmlRedirectAllRequestsTo = (input, context) => {
10166
10166
  const bodyNode = new xml_builder_1.XmlNode("RedirectAllRequestsTo");
10167
- if (input.HostName !== undefined && input.HostName !== null) {
10167
+ if (input.HostName != null) {
10168
10168
  const node = new xml_builder_1.XmlNode("HostName").addChildNode(new xml_builder_1.XmlText(input.HostName)).withName("HostName");
10169
10169
  bodyNode.addChildNode(node);
10170
10170
  }
10171
- if (input.Protocol !== undefined && input.Protocol !== null) {
10171
+ if (input.Protocol != null) {
10172
10172
  const node = new xml_builder_1.XmlNode("Protocol").addChildNode(new xml_builder_1.XmlText(input.Protocol)).withName("Protocol");
10173
10173
  bodyNode.addChildNode(node);
10174
10174
  }
@@ -10176,7 +10176,7 @@ const serializeAws_restXmlRedirectAllRequestsTo = (input, context) => {
10176
10176
  };
10177
10177
  const serializeAws_restXmlReplicaModifications = (input, context) => {
10178
10178
  const bodyNode = new xml_builder_1.XmlNode("ReplicaModifications");
10179
- if (input.Status !== undefined && input.Status !== null) {
10179
+ if (input.Status != null) {
10180
10180
  const node = new xml_builder_1.XmlNode("ReplicaModificationsStatus")
10181
10181
  .addChildNode(new xml_builder_1.XmlText(input.Status))
10182
10182
  .withName("Status");
@@ -10186,11 +10186,11 @@ const serializeAws_restXmlReplicaModifications = (input, context) => {
10186
10186
  };
10187
10187
  const serializeAws_restXmlReplicationConfiguration = (input, context) => {
10188
10188
  const bodyNode = new xml_builder_1.XmlNode("ReplicationConfiguration");
10189
- if (input.Role !== undefined && input.Role !== null) {
10189
+ if (input.Role != null) {
10190
10190
  const node = new xml_builder_1.XmlNode("Role").addChildNode(new xml_builder_1.XmlText(input.Role)).withName("Role");
10191
10191
  bodyNode.addChildNode(node);
10192
10192
  }
10193
- if (input.Rules !== undefined && input.Rules !== null) {
10193
+ if (input.Rules != null) {
10194
10194
  const nodes = serializeAws_restXmlReplicationRules(input.Rules, context);
10195
10195
  nodes.map((node) => {
10196
10196
  node = node.withName("Rule");
@@ -10201,39 +10201,39 @@ const serializeAws_restXmlReplicationConfiguration = (input, context) => {
10201
10201
  };
10202
10202
  const serializeAws_restXmlReplicationRule = (input, context) => {
10203
10203
  const bodyNode = new xml_builder_1.XmlNode("ReplicationRule");
10204
- if (input.ID !== undefined && input.ID !== null) {
10204
+ if (input.ID != null) {
10205
10205
  const node = new xml_builder_1.XmlNode("ID").addChildNode(new xml_builder_1.XmlText(input.ID)).withName("ID");
10206
10206
  bodyNode.addChildNode(node);
10207
10207
  }
10208
- if (input.Priority !== undefined && input.Priority !== null) {
10208
+ if (input.Priority != null) {
10209
10209
  const node = new xml_builder_1.XmlNode("Priority").addChildNode(new xml_builder_1.XmlText(String(input.Priority))).withName("Priority");
10210
10210
  bodyNode.addChildNode(node);
10211
10211
  }
10212
- if (input.Prefix !== undefined && input.Prefix !== null) {
10212
+ if (input.Prefix != null) {
10213
10213
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
10214
10214
  bodyNode.addChildNode(node);
10215
10215
  }
10216
- if (input.Filter !== undefined && input.Filter !== null) {
10216
+ if (input.Filter != null) {
10217
10217
  const node = serializeAws_restXmlReplicationRuleFilter(input.Filter, context).withName("Filter");
10218
10218
  bodyNode.addChildNode(node);
10219
10219
  }
10220
- if (input.Status !== undefined && input.Status !== null) {
10220
+ if (input.Status != null) {
10221
10221
  const node = new xml_builder_1.XmlNode("ReplicationRuleStatus").addChildNode(new xml_builder_1.XmlText(input.Status)).withName("Status");
10222
10222
  bodyNode.addChildNode(node);
10223
10223
  }
10224
- if (input.SourceSelectionCriteria !== undefined && input.SourceSelectionCriteria !== null) {
10224
+ if (input.SourceSelectionCriteria != null) {
10225
10225
  const node = serializeAws_restXmlSourceSelectionCriteria(input.SourceSelectionCriteria, context).withName("SourceSelectionCriteria");
10226
10226
  bodyNode.addChildNode(node);
10227
10227
  }
10228
- if (input.ExistingObjectReplication !== undefined && input.ExistingObjectReplication !== null) {
10228
+ if (input.ExistingObjectReplication != null) {
10229
10229
  const node = serializeAws_restXmlExistingObjectReplication(input.ExistingObjectReplication, context).withName("ExistingObjectReplication");
10230
10230
  bodyNode.addChildNode(node);
10231
10231
  }
10232
- if (input.Destination !== undefined && input.Destination !== null) {
10232
+ if (input.Destination != null) {
10233
10233
  const node = serializeAws_restXmlDestination(input.Destination, context).withName("Destination");
10234
10234
  bodyNode.addChildNode(node);
10235
10235
  }
10236
- if (input.DeleteMarkerReplication !== undefined && input.DeleteMarkerReplication !== null) {
10236
+ if (input.DeleteMarkerReplication != null) {
10237
10237
  const node = serializeAws_restXmlDeleteMarkerReplication(input.DeleteMarkerReplication, context).withName("DeleteMarkerReplication");
10238
10238
  bodyNode.addChildNode(node);
10239
10239
  }
@@ -10241,11 +10241,11 @@ const serializeAws_restXmlReplicationRule = (input, context) => {
10241
10241
  };
10242
10242
  const serializeAws_restXmlReplicationRuleAndOperator = (input, context) => {
10243
10243
  const bodyNode = new xml_builder_1.XmlNode("ReplicationRuleAndOperator");
10244
- if (input.Prefix !== undefined && input.Prefix !== null) {
10244
+ if (input.Prefix != null) {
10245
10245
  const node = new xml_builder_1.XmlNode("Prefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
10246
10246
  bodyNode.addChildNode(node);
10247
10247
  }
10248
- if (input.Tags !== undefined && input.Tags !== null) {
10248
+ if (input.Tags != null) {
10249
10249
  const nodes = serializeAws_restXmlTagSet(input.Tags, context);
10250
10250
  nodes.map((node) => {
10251
10251
  node = node.withName("Tag");
@@ -10291,11 +10291,11 @@ const serializeAws_restXmlReplicationRules = (input, context) => {
10291
10291
  };
10292
10292
  const serializeAws_restXmlReplicationTime = (input, context) => {
10293
10293
  const bodyNode = new xml_builder_1.XmlNode("ReplicationTime");
10294
- if (input.Status !== undefined && input.Status !== null) {
10294
+ if (input.Status != null) {
10295
10295
  const node = new xml_builder_1.XmlNode("ReplicationTimeStatus").addChildNode(new xml_builder_1.XmlText(input.Status)).withName("Status");
10296
10296
  bodyNode.addChildNode(node);
10297
10297
  }
10298
- if (input.Time !== undefined && input.Time !== null) {
10298
+ if (input.Time != null) {
10299
10299
  const node = serializeAws_restXmlReplicationTimeValue(input.Time, context).withName("Time");
10300
10300
  bodyNode.addChildNode(node);
10301
10301
  }
@@ -10303,7 +10303,7 @@ const serializeAws_restXmlReplicationTime = (input, context) => {
10303
10303
  };
10304
10304
  const serializeAws_restXmlReplicationTimeValue = (input, context) => {
10305
10305
  const bodyNode = new xml_builder_1.XmlNode("ReplicationTimeValue");
10306
- if (input.Minutes !== undefined && input.Minutes !== null) {
10306
+ if (input.Minutes != null) {
10307
10307
  const node = new xml_builder_1.XmlNode("Minutes").addChildNode(new xml_builder_1.XmlText(String(input.Minutes))).withName("Minutes");
10308
10308
  bodyNode.addChildNode(node);
10309
10309
  }
@@ -10311,7 +10311,7 @@ const serializeAws_restXmlReplicationTimeValue = (input, context) => {
10311
10311
  };
10312
10312
  const serializeAws_restXmlRequestPaymentConfiguration = (input, context) => {
10313
10313
  const bodyNode = new xml_builder_1.XmlNode("RequestPaymentConfiguration");
10314
- if (input.Payer !== undefined && input.Payer !== null) {
10314
+ if (input.Payer != null) {
10315
10315
  const node = new xml_builder_1.XmlNode("Payer").addChildNode(new xml_builder_1.XmlText(input.Payer)).withName("Payer");
10316
10316
  bodyNode.addChildNode(node);
10317
10317
  }
@@ -10319,7 +10319,7 @@ const serializeAws_restXmlRequestPaymentConfiguration = (input, context) => {
10319
10319
  };
10320
10320
  const serializeAws_restXmlRequestProgress = (input, context) => {
10321
10321
  const bodyNode = new xml_builder_1.XmlNode("RequestProgress");
10322
- if (input.Enabled !== undefined && input.Enabled !== null) {
10322
+ if (input.Enabled != null) {
10323
10323
  const node = new xml_builder_1.XmlNode("EnableRequestProgress")
10324
10324
  .addChildNode(new xml_builder_1.XmlText(String(input.Enabled)))
10325
10325
  .withName("Enabled");
@@ -10329,31 +10329,31 @@ const serializeAws_restXmlRequestProgress = (input, context) => {
10329
10329
  };
10330
10330
  const serializeAws_restXmlRestoreRequest = (input, context) => {
10331
10331
  const bodyNode = new xml_builder_1.XmlNode("RestoreRequest");
10332
- if (input.Days !== undefined && input.Days !== null) {
10332
+ if (input.Days != null) {
10333
10333
  const node = new xml_builder_1.XmlNode("Days").addChildNode(new xml_builder_1.XmlText(String(input.Days))).withName("Days");
10334
10334
  bodyNode.addChildNode(node);
10335
10335
  }
10336
- if (input.GlacierJobParameters !== undefined && input.GlacierJobParameters !== null) {
10336
+ if (input.GlacierJobParameters != null) {
10337
10337
  const node = serializeAws_restXmlGlacierJobParameters(input.GlacierJobParameters, context).withName("GlacierJobParameters");
10338
10338
  bodyNode.addChildNode(node);
10339
10339
  }
10340
- if (input.Type !== undefined && input.Type !== null) {
10340
+ if (input.Type != null) {
10341
10341
  const node = new xml_builder_1.XmlNode("RestoreRequestType").addChildNode(new xml_builder_1.XmlText(input.Type)).withName("Type");
10342
10342
  bodyNode.addChildNode(node);
10343
10343
  }
10344
- if (input.Tier !== undefined && input.Tier !== null) {
10344
+ if (input.Tier != null) {
10345
10345
  const node = new xml_builder_1.XmlNode("Tier").addChildNode(new xml_builder_1.XmlText(input.Tier)).withName("Tier");
10346
10346
  bodyNode.addChildNode(node);
10347
10347
  }
10348
- if (input.Description !== undefined && input.Description !== null) {
10348
+ if (input.Description != null) {
10349
10349
  const node = new xml_builder_1.XmlNode("Description").addChildNode(new xml_builder_1.XmlText(input.Description)).withName("Description");
10350
10350
  bodyNode.addChildNode(node);
10351
10351
  }
10352
- if (input.SelectParameters !== undefined && input.SelectParameters !== null) {
10352
+ if (input.SelectParameters != null) {
10353
10353
  const node = serializeAws_restXmlSelectParameters(input.SelectParameters, context).withName("SelectParameters");
10354
10354
  bodyNode.addChildNode(node);
10355
10355
  }
10356
- if (input.OutputLocation !== undefined && input.OutputLocation !== null) {
10356
+ if (input.OutputLocation != null) {
10357
10357
  const node = serializeAws_restXmlOutputLocation(input.OutputLocation, context).withName("OutputLocation");
10358
10358
  bodyNode.addChildNode(node);
10359
10359
  }
@@ -10361,11 +10361,11 @@ const serializeAws_restXmlRestoreRequest = (input, context) => {
10361
10361
  };
10362
10362
  const serializeAws_restXmlRoutingRule = (input, context) => {
10363
10363
  const bodyNode = new xml_builder_1.XmlNode("RoutingRule");
10364
- if (input.Condition !== undefined && input.Condition !== null) {
10364
+ if (input.Condition != null) {
10365
10365
  const node = serializeAws_restXmlCondition(input.Condition, context).withName("Condition");
10366
10366
  bodyNode.addChildNode(node);
10367
10367
  }
10368
- if (input.Redirect !== undefined && input.Redirect !== null) {
10368
+ if (input.Redirect != null) {
10369
10369
  const node = serializeAws_restXmlRedirect(input.Redirect, context).withName("Redirect");
10370
10370
  bodyNode.addChildNode(node);
10371
10371
  }
@@ -10384,7 +10384,7 @@ const serializeAws_restXmlRoutingRules = (input, context) => {
10384
10384
  };
10385
10385
  const serializeAws_restXmlS3KeyFilter = (input, context) => {
10386
10386
  const bodyNode = new xml_builder_1.XmlNode("S3KeyFilter");
10387
- if (input.FilterRules !== undefined && input.FilterRules !== null) {
10387
+ if (input.FilterRules != null) {
10388
10388
  const nodes = serializeAws_restXmlFilterRuleList(input.FilterRules, context);
10389
10389
  nodes.map((node) => {
10390
10390
  node = node.withName("FilterRule");
@@ -10395,23 +10395,23 @@ const serializeAws_restXmlS3KeyFilter = (input, context) => {
10395
10395
  };
10396
10396
  const serializeAws_restXmlS3Location = (input, context) => {
10397
10397
  const bodyNode = new xml_builder_1.XmlNode("S3Location");
10398
- if (input.BucketName !== undefined && input.BucketName !== null) {
10398
+ if (input.BucketName != null) {
10399
10399
  const node = new xml_builder_1.XmlNode("BucketName").addChildNode(new xml_builder_1.XmlText(input.BucketName)).withName("BucketName");
10400
10400
  bodyNode.addChildNode(node);
10401
10401
  }
10402
- if (input.Prefix !== undefined && input.Prefix !== null) {
10402
+ if (input.Prefix != null) {
10403
10403
  const node = new xml_builder_1.XmlNode("LocationPrefix").addChildNode(new xml_builder_1.XmlText(input.Prefix)).withName("Prefix");
10404
10404
  bodyNode.addChildNode(node);
10405
10405
  }
10406
- if (input.Encryption !== undefined && input.Encryption !== null) {
10406
+ if (input.Encryption != null) {
10407
10407
  const node = serializeAws_restXmlEncryption(input.Encryption, context).withName("Encryption");
10408
10408
  bodyNode.addChildNode(node);
10409
10409
  }
10410
- if (input.CannedACL !== undefined && input.CannedACL !== null) {
10410
+ if (input.CannedACL != null) {
10411
10411
  const node = new xml_builder_1.XmlNode("ObjectCannedACL").addChildNode(new xml_builder_1.XmlText(input.CannedACL)).withName("CannedACL");
10412
10412
  bodyNode.addChildNode(node);
10413
10413
  }
10414
- if (input.AccessControlList !== undefined && input.AccessControlList !== null) {
10414
+ if (input.AccessControlList != null) {
10415
10415
  const nodes = serializeAws_restXmlGrants(input.AccessControlList, context);
10416
10416
  const containerNode = new xml_builder_1.XmlNode("AccessControlList");
10417
10417
  nodes.map((node) => {
@@ -10419,11 +10419,11 @@ const serializeAws_restXmlS3Location = (input, context) => {
10419
10419
  });
10420
10420
  bodyNode.addChildNode(containerNode);
10421
10421
  }
10422
- if (input.Tagging !== undefined && input.Tagging !== null) {
10422
+ if (input.Tagging != null) {
10423
10423
  const node = serializeAws_restXmlTagging(input.Tagging, context).withName("Tagging");
10424
10424
  bodyNode.addChildNode(node);
10425
10425
  }
10426
- if (input.UserMetadata !== undefined && input.UserMetadata !== null) {
10426
+ if (input.UserMetadata != null) {
10427
10427
  const nodes = serializeAws_restXmlUserMetadata(input.UserMetadata, context);
10428
10428
  const containerNode = new xml_builder_1.XmlNode("UserMetadata");
10429
10429
  nodes.map((node) => {
@@ -10431,7 +10431,7 @@ const serializeAws_restXmlS3Location = (input, context) => {
10431
10431
  });
10432
10432
  bodyNode.addChildNode(containerNode);
10433
10433
  }
10434
- if (input.StorageClass !== undefined && input.StorageClass !== null) {
10434
+ if (input.StorageClass != null) {
10435
10435
  const node = new xml_builder_1.XmlNode("StorageClass").addChildNode(new xml_builder_1.XmlText(input.StorageClass)).withName("StorageClass");
10436
10436
  bodyNode.addChildNode(node);
10437
10437
  }
@@ -10439,11 +10439,11 @@ const serializeAws_restXmlS3Location = (input, context) => {
10439
10439
  };
10440
10440
  const serializeAws_restXmlScanRange = (input, context) => {
10441
10441
  const bodyNode = new xml_builder_1.XmlNode("ScanRange");
10442
- if (input.Start !== undefined && input.Start !== null) {
10442
+ if (input.Start != null) {
10443
10443
  const node = new xml_builder_1.XmlNode("Start").addChildNode(new xml_builder_1.XmlText(String(input.Start))).withName("Start");
10444
10444
  bodyNode.addChildNode(node);
10445
10445
  }
10446
- if (input.End !== undefined && input.End !== null) {
10446
+ if (input.End != null) {
10447
10447
  const node = new xml_builder_1.XmlNode("End").addChildNode(new xml_builder_1.XmlText(String(input.End))).withName("End");
10448
10448
  bodyNode.addChildNode(node);
10449
10449
  }
@@ -10451,21 +10451,21 @@ const serializeAws_restXmlScanRange = (input, context) => {
10451
10451
  };
10452
10452
  const serializeAws_restXmlSelectParameters = (input, context) => {
10453
10453
  const bodyNode = new xml_builder_1.XmlNode("SelectParameters");
10454
- if (input.InputSerialization !== undefined && input.InputSerialization !== null) {
10454
+ if (input.InputSerialization != null) {
10455
10455
  const node = serializeAws_restXmlInputSerialization(input.InputSerialization, context).withName("InputSerialization");
10456
10456
  bodyNode.addChildNode(node);
10457
10457
  }
10458
- if (input.ExpressionType !== undefined && input.ExpressionType !== null) {
10458
+ if (input.ExpressionType != null) {
10459
10459
  const node = new xml_builder_1.XmlNode("ExpressionType")
10460
10460
  .addChildNode(new xml_builder_1.XmlText(input.ExpressionType))
10461
10461
  .withName("ExpressionType");
10462
10462
  bodyNode.addChildNode(node);
10463
10463
  }
10464
- if (input.Expression !== undefined && input.Expression !== null) {
10464
+ if (input.Expression != null) {
10465
10465
  const node = new xml_builder_1.XmlNode("Expression").addChildNode(new xml_builder_1.XmlText(input.Expression)).withName("Expression");
10466
10466
  bodyNode.addChildNode(node);
10467
10467
  }
10468
- if (input.OutputSerialization !== undefined && input.OutputSerialization !== null) {
10468
+ if (input.OutputSerialization != null) {
10469
10469
  const node = serializeAws_restXmlOutputSerialization(input.OutputSerialization, context).withName("OutputSerialization");
10470
10470
  bodyNode.addChildNode(node);
10471
10471
  }
@@ -10473,13 +10473,13 @@ const serializeAws_restXmlSelectParameters = (input, context) => {
10473
10473
  };
10474
10474
  const serializeAws_restXmlServerSideEncryptionByDefault = (input, context) => {
10475
10475
  const bodyNode = new xml_builder_1.XmlNode("ServerSideEncryptionByDefault");
10476
- if (input.SSEAlgorithm !== undefined && input.SSEAlgorithm !== null) {
10476
+ if (input.SSEAlgorithm != null) {
10477
10477
  const node = new xml_builder_1.XmlNode("ServerSideEncryption")
10478
10478
  .addChildNode(new xml_builder_1.XmlText(input.SSEAlgorithm))
10479
10479
  .withName("SSEAlgorithm");
10480
10480
  bodyNode.addChildNode(node);
10481
10481
  }
10482
- if (input.KMSMasterKeyID !== undefined && input.KMSMasterKeyID !== null) {
10482
+ if (input.KMSMasterKeyID != null) {
10483
10483
  const node = new xml_builder_1.XmlNode("SSEKMSKeyId")
10484
10484
  .addChildNode(new xml_builder_1.XmlText(input.KMSMasterKeyID))
10485
10485
  .withName("KMSMasterKeyID");
@@ -10489,7 +10489,7 @@ const serializeAws_restXmlServerSideEncryptionByDefault = (input, context) => {
10489
10489
  };
10490
10490
  const serializeAws_restXmlServerSideEncryptionConfiguration = (input, context) => {
10491
10491
  const bodyNode = new xml_builder_1.XmlNode("ServerSideEncryptionConfiguration");
10492
- if (input.Rules !== undefined && input.Rules !== null) {
10492
+ if (input.Rules != null) {
10493
10493
  const nodes = serializeAws_restXmlServerSideEncryptionRules(input.Rules, context);
10494
10494
  nodes.map((node) => {
10495
10495
  node = node.withName("Rule");
@@ -10500,11 +10500,11 @@ const serializeAws_restXmlServerSideEncryptionConfiguration = (input, context) =
10500
10500
  };
10501
10501
  const serializeAws_restXmlServerSideEncryptionRule = (input, context) => {
10502
10502
  const bodyNode = new xml_builder_1.XmlNode("ServerSideEncryptionRule");
10503
- if (input.ApplyServerSideEncryptionByDefault !== undefined && input.ApplyServerSideEncryptionByDefault !== null) {
10503
+ if (input.ApplyServerSideEncryptionByDefault != null) {
10504
10504
  const node = serializeAws_restXmlServerSideEncryptionByDefault(input.ApplyServerSideEncryptionByDefault, context).withName("ApplyServerSideEncryptionByDefault");
10505
10505
  bodyNode.addChildNode(node);
10506
10506
  }
10507
- if (input.BucketKeyEnabled !== undefined && input.BucketKeyEnabled !== null) {
10507
+ if (input.BucketKeyEnabled != null) {
10508
10508
  const node = new xml_builder_1.XmlNode("BucketKeyEnabled")
10509
10509
  .addChildNode(new xml_builder_1.XmlText(String(input.BucketKeyEnabled)))
10510
10510
  .withName("BucketKeyEnabled");
@@ -10525,11 +10525,11 @@ const serializeAws_restXmlServerSideEncryptionRules = (input, context) => {
10525
10525
  };
10526
10526
  const serializeAws_restXmlSourceSelectionCriteria = (input, context) => {
10527
10527
  const bodyNode = new xml_builder_1.XmlNode("SourceSelectionCriteria");
10528
- if (input.SseKmsEncryptedObjects !== undefined && input.SseKmsEncryptedObjects !== null) {
10528
+ if (input.SseKmsEncryptedObjects != null) {
10529
10529
  const node = serializeAws_restXmlSseKmsEncryptedObjects(input.SseKmsEncryptedObjects, context).withName("SseKmsEncryptedObjects");
10530
10530
  bodyNode.addChildNode(node);
10531
10531
  }
10532
- if (input.ReplicaModifications !== undefined && input.ReplicaModifications !== null) {
10532
+ if (input.ReplicaModifications != null) {
10533
10533
  const node = serializeAws_restXmlReplicaModifications(input.ReplicaModifications, context).withName("ReplicaModifications");
10534
10534
  bodyNode.addChildNode(node);
10535
10535
  }
@@ -10537,7 +10537,7 @@ const serializeAws_restXmlSourceSelectionCriteria = (input, context) => {
10537
10537
  };
10538
10538
  const serializeAws_restXmlSSEKMS = (input, context) => {
10539
10539
  const bodyNode = new xml_builder_1.XmlNode("SSE-KMS");
10540
- if (input.KeyId !== undefined && input.KeyId !== null) {
10540
+ if (input.KeyId != null) {
10541
10541
  const node = new xml_builder_1.XmlNode("SSEKMSKeyId").addChildNode(new xml_builder_1.XmlText(input.KeyId)).withName("KeyId");
10542
10542
  bodyNode.addChildNode(node);
10543
10543
  }
@@ -10545,7 +10545,7 @@ const serializeAws_restXmlSSEKMS = (input, context) => {
10545
10545
  };
10546
10546
  const serializeAws_restXmlSseKmsEncryptedObjects = (input, context) => {
10547
10547
  const bodyNode = new xml_builder_1.XmlNode("SseKmsEncryptedObjects");
10548
- if (input.Status !== undefined && input.Status !== null) {
10548
+ if (input.Status != null) {
10549
10549
  const node = new xml_builder_1.XmlNode("SseKmsEncryptedObjectsStatus")
10550
10550
  .addChildNode(new xml_builder_1.XmlText(input.Status))
10551
10551
  .withName("Status");
@@ -10559,7 +10559,7 @@ const serializeAws_restXmlSSES3 = (input, context) => {
10559
10559
  };
10560
10560
  const serializeAws_restXmlStorageClassAnalysis = (input, context) => {
10561
10561
  const bodyNode = new xml_builder_1.XmlNode("StorageClassAnalysis");
10562
- if (input.DataExport !== undefined && input.DataExport !== null) {
10562
+ if (input.DataExport != null) {
10563
10563
  const node = serializeAws_restXmlStorageClassAnalysisDataExport(input.DataExport, context).withName("DataExport");
10564
10564
  bodyNode.addChildNode(node);
10565
10565
  }
@@ -10567,13 +10567,13 @@ const serializeAws_restXmlStorageClassAnalysis = (input, context) => {
10567
10567
  };
10568
10568
  const serializeAws_restXmlStorageClassAnalysisDataExport = (input, context) => {
10569
10569
  const bodyNode = new xml_builder_1.XmlNode("StorageClassAnalysisDataExport");
10570
- if (input.OutputSchemaVersion !== undefined && input.OutputSchemaVersion !== null) {
10570
+ if (input.OutputSchemaVersion != null) {
10571
10571
  const node = new xml_builder_1.XmlNode("StorageClassAnalysisSchemaVersion")
10572
10572
  .addChildNode(new xml_builder_1.XmlText(input.OutputSchemaVersion))
10573
10573
  .withName("OutputSchemaVersion");
10574
10574
  bodyNode.addChildNode(node);
10575
10575
  }
10576
- if (input.Destination !== undefined && input.Destination !== null) {
10576
+ if (input.Destination != null) {
10577
10577
  const node = serializeAws_restXmlAnalyticsExportDestination(input.Destination, context).withName("Destination");
10578
10578
  bodyNode.addChildNode(node);
10579
10579
  }
@@ -10581,11 +10581,11 @@ const serializeAws_restXmlStorageClassAnalysisDataExport = (input, context) => {
10581
10581
  };
10582
10582
  const serializeAws_restXmlTag = (input, context) => {
10583
10583
  const bodyNode = new xml_builder_1.XmlNode("Tag");
10584
- if (input.Key !== undefined && input.Key !== null) {
10584
+ if (input.Key != null) {
10585
10585
  const node = new xml_builder_1.XmlNode("ObjectKey").addChildNode(new xml_builder_1.XmlText(input.Key)).withName("Key");
10586
10586
  bodyNode.addChildNode(node);
10587
10587
  }
10588
- if (input.Value !== undefined && input.Value !== null) {
10588
+ if (input.Value != null) {
10589
10589
  const node = new xml_builder_1.XmlNode("Value").addChildNode(new xml_builder_1.XmlText(input.Value)).withName("Value");
10590
10590
  bodyNode.addChildNode(node);
10591
10591
  }
@@ -10593,7 +10593,7 @@ const serializeAws_restXmlTag = (input, context) => {
10593
10593
  };
10594
10594
  const serializeAws_restXmlTagging = (input, context) => {
10595
10595
  const bodyNode = new xml_builder_1.XmlNode("Tagging");
10596
- if (input.TagSet !== undefined && input.TagSet !== null) {
10596
+ if (input.TagSet != null) {
10597
10597
  const nodes = serializeAws_restXmlTagSet(input.TagSet, context);
10598
10598
  const containerNode = new xml_builder_1.XmlNode("TagSet");
10599
10599
  nodes.map((node) => {
@@ -10616,12 +10616,12 @@ const serializeAws_restXmlTagSet = (input, context) => {
10616
10616
  };
10617
10617
  const serializeAws_restXmlTargetGrant = (input, context) => {
10618
10618
  const bodyNode = new xml_builder_1.XmlNode("TargetGrant");
10619
- if (input.Grantee !== undefined && input.Grantee !== null) {
10619
+ if (input.Grantee != null) {
10620
10620
  const node = serializeAws_restXmlGrantee(input.Grantee, context).withName("Grantee");
10621
10621
  node.addAttribute("xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance");
10622
10622
  bodyNode.addChildNode(node);
10623
10623
  }
10624
- if (input.Permission !== undefined && input.Permission !== null) {
10624
+ if (input.Permission != null) {
10625
10625
  const node = new xml_builder_1.XmlNode("BucketLogsPermission")
10626
10626
  .addChildNode(new xml_builder_1.XmlText(input.Permission))
10627
10627
  .withName("Permission");
@@ -10642,13 +10642,13 @@ const serializeAws_restXmlTargetGrants = (input, context) => {
10642
10642
  };
10643
10643
  const serializeAws_restXmlTiering = (input, context) => {
10644
10644
  const bodyNode = new xml_builder_1.XmlNode("Tiering");
10645
- if (input.Days !== undefined && input.Days !== null) {
10645
+ if (input.Days != null) {
10646
10646
  const node = new xml_builder_1.XmlNode("IntelligentTieringDays")
10647
10647
  .addChildNode(new xml_builder_1.XmlText(String(input.Days)))
10648
10648
  .withName("Days");
10649
10649
  bodyNode.addChildNode(node);
10650
10650
  }
10651
- if (input.AccessTier !== undefined && input.AccessTier !== null) {
10651
+ if (input.AccessTier != null) {
10652
10652
  const node = new xml_builder_1.XmlNode("IntelligentTieringAccessTier")
10653
10653
  .addChildNode(new xml_builder_1.XmlText(input.AccessTier))
10654
10654
  .withName("AccessTier");
@@ -10669,22 +10669,22 @@ const serializeAws_restXmlTieringList = (input, context) => {
10669
10669
  };
10670
10670
  const serializeAws_restXmlTopicConfiguration = (input, context) => {
10671
10671
  const bodyNode = new xml_builder_1.XmlNode("TopicConfiguration");
10672
- if (input.Id !== undefined && input.Id !== null) {
10672
+ if (input.Id != null) {
10673
10673
  const node = new xml_builder_1.XmlNode("NotificationId").addChildNode(new xml_builder_1.XmlText(input.Id)).withName("Id");
10674
10674
  bodyNode.addChildNode(node);
10675
10675
  }
10676
- if (input.TopicArn !== undefined && input.TopicArn !== null) {
10676
+ if (input.TopicArn != null) {
10677
10677
  const node = new xml_builder_1.XmlNode("TopicArn").addChildNode(new xml_builder_1.XmlText(input.TopicArn)).withName("Topic");
10678
10678
  bodyNode.addChildNode(node);
10679
10679
  }
10680
- if (input.Events !== undefined && input.Events !== null) {
10680
+ if (input.Events != null) {
10681
10681
  const nodes = serializeAws_restXmlEventList(input.Events, context);
10682
10682
  nodes.map((node) => {
10683
10683
  node = node.withName("Event");
10684
10684
  bodyNode.addChildNode(node);
10685
10685
  });
10686
10686
  }
10687
- if (input.Filter !== undefined && input.Filter !== null) {
10687
+ if (input.Filter != null) {
10688
10688
  const node = serializeAws_restXmlNotificationConfigurationFilter(input.Filter, context).withName("Filter");
10689
10689
  bodyNode.addChildNode(node);
10690
10690
  }
@@ -10703,17 +10703,17 @@ const serializeAws_restXmlTopicConfigurationList = (input, context) => {
10703
10703
  };
10704
10704
  const serializeAws_restXmlTransition = (input, context) => {
10705
10705
  const bodyNode = new xml_builder_1.XmlNode("Transition");
10706
- if (input.Date !== undefined && input.Date !== null) {
10706
+ if (input.Date != null) {
10707
10707
  const node = new xml_builder_1.XmlNode("Date")
10708
10708
  .addChildNode(new xml_builder_1.XmlText(input.Date.toISOString().split(".")[0] + "Z"))
10709
10709
  .withName("Date");
10710
10710
  bodyNode.addChildNode(node);
10711
10711
  }
10712
- if (input.Days !== undefined && input.Days !== null) {
10712
+ if (input.Days != null) {
10713
10713
  const node = new xml_builder_1.XmlNode("Days").addChildNode(new xml_builder_1.XmlText(String(input.Days))).withName("Days");
10714
10714
  bodyNode.addChildNode(node);
10715
10715
  }
10716
- if (input.StorageClass !== undefined && input.StorageClass !== null) {
10716
+ if (input.StorageClass != null) {
10717
10717
  const node = new xml_builder_1.XmlNode("TransitionStorageClass")
10718
10718
  .addChildNode(new xml_builder_1.XmlText(input.StorageClass))
10719
10719
  .withName("StorageClass");
@@ -10745,11 +10745,11 @@ const serializeAws_restXmlUserMetadata = (input, context) => {
10745
10745
  };
10746
10746
  const serializeAws_restXmlVersioningConfiguration = (input, context) => {
10747
10747
  const bodyNode = new xml_builder_1.XmlNode("VersioningConfiguration");
10748
- if (input.MFADelete !== undefined && input.MFADelete !== null) {
10748
+ if (input.MFADelete != null) {
10749
10749
  const node = new xml_builder_1.XmlNode("MFADelete").addChildNode(new xml_builder_1.XmlText(input.MFADelete)).withName("MfaDelete");
10750
10750
  bodyNode.addChildNode(node);
10751
10751
  }
10752
- if (input.Status !== undefined && input.Status !== null) {
10752
+ if (input.Status != null) {
10753
10753
  const node = new xml_builder_1.XmlNode("BucketVersioningStatus").addChildNode(new xml_builder_1.XmlText(input.Status)).withName("Status");
10754
10754
  bodyNode.addChildNode(node);
10755
10755
  }
@@ -10757,19 +10757,19 @@ const serializeAws_restXmlVersioningConfiguration = (input, context) => {
10757
10757
  };
10758
10758
  const serializeAws_restXmlWebsiteConfiguration = (input, context) => {
10759
10759
  const bodyNode = new xml_builder_1.XmlNode("WebsiteConfiguration");
10760
- if (input.ErrorDocument !== undefined && input.ErrorDocument !== null) {
10760
+ if (input.ErrorDocument != null) {
10761
10761
  const node = serializeAws_restXmlErrorDocument(input.ErrorDocument, context).withName("ErrorDocument");
10762
10762
  bodyNode.addChildNode(node);
10763
10763
  }
10764
- if (input.IndexDocument !== undefined && input.IndexDocument !== null) {
10764
+ if (input.IndexDocument != null) {
10765
10765
  const node = serializeAws_restXmlIndexDocument(input.IndexDocument, context).withName("IndexDocument");
10766
10766
  bodyNode.addChildNode(node);
10767
10767
  }
10768
- if (input.RedirectAllRequestsTo !== undefined && input.RedirectAllRequestsTo !== null) {
10768
+ if (input.RedirectAllRequestsTo != null) {
10769
10769
  const node = serializeAws_restXmlRedirectAllRequestsTo(input.RedirectAllRequestsTo, context).withName("RedirectAllRequestsTo");
10770
10770
  bodyNode.addChildNode(node);
10771
10771
  }
10772
- if (input.RoutingRules !== undefined && input.RoutingRules !== null) {
10772
+ if (input.RoutingRules != null) {
10773
10773
  const nodes = serializeAws_restXmlRoutingRules(input.RoutingRules, context);
10774
10774
  const containerNode = new xml_builder_1.XmlNode("RoutingRules");
10775
10775
  nodes.map((node) => {