@aws-sdk/client-amplify 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.
@@ -14,41 +14,31 @@ const serializeAws_restJson1CreateAppCommand = async (input, context) => {
14
14
  const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/apps";
15
15
  let body;
16
16
  body = JSON.stringify({
17
- ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
18
- ...(input.autoBranchCreationConfig !== undefined &&
19
- input.autoBranchCreationConfig !== null && {
17
+ ...(input.accessToken != null && { accessToken: input.accessToken }),
18
+ ...(input.autoBranchCreationConfig != null && {
20
19
  autoBranchCreationConfig: serializeAws_restJson1AutoBranchCreationConfig(input.autoBranchCreationConfig, context),
21
20
  }),
22
- ...(input.autoBranchCreationPatterns !== undefined &&
23
- input.autoBranchCreationPatterns !== null && {
21
+ ...(input.autoBranchCreationPatterns != null && {
24
22
  autoBranchCreationPatterns: serializeAws_restJson1AutoBranchCreationPatterns(input.autoBranchCreationPatterns, context),
25
23
  }),
26
- ...(input.basicAuthCredentials !== undefined &&
27
- input.basicAuthCredentials !== null && { basicAuthCredentials: input.basicAuthCredentials }),
28
- ...(input.buildSpec !== undefined && input.buildSpec !== null && { buildSpec: input.buildSpec }),
29
- ...(input.customHeaders !== undefined && input.customHeaders !== null && { customHeaders: input.customHeaders }),
30
- ...(input.customRules !== undefined &&
31
- input.customRules !== null && { customRules: serializeAws_restJson1CustomRules(input.customRules, context) }),
32
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
33
- ...(input.enableAutoBranchCreation !== undefined &&
34
- input.enableAutoBranchCreation !== null && { enableAutoBranchCreation: input.enableAutoBranchCreation }),
35
- ...(input.enableBasicAuth !== undefined &&
36
- input.enableBasicAuth !== null && { enableBasicAuth: input.enableBasicAuth }),
37
- ...(input.enableBranchAutoBuild !== undefined &&
38
- input.enableBranchAutoBuild !== null && { enableBranchAutoBuild: input.enableBranchAutoBuild }),
39
- ...(input.enableBranchAutoDeletion !== undefined &&
40
- input.enableBranchAutoDeletion !== null && { enableBranchAutoDeletion: input.enableBranchAutoDeletion }),
41
- ...(input.environmentVariables !== undefined &&
42
- input.environmentVariables !== null && {
24
+ ...(input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials }),
25
+ ...(input.buildSpec != null && { buildSpec: input.buildSpec }),
26
+ ...(input.customHeaders != null && { customHeaders: input.customHeaders }),
27
+ ...(input.customRules != null && { customRules: serializeAws_restJson1CustomRules(input.customRules, context) }),
28
+ ...(input.description != null && { description: input.description }),
29
+ ...(input.enableAutoBranchCreation != null && { enableAutoBranchCreation: input.enableAutoBranchCreation }),
30
+ ...(input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth }),
31
+ ...(input.enableBranchAutoBuild != null && { enableBranchAutoBuild: input.enableBranchAutoBuild }),
32
+ ...(input.enableBranchAutoDeletion != null && { enableBranchAutoDeletion: input.enableBranchAutoDeletion }),
33
+ ...(input.environmentVariables != null && {
43
34
  environmentVariables: serializeAws_restJson1EnvironmentVariables(input.environmentVariables, context),
44
35
  }),
45
- ...(input.iamServiceRoleArn !== undefined &&
46
- input.iamServiceRoleArn !== null && { iamServiceRoleArn: input.iamServiceRoleArn }),
47
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
48
- ...(input.oauthToken !== undefined && input.oauthToken !== null && { oauthToken: input.oauthToken }),
49
- ...(input.platform !== undefined && input.platform !== null && { platform: input.platform }),
50
- ...(input.repository !== undefined && input.repository !== null && { repository: input.repository }),
51
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
36
+ ...(input.iamServiceRoleArn != null && { iamServiceRoleArn: input.iamServiceRoleArn }),
37
+ ...(input.name != null && { name: input.name }),
38
+ ...(input.oauthToken != null && { oauthToken: input.oauthToken }),
39
+ ...(input.platform != null && { platform: input.platform }),
40
+ ...(input.repository != null && { repository: input.repository }),
41
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
52
42
  });
53
43
  return new protocol_http_1.HttpRequest({
54
44
  protocol,
@@ -79,11 +69,9 @@ const serializeAws_restJson1CreateBackendEnvironmentCommand = async (input, cont
79
69
  }
80
70
  let body;
81
71
  body = JSON.stringify({
82
- ...(input.deploymentArtifacts !== undefined &&
83
- input.deploymentArtifacts !== null && { deploymentArtifacts: input.deploymentArtifacts }),
84
- ...(input.environmentName !== undefined &&
85
- input.environmentName !== null && { environmentName: input.environmentName }),
86
- ...(input.stackName !== undefined && input.stackName !== null && { stackName: input.stackName }),
72
+ ...(input.deploymentArtifacts != null && { deploymentArtifacts: input.deploymentArtifacts }),
73
+ ...(input.environmentName != null && { environmentName: input.environmentName }),
74
+ ...(input.stackName != null && { stackName: input.stackName }),
87
75
  });
88
76
  return new protocol_http_1.HttpRequest({
89
77
  protocol,
@@ -114,34 +102,25 @@ const serializeAws_restJson1CreateBranchCommand = async (input, context) => {
114
102
  }
115
103
  let body;
116
104
  body = JSON.stringify({
117
- ...(input.backendEnvironmentArn !== undefined &&
118
- input.backendEnvironmentArn !== null && { backendEnvironmentArn: input.backendEnvironmentArn }),
119
- ...(input.basicAuthCredentials !== undefined &&
120
- input.basicAuthCredentials !== null && { basicAuthCredentials: input.basicAuthCredentials }),
121
- ...(input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName }),
122
- ...(input.buildSpec !== undefined && input.buildSpec !== null && { buildSpec: input.buildSpec }),
123
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
124
- ...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }),
125
- ...(input.enableAutoBuild !== undefined &&
126
- input.enableAutoBuild !== null && { enableAutoBuild: input.enableAutoBuild }),
127
- ...(input.enableBasicAuth !== undefined &&
128
- input.enableBasicAuth !== null && { enableBasicAuth: input.enableBasicAuth }),
129
- ...(input.enableNotification !== undefined &&
130
- input.enableNotification !== null && { enableNotification: input.enableNotification }),
131
- ...(input.enablePerformanceMode !== undefined &&
132
- input.enablePerformanceMode !== null && { enablePerformanceMode: input.enablePerformanceMode }),
133
- ...(input.enablePullRequestPreview !== undefined &&
134
- input.enablePullRequestPreview !== null && { enablePullRequestPreview: input.enablePullRequestPreview }),
135
- ...(input.environmentVariables !== undefined &&
136
- input.environmentVariables !== null && {
105
+ ...(input.backendEnvironmentArn != null && { backendEnvironmentArn: input.backendEnvironmentArn }),
106
+ ...(input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials }),
107
+ ...(input.branchName != null && { branchName: input.branchName }),
108
+ ...(input.buildSpec != null && { buildSpec: input.buildSpec }),
109
+ ...(input.description != null && { description: input.description }),
110
+ ...(input.displayName != null && { displayName: input.displayName }),
111
+ ...(input.enableAutoBuild != null && { enableAutoBuild: input.enableAutoBuild }),
112
+ ...(input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth }),
113
+ ...(input.enableNotification != null && { enableNotification: input.enableNotification }),
114
+ ...(input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode }),
115
+ ...(input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview }),
116
+ ...(input.environmentVariables != null && {
137
117
  environmentVariables: serializeAws_restJson1EnvironmentVariables(input.environmentVariables, context),
138
118
  }),
139
- ...(input.framework !== undefined && input.framework !== null && { framework: input.framework }),
140
- ...(input.pullRequestEnvironmentName !== undefined &&
141
- input.pullRequestEnvironmentName !== null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName }),
142
- ...(input.stage !== undefined && input.stage !== null && { stage: input.stage }),
143
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
144
- ...(input.ttl !== undefined && input.ttl !== null && { ttl: input.ttl }),
119
+ ...(input.framework != null && { framework: input.framework }),
120
+ ...(input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName }),
121
+ ...(input.stage != null && { stage: input.stage }),
122
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
123
+ ...(input.ttl != null && { ttl: input.ttl }),
145
124
  });
146
125
  return new protocol_http_1.HttpRequest({
147
126
  protocol,
@@ -183,8 +162,7 @@ const serializeAws_restJson1CreateDeploymentCommand = async (input, context) =>
183
162
  }
184
163
  let body;
185
164
  body = JSON.stringify({
186
- ...(input.fileMap !== undefined &&
187
- input.fileMap !== null && { fileMap: serializeAws_restJson1FileMap(input.fileMap, context) }),
165
+ ...(input.fileMap != null && { fileMap: serializeAws_restJson1FileMap(input.fileMap, context) }),
188
166
  });
189
167
  return new protocol_http_1.HttpRequest({
190
168
  protocol,
@@ -215,17 +193,13 @@ const serializeAws_restJson1CreateDomainAssociationCommand = async (input, conte
215
193
  }
216
194
  let body;
217
195
  body = JSON.stringify({
218
- ...(input.autoSubDomainCreationPatterns !== undefined &&
219
- input.autoSubDomainCreationPatterns !== null && {
196
+ ...(input.autoSubDomainCreationPatterns != null && {
220
197
  autoSubDomainCreationPatterns: serializeAws_restJson1AutoSubDomainCreationPatterns(input.autoSubDomainCreationPatterns, context),
221
198
  }),
222
- ...(input.autoSubDomainIAMRole !== undefined &&
223
- input.autoSubDomainIAMRole !== null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole }),
224
- ...(input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName }),
225
- ...(input.enableAutoSubDomain !== undefined &&
226
- input.enableAutoSubDomain !== null && { enableAutoSubDomain: input.enableAutoSubDomain }),
227
- ...(input.subDomainSettings !== undefined &&
228
- input.subDomainSettings !== null && {
199
+ ...(input.autoSubDomainIAMRole != null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole }),
200
+ ...(input.domainName != null && { domainName: input.domainName }),
201
+ ...(input.enableAutoSubDomain != null && { enableAutoSubDomain: input.enableAutoSubDomain }),
202
+ ...(input.subDomainSettings != null && {
229
203
  subDomainSettings: serializeAws_restJson1SubDomainSettings(input.subDomainSettings, context),
230
204
  }),
231
205
  });
@@ -258,8 +232,8 @@ const serializeAws_restJson1CreateWebhookCommand = async (input, context) => {
258
232
  }
259
233
  let body;
260
234
  body = JSON.stringify({
261
- ...(input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName }),
262
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
235
+ ...(input.branchName != null && { branchName: input.branchName }),
236
+ ...(input.description != null && { description: input.description }),
263
237
  });
264
238
  return new protocol_http_1.HttpRequest({
265
239
  protocol,
@@ -498,11 +472,9 @@ const serializeAws_restJson1GenerateAccessLogsCommand = async (input, context) =
498
472
  }
499
473
  let body;
500
474
  body = JSON.stringify({
501
- ...(input.domainName !== undefined && input.domainName !== null && { domainName: input.domainName }),
502
- ...(input.endTime !== undefined &&
503
- input.endTime !== null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
504
- ...(input.startTime !== undefined &&
505
- input.startTime !== null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
475
+ ...(input.domainName != null && { domainName: input.domainName }),
476
+ ...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
477
+ ...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
506
478
  });
507
479
  return new protocol_http_1.HttpRequest({
508
480
  protocol,
@@ -1043,8 +1015,8 @@ const serializeAws_restJson1StartDeploymentCommand = async (input, context) => {
1043
1015
  }
1044
1016
  let body;
1045
1017
  body = JSON.stringify({
1046
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
1047
- ...(input.sourceUrl !== undefined && input.sourceUrl !== null && { sourceUrl: input.sourceUrl }),
1018
+ ...(input.jobId != null && { jobId: input.jobId }),
1019
+ ...(input.sourceUrl != null && { sourceUrl: input.sourceUrl }),
1048
1020
  });
1049
1021
  return new protocol_http_1.HttpRequest({
1050
1022
  protocol,
@@ -1085,13 +1057,12 @@ const serializeAws_restJson1StartJobCommand = async (input, context) => {
1085
1057
  }
1086
1058
  let body;
1087
1059
  body = JSON.stringify({
1088
- ...(input.commitId !== undefined && input.commitId !== null && { commitId: input.commitId }),
1089
- ...(input.commitMessage !== undefined && input.commitMessage !== null && { commitMessage: input.commitMessage }),
1090
- ...(input.commitTime !== undefined &&
1091
- input.commitTime !== null && { commitTime: Math.round(input.commitTime.getTime() / 1000) }),
1092
- ...(input.jobId !== undefined && input.jobId !== null && { jobId: input.jobId }),
1093
- ...(input.jobReason !== undefined && input.jobReason !== null && { jobReason: input.jobReason }),
1094
- ...(input.jobType !== undefined && input.jobType !== null && { jobType: input.jobType }),
1060
+ ...(input.commitId != null && { commitId: input.commitId }),
1061
+ ...(input.commitMessage != null && { commitMessage: input.commitMessage }),
1062
+ ...(input.commitTime != null && { commitTime: Math.round(input.commitTime.getTime() / 1000) }),
1063
+ ...(input.jobId != null && { jobId: input.jobId }),
1064
+ ...(input.jobReason != null && { jobReason: input.jobReason }),
1065
+ ...(input.jobType != null && { jobType: input.jobType }),
1095
1066
  });
1096
1067
  return new protocol_http_1.HttpRequest({
1097
1068
  protocol,
@@ -1169,7 +1140,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
1169
1140
  }
1170
1141
  let body;
1171
1142
  body = JSON.stringify({
1172
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
1143
+ ...(input.tags != null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
1173
1144
  });
1174
1145
  return new protocol_http_1.HttpRequest({
1175
1146
  protocol,
@@ -1230,40 +1201,30 @@ const serializeAws_restJson1UpdateAppCommand = async (input, context) => {
1230
1201
  }
1231
1202
  let body;
1232
1203
  body = JSON.stringify({
1233
- ...(input.accessToken !== undefined && input.accessToken !== null && { accessToken: input.accessToken }),
1234
- ...(input.autoBranchCreationConfig !== undefined &&
1235
- input.autoBranchCreationConfig !== null && {
1204
+ ...(input.accessToken != null && { accessToken: input.accessToken }),
1205
+ ...(input.autoBranchCreationConfig != null && {
1236
1206
  autoBranchCreationConfig: serializeAws_restJson1AutoBranchCreationConfig(input.autoBranchCreationConfig, context),
1237
1207
  }),
1238
- ...(input.autoBranchCreationPatterns !== undefined &&
1239
- input.autoBranchCreationPatterns !== null && {
1208
+ ...(input.autoBranchCreationPatterns != null && {
1240
1209
  autoBranchCreationPatterns: serializeAws_restJson1AutoBranchCreationPatterns(input.autoBranchCreationPatterns, context),
1241
1210
  }),
1242
- ...(input.basicAuthCredentials !== undefined &&
1243
- input.basicAuthCredentials !== null && { basicAuthCredentials: input.basicAuthCredentials }),
1244
- ...(input.buildSpec !== undefined && input.buildSpec !== null && { buildSpec: input.buildSpec }),
1245
- ...(input.customHeaders !== undefined && input.customHeaders !== null && { customHeaders: input.customHeaders }),
1246
- ...(input.customRules !== undefined &&
1247
- input.customRules !== null && { customRules: serializeAws_restJson1CustomRules(input.customRules, context) }),
1248
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1249
- ...(input.enableAutoBranchCreation !== undefined &&
1250
- input.enableAutoBranchCreation !== null && { enableAutoBranchCreation: input.enableAutoBranchCreation }),
1251
- ...(input.enableBasicAuth !== undefined &&
1252
- input.enableBasicAuth !== null && { enableBasicAuth: input.enableBasicAuth }),
1253
- ...(input.enableBranchAutoBuild !== undefined &&
1254
- input.enableBranchAutoBuild !== null && { enableBranchAutoBuild: input.enableBranchAutoBuild }),
1255
- ...(input.enableBranchAutoDeletion !== undefined &&
1256
- input.enableBranchAutoDeletion !== null && { enableBranchAutoDeletion: input.enableBranchAutoDeletion }),
1257
- ...(input.environmentVariables !== undefined &&
1258
- input.environmentVariables !== null && {
1211
+ ...(input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials }),
1212
+ ...(input.buildSpec != null && { buildSpec: input.buildSpec }),
1213
+ ...(input.customHeaders != null && { customHeaders: input.customHeaders }),
1214
+ ...(input.customRules != null && { customRules: serializeAws_restJson1CustomRules(input.customRules, context) }),
1215
+ ...(input.description != null && { description: input.description }),
1216
+ ...(input.enableAutoBranchCreation != null && { enableAutoBranchCreation: input.enableAutoBranchCreation }),
1217
+ ...(input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth }),
1218
+ ...(input.enableBranchAutoBuild != null && { enableBranchAutoBuild: input.enableBranchAutoBuild }),
1219
+ ...(input.enableBranchAutoDeletion != null && { enableBranchAutoDeletion: input.enableBranchAutoDeletion }),
1220
+ ...(input.environmentVariables != null && {
1259
1221
  environmentVariables: serializeAws_restJson1EnvironmentVariables(input.environmentVariables, context),
1260
1222
  }),
1261
- ...(input.iamServiceRoleArn !== undefined &&
1262
- input.iamServiceRoleArn !== null && { iamServiceRoleArn: input.iamServiceRoleArn }),
1263
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1264
- ...(input.oauthToken !== undefined && input.oauthToken !== null && { oauthToken: input.oauthToken }),
1265
- ...(input.platform !== undefined && input.platform !== null && { platform: input.platform }),
1266
- ...(input.repository !== undefined && input.repository !== null && { repository: input.repository }),
1223
+ ...(input.iamServiceRoleArn != null && { iamServiceRoleArn: input.iamServiceRoleArn }),
1224
+ ...(input.name != null && { name: input.name }),
1225
+ ...(input.oauthToken != null && { oauthToken: input.oauthToken }),
1226
+ ...(input.platform != null && { platform: input.platform }),
1227
+ ...(input.repository != null && { repository: input.repository }),
1267
1228
  });
1268
1229
  return new protocol_http_1.HttpRequest({
1269
1230
  protocol,
@@ -1304,32 +1265,23 @@ const serializeAws_restJson1UpdateBranchCommand = async (input, context) => {
1304
1265
  }
1305
1266
  let body;
1306
1267
  body = JSON.stringify({
1307
- ...(input.backendEnvironmentArn !== undefined &&
1308
- input.backendEnvironmentArn !== null && { backendEnvironmentArn: input.backendEnvironmentArn }),
1309
- ...(input.basicAuthCredentials !== undefined &&
1310
- input.basicAuthCredentials !== null && { basicAuthCredentials: input.basicAuthCredentials }),
1311
- ...(input.buildSpec !== undefined && input.buildSpec !== null && { buildSpec: input.buildSpec }),
1312
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1313
- ...(input.displayName !== undefined && input.displayName !== null && { displayName: input.displayName }),
1314
- ...(input.enableAutoBuild !== undefined &&
1315
- input.enableAutoBuild !== null && { enableAutoBuild: input.enableAutoBuild }),
1316
- ...(input.enableBasicAuth !== undefined &&
1317
- input.enableBasicAuth !== null && { enableBasicAuth: input.enableBasicAuth }),
1318
- ...(input.enableNotification !== undefined &&
1319
- input.enableNotification !== null && { enableNotification: input.enableNotification }),
1320
- ...(input.enablePerformanceMode !== undefined &&
1321
- input.enablePerformanceMode !== null && { enablePerformanceMode: input.enablePerformanceMode }),
1322
- ...(input.enablePullRequestPreview !== undefined &&
1323
- input.enablePullRequestPreview !== null && { enablePullRequestPreview: input.enablePullRequestPreview }),
1324
- ...(input.environmentVariables !== undefined &&
1325
- input.environmentVariables !== null && {
1268
+ ...(input.backendEnvironmentArn != null && { backendEnvironmentArn: input.backendEnvironmentArn }),
1269
+ ...(input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials }),
1270
+ ...(input.buildSpec != null && { buildSpec: input.buildSpec }),
1271
+ ...(input.description != null && { description: input.description }),
1272
+ ...(input.displayName != null && { displayName: input.displayName }),
1273
+ ...(input.enableAutoBuild != null && { enableAutoBuild: input.enableAutoBuild }),
1274
+ ...(input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth }),
1275
+ ...(input.enableNotification != null && { enableNotification: input.enableNotification }),
1276
+ ...(input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode }),
1277
+ ...(input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview }),
1278
+ ...(input.environmentVariables != null && {
1326
1279
  environmentVariables: serializeAws_restJson1EnvironmentVariables(input.environmentVariables, context),
1327
1280
  }),
1328
- ...(input.framework !== undefined && input.framework !== null && { framework: input.framework }),
1329
- ...(input.pullRequestEnvironmentName !== undefined &&
1330
- input.pullRequestEnvironmentName !== null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName }),
1331
- ...(input.stage !== undefined && input.stage !== null && { stage: input.stage }),
1332
- ...(input.ttl !== undefined && input.ttl !== null && { ttl: input.ttl }),
1281
+ ...(input.framework != null && { framework: input.framework }),
1282
+ ...(input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName }),
1283
+ ...(input.stage != null && { stage: input.stage }),
1284
+ ...(input.ttl != null && { ttl: input.ttl }),
1333
1285
  });
1334
1286
  return new protocol_http_1.HttpRequest({
1335
1287
  protocol,
@@ -1370,16 +1322,12 @@ const serializeAws_restJson1UpdateDomainAssociationCommand = async (input, conte
1370
1322
  }
1371
1323
  let body;
1372
1324
  body = JSON.stringify({
1373
- ...(input.autoSubDomainCreationPatterns !== undefined &&
1374
- input.autoSubDomainCreationPatterns !== null && {
1325
+ ...(input.autoSubDomainCreationPatterns != null && {
1375
1326
  autoSubDomainCreationPatterns: serializeAws_restJson1AutoSubDomainCreationPatterns(input.autoSubDomainCreationPatterns, context),
1376
1327
  }),
1377
- ...(input.autoSubDomainIAMRole !== undefined &&
1378
- input.autoSubDomainIAMRole !== null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole }),
1379
- ...(input.enableAutoSubDomain !== undefined &&
1380
- input.enableAutoSubDomain !== null && { enableAutoSubDomain: input.enableAutoSubDomain }),
1381
- ...(input.subDomainSettings !== undefined &&
1382
- input.subDomainSettings !== null && {
1328
+ ...(input.autoSubDomainIAMRole != null && { autoSubDomainIAMRole: input.autoSubDomainIAMRole }),
1329
+ ...(input.enableAutoSubDomain != null && { enableAutoSubDomain: input.enableAutoSubDomain }),
1330
+ ...(input.subDomainSettings != null && {
1383
1331
  subDomainSettings: serializeAws_restJson1SubDomainSettings(input.subDomainSettings, context),
1384
1332
  }),
1385
1333
  });
@@ -1412,8 +1360,8 @@ const serializeAws_restJson1UpdateWebhookCommand = async (input, context) => {
1412
1360
  }
1413
1361
  let body;
1414
1362
  body = JSON.stringify({
1415
- ...(input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName }),
1416
- ...(input.description !== undefined && input.description !== null && { description: input.description }),
1363
+ ...(input.branchName != null && { branchName: input.branchName }),
1364
+ ...(input.description != null && { description: input.description }),
1417
1365
  });
1418
1366
  return new protocol_http_1.HttpRequest({
1419
1367
  protocol,
@@ -3334,25 +3282,18 @@ const deserializeAws_restJson1UnauthorizedExceptionResponse = async (parsedOutpu
3334
3282
  };
3335
3283
  const serializeAws_restJson1AutoBranchCreationConfig = (input, context) => {
3336
3284
  return {
3337
- ...(input.basicAuthCredentials !== undefined &&
3338
- input.basicAuthCredentials !== null && { basicAuthCredentials: input.basicAuthCredentials }),
3339
- ...(input.buildSpec !== undefined && input.buildSpec !== null && { buildSpec: input.buildSpec }),
3340
- ...(input.enableAutoBuild !== undefined &&
3341
- input.enableAutoBuild !== null && { enableAutoBuild: input.enableAutoBuild }),
3342
- ...(input.enableBasicAuth !== undefined &&
3343
- input.enableBasicAuth !== null && { enableBasicAuth: input.enableBasicAuth }),
3344
- ...(input.enablePerformanceMode !== undefined &&
3345
- input.enablePerformanceMode !== null && { enablePerformanceMode: input.enablePerformanceMode }),
3346
- ...(input.enablePullRequestPreview !== undefined &&
3347
- input.enablePullRequestPreview !== null && { enablePullRequestPreview: input.enablePullRequestPreview }),
3348
- ...(input.environmentVariables !== undefined &&
3349
- input.environmentVariables !== null && {
3285
+ ...(input.basicAuthCredentials != null && { basicAuthCredentials: input.basicAuthCredentials }),
3286
+ ...(input.buildSpec != null && { buildSpec: input.buildSpec }),
3287
+ ...(input.enableAutoBuild != null && { enableAutoBuild: input.enableAutoBuild }),
3288
+ ...(input.enableBasicAuth != null && { enableBasicAuth: input.enableBasicAuth }),
3289
+ ...(input.enablePerformanceMode != null && { enablePerformanceMode: input.enablePerformanceMode }),
3290
+ ...(input.enablePullRequestPreview != null && { enablePullRequestPreview: input.enablePullRequestPreview }),
3291
+ ...(input.environmentVariables != null && {
3350
3292
  environmentVariables: serializeAws_restJson1EnvironmentVariables(input.environmentVariables, context),
3351
3293
  }),
3352
- ...(input.framework !== undefined && input.framework !== null && { framework: input.framework }),
3353
- ...(input.pullRequestEnvironmentName !== undefined &&
3354
- input.pullRequestEnvironmentName !== null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName }),
3355
- ...(input.stage !== undefined && input.stage !== null && { stage: input.stage }),
3294
+ ...(input.framework != null && { framework: input.framework }),
3295
+ ...(input.pullRequestEnvironmentName != null && { pullRequestEnvironmentName: input.pullRequestEnvironmentName }),
3296
+ ...(input.stage != null && { stage: input.stage }),
3356
3297
  };
3357
3298
  };
3358
3299
  const serializeAws_restJson1AutoBranchCreationPatterns = (input, context) => {
@@ -3377,10 +3318,10 @@ const serializeAws_restJson1AutoSubDomainCreationPatterns = (input, context) =>
3377
3318
  };
3378
3319
  const serializeAws_restJson1CustomRule = (input, context) => {
3379
3320
  return {
3380
- ...(input.condition !== undefined && input.condition !== null && { condition: input.condition }),
3381
- ...(input.source !== undefined && input.source !== null && { source: input.source }),
3382
- ...(input.status !== undefined && input.status !== null && { status: input.status }),
3383
- ...(input.target !== undefined && input.target !== null && { target: input.target }),
3321
+ ...(input.condition != null && { condition: input.condition }),
3322
+ ...(input.source != null && { source: input.source }),
3323
+ ...(input.status != null && { status: input.status }),
3324
+ ...(input.target != null && { target: input.target }),
3384
3325
  };
3385
3326
  };
3386
3327
  const serializeAws_restJson1CustomRules = (input, context) => {
@@ -3417,8 +3358,8 @@ const serializeAws_restJson1FileMap = (input, context) => {
3417
3358
  };
3418
3359
  const serializeAws_restJson1SubDomainSetting = (input, context) => {
3419
3360
  return {
3420
- ...(input.branchName !== undefined && input.branchName !== null && { branchName: input.branchName }),
3421
- ...(input.prefix !== undefined && input.prefix !== null && { prefix: input.prefix }),
3361
+ ...(input.branchName != null && { branchName: input.branchName }),
3362
+ ...(input.prefix != null && { prefix: input.prefix }),
3422
3363
  };
3423
3364
  };
3424
3365
  const serializeAws_restJson1SubDomainSettings = (input, context) => {
@@ -3446,44 +3387,36 @@ const deserializeAws_restJson1App = (output, context) => {
3446
3387
  return {
3447
3388
  appArn: (0, smithy_client_1.expectString)(output.appArn),
3448
3389
  appId: (0, smithy_client_1.expectString)(output.appId),
3449
- autoBranchCreationConfig: output.autoBranchCreationConfig !== undefined && output.autoBranchCreationConfig !== null
3390
+ autoBranchCreationConfig: output.autoBranchCreationConfig != null
3450
3391
  ? deserializeAws_restJson1AutoBranchCreationConfig(output.autoBranchCreationConfig, context)
3451
3392
  : undefined,
3452
- autoBranchCreationPatterns: output.autoBranchCreationPatterns !== undefined && output.autoBranchCreationPatterns !== null
3393
+ autoBranchCreationPatterns: output.autoBranchCreationPatterns != null
3453
3394
  ? deserializeAws_restJson1AutoBranchCreationPatterns(output.autoBranchCreationPatterns, context)
3454
3395
  : undefined,
3455
3396
  basicAuthCredentials: (0, smithy_client_1.expectString)(output.basicAuthCredentials),
3456
3397
  buildSpec: (0, smithy_client_1.expectString)(output.buildSpec),
3457
- createTime: output.createTime !== undefined && output.createTime !== null
3458
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime)))
3459
- : undefined,
3398
+ createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : undefined,
3460
3399
  customHeaders: (0, smithy_client_1.expectString)(output.customHeaders),
3461
- customRules: output.customRules !== undefined && output.customRules !== null
3462
- ? deserializeAws_restJson1CustomRules(output.customRules, context)
3463
- : undefined,
3400
+ customRules: output.customRules != null ? deserializeAws_restJson1CustomRules(output.customRules, context) : undefined,
3464
3401
  defaultDomain: (0, smithy_client_1.expectString)(output.defaultDomain),
3465
3402
  description: (0, smithy_client_1.expectString)(output.description),
3466
3403
  enableAutoBranchCreation: (0, smithy_client_1.expectBoolean)(output.enableAutoBranchCreation),
3467
3404
  enableBasicAuth: (0, smithy_client_1.expectBoolean)(output.enableBasicAuth),
3468
3405
  enableBranchAutoBuild: (0, smithy_client_1.expectBoolean)(output.enableBranchAutoBuild),
3469
3406
  enableBranchAutoDeletion: (0, smithy_client_1.expectBoolean)(output.enableBranchAutoDeletion),
3470
- environmentVariables: output.environmentVariables !== undefined && output.environmentVariables !== null
3407
+ environmentVariables: output.environmentVariables != null
3471
3408
  ? deserializeAws_restJson1EnvironmentVariables(output.environmentVariables, context)
3472
3409
  : undefined,
3473
3410
  iamServiceRoleArn: (0, smithy_client_1.expectString)(output.iamServiceRoleArn),
3474
3411
  name: (0, smithy_client_1.expectString)(output.name),
3475
3412
  platform: (0, smithy_client_1.expectString)(output.platform),
3476
- productionBranch: output.productionBranch !== undefined && output.productionBranch !== null
3413
+ productionBranch: output.productionBranch != null
3477
3414
  ? deserializeAws_restJson1ProductionBranch(output.productionBranch, context)
3478
3415
  : undefined,
3479
3416
  repository: (0, smithy_client_1.expectString)(output.repository),
3480
3417
  repositoryCloneMethod: (0, smithy_client_1.expectString)(output.repositoryCloneMethod),
3481
- tags: output.tags !== undefined && output.tags !== null
3482
- ? deserializeAws_restJson1TagMap(output.tags, context)
3483
- : undefined,
3484
- updateTime: output.updateTime !== undefined && output.updateTime !== null
3485
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateTime)))
3486
- : undefined,
3418
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3419
+ updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateTime))) : undefined,
3487
3420
  };
3488
3421
  };
3489
3422
  const deserializeAws_restJson1Apps = (output, context) => {
@@ -3533,7 +3466,7 @@ const deserializeAws_restJson1AutoBranchCreationConfig = (output, context) => {
3533
3466
  enableBasicAuth: (0, smithy_client_1.expectBoolean)(output.enableBasicAuth),
3534
3467
  enablePerformanceMode: (0, smithy_client_1.expectBoolean)(output.enablePerformanceMode),
3535
3468
  enablePullRequestPreview: (0, smithy_client_1.expectBoolean)(output.enablePullRequestPreview),
3536
- environmentVariables: output.environmentVariables !== undefined && output.environmentVariables !== null
3469
+ environmentVariables: output.environmentVariables != null
3537
3470
  ? deserializeAws_restJson1EnvironmentVariables(output.environmentVariables, context)
3538
3471
  : undefined,
3539
3472
  framework: (0, smithy_client_1.expectString)(output.framework),
@@ -3566,15 +3499,11 @@ const deserializeAws_restJson1AutoSubDomainCreationPatterns = (output, context)
3566
3499
  const deserializeAws_restJson1BackendEnvironment = (output, context) => {
3567
3500
  return {
3568
3501
  backendEnvironmentArn: (0, smithy_client_1.expectString)(output.backendEnvironmentArn),
3569
- createTime: output.createTime !== undefined && output.createTime !== null
3570
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime)))
3571
- : undefined,
3502
+ createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : undefined,
3572
3503
  deploymentArtifacts: (0, smithy_client_1.expectString)(output.deploymentArtifacts),
3573
3504
  environmentName: (0, smithy_client_1.expectString)(output.environmentName),
3574
3505
  stackName: (0, smithy_client_1.expectString)(output.stackName),
3575
- updateTime: output.updateTime !== undefined && output.updateTime !== null
3576
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateTime)))
3577
- : undefined,
3506
+ updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateTime))) : undefined,
3578
3507
  };
3579
3508
  };
3580
3509
  const deserializeAws_restJson1BackendEnvironments = (output, context) => {
@@ -3591,7 +3520,7 @@ const deserializeAws_restJson1BackendEnvironments = (output, context) => {
3591
3520
  const deserializeAws_restJson1Branch = (output, context) => {
3592
3521
  return {
3593
3522
  activeJobId: (0, smithy_client_1.expectString)(output.activeJobId),
3594
- associatedResources: output.associatedResources !== undefined && output.associatedResources !== null
3523
+ associatedResources: output.associatedResources != null
3595
3524
  ? deserializeAws_restJson1AssociatedResources(output.associatedResources, context)
3596
3525
  : undefined,
3597
3526
  backendEnvironmentArn: (0, smithy_client_1.expectString)(output.backendEnvironmentArn),
@@ -3599,12 +3528,8 @@ const deserializeAws_restJson1Branch = (output, context) => {
3599
3528
  branchArn: (0, smithy_client_1.expectString)(output.branchArn),
3600
3529
  branchName: (0, smithy_client_1.expectString)(output.branchName),
3601
3530
  buildSpec: (0, smithy_client_1.expectString)(output.buildSpec),
3602
- createTime: output.createTime !== undefined && output.createTime !== null
3603
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime)))
3604
- : undefined,
3605
- customDomains: output.customDomains !== undefined && output.customDomains !== null
3606
- ? deserializeAws_restJson1CustomDomains(output.customDomains, context)
3607
- : undefined,
3531
+ createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : undefined,
3532
+ customDomains: output.customDomains != null ? deserializeAws_restJson1CustomDomains(output.customDomains, context) : undefined,
3608
3533
  description: (0, smithy_client_1.expectString)(output.description),
3609
3534
  destinationBranch: (0, smithy_client_1.expectString)(output.destinationBranch),
3610
3535
  displayName: (0, smithy_client_1.expectString)(output.displayName),
@@ -3613,22 +3538,18 @@ const deserializeAws_restJson1Branch = (output, context) => {
3613
3538
  enableNotification: (0, smithy_client_1.expectBoolean)(output.enableNotification),
3614
3539
  enablePerformanceMode: (0, smithy_client_1.expectBoolean)(output.enablePerformanceMode),
3615
3540
  enablePullRequestPreview: (0, smithy_client_1.expectBoolean)(output.enablePullRequestPreview),
3616
- environmentVariables: output.environmentVariables !== undefined && output.environmentVariables !== null
3541
+ environmentVariables: output.environmentVariables != null
3617
3542
  ? deserializeAws_restJson1EnvironmentVariables(output.environmentVariables, context)
3618
3543
  : undefined,
3619
3544
  framework: (0, smithy_client_1.expectString)(output.framework),
3620
3545
  pullRequestEnvironmentName: (0, smithy_client_1.expectString)(output.pullRequestEnvironmentName),
3621
3546
  sourceBranch: (0, smithy_client_1.expectString)(output.sourceBranch),
3622
3547
  stage: (0, smithy_client_1.expectString)(output.stage),
3623
- tags: output.tags !== undefined && output.tags !== null
3624
- ? deserializeAws_restJson1TagMap(output.tags, context)
3625
- : undefined,
3548
+ tags: output.tags != null ? deserializeAws_restJson1TagMap(output.tags, context) : undefined,
3626
3549
  thumbnailUrl: (0, smithy_client_1.expectString)(output.thumbnailUrl),
3627
3550
  totalNumberOfJobs: (0, smithy_client_1.expectString)(output.totalNumberOfJobs),
3628
3551
  ttl: (0, smithy_client_1.expectString)(output.ttl),
3629
- updateTime: output.updateTime !== undefined && output.updateTime !== null
3630
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateTime)))
3631
- : undefined,
3552
+ updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateTime))) : undefined,
3632
3553
  };
3633
3554
  };
3634
3555
  const deserializeAws_restJson1Branches = (output, context) => {
@@ -3674,7 +3595,7 @@ const deserializeAws_restJson1CustomRules = (output, context) => {
3674
3595
  };
3675
3596
  const deserializeAws_restJson1DomainAssociation = (output, context) => {
3676
3597
  return {
3677
- autoSubDomainCreationPatterns: output.autoSubDomainCreationPatterns !== undefined && output.autoSubDomainCreationPatterns !== null
3598
+ autoSubDomainCreationPatterns: output.autoSubDomainCreationPatterns != null
3678
3599
  ? deserializeAws_restJson1AutoSubDomainCreationPatterns(output.autoSubDomainCreationPatterns, context)
3679
3600
  : undefined,
3680
3601
  autoSubDomainIAMRole: (0, smithy_client_1.expectString)(output.autoSubDomainIAMRole),
@@ -3684,9 +3605,7 @@ const deserializeAws_restJson1DomainAssociation = (output, context) => {
3684
3605
  domainStatus: (0, smithy_client_1.expectString)(output.domainStatus),
3685
3606
  enableAutoSubDomain: (0, smithy_client_1.expectBoolean)(output.enableAutoSubDomain),
3686
3607
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
3687
- subDomains: output.subDomains !== undefined && output.subDomains !== null
3688
- ? deserializeAws_restJson1SubDomains(output.subDomains, context)
3689
- : undefined,
3608
+ subDomains: output.subDomains != null ? deserializeAws_restJson1SubDomains(output.subDomains, context) : undefined,
3690
3609
  };
3691
3610
  };
3692
3611
  const deserializeAws_restJson1DomainAssociations = (output, context) => {
@@ -3724,12 +3643,8 @@ const deserializeAws_restJson1FileUploadUrls = (output, context) => {
3724
3643
  };
3725
3644
  const deserializeAws_restJson1Job = (output, context) => {
3726
3645
  return {
3727
- steps: output.steps !== undefined && output.steps !== null
3728
- ? deserializeAws_restJson1Steps(output.steps, context)
3729
- : undefined,
3730
- summary: output.summary !== undefined && output.summary !== null
3731
- ? deserializeAws_restJson1JobSummary(output.summary, context)
3732
- : undefined,
3646
+ steps: output.steps != null ? deserializeAws_restJson1Steps(output.steps, context) : undefined,
3647
+ summary: output.summary != null ? deserializeAws_restJson1JobSummary(output.summary, context) : undefined,
3733
3648
  };
3734
3649
  };
3735
3650
  const deserializeAws_restJson1JobSummaries = (output, context) => {
@@ -3747,25 +3662,19 @@ const deserializeAws_restJson1JobSummary = (output, context) => {
3747
3662
  return {
3748
3663
  commitId: (0, smithy_client_1.expectString)(output.commitId),
3749
3664
  commitMessage: (0, smithy_client_1.expectString)(output.commitMessage),
3750
- commitTime: output.commitTime !== undefined && output.commitTime !== null
3751
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.commitTime)))
3752
- : undefined,
3753
- endTime: output.endTime !== undefined && output.endTime !== null
3754
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
3755
- : undefined,
3665
+ commitTime: output.commitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.commitTime))) : undefined,
3666
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
3756
3667
  jobArn: (0, smithy_client_1.expectString)(output.jobArn),
3757
3668
  jobId: (0, smithy_client_1.expectString)(output.jobId),
3758
3669
  jobType: (0, smithy_client_1.expectString)(output.jobType),
3759
- startTime: output.startTime !== undefined && output.startTime !== null
3760
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
3761
- : undefined,
3670
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
3762
3671
  status: (0, smithy_client_1.expectString)(output.status),
3763
3672
  };
3764
3673
  };
3765
3674
  const deserializeAws_restJson1ProductionBranch = (output, context) => {
3766
3675
  return {
3767
3676
  branchName: (0, smithy_client_1.expectString)(output.branchName),
3768
- lastDeployTime: output.lastDeployTime !== undefined && output.lastDeployTime !== null
3677
+ lastDeployTime: output.lastDeployTime != null
3769
3678
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.lastDeployTime)))
3770
3679
  : undefined,
3771
3680
  status: (0, smithy_client_1.expectString)(output.status),
@@ -3787,16 +3696,10 @@ const deserializeAws_restJson1Step = (output, context) => {
3787
3696
  return {
3788
3697
  artifactsUrl: (0, smithy_client_1.expectString)(output.artifactsUrl),
3789
3698
  context: (0, smithy_client_1.expectString)(output.context),
3790
- endTime: output.endTime !== undefined && output.endTime !== null
3791
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime)))
3792
- : undefined,
3699
+ endTime: output.endTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.endTime))) : undefined,
3793
3700
  logUrl: (0, smithy_client_1.expectString)(output.logUrl),
