@aws-sdk/client-databrew 3.121.0 → 3.130.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,8 +24,7 @@ const serializeAws_restJson1BatchDeleteRecipeVersionCommand = async (input, cont
24
24
  }
25
25
  let body;
26
26
  body = JSON.stringify({
27
- ...(input.RecipeVersions !== undefined &&
28
- input.RecipeVersions !== null && {
27
+ ...(input.RecipeVersions != null && {
29
28
  RecipeVersions: serializeAws_restJson1RecipeVersionList(input.RecipeVersions, context),
30
29
  }),
31
30
  });
@@ -48,17 +47,14 @@ const serializeAws_restJson1CreateDatasetCommand = async (input, context) => {
48
47
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/datasets";
49
48
  let body;
50
49
  body = JSON.stringify({
51
- ...(input.Format !== undefined && input.Format !== null && { Format: input.Format }),
52
- ...(input.FormatOptions !== undefined &&
53
- input.FormatOptions !== null && {
50
+ ...(input.Format != null && { Format: input.Format }),
51
+ ...(input.FormatOptions != null && {
54
52
  FormatOptions: serializeAws_restJson1FormatOptions(input.FormatOptions, context),
55
53
  }),
56
- ...(input.Input !== undefined &&
57
- input.Input !== null && { Input: serializeAws_restJson1Input(input.Input, context) }),
58
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
59
- ...(input.PathOptions !== undefined &&
60
- input.PathOptions !== null && { PathOptions: serializeAws_restJson1PathOptions(input.PathOptions, context) }),
61
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
54
+ ...(input.Input != null && { Input: serializeAws_restJson1Input(input.Input, context) }),
55
+ ...(input.Name != null && { Name: input.Name }),
56
+ ...(input.PathOptions != null && { PathOptions: serializeAws_restJson1PathOptions(input.PathOptions, context) }),
57
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
62
58
  });
63
59
  return new protocol_http_1.HttpRequest({
64
60
  protocol,
@@ -79,31 +75,24 @@ const serializeAws_restJson1CreateProfileJobCommand = async (input, context) =>
79
75
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/profileJobs";
80
76
  let body;
81
77
  body = JSON.stringify({
82
- ...(input.Configuration !== undefined &&
83
- input.Configuration !== null && {
78
+ ...(input.Configuration != null && {
84
79
  Configuration: serializeAws_restJson1ProfileConfiguration(input.Configuration, context),
85
80
  }),
86
- ...(input.DatasetName !== undefined && input.DatasetName !== null && { DatasetName: input.DatasetName }),
87
- ...(input.EncryptionKeyArn !== undefined &&
88
- input.EncryptionKeyArn !== null && { EncryptionKeyArn: input.EncryptionKeyArn }),
89
- ...(input.EncryptionMode !== undefined &&
90
- input.EncryptionMode !== null && { EncryptionMode: input.EncryptionMode }),
91
- ...(input.JobSample !== undefined &&
92
- input.JobSample !== null && { JobSample: serializeAws_restJson1JobSample(input.JobSample, context) }),
93
- ...(input.LogSubscription !== undefined &&
94
- input.LogSubscription !== null && { LogSubscription: input.LogSubscription }),
95
- ...(input.MaxCapacity !== undefined && input.MaxCapacity !== null && { MaxCapacity: input.MaxCapacity }),
96
- ...(input.MaxRetries !== undefined && input.MaxRetries !== null && { MaxRetries: input.MaxRetries }),
97
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
98
- ...(input.OutputLocation !== undefined &&
99
- input.OutputLocation !== null && {
81
+ ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
82
+ ...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
83
+ ...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
84
+ ...(input.JobSample != null && { JobSample: serializeAws_restJson1JobSample(input.JobSample, context) }),
85
+ ...(input.LogSubscription != null && { LogSubscription: input.LogSubscription }),
86
+ ...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
87
+ ...(input.MaxRetries != null && { MaxRetries: input.MaxRetries }),
88
+ ...(input.Name != null && { Name: input.Name }),
89
+ ...(input.OutputLocation != null && {
100
90
  OutputLocation: serializeAws_restJson1S3Location(input.OutputLocation, context),
101
91
  }),
102
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
103
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
104
- ...(input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout }),
105
- ...(input.ValidationConfigurations !== undefined &&
106
- input.ValidationConfigurations !== null && {
92
+ ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
93
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
94
+ ...(input.Timeout != null && { Timeout: input.Timeout }),
95
+ ...(input.ValidationConfigurations != null && {
107
96
  ValidationConfigurations: serializeAws_restJson1ValidationConfigurationList(input.ValidationConfigurations, context),
108
97
  }),
109
98
  });
@@ -126,13 +115,12 @@ const serializeAws_restJson1CreateProjectCommand = async (input, context) => {
126
115
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/projects";
127
116
  let body;
128
117
  body = JSON.stringify({
129
- ...(input.DatasetName !== undefined && input.DatasetName !== null && { DatasetName: input.DatasetName }),
130
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
131
- ...(input.RecipeName !== undefined && input.RecipeName !== null && { RecipeName: input.RecipeName }),
132
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
133
- ...(input.Sample !== undefined &&
134
- input.Sample !== null && { Sample: serializeAws_restJson1Sample(input.Sample, context) }),
135
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
118
+ ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
119
+ ...(input.Name != null && { Name: input.Name }),
120
+ ...(input.RecipeName != null && { RecipeName: input.RecipeName }),
121
+ ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
122
+ ...(input.Sample != null && { Sample: serializeAws_restJson1Sample(input.Sample, context) }),
123
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
136
124
  });
137
125
  return new protocol_http_1.HttpRequest({
138
126
  protocol,
@@ -153,11 +141,10 @@ const serializeAws_restJson1CreateRecipeCommand = async (input, context) => {
153
141
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipes";
154
142
  let body;
155
143
  body = JSON.stringify({
156
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
157
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
158
- ...(input.Steps !== undefined &&
159
- input.Steps !== null && { Steps: serializeAws_restJson1RecipeStepList(input.Steps, context) }),
160
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
144
+ ...(input.Description != null && { Description: input.Description }),
145
+ ...(input.Name != null && { Name: input.Name }),
146
+ ...(input.Steps != null && { Steps: serializeAws_restJson1RecipeStepList(input.Steps, context) }),
147
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
161
148
  });
162
149
  return new protocol_http_1.HttpRequest({
163
150
  protocol,
@@ -178,34 +165,27 @@ const serializeAws_restJson1CreateRecipeJobCommand = async (input, context) => {
178
165
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/recipeJobs";
179
166
  let body;
180
167
  body = JSON.stringify({
181
- ...(input.DataCatalogOutputs !== undefined &&
182
- input.DataCatalogOutputs !== null && {
168
+ ...(input.DataCatalogOutputs != null && {
183
169
  DataCatalogOutputs: serializeAws_restJson1DataCatalogOutputList(input.DataCatalogOutputs, context),
184
170
  }),
185
- ...(input.DatabaseOutputs !== undefined &&
186
- input.DatabaseOutputs !== null && {
171
+ ...(input.DatabaseOutputs != null && {
187
172
  DatabaseOutputs: serializeAws_restJson1DatabaseOutputList(input.DatabaseOutputs, context),
188
173
  }),
189
- ...(input.DatasetName !== undefined && input.DatasetName !== null && { DatasetName: input.DatasetName }),
190
- ...(input.EncryptionKeyArn !== undefined &&
191
- input.EncryptionKeyArn !== null && { EncryptionKeyArn: input.EncryptionKeyArn }),
192
- ...(input.EncryptionMode !== undefined &&
193
- input.EncryptionMode !== null && { EncryptionMode: input.EncryptionMode }),
194
- ...(input.LogSubscription !== undefined &&
195
- input.LogSubscription !== null && { LogSubscription: input.LogSubscription }),
196
- ...(input.MaxCapacity !== undefined && input.MaxCapacity !== null && { MaxCapacity: input.MaxCapacity }),
197
- ...(input.MaxRetries !== undefined && input.MaxRetries !== null && { MaxRetries: input.MaxRetries }),
198
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
199
- ...(input.Outputs !== undefined &&
200
- input.Outputs !== null && { Outputs: serializeAws_restJson1OutputList(input.Outputs, context) }),
201
- ...(input.ProjectName !== undefined && input.ProjectName !== null && { ProjectName: input.ProjectName }),
202
- ...(input.RecipeReference !== undefined &&
203
- input.RecipeReference !== null && {
174
+ ...(input.DatasetName != null && { DatasetName: input.DatasetName }),
175
+ ...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
176
+ ...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
177
+ ...(input.LogSubscription != null && { LogSubscription: input.LogSubscription }),
178
+ ...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
179
+ ...(input.MaxRetries != null && { MaxRetries: input.MaxRetries }),
180
+ ...(input.Name != null && { Name: input.Name }),
181
+ ...(input.Outputs != null && { Outputs: serializeAws_restJson1OutputList(input.Outputs, context) }),
182
+ ...(input.ProjectName != null && { ProjectName: input.ProjectName }),
183
+ ...(input.RecipeReference != null && {
204
184
  RecipeReference: serializeAws_restJson1RecipeReference(input.RecipeReference, context),
205
185
  }),
206
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
207
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
208
- ...(input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout }),
186
+ ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
187
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
188
+ ...(input.Timeout != null && { Timeout: input.Timeout }),
209
189
  });
210
190
  return new protocol_http_1.HttpRequest({
211
191
  protocol,
@@ -226,12 +206,11 @@ const serializeAws_restJson1CreateRulesetCommand = async (input, context) => {
226
206
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/rulesets";
227
207
  let body;
228
208
  body = JSON.stringify({
229
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
230
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
231
- ...(input.Rules !== undefined &&
232
- input.Rules !== null && { Rules: serializeAws_restJson1RuleList(input.Rules, context) }),
233
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
234
- ...(input.TargetArn !== undefined && input.TargetArn !== null && { TargetArn: input.TargetArn }),
209
+ ...(input.Description != null && { Description: input.Description }),
210
+ ...(input.Name != null && { Name: input.Name }),
211
+ ...(input.Rules != null && { Rules: serializeAws_restJson1RuleList(input.Rules, context) }),
212
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
213
+ ...(input.TargetArn != null && { TargetArn: input.TargetArn }),
235
214
  });
236
215
  return new protocol_http_1.HttpRequest({
237
216
  protocol,
@@ -252,12 +231,10 @@ const serializeAws_restJson1CreateScheduleCommand = async (input, context) => {
252
231
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/schedules";
253
232
  let body;
254
233
  body = JSON.stringify({
255
- ...(input.CronExpression !== undefined &&
256
- input.CronExpression !== null && { CronExpression: input.CronExpression }),
257
- ...(input.JobNames !== undefined &&
258
- input.JobNames !== null && { JobNames: serializeAws_restJson1JobNameList(input.JobNames, context) }),
259
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
260
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
234
+ ...(input.CronExpression != null && { CronExpression: input.CronExpression }),
235
+ ...(input.JobNames != null && { JobNames: serializeAws_restJson1JobNameList(input.JobNames, context) }),
236
+ ...(input.Name != null && { Name: input.Name }),
237
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
261
238
  });
262
239
  return new protocol_http_1.HttpRequest({
263
240
  protocol,
@@ -861,7 +838,7 @@ const serializeAws_restJson1PublishRecipeCommand = async (input, context) => {
861
838
  }
862
839
  let body;
863
840
  body = JSON.stringify({
864
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
841
+ ...(input.Description != null && { Description: input.Description }),
865
842
  });
866
843
  return new protocol_http_1.HttpRequest({
867
844
  protocol,
@@ -892,14 +869,11 @@ const serializeAws_restJson1SendProjectSessionActionCommand = async (input, cont
892
869
  }
893
870
  let body;
894
871
  body = JSON.stringify({
895
- ...(input.ClientSessionId !== undefined &&
896
- input.ClientSessionId !== null && { ClientSessionId: input.ClientSessionId }),
897
- ...(input.Preview !== undefined && input.Preview !== null && { Preview: input.Preview }),
898
- ...(input.RecipeStep !== undefined &&
899
- input.RecipeStep !== null && { RecipeStep: serializeAws_restJson1RecipeStep(input.RecipeStep, context) }),
900
- ...(input.StepIndex !== undefined && input.StepIndex !== null && { StepIndex: input.StepIndex }),
901
- ...(input.ViewFrame !== undefined &&
902
- input.ViewFrame !== null && { ViewFrame: serializeAws_restJson1ViewFrame(input.ViewFrame, context) }),
872
+ ...(input.ClientSessionId != null && { ClientSessionId: input.ClientSessionId }),
873
+ ...(input.Preview != null && { Preview: input.Preview }),
874
+ ...(input.RecipeStep != null && { RecipeStep: serializeAws_restJson1RecipeStep(input.RecipeStep, context) }),
875
+ ...(input.StepIndex != null && { StepIndex: input.StepIndex }),
876
+ ...(input.ViewFrame != null && { ViewFrame: serializeAws_restJson1ViewFrame(input.ViewFrame, context) }),
903
877
  });
904
878
  return new protocol_http_1.HttpRequest({
905
879
  protocol,
@@ -956,7 +930,7 @@ const serializeAws_restJson1StartProjectSessionCommand = async (input, context)
956
930
  }
957
931
  let body;
958
932
  body = JSON.stringify({
959
- ...(input.AssumeControl !== undefined && input.AssumeControl !== null && { AssumeControl: input.AssumeControl }),
933
+ ...(input.AssumeControl != null && { AssumeControl: input.AssumeControl }),
960
934
  });
961
935
  return new protocol_http_1.HttpRequest({
962
936
  protocol,
@@ -1023,7 +997,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1023
997
  }
1024
998
  let body;
1025
999
  body = JSON.stringify({
1026
- ...(input.Tags !== undefined && input.Tags !== null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1000
+ ...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
1027
1001
  });
1028
1002
  return new protocol_http_1.HttpRequest({
1029
1003
  protocol,
@@ -1084,15 +1058,12 @@ const serializeAws_restJson1UpdateDatasetCommand = async (input, context) => {
1084
1058
  }
1085
1059
  let body;
1086
1060
  body = JSON.stringify({
1087
- ...(input.Format !== undefined && input.Format !== null && { Format: input.Format }),
1088
- ...(input.FormatOptions !== undefined &&
1089
- input.FormatOptions !== null && {
1061
+ ...(input.Format != null && { Format: input.Format }),
1062
+ ...(input.FormatOptions != null && {
1090
1063
  FormatOptions: serializeAws_restJson1FormatOptions(input.FormatOptions, context),
1091
1064
  }),
1092
- ...(input.Input !== undefined &&
1093
- input.Input !== null && { Input: serializeAws_restJson1Input(input.Input, context) }),
1094
- ...(input.PathOptions !== undefined &&
1095
- input.PathOptions !== null && { PathOptions: serializeAws_restJson1PathOptions(input.PathOptions, context) }),
1065
+ ...(input.Input != null && { Input: serializeAws_restJson1Input(input.Input, context) }),
1066
+ ...(input.PathOptions != null && { PathOptions: serializeAws_restJson1PathOptions(input.PathOptions, context) }),
1096
1067
  });
1097
1068
  return new protocol_http_1.HttpRequest({
1098
1069
  protocol,
@@ -1123,28 +1094,21 @@ const serializeAws_restJson1UpdateProfileJobCommand = async (input, context) =>
1123
1094
  }
1124
1095
  let body;
1125
1096
  body = JSON.stringify({
1126
- ...(input.Configuration !== undefined &&
1127
- input.Configuration !== null && {
1097
+ ...(input.Configuration != null && {
1128
1098
  Configuration: serializeAws_restJson1ProfileConfiguration(input.Configuration, context),
1129
1099
  }),
1130
- ...(input.EncryptionKeyArn !== undefined &&
1131
- input.EncryptionKeyArn !== null && { EncryptionKeyArn: input.EncryptionKeyArn }),
1132
- ...(input.EncryptionMode !== undefined &&
1133
- input.EncryptionMode !== null && { EncryptionMode: input.EncryptionMode }),
1134
- ...(input.JobSample !== undefined &&
1135
- input.JobSample !== null && { JobSample: serializeAws_restJson1JobSample(input.JobSample, context) }),
1136
- ...(input.LogSubscription !== undefined &&
1137
- input.LogSubscription !== null && { LogSubscription: input.LogSubscription }),
1138
- ...(input.MaxCapacity !== undefined && input.MaxCapacity !== null && { MaxCapacity: input.MaxCapacity }),
1139
- ...(input.MaxRetries !== undefined && input.MaxRetries !== null && { MaxRetries: input.MaxRetries }),
1140
- ...(input.OutputLocation !== undefined &&
1141
- input.OutputLocation !== null && {
1100
+ ...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
1101
+ ...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
1102
+ ...(input.JobSample != null && { JobSample: serializeAws_restJson1JobSample(input.JobSample, context) }),
1103
+ ...(input.LogSubscription != null && { LogSubscription: input.LogSubscription }),
1104
+ ...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
1105
+ ...(input.MaxRetries != null && { MaxRetries: input.MaxRetries }),
1106
+ ...(input.OutputLocation != null && {
1142
1107
  OutputLocation: serializeAws_restJson1S3Location(input.OutputLocation, context),
1143
1108
  }),
1144
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
1145
- ...(input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout }),
1146
- ...(input.ValidationConfigurations !== undefined &&
1147
- input.ValidationConfigurations !== null && {
1109
+ ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
1110
+ ...(input.Timeout != null && { Timeout: input.Timeout }),
1111
+ ...(input.ValidationConfigurations != null && {
1148
1112
  ValidationConfigurations: serializeAws_restJson1ValidationConfigurationList(input.ValidationConfigurations, context),
1149
1113
  }),
1150
1114
  });
@@ -1177,9 +1141,8 @@ const serializeAws_restJson1UpdateProjectCommand = async (input, context) => {
1177
1141
  }
1178
1142
  let body;
1179
1143
  body = JSON.stringify({
1180
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
1181
- ...(input.Sample !== undefined &&
1182
- input.Sample !== null && { Sample: serializeAws_restJson1Sample(input.Sample, context) }),
1144
+ ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
1145
+ ...(input.Sample != null && { Sample: serializeAws_restJson1Sample(input.Sample, context) }),
1183
1146
  });
1184
1147
  return new protocol_http_1.HttpRequest({
1185
1148
  protocol,
@@ -1210,9 +1173,8 @@ const serializeAws_restJson1UpdateRecipeCommand = async (input, context) => {
1210
1173
  }
1211
1174
  let body;
1212
1175
  body = JSON.stringify({
1213
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1214
- ...(input.Steps !== undefined &&
1215
- input.Steps !== null && { Steps: serializeAws_restJson1RecipeStepList(input.Steps, context) }),
1176
+ ...(input.Description != null && { Description: input.Description }),
1177
+ ...(input.Steps != null && { Steps: serializeAws_restJson1RecipeStepList(input.Steps, context) }),
1216
1178
  });
1217
1179
  return new protocol_http_1.HttpRequest({
1218
1180
  protocol,
@@ -1243,26 +1205,20 @@ const serializeAws_restJson1UpdateRecipeJobCommand = async (input, context) => {
1243
1205
  }
1244
1206
  let body;
1245
1207
  body = JSON.stringify({
1246
- ...(input.DataCatalogOutputs !== undefined &&
1247
- input.DataCatalogOutputs !== null && {
1208
+ ...(input.DataCatalogOutputs != null && {
1248
1209
  DataCatalogOutputs: serializeAws_restJson1DataCatalogOutputList(input.DataCatalogOutputs, context),
1249
1210
  }),
1250
- ...(input.DatabaseOutputs !== undefined &&
1251
- input.DatabaseOutputs !== null && {
1211
+ ...(input.DatabaseOutputs != null && {
1252
1212
  DatabaseOutputs: serializeAws_restJson1DatabaseOutputList(input.DatabaseOutputs, context),
1253
1213
  }),
1254
- ...(input.EncryptionKeyArn !== undefined &&
1255
- input.EncryptionKeyArn !== null && { EncryptionKeyArn: input.EncryptionKeyArn }),
1256
- ...(input.EncryptionMode !== undefined &&
1257
- input.EncryptionMode !== null && { EncryptionMode: input.EncryptionMode }),
1258
- ...(input.LogSubscription !== undefined &&
1259
- input.LogSubscription !== null && { LogSubscription: input.LogSubscription }),
1260
- ...(input.MaxCapacity !== undefined && input.MaxCapacity !== null && { MaxCapacity: input.MaxCapacity }),
1261
- ...(input.MaxRetries !== undefined && input.MaxRetries !== null && { MaxRetries: input.MaxRetries }),
1262
- ...(input.Outputs !== undefined &&
1263
- input.Outputs !== null && { Outputs: serializeAws_restJson1OutputList(input.Outputs, context) }),
1264
- ...(input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn }),
1265
- ...(input.Timeout !== undefined && input.Timeout !== null && { Timeout: input.Timeout }),
1214
+ ...(input.EncryptionKeyArn != null && { EncryptionKeyArn: input.EncryptionKeyArn }),
1215
+ ...(input.EncryptionMode != null && { EncryptionMode: input.EncryptionMode }),
1216
+ ...(input.LogSubscription != null && { LogSubscription: input.LogSubscription }),
1217
+ ...(input.MaxCapacity != null && { MaxCapacity: input.MaxCapacity }),
1218
+ ...(input.MaxRetries != null && { MaxRetries: input.MaxRetries }),
1219
+ ...(input.Outputs != null && { Outputs: serializeAws_restJson1OutputList(input.Outputs, context) }),
1220
+ ...(input.RoleArn != null && { RoleArn: input.RoleArn }),
1221
+ ...(input.Timeout != null && { Timeout: input.Timeout }),
1266
1222
  });
1267
1223
  return new protocol_http_1.HttpRequest({
1268
1224
  protocol,
@@ -1293,9 +1249,8 @@ const serializeAws_restJson1UpdateRulesetCommand = async (input, context) => {
1293
1249
  }
1294
1250
  let body;
1295
1251
  body = JSON.stringify({
1296
- ...(input.Description !== undefined && input.Description !== null && { Description: input.Description }),
1297
- ...(input.Rules !== undefined &&
1298
- input.Rules !== null && { Rules: serializeAws_restJson1RuleList(input.Rules, context) }),
1252
+ ...(input.Description != null && { Description: input.Description }),
1253
+ ...(input.Rules != null && { Rules: serializeAws_restJson1RuleList(input.Rules, context) }),
1299
1254
  });
1300
1255
  return new protocol_http_1.HttpRequest({
1301
1256
  protocol,
@@ -1326,10 +1281,8 @@ const serializeAws_restJson1UpdateScheduleCommand = async (input, context) => {
1326
1281
  }
1327
1282
  let body;
1328
1283
  body = JSON.stringify({
1329
- ...(input.CronExpression !== undefined &&
1330
- input.CronExpression !== null && { CronExpression: input.CronExpression }),
1331
- ...(input.JobNames !== undefined &&
1332
- input.JobNames !== null && { JobNames: serializeAws_restJson1JobNameList(input.JobNames, context) }),
1284
+ ...(input.CronExpression != null && { CronExpression: input.CronExpression }),
1285
+ ...(input.JobNames != null && { JobNames: serializeAws_restJson1JobNameList(input.JobNames, context) }),
1333
1286
  });
1334
1287
  return new protocol_http_1.HttpRequest({
1335
1288
  protocol,
@@ -3732,8 +3685,7 @@ const serializeAws_restJson1AllowedStatisticList = (input, context) => {
3732
3685
  };
3733
3686
  const serializeAws_restJson1AllowedStatistics = (input, context) => {
3734
3687
  return {
3735
- ...(input.Statistics !== undefined &&
3736
- input.Statistics !== null && { Statistics: serializeAws_restJson1StatisticList(input.Statistics, context) }),
3688
+ ...(input.Statistics != null && { Statistics: serializeAws_restJson1StatisticList(input.Statistics, context) }),
3737
3689
  };
3738
3690
  };
3739
3691
  const serializeAws_restJson1ColumnNameList = (input, context) => {
@@ -3748,8 +3700,8 @@ const serializeAws_restJson1ColumnNameList = (input, context) => {
3748
3700
  };
3749
3701
  const serializeAws_restJson1ColumnSelector = (input, context) => {
3750
3702
  return {
3751
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3752
- ...(input.Regex !== undefined && input.Regex !== null && { Regex: input.Regex }),
3703
+ ...(input.Name != null && { Name: input.Name }),
3704
+ ...(input.Regex != null && { Regex: input.Regex }),
3753
3705
  };
3754
3706
  };
3755
3707
  const serializeAws_restJson1ColumnSelectorList = (input, context) => {
@@ -3764,10 +3716,8 @@ const serializeAws_restJson1ColumnSelectorList = (input, context) => {
3764
3716
  };
3765
3717
  const serializeAws_restJson1ColumnStatisticsConfiguration = (input, context) => {
3766
3718
  return {
3767
- ...(input.Selectors !== undefined &&
3768
- input.Selectors !== null && { Selectors: serializeAws_restJson1ColumnSelectorList(input.Selectors, context) }),
3769
- ...(input.Statistics !== undefined &&
3770
- input.Statistics !== null && {
3719
+ ...(input.Selectors != null && { Selectors: serializeAws_restJson1ColumnSelectorList(input.Selectors, context) }),
3720
+ ...(input.Statistics != null && {
3771
3721
  Statistics: serializeAws_restJson1StatisticsConfiguration(input.Statistics, context),
3772
3722
  }),
3773
3723
  };
@@ -3784,9 +3734,9 @@ const serializeAws_restJson1ColumnStatisticsConfigurationList = (input, context)
3784
3734
  };
3785
3735
  const serializeAws_restJson1ConditionExpression = (input, context) => {
3786
3736
  return {
3787
- ...(input.Condition !== undefined && input.Condition !== null && { Condition: input.Condition }),
3788
- ...(input.TargetColumn !== undefined && input.TargetColumn !== null && { TargetColumn: input.TargetColumn }),
3789
- ...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
3737
+ ...(input.Condition != null && { Condition: input.Condition }),
3738
+ ...(input.TargetColumn != null && { TargetColumn: input.TargetColumn }),
3739
+ ...(input.Value != null && { Value: input.Value }),
3790
3740
  };
3791
3741
  };
3792
3742
  const serializeAws_restJson1ConditionExpressionList = (input, context) => {
@@ -3801,38 +3751,32 @@ const serializeAws_restJson1ConditionExpressionList = (input, context) => {
3801
3751
  };
3802
3752
  const serializeAws_restJson1CsvOptions = (input, context) => {
3803
3753
  return {
3804
- ...(input.Delimiter !== undefined && input.Delimiter !== null && { Delimiter: input.Delimiter }),
3805
- ...(input.HeaderRow !== undefined && input.HeaderRow !== null && { HeaderRow: input.HeaderRow }),
3754
+ ...(input.Delimiter != null && { Delimiter: input.Delimiter }),
3755
+ ...(input.HeaderRow != null && { HeaderRow: input.HeaderRow }),
3806
3756
  };
3807
3757
  };
3808
3758
  const serializeAws_restJson1CsvOutputOptions = (input, context) => {
3809
3759
  return {
3810
- ...(input.Delimiter !== undefined && input.Delimiter !== null && { Delimiter: input.Delimiter }),
3760
+ ...(input.Delimiter != null && { Delimiter: input.Delimiter }),
3811
3761
  };
3812
3762
  };
3813
3763
  const serializeAws_restJson1DatabaseInputDefinition = (input, context) => {
3814
3764
  return {
3815
- ...(input.DatabaseTableName !== undefined &&
3816
- input.DatabaseTableName !== null && { DatabaseTableName: input.DatabaseTableName }),
3817
- ...(input.GlueConnectionName !== undefined &&
3818
- input.GlueConnectionName !== null && { GlueConnectionName: input.GlueConnectionName }),
3819
- ...(input.QueryString !== undefined && input.QueryString !== null && { QueryString: input.QueryString }),
3820
- ...(input.TempDirectory !== undefined &&
3821
- input.TempDirectory !== null && {
3765
+ ...(input.DatabaseTableName != null && { DatabaseTableName: input.DatabaseTableName }),
3766
+ ...(input.GlueConnectionName != null && { GlueConnectionName: input.GlueConnectionName }),
3767
+ ...(input.QueryString != null && { QueryString: input.QueryString }),
3768
+ ...(input.TempDirectory != null && {
3822
3769
  TempDirectory: serializeAws_restJson1S3Location(input.TempDirectory, context),
3823
3770
  }),
3824
3771
  };
3825
3772
  };
3826
3773
  const serializeAws_restJson1DatabaseOutput = (input, context) => {
3827
3774
  return {
3828
- ...(input.DatabaseOptions !== undefined &&
3829
- input.DatabaseOptions !== null && {
3775
+ ...(input.DatabaseOptions != null && {
3830
3776
  DatabaseOptions: serializeAws_restJson1DatabaseTableOutputOptions(input.DatabaseOptions, context),
3831
3777
  }),
3832
- ...(input.DatabaseOutputMode !== undefined &&
3833
- input.DatabaseOutputMode !== null && { DatabaseOutputMode: input.DatabaseOutputMode }),
3834
- ...(input.GlueConnectionName !== undefined &&
3835
- input.GlueConnectionName !== null && { GlueConnectionName: input.GlueConnectionName }),
3778
+ ...(input.DatabaseOutputMode != null && { DatabaseOutputMode: input.DatabaseOutputMode }),
3779
+ ...(input.GlueConnectionName != null && { GlueConnectionName: input.GlueConnectionName }),
3836
3780
  };
3837
3781
  };
3838
3782
  const serializeAws_restJson1DatabaseOutputList = (input, context) => {
@@ -3847,36 +3791,32 @@ const serializeAws_restJson1DatabaseOutputList = (input, context) => {
3847
3791
  };
3848
3792
  const serializeAws_restJson1DatabaseTableOutputOptions = (input, context) => {
3849
3793
  return {
3850
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3851
- ...(input.TempDirectory !== undefined &&
3852
- input.TempDirectory !== null && {
3794
+ ...(input.TableName != null && { TableName: input.TableName }),
3795
+ ...(input.TempDirectory != null && {
3853
3796
  TempDirectory: serializeAws_restJson1S3Location(input.TempDirectory, context),
3854
3797
  }),
3855
3798
  };
3856
3799
  };
3857
3800
  const serializeAws_restJson1DataCatalogInputDefinition = (input, context) => {
3858
3801
  return {
3859
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
3860
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
3861
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3862
- ...(input.TempDirectory !== undefined &&
3863
- input.TempDirectory !== null && {
3802
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3803
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3804
+ ...(input.TableName != null && { TableName: input.TableName }),
3805
+ ...(input.TempDirectory != null && {
3864
3806
  TempDirectory: serializeAws_restJson1S3Location(input.TempDirectory, context),
3865
3807
  }),
3866
3808
  };
3867
3809
  };
3868
3810
  const serializeAws_restJson1DataCatalogOutput = (input, context) => {
3869
3811
  return {
3870
- ...(input.CatalogId !== undefined && input.CatalogId !== null && { CatalogId: input.CatalogId }),
3871
- ...(input.DatabaseName !== undefined && input.DatabaseName !== null && { DatabaseName: input.DatabaseName }),
3872
- ...(input.DatabaseOptions !== undefined &&
3873
- input.DatabaseOptions !== null && {
3812
+ ...(input.CatalogId != null && { CatalogId: input.CatalogId }),
3813
+ ...(input.DatabaseName != null && { DatabaseName: input.DatabaseName }),
3814
+ ...(input.DatabaseOptions != null && {
3874
3815
  DatabaseOptions: serializeAws_restJson1DatabaseTableOutputOptions(input.DatabaseOptions, context),
3875
3816
  }),
3876
- ...(input.Overwrite !== undefined && input.Overwrite !== null && { Overwrite: input.Overwrite }),
3877
- ...(input.S3Options !== undefined &&
3878
- input.S3Options !== null && { S3Options: serializeAws_restJson1S3TableOutputOptions(input.S3Options, context) }),
3879
- ...(input.TableName !== undefined && input.TableName !== null && { TableName: input.TableName }),
3817
+ ...(input.Overwrite != null && { Overwrite: input.Overwrite }),
3818
+ ...(input.S3Options != null && { S3Options: serializeAws_restJson1S3TableOutputOptions(input.S3Options, context) }),
3819
+ ...(input.TableName != null && { TableName: input.TableName }),
3880
3820
  };
3881
3821
  };
3882
3822
  const serializeAws_restJson1DataCatalogOutputList = (input, context) => {
@@ -3891,33 +3831,28 @@ const serializeAws_restJson1DataCatalogOutputList = (input, context) => {
3891
3831
  };
3892
3832
  const serializeAws_restJson1DatasetParameter = (input, context) => {
3893
3833
  return {
3894
- ...(input.CreateColumn !== undefined && input.CreateColumn !== null && { CreateColumn: input.CreateColumn }),
3895
- ...(input.DatetimeOptions !== undefined &&
3896
- input.DatetimeOptions !== null && {
3834
+ ...(input.CreateColumn != null && { CreateColumn: input.CreateColumn }),
3835
+ ...(input.DatetimeOptions != null && {
3897
3836
  DatetimeOptions: serializeAws_restJson1DatetimeOptions(input.DatetimeOptions, context),
3898
3837
  }),
3899
- ...(input.Filter !== undefined &&
3900
- input.Filter !== null && { Filter: serializeAws_restJson1FilterExpression(input.Filter, context) }),
3901
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
3902
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
3838
+ ...(input.Filter != null && { Filter: serializeAws_restJson1FilterExpression(input.Filter, context) }),
3839
+ ...(input.Name != null && { Name: input.Name }),
3840
+ ...(input.Type != null && { Type: input.Type }),
3903
3841
  };
3904
3842
  };
3905
3843
  const serializeAws_restJson1DatetimeOptions = (input, context) => {
3906
3844
  return {
3907
- ...(input.Format !== undefined && input.Format !== null && { Format: input.Format }),
3908
- ...(input.LocaleCode !== undefined && input.LocaleCode !== null && { LocaleCode: input.LocaleCode }),
3909
- ...(input.TimezoneOffset !== undefined &&
3910
- input.TimezoneOffset !== null && { TimezoneOffset: input.TimezoneOffset }),
3845
+ ...(input.Format != null && { Format: input.Format }),
3846
+ ...(input.LocaleCode != null && { LocaleCode: input.LocaleCode }),
3847
+ ...(input.TimezoneOffset != null && { TimezoneOffset: input.TimezoneOffset }),
3911
3848
  };
3912
3849
  };
3913
3850
  const serializeAws_restJson1EntityDetectorConfiguration = (input, context) => {
3914
3851
  return {
3915
- ...(input.AllowedStatistics !== undefined &&
3916
- input.AllowedStatistics !== null && {
3852
+ ...(input.AllowedStatistics != null && {
3917
3853
  AllowedStatistics: serializeAws_restJson1AllowedStatisticList(input.AllowedStatistics, context),
3918
3854
  }),
3919
- ...(input.EntityTypes !== undefined &&
3920
- input.EntityTypes !== null && { EntityTypes: serializeAws_restJson1EntityTypeList(input.EntityTypes, context) }),
3855
+ ...(input.EntityTypes != null && { EntityTypes: serializeAws_restJson1EntityTypeList(input.EntityTypes, context) }),
3921
3856
  };
3922
3857
  };
3923
3858
  const serializeAws_restJson1EntityTypeList = (input, context) => {
@@ -3932,36 +3867,31 @@ const serializeAws_restJson1EntityTypeList = (input, context) => {
3932
3867
  };
3933
3868
  const serializeAws_restJson1ExcelOptions = (input, context) => {
3934
3869
  return {
3935
- ...(input.HeaderRow !== undefined && input.HeaderRow !== null && { HeaderRow: input.HeaderRow }),
3936
- ...(input.SheetIndexes !== undefined &&
3937
- input.SheetIndexes !== null && {
3870
+ ...(input.HeaderRow != null && { HeaderRow: input.HeaderRow }),
3871
+ ...(input.SheetIndexes != null && {
3938
3872
  SheetIndexes: serializeAws_restJson1SheetIndexList(input.SheetIndexes, context),
3939
3873
  }),
3940
- ...(input.SheetNames !== undefined &&
3941
- input.SheetNames !== null && { SheetNames: serializeAws_restJson1SheetNameList(input.SheetNames, context) }),
3874
+ ...(input.SheetNames != null && { SheetNames: serializeAws_restJson1SheetNameList(input.SheetNames, context) }),
3942
3875
  };
3943
3876
  };
3944
3877
  const serializeAws_restJson1FilesLimit = (input, context) => {
3945
3878
  return {
3946
- ...(input.MaxFiles !== undefined && input.MaxFiles !== null && { MaxFiles: input.MaxFiles }),
3947
- ...(input.Order !== undefined && input.Order !== null && { Order: input.Order }),
3948
- ...(input.OrderedBy !== undefined && input.OrderedBy !== null && { OrderedBy: input.OrderedBy }),
3879
+ ...(input.MaxFiles != null && { MaxFiles: input.MaxFiles }),
3880
+ ...(input.Order != null && { Order: input.Order }),
3881
+ ...(input.OrderedBy != null && { OrderedBy: input.OrderedBy }),
3949
3882
  };
3950
3883
  };
3951
3884
  const serializeAws_restJson1FilterExpression = (input, context) => {
3952
3885
  return {
3953
- ...(input.Expression !== undefined && input.Expression !== null && { Expression: input.Expression }),
3954
- ...(input.ValuesMap !== undefined &&
3955
- input.ValuesMap !== null && { ValuesMap: serializeAws_restJson1ValuesMap(input.ValuesMap, context) }),
3886
+ ...(input.Expression != null && { Expression: input.Expression }),
3887
+ ...(input.ValuesMap != null && { ValuesMap: serializeAws_restJson1ValuesMap(input.ValuesMap, context) }),
3956
3888
  };
3957
3889
  };
3958
3890
  const serializeAws_restJson1FormatOptions = (input, context) => {
3959
3891
  return {
3960
- ...(input.Csv !== undefined && input.Csv !== null && { Csv: serializeAws_restJson1CsvOptions(input.Csv, context) }),
3961
- ...(input.Excel !== undefined &&
3962
- input.Excel !== null && { Excel: serializeAws_restJson1ExcelOptions(input.Excel, context) }),
3963
- ...(input.Json !== undefined &&
3964
- input.Json !== null && { Json: serializeAws_restJson1JsonOptions(input.Json, context) }),
3892
+ ...(input.Csv != null && { Csv: serializeAws_restJson1CsvOptions(input.Csv, context) }),
3893
+ ...(input.Excel != null && { Excel: serializeAws_restJson1ExcelOptions(input.Excel, context) }),
3894
+ ...(input.Json != null && { Json: serializeAws_restJson1JsonOptions(input.Json, context) }),
3965
3895
  };
3966
3896
  };
3967
3897
  const serializeAws_restJson1HiddenColumnList = (input, context) => {
@@ -3976,18 +3906,14 @@ const serializeAws_restJson1HiddenColumnList = (input, context) => {
3976
3906
  };
3977
3907
  const serializeAws_restJson1Input = (input, context) => {
3978
3908
  return {
3979
- ...(input.DataCatalogInputDefinition !== undefined &&
3980
- input.DataCatalogInputDefinition !== null && {
3909
+ ...(input.DataCatalogInputDefinition != null && {
3981
3910
  DataCatalogInputDefinition: serializeAws_restJson1DataCatalogInputDefinition(input.DataCatalogInputDefinition, context),
3982
3911
  }),
3983
- ...(input.DatabaseInputDefinition !== undefined &&
3984
- input.DatabaseInputDefinition !== null && {
3912
+ ...(input.DatabaseInputDefinition != null && {
3985
3913
  DatabaseInputDefinition: serializeAws_restJson1DatabaseInputDefinition(input.DatabaseInputDefinition, context),
3986
3914
  }),
3987
- ...(input.Metadata !== undefined &&
3988
- input.Metadata !== null && { Metadata: serializeAws_restJson1Metadata(input.Metadata, context) }),
3989
- ...(input.S3InputDefinition !== undefined &&
3990
- input.S3InputDefinition !== null && {
3915
+ ...(input.Metadata != null && { Metadata: serializeAws_restJson1Metadata(input.Metadata, context) }),
3916
+ ...(input.S3InputDefinition != null && {
3991
3917
  S3InputDefinition: serializeAws_restJson1S3Location(input.S3InputDefinition, context),
3992
3918
  }),
3993
3919
  };
@@ -4004,44 +3930,38 @@ const serializeAws_restJson1JobNameList = (input, context) => {
4004
3930
  };
4005
3931
  const serializeAws_restJson1JobSample = (input, context) => {
4006
3932
  return {
4007
- ...(input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode }),
4008
- ...(input.Size !== undefined && input.Size !== null && { Size: input.Size }),
3933
+ ...(input.Mode != null && { Mode: input.Mode }),
3934
+ ...(input.Size != null && { Size: input.Size }),
4009
3935
  };
4010
3936
  };
4011
3937
  const serializeAws_restJson1JsonOptions = (input, context) => {
4012
3938
  return {
4013
- ...(input.MultiLine !== undefined && input.MultiLine !== null && { MultiLine: input.MultiLine }),
3939
+ ...(input.MultiLine != null && { MultiLine: input.MultiLine }),
4014
3940
  };
4015
3941
  };
4016
3942
  const serializeAws_restJson1Metadata = (input, context) => {
4017
3943
  return {
4018
- ...(input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }),
3944
+ ...(input.SourceArn != null && { SourceArn: input.SourceArn }),
4019
3945
  };
4020
3946
  };
4021
3947
  const serializeAws_restJson1Output = (input, context) => {
4022
3948
  return {
4023
- ...(input.CompressionFormat !== undefined &&
4024
- input.CompressionFormat !== null && { CompressionFormat: input.CompressionFormat }),
4025
- ...(input.Format !== undefined && input.Format !== null && { Format: input.Format }),
4026
- ...(input.FormatOptions !== undefined &&
4027
- input.FormatOptions !== null && {
3949
+ ...(input.CompressionFormat != null && { CompressionFormat: input.CompressionFormat }),
3950
+ ...(input.Format != null && { Format: input.Format }),
3951
+ ...(input.FormatOptions != null && {
4028
3952
  FormatOptions: serializeAws_restJson1OutputFormatOptions(input.FormatOptions, context),
4029
3953
  }),
4030
- ...(input.Location !== undefined &&
4031
- input.Location !== null && { Location: serializeAws_restJson1S3Location(input.Location, context) }),
4032
- ...(input.MaxOutputFiles !== undefined &&
4033
- input.MaxOutputFiles !== null && { MaxOutputFiles: input.MaxOutputFiles }),
4034
- ...(input.Overwrite !== undefined && input.Overwrite !== null && { Overwrite: input.Overwrite }),
4035
- ...(input.PartitionColumns !== undefined &&
4036
- input.PartitionColumns !== null && {
3954
+ ...(input.Location != null && { Location: serializeAws_restJson1S3Location(input.Location, context) }),
3955
+ ...(input.MaxOutputFiles != null && { MaxOutputFiles: input.MaxOutputFiles }),
3956
+ ...(input.Overwrite != null && { Overwrite: input.Overwrite }),
3957
+ ...(input.PartitionColumns != null && {
4037
3958
  PartitionColumns: serializeAws_restJson1ColumnNameList(input.PartitionColumns, context),
4038
3959
  }),
4039
3960
  };
4040
3961
  };
4041
3962
  const serializeAws_restJson1OutputFormatOptions = (input, context) => {
4042
3963
  return {
4043
- ...(input.Csv !== undefined &&
4044
- input.Csv !== null && { Csv: serializeAws_restJson1CsvOutputOptions(input.Csv, context) }),
3964
+ ...(input.Csv != null && { Csv: serializeAws_restJson1CsvOutputOptions(input.Csv, context) }),
4045
3965
  };
4046
3966
  };
4047
3967
  const serializeAws_restJson1OutputList = (input, context) => {
@@ -4067,14 +3987,11 @@ const serializeAws_restJson1ParameterMap = (input, context) => {
4067
3987
  };
4068
3988
  const serializeAws_restJson1PathOptions = (input, context) => {
4069
3989
  return {
4070
- ...(input.FilesLimit !== undefined &&
4071
- input.FilesLimit !== null && { FilesLimit: serializeAws_restJson1FilesLimit(input.FilesLimit, context) }),
4072
- ...(input.LastModifiedDateCondition !== undefined &&
4073
- input.LastModifiedDateCondition !== null && {
3990
+ ...(input.FilesLimit != null && { FilesLimit: serializeAws_restJson1FilesLimit(input.FilesLimit, context) }),
3991
+ ...(input.LastModifiedDateCondition != null && {
4074
3992
  LastModifiedDateCondition: serializeAws_restJson1FilterExpression(input.LastModifiedDateCondition, context),
4075
3993
  }),
4076
- ...(input.Parameters !== undefined &&
4077
- input.Parameters !== null && { Parameters: serializeAws_restJson1PathParametersMap(input.Parameters, context) }),
3994
+ ...(input.Parameters != null && { Parameters: serializeAws_restJson1PathParametersMap(input.Parameters, context) }),
4078
3995
  };
4079
3996
  };
4080
3997
  const serializeAws_restJson1PathParametersMap = (input, context) => {
@@ -4090,43 +4007,36 @@ const serializeAws_restJson1PathParametersMap = (input, context) => {
4090
4007
  };
4091
4008
  const serializeAws_restJson1ProfileConfiguration = (input, context) => {
4092
4009
  return {
4093
- ...(input.ColumnStatisticsConfigurations !== undefined &&
4094
- input.ColumnStatisticsConfigurations !== null && {
4010
+ ...(input.ColumnStatisticsConfigurations != null && {
4095
4011
  ColumnStatisticsConfigurations: serializeAws_restJson1ColumnStatisticsConfigurationList(input.ColumnStatisticsConfigurations, context),
4096
4012
  }),
4097
- ...(input.DatasetStatisticsConfiguration !== undefined &&
4098
- input.DatasetStatisticsConfiguration !== null && {
4013
+ ...(input.DatasetStatisticsConfiguration != null && {
4099
4014
  DatasetStatisticsConfiguration: serializeAws_restJson1StatisticsConfiguration(input.DatasetStatisticsConfiguration, context),
4100
4015
  }),
4101
- ...(input.EntityDetectorConfiguration !== undefined &&
4102
- input.EntityDetectorConfiguration !== null && {
4016
+ ...(input.EntityDetectorConfiguration != null && {
4103
4017
  EntityDetectorConfiguration: serializeAws_restJson1EntityDetectorConfiguration(input.EntityDetectorConfiguration, context),
4104
4018
  }),
4105
- ...(input.ProfileColumns !== undefined &&
4106
- input.ProfileColumns !== null && {
4019
+ ...(input.ProfileColumns != null && {
4107
4020
  ProfileColumns: serializeAws_restJson1ColumnSelectorList(input.ProfileColumns, context),
4108
4021
  }),
4109
4022
  };
4110
4023
  };
4111
4024
  const serializeAws_restJson1RecipeAction = (input, context) => {
4112
4025
  return {
4113
- ...(input.Operation !== undefined && input.Operation !== null && { Operation: input.Operation }),
4114
- ...(input.Parameters !== undefined &&
4115
- input.Parameters !== null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) }),
4026
+ ...(input.Operation != null && { Operation: input.Operation }),
4027
+ ...(input.Parameters != null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) }),
4116
4028
  };
4117
4029
  };
4118
4030
  const serializeAws_restJson1RecipeReference = (input, context) => {
4119
4031
  return {
4120
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4121
- ...(input.RecipeVersion !== undefined && input.RecipeVersion !== null && { RecipeVersion: input.RecipeVersion }),
4032
+ ...(input.Name != null && { Name: input.Name }),
4033
+ ...(input.RecipeVersion != null && { RecipeVersion: input.RecipeVersion }),
4122
4034
  };
4123
4035
  };
4124
4036
  const serializeAws_restJson1RecipeStep = (input, context) => {
4125
4037
  return {
4126
- ...(input.Action !== undefined &&
4127
- input.Action !== null && { Action: serializeAws_restJson1RecipeAction(input.Action, context) }),
4128
- ...(input.ConditionExpressions !== undefined &&
4129
- input.ConditionExpressions !== null && {
4038
+ ...(input.Action != null && { Action: serializeAws_restJson1RecipeAction(input.Action, context) }),
4039
+ ...(input.ConditionExpressions != null && {
4130
4040
  ConditionExpressions: serializeAws_restJson1ConditionExpressionList(input.ConditionExpressions, context),
4131
4041
  }),
4132
4042
  };
@@ -4153,20 +4063,16 @@ const serializeAws_restJson1RecipeVersionList = (input, context) => {
4153
4063
  };
4154
4064
  const serializeAws_restJson1Rule = (input, context) => {
4155
4065
  return {
4156
- ...(input.CheckExpression !== undefined &&
4157
- input.CheckExpression !== null && { CheckExpression: input.CheckExpression }),
4158
- ...(input.ColumnSelectors !== undefined &&
4159
- input.ColumnSelectors !== null && {
4066
+ ...(input.CheckExpression != null && { CheckExpression: input.CheckExpression }),
4067
+ ...(input.ColumnSelectors != null && {
4160
4068
  ColumnSelectors: serializeAws_restJson1ColumnSelectorList(input.ColumnSelectors, context),
4161
4069
  }),
4162
- ...(input.Disabled !== undefined && input.Disabled !== null && { Disabled: input.Disabled }),
4163
- ...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
4164
- ...(input.SubstitutionMap !== undefined &&
4165
- input.SubstitutionMap !== null && {
4070
+ ...(input.Disabled != null && { Disabled: input.Disabled }),
4071
+ ...(input.Name != null && { Name: input.Name }),
4072
+ ...(input.SubstitutionMap != null && {
4166
4073
  SubstitutionMap: serializeAws_restJson1ValuesMap(input.SubstitutionMap, context),
4167
4074
  }),
4168
- ...(input.Threshold !== undefined &&
4169
- input.Threshold !== null && { Threshold: serializeAws_restJson1Threshold(input.Threshold, context) }),
4075
+ ...(input.Threshold != null && { Threshold: serializeAws_restJson1Threshold(input.Threshold, context) }),
4170
4076
  };
4171
4077
  };
4172
4078
  const serializeAws_restJson1RuleList = (input, context) => {
@@ -4181,21 +4087,20 @@ const serializeAws_restJson1RuleList = (input, context) => {
4181
4087
  };
4182
4088
  const serializeAws_restJson1S3Location = (input, context) => {
4183
4089
  return {
4184
- ...(input.Bucket !== undefined && input.Bucket !== null && { Bucket: input.Bucket }),
4185
- ...(input.BucketOwner !== undefined && input.BucketOwner !== null && { BucketOwner: input.BucketOwner }),
4186
- ...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
4090
+ ...(input.Bucket != null && { Bucket: input.Bucket }),
4091
+ ...(input.BucketOwner != null && { BucketOwner: input.BucketOwner }),
4092
+ ...(input.Key != null && { Key: input.Key }),
4187
4093
  };
4188
4094
  };
4189
4095
  const serializeAws_restJson1S3TableOutputOptions = (input, context) => {
4190
4096
  return {
4191
- ...(input.Location !== undefined &&
4192
- input.Location !== null && { Location: serializeAws_restJson1S3Location(input.Location, context) }),
4097
+ ...(input.Location != null && { Location: serializeAws_restJson1S3Location(input.Location, context) }),
4193
4098
  };
4194
4099
  };
4195
4100
  const serializeAws_restJson1Sample = (input, context) => {
4196
4101
  return {
4197
- ...(input.Size !== undefined && input.Size !== null && { Size: input.Size }),
4198
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4102
+ ...(input.Size != null && { Size: input.Size }),
4103
+ ...(input.Type != null && { Type: input.Type }),
4199
4104
  };
4200
4105
  };
4201
4106
  const serializeAws_restJson1SheetIndexList = (input, context) => {
@@ -4230,9 +4135,8 @@ const serializeAws_restJson1StatisticList = (input, context) => {
4230
4135
  };
4231
4136
  const serializeAws_restJson1StatisticOverride = (input, context) => {
4232
4137
  return {
4233
- ...(input.Parameters !== undefined &&
4234
- input.Parameters !== null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) }),
4235
- ...(input.Statistic !== undefined && input.Statistic !== null && { Statistic: input.Statistic }),
4138
+ ...(input.Parameters != null && { Parameters: serializeAws_restJson1ParameterMap(input.Parameters, context) }),
4139
+ ...(input.Statistic != null && { Statistic: input.Statistic }),
4236
4140
  };
4237
4141
  };
4238
4142
  const serializeAws_restJson1StatisticOverrideList = (input, context) => {
@@ -4247,12 +4151,12 @@ const serializeAws_restJson1StatisticOverrideList = (input, context) => {
4247
4151
  };
4248
4152
  const serializeAws_restJson1StatisticsConfiguration = (input, context) => {
4249
4153
  return {
4250
- ...(input.IncludedStatistics !== undefined &&
4251
- input.IncludedStatistics !== null && {
4154
+ ...(input.IncludedStatistics != null && {
4252
4155
  IncludedStatistics: serializeAws_restJson1StatisticList(input.IncludedStatistics, context),
4253
4156
  }),
4254
- ...(input.Overrides !== undefined &&
4255
- input.Overrides !== null && { Overrides: serializeAws_restJson1StatisticOverrideList(input.Overrides, context) }),
4157
+ ...(input.Overrides != null && {
4158
+ Overrides: serializeAws_restJson1StatisticOverrideList(input.Overrides, context),
4159
+ }),
4256
4160
  };
4257
4161
  };
4258
4162
  const serializeAws_restJson1TagMap = (input, context) => {
@@ -4268,16 +4172,15 @@ const serializeAws_restJson1TagMap = (input, context) => {
4268
4172
  };
4269
4173
  const serializeAws_restJson1Threshold = (input, context) => {
4270
4174
  return {
4271
- ...(input.Type !== undefined && input.Type !== null && { Type: input.Type }),
4272
- ...(input.Unit !== undefined && input.Unit !== null && { Unit: input.Unit }),
4273
- ...(input.Value !== undefined && input.Value !== null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
4175
+ ...(input.Type != null && { Type: input.Type }),
4176
+ ...(input.Unit != null && { Unit: input.Unit }),
4177
+ ...(input.Value != null && { Value: (0, smithy_client_1.serializeFloat)(input.Value) }),
4274
4178
  };
4275
4179
  };
4276
4180
  const serializeAws_restJson1ValidationConfiguration = (input, context) => {
4277
4181
  return {
4278
- ...(input.RulesetArn !== undefined && input.RulesetArn !== null && { RulesetArn: input.RulesetArn }),
4279
- ...(input.ValidationMode !== undefined &&
4280
- input.ValidationMode !== null && { ValidationMode: input.ValidationMode }),
4182
+ ...(input.RulesetArn != null && { RulesetArn: input.RulesetArn }),
4183
+ ...(input.ValidationMode != null && { ValidationMode: input.ValidationMode }),
4281
4184
  };
4282
4185
  };
4283
4186
  const serializeAws_restJson1ValidationConfigurationList = (input, context) => {
@@ -4303,16 +4206,14 @@ const serializeAws_restJson1ValuesMap = (input, context) => {
4303
4206
  };
4304
4207
  const serializeAws_restJson1ViewFrame = (input, context) => {
4305
4208
  return {
4306
- ...(input.Analytics !== undefined && input.Analytics !== null && { Analytics: input.Analytics }),
4307
- ...(input.ColumnRange !== undefined && input.ColumnRange !== null && { ColumnRange: input.ColumnRange }),
4308
- ...(input.HiddenColumns !== undefined &&
4309
- input.HiddenColumns !== null && {
4209
+ ...(input.Analytics != null && { Analytics: input.Analytics }),
4210
+ ...(input.ColumnRange != null && { ColumnRange: input.ColumnRange }),
4211
+ ...(input.HiddenColumns != null && {
4310
4212
  HiddenColumns: serializeAws_restJson1HiddenColumnList(input.HiddenColumns, context),
4311
4213
  }),
4312
- ...(input.RowRange !== undefined && input.RowRange !== null && { RowRange: input.RowRange }),
4313
- ...(input.StartColumnIndex !== undefined &&
4314
- input.StartColumnIndex !== null && { StartColumnIndex: input.StartColumnIndex }),
4315
- ...(input.StartRowIndex !== undefined && input.StartRowIndex !== null && { StartRowIndex: input.StartRowIndex }),
4214
+ ...(input.RowRange != null && { RowRange: input.RowRange }),
4215
+ ...(input.StartColumnIndex != null && { StartColumnIndex: input.StartColumnIndex }),
4216
+ ...(input.StartRowIndex != null && { StartRowIndex: input.StartRowIndex }),
4316
4217
  };
4317
4218
  };
4318
4219
  const deserializeAws_restJson1AllowedStatisticList = (output, context) => {
@@ -4328,9 +4229,7 @@ const deserializeAws_restJson1AllowedStatisticList = (output, context) => {
4328
4229
  };
4329
4230
  const deserializeAws_restJson1AllowedStatistics = (output, context) => {
4330
4231
  return {
4331
- Statistics: output.Statistics !== undefined && output.Statistics !== null
4332
- ? deserializeAws_restJson1StatisticList(output.Statistics, context)
4333
- : undefined,
4232
+ Statistics: output.Statistics != null ? deserializeAws_restJson1StatisticList(output.Statistics, context) : undefined,
4334
4233
  };
4335
4234
  };
4336
4235
  const deserializeAws_restJson1ColumnNameList = (output, context) => {
@@ -4363,10 +4262,8 @@ const deserializeAws_restJson1ColumnSelectorList = (output, context) => {
4363
4262
  };
4364
4263
  const deserializeAws_restJson1ColumnStatisticsConfiguration = (output, context) => {
4365
4264
  return {
4366
- Selectors: output.Selectors !== undefined && output.Selectors !== null
4367
- ? deserializeAws_restJson1ColumnSelectorList(output.Selectors, context)
4368
- : undefined,
4369
- Statistics: output.Statistics !== undefined && output.Statistics !== null
4265
+ Selectors: output.Selectors != null ? deserializeAws_restJson1ColumnSelectorList(output.Selectors, context) : undefined,
4266
+ Statistics: output.Statistics != null
4370
4267
  ? deserializeAws_restJson1StatisticsConfiguration(output.Statistics, context)
4371
4268
  : undefined,
4372
4269
  };
@@ -4416,14 +4313,12 @@ const deserializeAws_restJson1DatabaseInputDefinition = (output, context) => {
4416
4313
  DatabaseTableName: (0, smithy_client_1.expectString)(output.DatabaseTableName),
4417
4314
  GlueConnectionName: (0, smithy_client_1.expectString)(output.GlueConnectionName),
4418
4315
  QueryString: (0, smithy_client_1.expectString)(output.QueryString),
4419
- TempDirectory: output.TempDirectory !== undefined && output.TempDirectory !== null
4420
- ? deserializeAws_restJson1S3Location(output.TempDirectory, context)
4421
- : undefined,
4316
+ TempDirectory: output.TempDirectory != null ? deserializeAws_restJson1S3Location(output.TempDirectory, context) : undefined,
4422
4317
  };
4423
4318
  };
4424
4319
  const deserializeAws_restJson1DatabaseOutput = (output, context) => {
4425
4320
  return {
4426
- DatabaseOptions: output.DatabaseOptions !== undefined && output.DatabaseOptions !== null
4321
+ DatabaseOptions: output.DatabaseOptions != null
4427
4322
  ? deserializeAws_restJson1DatabaseTableOutputOptions(output.DatabaseOptions, context)
4428
4323
  : undefined,
4429
4324
  DatabaseOutputMode: (0, smithy_client_1.expectString)(output.DatabaseOutputMode),
@@ -4444,9 +4339,7 @@ const deserializeAws_restJson1DatabaseOutputList = (output, context) => {
4444
4339
  const deserializeAws_restJson1DatabaseTableOutputOptions = (output, context) => {
4445
4340
  return {
4446
4341
  TableName: (0, smithy_client_1.expectString)(output.TableName),
4447
- TempDirectory: output.TempDirectory !== undefined && output.TempDirectory !== null
4448
- ? deserializeAws_restJson1S3Location(output.TempDirectory, context)
4449
- : undefined,
4342
+ TempDirectory: output.TempDirectory != null ? deserializeAws_restJson1S3Location(output.TempDirectory, context) : undefined,
4450
4343
  };
4451
4344
  };
4452
4345
  const deserializeAws_restJson1DataCatalogInputDefinition = (output, context) => {
@@ -4454,22 +4347,18 @@ const deserializeAws_restJson1DataCatalogInputDefinition = (output, context) =>
4454
4347
  CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4455
4348
  DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
4456
4349
  TableName: (0, smithy_client_1.expectString)(output.TableName),
4457
- TempDirectory: output.TempDirectory !== undefined && output.TempDirectory !== null
4458
- ? deserializeAws_restJson1S3Location(output.TempDirectory, context)
4459
- : undefined,
4350
+ TempDirectory: output.TempDirectory != null ? deserializeAws_restJson1S3Location(output.TempDirectory, context) : undefined,
4460
4351
  };
4461
4352
  };
4462
4353
  const deserializeAws_restJson1DataCatalogOutput = (output, context) => {
4463
4354
  return {
4464
4355
  CatalogId: (0, smithy_client_1.expectString)(output.CatalogId),
4465
4356
  DatabaseName: (0, smithy_client_1.expectString)(output.DatabaseName),
4466
- DatabaseOptions: output.DatabaseOptions !== undefined && output.DatabaseOptions !== null
4357
+ DatabaseOptions: output.DatabaseOptions != null
4467
4358
  ? deserializeAws_restJson1DatabaseTableOutputOptions(output.DatabaseOptions, context)
4468
4359
  : undefined,
4469
4360
  Overwrite: (0, smithy_client_1.expectBoolean)(output.Overwrite),
4470
- S3Options: output.S3Options !== undefined && output.S3Options !== null
4471
- ? deserializeAws_restJson1S3TableOutputOptions(output.S3Options, context)
4472
- : undefined,
4361
+ S3Options: output.S3Options != null ? deserializeAws_restJson1S3TableOutputOptions(output.S3Options, context) : undefined,
4473
4362
  TableName: (0, smithy_client_1.expectString)(output.TableName),
4474
4363
  };
4475
4364
  };
@@ -4487,30 +4376,20 @@ const deserializeAws_restJson1DataCatalogOutputList = (output, context) => {
4487
4376
  const deserializeAws_restJson1Dataset = (output, context) => {
4488
4377
  return {
4489
4378
  AccountId: (0, smithy_client_1.expectString)(output.AccountId),
4490
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
4491
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
4492
- : undefined,
4379
+ CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
4493
4380
  CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
4494
4381
  Format: (0, smithy_client_1.expectString)(output.Format),
4495
- FormatOptions: output.FormatOptions !== undefined && output.FormatOptions !== null
4496
- ? deserializeAws_restJson1FormatOptions(output.FormatOptions, context)
4497
- : undefined,
4498
- Input: output.Input !== undefined && output.Input !== null
4499
- ? deserializeAws_restJson1Input(output.Input, context)
4500
- : undefined,
4382
+ FormatOptions: output.FormatOptions != null ? deserializeAws_restJson1FormatOptions(output.FormatOptions, context) : undefined,
4383
+ Input: output.Input != null ? deserializeAws_restJson1Input(output.Input, context) : undefined,
4501
4384
  LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
4502
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
4385
+ LastModifiedDate: output.LastModifiedDate != null
4503
4386
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
4504
4387
  : undefined,
4505
4388
  Name: (0, smithy_client_1.expectString)(output.Name),
4506
- PathOptions: output.PathOptions !== undefined && output.PathOptions !== null
4507
- ? deserializeAws_restJson1PathOptions(output.PathOptions, context)
4508
- : undefined,
4389
+ PathOptions: output.PathOptions != null ? deserializeAws_restJson1PathOptions(output.PathOptions, context) : undefined,
4509
4390
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4510
4391
  Source: (0, smithy_client_1.expectString)(output.Source),
4511
- Tags: output.Tags !== undefined && output.Tags !== null
4512
- ? deserializeAws_restJson1TagMap(output.Tags, context)
4513
- : undefined,
4392
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
4514
4393
  };
4515
4394
  };
4516
4395
  const deserializeAws_restJson1DatasetList = (output, context) => {
@@ -4527,12 +4406,10 @@ const deserializeAws_restJson1DatasetList = (output, context) => {
4527
4406
  const deserializeAws_restJson1DatasetParameter = (output, context) => {
4528
4407
  return {
4529
4408
  CreateColumn: (0, smithy_client_1.expectBoolean)(output.CreateColumn),
4530
- DatetimeOptions: output.DatetimeOptions !== undefined && output.DatetimeOptions !== null
4409
+ DatetimeOptions: output.DatetimeOptions != null
4531
4410
  ? deserializeAws_restJson1DatetimeOptions(output.DatetimeOptions, context)
4532
4411
  : undefined,
4533
- Filter: output.Filter !== undefined && output.Filter !== null
4534
- ? deserializeAws_restJson1FilterExpression(output.Filter, context)
4535
- : undefined,
4412
+ Filter: output.Filter != null ? deserializeAws_restJson1FilterExpression(output.Filter, context) : undefined,
4536
4413
  Name: (0, smithy_client_1.expectString)(output.Name),
4537
4414
  Type: (0, smithy_client_1.expectString)(output.Type),
4538
4415
  };
@@ -4546,12 +4423,10 @@ const deserializeAws_restJson1DatetimeOptions = (output, context) => {
4546
4423
  };
4547
4424
  const deserializeAws_restJson1EntityDetectorConfiguration = (output, context) => {
4548
4425
  return {
4549
- AllowedStatistics: output.AllowedStatistics !== undefined && output.AllowedStatistics !== null
4426
+ AllowedStatistics: output.AllowedStatistics != null
4550
4427
  ? deserializeAws_restJson1AllowedStatisticList(output.AllowedStatistics, context)
4551
4428
  : undefined,
4552
- EntityTypes: output.EntityTypes !== undefined && output.EntityTypes !== null
4553
- ? deserializeAws_restJson1EntityTypeList(output.EntityTypes, context)
4554
- : undefined,
4429
+ EntityTypes: output.EntityTypes != null ? deserializeAws_restJson1EntityTypeList(output.EntityTypes, context) : undefined,
4555
4430
  };
4556
4431
  };
4557
4432
  const deserializeAws_restJson1EntityTypeList = (output, context) => {
@@ -4568,12 +4443,8 @@ const deserializeAws_restJson1EntityTypeList = (output, context) => {
4568
4443
  const deserializeAws_restJson1ExcelOptions = (output, context) => {
4569
4444
  return {
4570
4445
  HeaderRow: (0, smithy_client_1.expectBoolean)(output.HeaderRow),
4571
- SheetIndexes: output.SheetIndexes !== undefined && output.SheetIndexes !== null
4572
- ? deserializeAws_restJson1SheetIndexList(output.SheetIndexes, context)
4573
- : undefined,
4574
- SheetNames: output.SheetNames !== undefined && output.SheetNames !== null
4575
- ? deserializeAws_restJson1SheetNameList(output.SheetNames, context)
4576
- : undefined,
4446
+ SheetIndexes: output.SheetIndexes != null ? deserializeAws_restJson1SheetIndexList(output.SheetIndexes, context) : undefined,
4447
+ SheetNames: output.SheetNames != null ? deserializeAws_restJson1SheetNameList(output.SheetNames, context) : undefined,
4577
4448
  };
4578
4449
  };
4579
4450
  const deserializeAws_restJson1FilesLimit = (output, context) => {
@@ -4586,36 +4457,26 @@ const deserializeAws_restJson1FilesLimit = (output, context) => {
4586
4457
  const deserializeAws_restJson1FilterExpression = (output, context) => {
4587
4458
  return {
4588
4459
  Expression: (0, smithy_client_1.expectString)(output.Expression),
4589
- ValuesMap: output.ValuesMap !== undefined && output.ValuesMap !== null
4590
- ? deserializeAws_restJson1ValuesMap(output.ValuesMap, context)
4591
- : undefined,
4460
+ ValuesMap: output.ValuesMap != null ? deserializeAws_restJson1ValuesMap(output.ValuesMap, context) : undefined,
4592
4461
  };
4593
4462
  };
4594
4463
  const deserializeAws_restJson1FormatOptions = (output, context) => {
4595
4464
  return {
4596
- Csv: output.Csv !== undefined && output.Csv !== null
4597
- ? deserializeAws_restJson1CsvOptions(output.Csv, context)
4598
- : undefined,
4599
- Excel: output.Excel !== undefined && output.Excel !== null
4600
- ? deserializeAws_restJson1ExcelOptions(output.Excel, context)
4601
- : undefined,
4602
- Json: output.Json !== undefined && output.Json !== null
4603
- ? deserializeAws_restJson1JsonOptions(output.Json, context)
4604
- : undefined,
4465
+ Csv: output.Csv != null ? deserializeAws_restJson1CsvOptions(output.Csv, context) : undefined,
4466
+ Excel: output.Excel != null ? deserializeAws_restJson1ExcelOptions(output.Excel, context) : undefined,
4467
+ Json: output.Json != null ? deserializeAws_restJson1JsonOptions(output.Json, context) : undefined,
4605
4468
  };
4606
4469
  };
4607
4470
  const deserializeAws_restJson1Input = (output, context) => {
4608
4471
  return {
4609
- DataCatalogInputDefinition: output.DataCatalogInputDefinition !== undefined && output.DataCatalogInputDefinition !== null
4472
+ DataCatalogInputDefinition: output.DataCatalogInputDefinition != null
4610
4473
  ? deserializeAws_restJson1DataCatalogInputDefinition(output.DataCatalogInputDefinition, context)
4611
4474
  : undefined,
4612
- DatabaseInputDefinition: output.DatabaseInputDefinition !== undefined && output.DatabaseInputDefinition !== null
4475
+ DatabaseInputDefinition: output.DatabaseInputDefinition != null
4613
4476
  ? deserializeAws_restJson1DatabaseInputDefinition(output.DatabaseInputDefinition, context)
4614
4477
  : undefined,
4615
- Metadata: output.Metadata !== undefined && output.Metadata !== null
4616
- ? deserializeAws_restJson1Metadata(output.Metadata, context)
4617
- : undefined,
4618
- S3InputDefinition: output.S3InputDefinition !== undefined && output.S3InputDefinition !== null
4478
+ Metadata: output.Metadata != null ? deserializeAws_restJson1Metadata(output.Metadata, context) : undefined,
4479
+ S3InputDefinition: output.S3InputDefinition != null
4619
4480
  ? deserializeAws_restJson1S3Location(output.S3InputDefinition, context)
4620
4481
  : undefined,
4621
4482
  };
@@ -4623,45 +4484,37 @@ const deserializeAws_restJson1Input = (output, context) => {
4623
4484
  const deserializeAws_restJson1Job = (output, context) => {
4624
4485
  return {
4625
4486
  AccountId: (0, smithy_client_1.expectString)(output.AccountId),
4626
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
4627
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
4628
- : undefined,
4487
+ CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
4629
4488
  CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
4630
- DataCatalogOutputs: output.DataCatalogOutputs !== undefined && output.DataCatalogOutputs !== null
4489
+ DataCatalogOutputs: output.DataCatalogOutputs != null
4631
4490
  ? deserializeAws_restJson1DataCatalogOutputList(output.DataCatalogOutputs, context)
4632
4491
  : undefined,
4633
- DatabaseOutputs: output.DatabaseOutputs !== undefined && output.DatabaseOutputs !== null
4492
+ DatabaseOutputs: output.DatabaseOutputs != null
4634
4493
  ? deserializeAws_restJson1DatabaseOutputList(output.DatabaseOutputs, context)
4635
4494
  : undefined,
4636
4495
  DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
4637
4496
  EncryptionKeyArn: (0, smithy_client_1.expectString)(output.EncryptionKeyArn),
4638
4497
  EncryptionMode: (0, smithy_client_1.expectString)(output.EncryptionMode),
4639
- JobSample: output.JobSample !== undefined && output.JobSample !== null
4640
- ? deserializeAws_restJson1JobSample(output.JobSample, context)
4641
- : undefined,
4498
+ JobSample: output.JobSample != null ? deserializeAws_restJson1JobSample(output.JobSample, context) : undefined,
4642
4499
  LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
4643
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
4500
+ LastModifiedDate: output.LastModifiedDate != null
4644
4501
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
4645
4502
  : undefined,
4646
4503
  LogSubscription: (0, smithy_client_1.expectString)(output.LogSubscription),
4647
4504
  MaxCapacity: (0, smithy_client_1.expectInt32)(output.MaxCapacity),
4648
4505
  MaxRetries: (0, smithy_client_1.expectInt32)(output.MaxRetries),
4649
4506
  Name: (0, smithy_client_1.expectString)(output.Name),
4650
- Outputs: output.Outputs !== undefined && output.Outputs !== null
4651
- ? deserializeAws_restJson1OutputList(output.Outputs, context)
4652
- : undefined,
4507
+ Outputs: output.Outputs != null ? deserializeAws_restJson1OutputList(output.Outputs, context) : undefined,
4653
4508
  ProjectName: (0, smithy_client_1.expectString)(output.ProjectName),
4654
- RecipeReference: output.RecipeReference !== undefined && output.RecipeReference !== null
4509
+ RecipeReference: output.RecipeReference != null
4655
4510
  ? deserializeAws_restJson1RecipeReference(output.RecipeReference, context)
4656
4511
  : undefined,
4657
4512
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4658
4513
  RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4659
- Tags: output.Tags !== undefined && output.Tags !== null
4660
- ? deserializeAws_restJson1TagMap(output.Tags, context)
4661
- : undefined,
4514
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
4662
4515
  Timeout: (0, smithy_client_1.expectInt32)(output.Timeout),
4663
4516
  Type: (0, smithy_client_1.expectString)(output.Type),
4664
- ValidationConfigurations: output.ValidationConfigurations !== undefined && output.ValidationConfigurations !== null
4517
+ ValidationConfigurations: output.ValidationConfigurations != null
4665
4518
  ? deserializeAws_restJson1ValidationConfigurationList(output.ValidationConfigurations, context)
4666
4519
  : undefined,
4667
4520
  };
@@ -4691,37 +4544,31 @@ const deserializeAws_restJson1JobNameList = (output, context) => {
4691
4544
  const deserializeAws_restJson1JobRun = (output, context) => {
4692
4545
  return {
4693
4546
  Attempt: (0, smithy_client_1.expectInt32)(output.Attempt),
4694
- CompletedOn: output.CompletedOn !== undefined && output.CompletedOn !== null
4547
+ CompletedOn: output.CompletedOn != null
4695
4548
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletedOn)))
4696
4549
  : undefined,
4697
- DataCatalogOutputs: output.DataCatalogOutputs !== undefined && output.DataCatalogOutputs !== null
4550
+ DataCatalogOutputs: output.DataCatalogOutputs != null
4698
4551
  ? deserializeAws_restJson1DataCatalogOutputList(output.DataCatalogOutputs, context)
4699
4552
  : undefined,
4700
- DatabaseOutputs: output.DatabaseOutputs !== undefined && output.DatabaseOutputs !== null
4553
+ DatabaseOutputs: output.DatabaseOutputs != null
4701
4554
  ? deserializeAws_restJson1DatabaseOutputList(output.DatabaseOutputs, context)
4702
4555
  : undefined,
4703
4556
  DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
4704
4557
  ErrorMessage: (0, smithy_client_1.expectString)(output.ErrorMessage),
4705
4558
  ExecutionTime: (0, smithy_client_1.expectInt32)(output.ExecutionTime),
4706
4559
  JobName: (0, smithy_client_1.expectString)(output.JobName),
4707
- JobSample: output.JobSample !== undefined && output.JobSample !== null
4708
- ? deserializeAws_restJson1JobSample(output.JobSample, context)
4709
- : undefined,
4560
+ JobSample: output.JobSample != null ? deserializeAws_restJson1JobSample(output.JobSample, context) : undefined,
4710
4561
  LogGroupName: (0, smithy_client_1.expectString)(output.LogGroupName),
4711
4562
  LogSubscription: (0, smithy_client_1.expectString)(output.LogSubscription),
4712
- Outputs: output.Outputs !== undefined && output.Outputs !== null
4713
- ? deserializeAws_restJson1OutputList(output.Outputs, context)
4714
- : undefined,
4715
- RecipeReference: output.RecipeReference !== undefined && output.RecipeReference !== null
4563
+ Outputs: output.Outputs != null ? deserializeAws_restJson1OutputList(output.Outputs, context) : undefined,
4564
+ RecipeReference: output.RecipeReference != null
4716
4565
  ? deserializeAws_restJson1RecipeReference(output.RecipeReference, context)
4717
4566
  : undefined,
4718
4567
  RunId: (0, smithy_client_1.expectString)(output.RunId),
4719
4568
  StartedBy: (0, smithy_client_1.expectString)(output.StartedBy),
4720
- StartedOn: output.StartedOn !== undefined && output.StartedOn !== null
4721
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartedOn)))
4722
- : undefined,
4569
+ StartedOn: output.StartedOn != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartedOn))) : undefined,
4723
4570
  State: (0, smithy_client_1.expectString)(output.State),
4724
- ValidationConfigurations: output.ValidationConfigurations !== undefined && output.ValidationConfigurations !== null
4571
+ ValidationConfigurations: output.ValidationConfigurations != null
4725
4572
  ? deserializeAws_restJson1ValidationConfigurationList(output.ValidationConfigurations, context)
4726
4573
  : undefined,
4727
4574
  };
@@ -4757,24 +4604,20 @@ const deserializeAws_restJson1Output = (output, context) => {
4757
4604
  return {
4758
4605
  CompressionFormat: (0, smithy_client_1.expectString)(output.CompressionFormat),
4759
4606
  Format: (0, smithy_client_1.expectString)(output.Format),
4760
- FormatOptions: output.FormatOptions !== undefined && output.FormatOptions !== null
4607
+ FormatOptions: output.FormatOptions != null
4761
4608
  ? deserializeAws_restJson1OutputFormatOptions(output.FormatOptions, context)
4762
4609
  : undefined,
4763
- Location: output.Location !== undefined && output.Location !== null
4764
- ? deserializeAws_restJson1S3Location(output.Location, context)
4765
- : undefined,
4610
+ Location: output.Location != null ? deserializeAws_restJson1S3Location(output.Location, context) : undefined,
4766
4611
  MaxOutputFiles: (0, smithy_client_1.expectInt32)(output.MaxOutputFiles),
4767
4612
  Overwrite: (0, smithy_client_1.expectBoolean)(output.Overwrite),
4768
- PartitionColumns: output.PartitionColumns !== undefined && output.PartitionColumns !== null
4613
+ PartitionColumns: output.PartitionColumns != null
4769
4614
  ? deserializeAws_restJson1ColumnNameList(output.PartitionColumns, context)
4770
4615
  : undefined,
4771
4616
  };
4772
4617
  };
4773
4618
  const deserializeAws_restJson1OutputFormatOptions = (output, context) => {
4774
4619
  return {
4775
- Csv: output.Csv !== undefined && output.Csv !== null
4776
- ? deserializeAws_restJson1CsvOutputOptions(output.Csv, context)
4777
- : undefined,
4620
+ Csv: output.Csv != null ? deserializeAws_restJson1CsvOutputOptions(output.Csv, context) : undefined,
4778
4621
  };
4779
4622
  };
4780
4623
  const deserializeAws_restJson1OutputList = (output, context) => {
@@ -4801,15 +4644,11 @@ const deserializeAws_restJson1ParameterMap = (output, context) => {
4801
4644
  };
4802
4645
  const deserializeAws_restJson1PathOptions = (output, context) => {
4803
4646
  return {
4804
- FilesLimit: output.FilesLimit !== undefined && output.FilesLimit !== null
4805
- ? deserializeAws_restJson1FilesLimit(output.FilesLimit, context)
4806
- : undefined,
4807
- LastModifiedDateCondition: output.LastModifiedDateCondition !== undefined && output.LastModifiedDateCondition !== null
4647
+ FilesLimit: output.FilesLimit != null ? deserializeAws_restJson1FilesLimit(output.FilesLimit, context) : undefined,
4648
+ LastModifiedDateCondition: output.LastModifiedDateCondition != null
4808
4649
  ? deserializeAws_restJson1FilterExpression(output.LastModifiedDateCondition, context)
4809
4650
  : undefined,
4810
- Parameters: output.Parameters !== undefined && output.Parameters !== null
4811
- ? deserializeAws_restJson1PathParametersMap(output.Parameters, context)
4812
- : undefined,
4651
+ Parameters: output.Parameters != null ? deserializeAws_restJson1PathParametersMap(output.Parameters, context) : undefined,
4813
4652
  };
4814
4653
  };
4815
4654
  const deserializeAws_restJson1PathParametersMap = (output, context) => {
@@ -4825,16 +4664,16 @@ const deserializeAws_restJson1PathParametersMap = (output, context) => {
4825
4664
  };
4826
4665
  const deserializeAws_restJson1ProfileConfiguration = (output, context) => {
4827
4666
  return {
4828
- ColumnStatisticsConfigurations: output.ColumnStatisticsConfigurations !== undefined && output.ColumnStatisticsConfigurations !== null
4667
+ ColumnStatisticsConfigurations: output.ColumnStatisticsConfigurations != null
4829
4668
  ? deserializeAws_restJson1ColumnStatisticsConfigurationList(output.ColumnStatisticsConfigurations, context)
4830
4669
  : undefined,
4831
- DatasetStatisticsConfiguration: output.DatasetStatisticsConfiguration !== undefined && output.DatasetStatisticsConfiguration !== null
4670
+ DatasetStatisticsConfiguration: output.DatasetStatisticsConfiguration != null
4832
4671
  ? deserializeAws_restJson1StatisticsConfiguration(output.DatasetStatisticsConfiguration, context)
4833
4672
  : undefined,
4834
- EntityDetectorConfiguration: output.EntityDetectorConfiguration !== undefined && output.EntityDetectorConfiguration !== null
4673
+ EntityDetectorConfiguration: output.EntityDetectorConfiguration != null
4835
4674
  ? deserializeAws_restJson1EntityDetectorConfiguration(output.EntityDetectorConfiguration, context)
4836
4675
  : undefined,
4837
- ProfileColumns: output.ProfileColumns !== undefined && output.ProfileColumns !== null
4676
+ ProfileColumns: output.ProfileColumns != null
4838
4677
  ? deserializeAws_restJson1ColumnSelectorList(output.ProfileColumns, context)
4839
4678
  : undefined,
4840
4679
  };
@@ -4842,29 +4681,21 @@ const deserializeAws_restJson1ProfileConfiguration = (output, context) => {
4842
4681
  const deserializeAws_restJson1Project = (output, context) => {
4843
4682
  return {
4844
4683
  AccountId: (0, smithy_client_1.expectString)(output.AccountId),
4845
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
4846
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
4847
- : undefined,
4684
+ CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
4848
4685
  CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
4849
4686
  DatasetName: (0, smithy_client_1.expectString)(output.DatasetName),
4850
4687
  LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
4851
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
4688
+ LastModifiedDate: output.LastModifiedDate != null
4852
4689
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
4853
4690
  : undefined,
4854
4691
  Name: (0, smithy_client_1.expectString)(output.Name),
4855
- OpenDate: output.OpenDate !== undefined && output.OpenDate !== null
4856
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OpenDate)))
4857
- : undefined,
4692
+ OpenDate: output.OpenDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.OpenDate))) : undefined,
4858
4693
  OpenedBy: (0, smithy_client_1.expectString)(output.OpenedBy),
4859
4694
  RecipeName: (0, smithy_client_1.expectString)(output.RecipeName),
4860
4695
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4861
4696
  RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
4862
- Sample: output.Sample !== undefined && output.Sample !== null
4863
- ? deserializeAws_restJson1Sample(output.Sample, context)
4864
- : undefined,
4865
- Tags: output.Tags !== undefined && output.Tags !== null
4866
- ? deserializeAws_restJson1TagMap(output.Tags, context)
4867
- : undefined,
4697
+ Sample: output.Sample != null ? deserializeAws_restJson1Sample(output.Sample, context) : undefined,
4698
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
4868
4699
  };
4869
4700
  };
4870
4701
  const deserializeAws_restJson1ProjectList = (output, context) => {
@@ -4880,37 +4711,29 @@ const deserializeAws_restJson1ProjectList = (output, context) => {
4880
4711
  };
4881
4712
  const deserializeAws_restJson1Recipe = (output, context) => {
4882
4713
  return {
4883
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
4884
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
4885
- : undefined,
4714
+ CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
4886
4715
  CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
4887
4716
  Description: (0, smithy_client_1.expectString)(output.Description),
4888
4717
  LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
4889
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
4718
+ LastModifiedDate: output.LastModifiedDate != null
4890
4719
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
4891
4720
  : undefined,
4892
4721
  Name: (0, smithy_client_1.expectString)(output.Name),
4893
4722
  ProjectName: (0, smithy_client_1.expectString)(output.ProjectName),
4894
4723
  PublishedBy: (0, smithy_client_1.expectString)(output.PublishedBy),
4895
- PublishedDate: output.PublishedDate !== undefined && output.PublishedDate !== null
4724
+ PublishedDate: output.PublishedDate != null
4896
4725
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.PublishedDate)))
4897
4726
  : undefined,
4898
4727
  RecipeVersion: (0, smithy_client_1.expectString)(output.RecipeVersion),
4899
4728
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
4900
- Steps: output.Steps !== undefined && output.Steps !== null
4901
- ? deserializeAws_restJson1RecipeStepList(output.Steps, context)
4902
- : undefined,
4903
- Tags: output.Tags !== undefined && output.Tags !== null
4904
- ? deserializeAws_restJson1TagMap(output.Tags, context)
4905
- : undefined,
4729
+ Steps: output.Steps != null ? deserializeAws_restJson1RecipeStepList(output.Steps, context) : undefined,
4730
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
4906
4731
  };
4907
4732
  };
4908
4733
  const deserializeAws_restJson1RecipeAction = (output, context) => {
4909
4734
  return {
4910
4735
  Operation: (0, smithy_client_1.expectString)(output.Operation),
4911
- Parameters: output.Parameters !== undefined && output.Parameters !== null
4912
- ? deserializeAws_restJson1ParameterMap(output.Parameters, context)
4913
- : undefined,
4736
+ Parameters: output.Parameters != null ? deserializeAws_restJson1ParameterMap(output.Parameters, context) : undefined,
4914
4737
  };
4915
4738
  };
4916
4739
  const deserializeAws_restJson1RecipeErrorList = (output, context) => {
@@ -4943,10 +4766,8 @@ const deserializeAws_restJson1RecipeReference = (output, context) => {
4943
4766
  };
4944
4767
  const deserializeAws_restJson1RecipeStep = (output, context) => {
4945
4768
  return {
4946
- Action: output.Action !== undefined && output.Action !== null
4947
- ? deserializeAws_restJson1RecipeAction(output.Action, context)
4948
- : undefined,
4949
- ConditionExpressions: output.ConditionExpressions !== undefined && output.ConditionExpressions !== null
4769
+ Action: output.Action != null ? deserializeAws_restJson1RecipeAction(output.Action, context) : undefined,
4770
+ ConditionExpressions: output.ConditionExpressions != null
4950
4771
  ? deserializeAws_restJson1ConditionExpressionList(output.ConditionExpressions, context)
4951
4772
  : undefined,
4952
4773
  };
@@ -4972,17 +4793,13 @@ const deserializeAws_restJson1RecipeVersionErrorDetail = (output, context) => {
4972
4793
  const deserializeAws_restJson1Rule = (output, context) => {
4973
4794
  return {
4974
4795
  CheckExpression: (0, smithy_client_1.expectString)(output.CheckExpression),
4975
- ColumnSelectors: output.ColumnSelectors !== undefined && output.ColumnSelectors !== null
4796
+ ColumnSelectors: output.ColumnSelectors != null
4976
4797
  ? deserializeAws_restJson1ColumnSelectorList(output.ColumnSelectors, context)
4977
4798
  : undefined,
4978
4799
  Disabled: (0, smithy_client_1.expectBoolean)(output.Disabled),
4979
4800
  Name: (0, smithy_client_1.expectString)(output.Name),
4980
- SubstitutionMap: output.SubstitutionMap !== undefined && output.SubstitutionMap !== null
4981
- ? deserializeAws_restJson1ValuesMap(output.SubstitutionMap, context)
4982
- : undefined,
4983
- Threshold: output.Threshold !== undefined && output.Threshold !== null
4984
- ? deserializeAws_restJson1Threshold(output.Threshold, context)
4985
- : undefined,
4801
+ SubstitutionMap: output.SubstitutionMap != null ? deserializeAws_restJson1ValuesMap(output.SubstitutionMap, context) : undefined,
4802
+ Threshold: output.Threshold != null ? deserializeAws_restJson1Threshold(output.Threshold, context) : undefined,
4986
4803
  };
4987
4804
  };
4988
4805
  const deserializeAws_restJson1RuleList = (output, context) => {
@@ -4999,21 +4816,17 @@ const deserializeAws_restJson1RuleList = (output, context) => {
4999
4816
  const deserializeAws_restJson1RulesetItem = (output, context) => {
5000
4817
  return {
5001
4818
  AccountId: (0, smithy_client_1.expectString)(output.AccountId),
5002
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
5003
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
5004
- : undefined,
4819
+ CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
5005
4820
  CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
5006
4821
  Description: (0, smithy_client_1.expectString)(output.Description),
5007
4822
  LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
5008
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
4823
+ LastModifiedDate: output.LastModifiedDate != null
5009
4824
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
5010
4825
  : undefined,
5011
4826
  Name: (0, smithy_client_1.expectString)(output.Name),
5012
4827
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
5013
4828
  RuleCount: (0, smithy_client_1.expectInt32)(output.RuleCount),
5014
- Tags: output.Tags !== undefined && output.Tags !== null
5015
- ? deserializeAws_restJson1TagMap(output.Tags, context)
5016
- : undefined,
4829
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
5017
4830
  TargetArn: (0, smithy_client_1.expectString)(output.TargetArn),
5018
4831
  };
5019
4832
  };
@@ -5037,9 +4850,7 @@ const deserializeAws_restJson1S3Location = (output, context) => {
5037
4850
  };
5038
4851
  const deserializeAws_restJson1S3TableOutputOptions = (output, context) => {
5039
4852
  return {
5040
- Location: output.Location !== undefined && output.Location !== null
5041
- ? deserializeAws_restJson1S3Location(output.Location, context)
5042
- : undefined,
4853
+ Location: output.Location != null ? deserializeAws_restJson1S3Location(output.Location, context) : undefined,
5043
4854
  };
5044
4855
  };
5045
4856
  const deserializeAws_restJson1Sample = (output, context) => {
@@ -5051,23 +4862,17 @@ const deserializeAws_restJson1Sample = (output, context) => {
5051
4862
  const deserializeAws_restJson1Schedule = (output, context) => {
5052
4863
  return {
5053
4864
  AccountId: (0, smithy_client_1.expectString)(output.AccountId),
5054
- CreateDate: output.CreateDate !== undefined && output.CreateDate !== null
5055
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate)))
5056
- : undefined,
4865
+ CreateDate: output.CreateDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreateDate))) : undefined,
5057
4866
  CreatedBy: (0, smithy_client_1.expectString)(output.CreatedBy),
5058
4867
  CronExpression: (0, smithy_client_1.expectString)(output.CronExpression),
5059
- JobNames: output.JobNames !== undefined && output.JobNames !== null
5060
- ? deserializeAws_restJson1JobNameList(output.JobNames, context)
5061
- : undefined,
4868
+ JobNames: output.JobNames != null ? deserializeAws_restJson1JobNameList(output.JobNames, context) : undefined,
5062
4869
  LastModifiedBy: (0, smithy_client_1.expectString)(output.LastModifiedBy),
5063
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
4870
+ LastModifiedDate: output.LastModifiedDate != null
5064
4871
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
5065
4872
  : undefined,
5066
4873
  Name: (0, smithy_client_1.expectString)(output.Name),
5067
4874
  ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
5068
- Tags: output.Tags !== undefined && output.Tags !== null
5069
- ? deserializeAws_restJson1TagMap(output.Tags, context)
5070
- : undefined,
4875
+ Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
5071
4876
  };
5072
4877
  };
5073
4878
  const deserializeAws_restJson1ScheduleList = (output, context) => {
@@ -5116,9 +4921,7 @@ const deserializeAws_restJson1StatisticList = (output, context) => {
5116
4921
  };
5117
4922
  const deserializeAws_restJson1StatisticOverride = (output, context) => {
5118
4923
  return {
5119
- Parameters: output.Parameters !== undefined && output.Parameters !== null
5120
- ? deserializeAws_restJson1ParameterMap(output.Parameters, context)
5121
- : undefined,
4924
+ Parameters: output.Parameters != null ? deserializeAws_restJson1ParameterMap(output.Parameters, context) : undefined,
5122
4925
  Statistic: (0, smithy_client_1.expectString)(output.Statistic),
5123
4926
  };
5124
4927
  };
@@ -5135,12 +4938,10 @@ const deserializeAws_restJson1StatisticOverrideList = (output, context) => {
5135
4938
  };
5136
4939
  const deserializeAws_restJson1StatisticsConfiguration = (output, context) => {
5137
4940
  return {
5138
- IncludedStatistics: output.IncludedStatistics !== undefined && output.IncludedStatistics !== null
4941
+ IncludedStatistics: output.IncludedStatistics != null
5139
4942
  ? deserializeAws_restJson1StatisticList(output.IncludedStatistics, context)
5140
4943
  : undefined,
5141
- Overrides: output.Overrides !== undefined && output.Overrides !== null
5142
- ? deserializeAws_restJson1StatisticOverrideList(output.Overrides, context)
5143
- : undefined,
4944
+ Overrides: output.Overrides != null ? deserializeAws_restJson1StatisticOverrideList(output.Overrides, context) : undefined,
5144
4945
  };
5145
4946
  };
5146
4947
  const deserializeAws_restJson1TagMap = (output, context) => {
@@ -5220,6 +5021,9 @@ const loadRestJsonErrorCode = (output, data) => {
5220
5021
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
5221
5022
  const sanitizeErrorCode = (rawValue) => {
5222
5023
  let cleanValue = rawValue;
5024
+ if (typeof cleanValue === "number") {
5025
+ cleanValue = cleanValue.toString();
5026
+ }
5223
5027
  if (cleanValue.indexOf(":") >= 0) {
5224
5028
  cleanValue = cleanValue.split(":")[0];
5225
5029
  }