3794
- screenshots: output.screenshots !== undefined && output.screenshots !== null
3795
- ? deserializeAws_restJson1Screenshots(output.screenshots, context)
3796
- : undefined,
3797
- startTime: output.startTime !== undefined && output.startTime !== null
3798
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime)))
3799
- : undefined,
3701
+ screenshots: output.screenshots != null ? deserializeAws_restJson1Screenshots(output.screenshots, context) : undefined,
3702
+ startTime: output.startTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.startTime))) : undefined,
3800
3703
  status: (0, smithy_client_1.expectString)(output.status),
3801
3704
  statusReason: (0, smithy_client_1.expectString)(output.statusReason),
3802
3705
  stepName: (0, smithy_client_1.expectString)(output.stepName),
@@ -3818,7 +3721,7 @@ const deserializeAws_restJson1Steps = (output, context) => {
3818
3721
  const deserializeAws_restJson1SubDomain = (output, context) => {
3819
3722
  return {
3820
3723
  dnsRecord: (0, smithy_client_1.expectString)(output.dnsRecord),
3821
- subDomainSetting: output.subDomainSetting !== undefined && output.subDomainSetting !== null
3724
+ subDomainSetting: output.subDomainSetting != null
3822
3725
  ? deserializeAws_restJson1SubDomainSetting(output.subDomainSetting, context)
3823
3726
  : undefined,
3824
3727
  verified: (0, smithy_client_1.expectBoolean)(output.verified),
@@ -3855,13 +3758,9 @@ const deserializeAws_restJson1TagMap = (output, context) => {
3855
3758
  const deserializeAws_restJson1Webhook = (output, context) => {
3856
3759
  return {
3857
3760
  branchName: (0, smithy_client_1.expectString)(output.branchName),
3858
- createTime: output.createTime !== undefined && output.createTime !== null
3859
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime)))
3860
- : undefined,
3761
+ createTime: output.createTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.createTime))) : undefined,
3861
3762
  description: (0, smithy_client_1.expectString)(output.description),
3862
- updateTime: output.updateTime !== undefined && output.updateTime !== null
3863
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateTime)))
3864
- : undefined,
3763
+ updateTime: output.updateTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.updateTime))) : undefined,
3865
3764
  webhookArn: (0, smithy_client_1.expectString)(output.webhookArn),
3866
3765
  webhookId: (0, smithy_client_1.expectString)(output.webhookId),
3867
3766
  webhookUrl: (0, smithy_client_1.expectString)(output.webhookUrl),
@@ -3909,6 +3808,9 @@ const loadRestJsonErrorCode = (output, data) => {
3909
3808
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
3910
3809
  const sanitizeErrorCode = (rawValue) => {
3911
3810
  let cleanValue = rawValue;
3811
+ if (typeof cleanValue === "number") {
3812
+ cleanValue = cleanValue.toString();
3813
+ }
3912
3814
  if (cleanValue.indexOf(":") >= 0) {
3913
3815
  cleanValue = cleanValue.split(":")[0];
3914
3816
  }