@aws-sdk/client-amplifybackend 3.121.0 → 3.127.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.
@@ -35,8 +35,7 @@ export var serializeAws_restJson1CloneBackendCommand = function (input, context)
35
35
  else {
36
36
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
37
37
  }
38
- body = JSON.stringify(__assign({}, (input.TargetEnvironmentName !== undefined &&
39
- input.TargetEnvironmentName !== null && { targetEnvironmentName: input.TargetEnvironmentName })));
38
+ body = JSON.stringify(__assign({}, (input.TargetEnvironmentName != null && { targetEnvironmentName: input.TargetEnvironmentName })));
40
39
  return [2, new __HttpRequest({
41
40
  protocol: protocol,
42
41
  hostname: hostname,
@@ -60,11 +59,9 @@ export var serializeAws_restJson1CreateBackendCommand = function (input, context
60
59
  "content-type": "application/json",
61
60
  };
62
61
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/backend";
63
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AppId !== undefined && input.AppId !== null && { appId: input.AppId })), (input.AppName !== undefined && input.AppName !== null && { appName: input.AppName })), (input.BackendEnvironmentName !== undefined &&
64
- input.BackendEnvironmentName !== null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig !== undefined &&
65
- input.ResourceConfig !== null && {
62
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AppId != null && { appId: input.AppId })), (input.AppName != null && { appName: input.AppName })), (input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig != null && {
66
63
  resourceConfig: serializeAws_restJson1ResourceConfig(input.ResourceConfig, context),
67
- })), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
64
+ })), (input.ResourceName != null && { resourceName: input.ResourceName })));
68
65
  return [2, new __HttpRequest({
69
66
  protocol: protocol,
70
67
  hostname: hostname,
@@ -98,11 +95,9 @@ export var serializeAws_restJson1CreateBackendAPICommand = function (input, cont
98
95
  else {
99
96
  throw new Error("No value provided for input HTTP label: AppId.");
100
97
  }
101
- body = JSON.stringify(__assign(__assign(__assign({}, (input.BackendEnvironmentName !== undefined &&
102
- input.BackendEnvironmentName !== null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig !== undefined &&
103
- input.ResourceConfig !== null && {
98
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig != null && {
104
99
  resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
105
- })), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
100
+ })), (input.ResourceName != null && { resourceName: input.ResourceName })));
106
101
  return [2, new __HttpRequest({
107
102
  protocol: protocol,
108
103
  hostname: hostname,
@@ -136,11 +131,9 @@ export var serializeAws_restJson1CreateBackendAuthCommand = function (input, con
136
131
  else {
137
132
  throw new Error("No value provided for input HTTP label: AppId.");
138
133
  }
139
- body = JSON.stringify(__assign(__assign(__assign({}, (input.BackendEnvironmentName !== undefined &&
140
- input.BackendEnvironmentName !== null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig !== undefined &&
141
- input.ResourceConfig !== null && {
134
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig != null && {
142
135
  resourceConfig: serializeAws_restJson1CreateBackendAuthResourceConfig(input.ResourceConfig, context),
143
- })), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
136
+ })), (input.ResourceName != null && { resourceName: input.ResourceName })));
144
137
  return [2, new __HttpRequest({
145
138
  protocol: protocol,
146
139
  hostname: hostname,
@@ -174,8 +167,7 @@ export var serializeAws_restJson1CreateBackendConfigCommand = function (input, c
174
167
  else {
175
168
  throw new Error("No value provided for input HTTP label: AppId.");
176
169
  }
177
- body = JSON.stringify(__assign({}, (input.BackendManagerAppId !== undefined &&
178
- input.BackendManagerAppId !== null && { backendManagerAppId: input.BackendManagerAppId })));
170
+ body = JSON.stringify(__assign({}, (input.BackendManagerAppId != null && { backendManagerAppId: input.BackendManagerAppId })));
179
171
  return [2, new __HttpRequest({
180
172
  protocol: protocol,
181
173
  hostname: hostname,
@@ -209,11 +201,9 @@ export var serializeAws_restJson1CreateBackendStorageCommand = function (input,
209
201
  else {
210
202
  throw new Error("No value provided for input HTTP label: AppId.");
211
203
  }
212
- body = JSON.stringify(__assign(__assign(__assign({}, (input.BackendEnvironmentName !== undefined &&
213
- input.BackendEnvironmentName !== null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig !== undefined &&
214
- input.ResourceConfig !== null && {
204
+ body = JSON.stringify(__assign(__assign(__assign({}, (input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName })), (input.ResourceConfig != null && {
215
205
  resourceConfig: serializeAws_restJson1CreateBackendStorageResourceConfig(input.ResourceConfig, context),
216
- })), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
206
+ })), (input.ResourceName != null && { resourceName: input.ResourceName })));
217
207
  return [2, new __HttpRequest({
218
208
  protocol: protocol,
219
209
  hostname: hostname,
@@ -331,10 +321,9 @@ export var serializeAws_restJson1DeleteBackendAPICommand = function (input, cont
331
321
  else {
332
322
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
333
323
  }
334
- body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig !== undefined &&
335
- input.ResourceConfig !== null && {
324
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig != null && {
336
325
  resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
337
- })), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
326
+ })), (input.ResourceName != null && { resourceName: input.ResourceName })));
338
327
  return [2, new __HttpRequest({
339
328
  protocol: protocol,
340
329
  hostname: hostname,
@@ -379,7 +368,7 @@ export var serializeAws_restJson1DeleteBackendAuthCommand = function (input, con
379
368
  else {
380
369
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
381
370
  }
382
- body = JSON.stringify(__assign({}, (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
371
+ body = JSON.stringify(__assign({}, (input.ResourceName != null && { resourceName: input.ResourceName })));
383
372
  return [2, new __HttpRequest({
384
373
  protocol: protocol,
385
374
  hostname: hostname,
@@ -424,7 +413,7 @@ export var serializeAws_restJson1DeleteBackendStorageCommand = function (input,
424
413
  else {
425
414
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
426
415
  }
427
- body = JSON.stringify(__assign(__assign({}, (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })), (input.ServiceName !== undefined && input.ServiceName !== null && { serviceName: input.ServiceName })));
416
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceName != null && { resourceName: input.ResourceName })), (input.ServiceName != null && { serviceName: input.ServiceName })));
428
417
  return [2, new __HttpRequest({
429
418
  protocol: protocol,
430
419
  hostname: hostname,
@@ -511,7 +500,7 @@ export var serializeAws_restJson1GenerateBackendAPIModelsCommand = function (inp
511
500
  else {
512
501
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
513
502
  }
514
- body = JSON.stringify(__assign({}, (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
503
+ body = JSON.stringify(__assign({}, (input.ResourceName != null && { resourceName: input.ResourceName })));
515
504
  return [2, new __HttpRequest({
516
505
  protocol: protocol,
517
506
  hostname: hostname,
@@ -545,8 +534,7 @@ export var serializeAws_restJson1GetBackendCommand = function (input, context) {
545
534
  else {
546
535
  throw new Error("No value provided for input HTTP label: AppId.");
547
536
  }
548
- body = JSON.stringify(__assign({}, (input.BackendEnvironmentName !== undefined &&
549
- input.BackendEnvironmentName !== null && { backendEnvironmentName: input.BackendEnvironmentName })));
537
+ body = JSON.stringify(__assign({}, (input.BackendEnvironmentName != null && { backendEnvironmentName: input.BackendEnvironmentName })));
550
538
  return [2, new __HttpRequest({
551
539
  protocol: protocol,
552
540
  hostname: hostname,
@@ -591,10 +579,9 @@ export var serializeAws_restJson1GetBackendAPICommand = function (input, context
591
579
  else {
592
580
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
593
581
  }
594
- body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig !== undefined &&
595
- input.ResourceConfig !== null && {
582
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig != null && {
596
583
  resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
597
- })), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
584
+ })), (input.ResourceName != null && { resourceName: input.ResourceName })));
598
585
  return [2, new __HttpRequest({
599
586
  protocol: protocol,
600
587
  hostname: hostname,
@@ -639,7 +626,7 @@ export var serializeAws_restJson1GetBackendAPIModelsCommand = function (input, c
639
626
  else {
640
627
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
641
628
  }
642
- body = JSON.stringify(__assign({}, (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
629
+ body = JSON.stringify(__assign({}, (input.ResourceName != null && { resourceName: input.ResourceName })));
643
630
  return [2, new __HttpRequest({
644
631
  protocol: protocol,
645
632
  hostname: hostname,
@@ -684,7 +671,7 @@ export var serializeAws_restJson1GetBackendAuthCommand = function (input, contex
684
671
  else {
685
672
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
686
673
  }
687
- body = JSON.stringify(__assign({}, (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
674
+ body = JSON.stringify(__assign({}, (input.ResourceName != null && { resourceName: input.ResourceName })));
688
675
  return [2, new __HttpRequest({
689
676
  protocol: protocol,
690
677
  hostname: hostname,
@@ -781,7 +768,7 @@ export var serializeAws_restJson1GetBackendStorageCommand = function (input, con
781
768
  else {
782
769
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
783
770
  }
784
- body = JSON.stringify(__assign({}, (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
771
+ body = JSON.stringify(__assign({}, (input.ResourceName != null && { resourceName: input.ResourceName })));
785
772
  return [2, new __HttpRequest({
786
773
  protocol: protocol,
787
774
  hostname: hostname,
@@ -867,9 +854,7 @@ export var serializeAws_restJson1ImportBackendAuthCommand = function (input, con
867
854
  else {
868
855
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
869
856
  }
870
- body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IdentityPoolId !== undefined &&
871
- input.IdentityPoolId !== null && { identityPoolId: input.IdentityPoolId })), (input.NativeClientId !== undefined &&
872
- input.NativeClientId !== null && { nativeClientId: input.NativeClientId })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { userPoolId: input.UserPoolId })), (input.WebClientId !== undefined && input.WebClientId !== null && { webClientId: input.WebClientId })));
857
+ body = JSON.stringify(__assign(__assign(__assign(__assign({}, (input.IdentityPoolId != null && { identityPoolId: input.IdentityPoolId })), (input.NativeClientId != null && { nativeClientId: input.NativeClientId })), (input.UserPoolId != null && { userPoolId: input.UserPoolId })), (input.WebClientId != null && { webClientId: input.WebClientId })));
873
858
  return [2, new __HttpRequest({
874
859
  protocol: protocol,
875
860
  hostname: hostname,
@@ -914,7 +899,7 @@ export var serializeAws_restJson1ImportBackendStorageCommand = function (input,
914
899
  else {
915
900
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
916
901
  }
917
- body = JSON.stringify(__assign(__assign({}, (input.BucketName !== undefined && input.BucketName !== null && { bucketName: input.BucketName })), (input.ServiceName !== undefined && input.ServiceName !== null && { serviceName: input.ServiceName })));
902
+ body = JSON.stringify(__assign(__assign({}, (input.BucketName != null && { bucketName: input.BucketName })), (input.ServiceName != null && { serviceName: input.ServiceName })));
918
903
  return [2, new __HttpRequest({
919
904
  protocol: protocol,
920
905
  hostname: hostname,
@@ -959,7 +944,7 @@ export var serializeAws_restJson1ListBackendJobsCommand = function (input, conte
959
944
  else {
960
945
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
961
946
  }
962
- body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.JobId !== undefined && input.JobId !== null && { jobId: input.JobId })), (input.MaxResults !== undefined && input.MaxResults !== null && { maxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { nextToken: input.NextToken })), (input.Operation !== undefined && input.Operation !== null && { operation: input.Operation })), (input.Status !== undefined && input.Status !== null && { status: input.Status })));
947
+ body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.JobId != null && { jobId: input.JobId })), (input.MaxResults != null && { maxResults: input.MaxResults })), (input.NextToken != null && { nextToken: input.NextToken })), (input.Operation != null && { operation: input.Operation })), (input.Status != null && { status: input.Status })));
963
948
  return [2, new __HttpRequest({
964
949
  protocol: protocol,
965
950
  hostname: hostname,
@@ -983,7 +968,7 @@ export var serializeAws_restJson1ListS3BucketsCommand = function (input, context
983
968
  "content-type": "application/json",
984
969
  };
985
970
  resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/s3Buckets";
986
- body = JSON.stringify(__assign({}, (input.NextToken !== undefined && input.NextToken !== null && { nextToken: input.NextToken })));
971
+ body = JSON.stringify(__assign({}, (input.NextToken != null && { nextToken: input.NextToken })));
987
972
  return [2, new __HttpRequest({
988
973
  protocol: protocol,
989
974
  hostname: hostname,
@@ -1017,8 +1002,7 @@ export var serializeAws_restJson1RemoveAllBackendsCommand = function (input, con
1017
1002
  else {
1018
1003
  throw new Error("No value provided for input HTTP label: AppId.");
1019
1004
  }
1020
- body = JSON.stringify(__assign({}, (input.CleanAmplifyApp !== undefined &&
1021
- input.CleanAmplifyApp !== null && { cleanAmplifyApp: input.CleanAmplifyApp })));
1005
+ body = JSON.stringify(__assign({}, (input.CleanAmplifyApp != null && { cleanAmplifyApp: input.CleanAmplifyApp })));
1022
1006
  return [2, new __HttpRequest({
1023
1007
  protocol: protocol,
1024
1008
  hostname: hostname,
@@ -1094,10 +1078,9 @@ export var serializeAws_restJson1UpdateBackendAPICommand = function (input, cont
1094
1078
  else {
1095
1079
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
1096
1080
  }
1097
- body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig !== undefined &&
1098
- input.ResourceConfig !== null && {
1081
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig != null && {
1099
1082
  resourceConfig: serializeAws_restJson1BackendAPIResourceConfig(input.ResourceConfig, context),
1100
- })), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
1083
+ })), (input.ResourceName != null && { resourceName: input.ResourceName })));
1101
1084
  return [2, new __HttpRequest({
1102
1085
  protocol: protocol,
1103
1086
  hostname: hostname,
@@ -1142,10 +1125,9 @@ export var serializeAws_restJson1UpdateBackendAuthCommand = function (input, con
1142
1125
  else {
1143
1126
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
1144
1127
  }
1145
- body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig !== undefined &&
1146
- input.ResourceConfig !== null && {
1128
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig != null && {
1147
1129
  resourceConfig: serializeAws_restJson1UpdateBackendAuthResourceConfig(input.ResourceConfig, context),
1148
- })), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
1130
+ })), (input.ResourceName != null && { resourceName: input.ResourceName })));
1149
1131
  return [2, new __HttpRequest({
1150
1132
  protocol: protocol,
1151
1133
  hostname: hostname,
@@ -1179,8 +1161,7 @@ export var serializeAws_restJson1UpdateBackendConfigCommand = function (input, c
1179
1161
  else {
1180
1162
  throw new Error("No value provided for input HTTP label: AppId.");
1181
1163
  }
1182
- body = JSON.stringify(__assign({}, (input.LoginAuthConfig !== undefined &&
1183
- input.LoginAuthConfig !== null && {
1164
+ body = JSON.stringify(__assign({}, (input.LoginAuthConfig != null && {
1184
1165
  loginAuthConfig: serializeAws_restJson1LoginAuthConfigReqObj(input.LoginAuthConfig, context),
1185
1166
  })));
1186
1167
  return [2, new __HttpRequest({
@@ -1237,7 +1218,7 @@ export var serializeAws_restJson1UpdateBackendJobCommand = function (input, cont
1237
1218
  else {
1238
1219
  throw new Error("No value provided for input HTTP label: JobId.");
1239
1220
  }
1240
- body = JSON.stringify(__assign(__assign({}, (input.Operation !== undefined && input.Operation !== null && { operation: input.Operation })), (input.Status !== undefined && input.Status !== null && { status: input.Status })));
1221
+ body = JSON.stringify(__assign(__assign({}, (input.Operation != null && { operation: input.Operation })), (input.Status != null && { status: input.Status })));
1241
1222
  return [2, new __HttpRequest({
1242
1223
  protocol: protocol,
1243
1224
  hostname: hostname,
@@ -1282,10 +1263,9 @@ export var serializeAws_restJson1UpdateBackendStorageCommand = function (input,
1282
1263
  else {
1283
1264
  throw new Error("No value provided for input HTTP label: BackendEnvironmentName.");
1284
1265
  }
1285
- body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig !== undefined &&
1286
- input.ResourceConfig !== null && {
1266
+ body = JSON.stringify(__assign(__assign({}, (input.ResourceConfig != null && {
1287
1267
  resourceConfig: serializeAws_restJson1UpdateBackendStorageResourceConfig(input.ResourceConfig, context),
1288
- })), (input.ResourceName !== undefined && input.ResourceName !== null && { resourceName: input.ResourceName })));
1268
+ })), (input.ResourceName != null && { resourceName: input.ResourceName })));
1289
1269
  return [2, new __HttpRequest({
1290
1270
  protocol: protocol,
1291
1271
  hostname: hostname,
@@ -3960,133 +3940,95 @@ var deserializeAws_restJson1TooManyRequestsExceptionResponse = function (parsedO
3960
3940
  });
3961
3941
  }); };
3962
3942
  var serializeAws_restJson1BackendAPIAppSyncAuthSettings = function (input, context) {
3963
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CognitoUserPoolId !== undefined &&
3964
- input.CognitoUserPoolId !== null && { cognitoUserPoolId: input.CognitoUserPoolId })), (input.Description !== undefined && input.Description !== null && { description: input.Description })), (input.ExpirationTime !== undefined &&
3965
- input.ExpirationTime !== null && { expirationTime: __serializeFloat(input.ExpirationTime) })), (input.OpenIDAuthTTL !== undefined && input.OpenIDAuthTTL !== null && { openIDAuthTTL: input.OpenIDAuthTTL })), (input.OpenIDClientId !== undefined &&
3966
- input.OpenIDClientId !== null && { openIDClientId: input.OpenIDClientId })), (input.OpenIDIatTTL !== undefined && input.OpenIDIatTTL !== null && { openIDIatTTL: input.OpenIDIatTTL })), (input.OpenIDIssueURL !== undefined &&
3967
- input.OpenIDIssueURL !== null && { openIDIssueURL: input.OpenIDIssueURL })), (input.OpenIDProviderName !== undefined &&
3968
- input.OpenIDProviderName !== null && { openIDProviderName: input.OpenIDProviderName }));
3943
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CognitoUserPoolId != null && { cognitoUserPoolId: input.CognitoUserPoolId })), (input.Description != null && { description: input.Description })), (input.ExpirationTime != null && { expirationTime: __serializeFloat(input.ExpirationTime) })), (input.OpenIDAuthTTL != null && { openIDAuthTTL: input.OpenIDAuthTTL })), (input.OpenIDClientId != null && { openIDClientId: input.OpenIDClientId })), (input.OpenIDIatTTL != null && { openIDIatTTL: input.OpenIDIatTTL })), (input.OpenIDIssueURL != null && { openIDIssueURL: input.OpenIDIssueURL })), (input.OpenIDProviderName != null && { openIDProviderName: input.OpenIDProviderName }));
3969
3944
  };
3970
3945
  var serializeAws_restJson1BackendAPIAuthType = function (input, context) {
3971
- return __assign(__assign({}, (input.Mode !== undefined && input.Mode !== null && { mode: input.Mode })), (input.Settings !== undefined &&
3972
- input.Settings !== null && {
3946
+ return __assign(__assign({}, (input.Mode != null && { mode: input.Mode })), (input.Settings != null && {
3973
3947
  settings: serializeAws_restJson1BackendAPIAppSyncAuthSettings(input.Settings, context),
3974
3948
  }));
3975
3949
  };
3976
3950
  var serializeAws_restJson1BackendAPIConflictResolution = function (input, context) {
3977
- return __assign({}, (input.ResolutionStrategy !== undefined &&
3978
- input.ResolutionStrategy !== null && { resolutionStrategy: input.ResolutionStrategy }));
3951
+ return __assign({}, (input.ResolutionStrategy != null && { resolutionStrategy: input.ResolutionStrategy }));
3979
3952
  };
3980
3953
  var serializeAws_restJson1BackendAPIResourceConfig = function (input, context) {
3981
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdditionalAuthTypes !== undefined &&
3982
- input.AdditionalAuthTypes !== null && {
3954
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AdditionalAuthTypes != null && {
3983
3955
  additionalAuthTypes: serializeAws_restJson1ListOfBackendAPIAuthType(input.AdditionalAuthTypes, context),
3984
- })), (input.ApiName !== undefined && input.ApiName !== null && { apiName: input.ApiName })), (input.ConflictResolution !== undefined &&
3985
- input.ConflictResolution !== null && {
3956
+ })), (input.ApiName != null && { apiName: input.ApiName })), (input.ConflictResolution != null && {
3986
3957
  conflictResolution: serializeAws_restJson1BackendAPIConflictResolution(input.ConflictResolution, context),
3987
- })), (input.DefaultAuthType !== undefined &&
3988
- input.DefaultAuthType !== null && {
3958
+ })), (input.DefaultAuthType != null && {
3989
3959
  defaultAuthType: serializeAws_restJson1BackendAPIAuthType(input.DefaultAuthType, context),
3990
- })), (input.Service !== undefined && input.Service !== null && { service: input.Service })), (input.TransformSchema !== undefined &&
3991
- input.TransformSchema !== null && { transformSchema: input.TransformSchema }));
3960
+ })), (input.Service != null && { service: input.Service })), (input.TransformSchema != null && { transformSchema: input.TransformSchema }));
3992
3961
  };
3993
3962
  var serializeAws_restJson1BackendAuthAppleProviderConfig = function (input, context) {
3994
- return __assign(__assign(__assign(__assign({}, (input.ClientId !== undefined && input.ClientId !== null && { client_id: input.ClientId })), (input.KeyId !== undefined && input.KeyId !== null && { key_id: input.KeyId })), (input.PrivateKey !== undefined && input.PrivateKey !== null && { private_key: input.PrivateKey })), (input.TeamId !== undefined && input.TeamId !== null && { team_id: input.TeamId }));
3963
+ return __assign(__assign(__assign(__assign({}, (input.ClientId != null && { client_id: input.ClientId })), (input.KeyId != null && { key_id: input.KeyId })), (input.PrivateKey != null && { private_key: input.PrivateKey })), (input.TeamId != null && { team_id: input.TeamId }));
3995
3964
  };
3996
3965
  var serializeAws_restJson1BackendAuthSocialProviderConfig = function (input, context) {
3997
- return __assign(__assign({}, (input.ClientId !== undefined && input.ClientId !== null && { client_id: input.ClientId })), (input.ClientSecret !== undefined && input.ClientSecret !== null && { client_secret: input.ClientSecret }));
3966
+ return __assign(__assign({}, (input.ClientId != null && { client_id: input.ClientId })), (input.ClientSecret != null && { client_secret: input.ClientSecret }));
3998
3967
  };
3999
3968
  var serializeAws_restJson1BackendStoragePermissions = function (input, context) {
4000
- return __assign(__assign({}, (input.Authenticated !== undefined &&
4001
- input.Authenticated !== null && {
3969
+ return __assign(__assign({}, (input.Authenticated != null && {
4002
3970
  authenticated: serializeAws_restJson1ListOfAuthenticatedElement(input.Authenticated, context),
4003
- })), (input.UnAuthenticated !== undefined &&
4004
- input.UnAuthenticated !== null && {
3971
+ })), (input.UnAuthenticated != null && {
4005
3972
  unAuthenticated: serializeAws_restJson1ListOfUnAuthenticatedElement(input.UnAuthenticated, context),
4006
3973
  }));
4007
3974
  };
4008
3975
  var serializeAws_restJson1CreateBackendAuthForgotPasswordConfig = function (input, context) {
4009
- return __assign(__assign(__assign({}, (input.DeliveryMethod !== undefined &&
4010
- input.DeliveryMethod !== null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings !== undefined &&
4011
- input.EmailSettings !== null && {
3976
+ return __assign(__assign(__assign({}, (input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings != null && {
4012
3977
  emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
4013
- })), (input.SmsSettings !== undefined &&
4014
- input.SmsSettings !== null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
3978
+ })), (input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
4015
3979
  };
4016
3980
  var serializeAws_restJson1CreateBackendAuthIdentityPoolConfig = function (input, context) {
4017
- return __assign(__assign({}, (input.IdentityPoolName !== undefined &&
4018
- input.IdentityPoolName !== null && { identityPoolName: input.IdentityPoolName })), (input.UnauthenticatedLogin !== undefined &&
4019
- input.UnauthenticatedLogin !== null && { unauthenticatedLogin: input.UnauthenticatedLogin }));
3981
+ return __assign(__assign({}, (input.IdentityPoolName != null && { identityPoolName: input.IdentityPoolName })), (input.UnauthenticatedLogin != null && { unauthenticatedLogin: input.UnauthenticatedLogin }));
4020
3982
  };
4021
3983
  var serializeAws_restJson1CreateBackendAuthMFAConfig = function (input, context) {
4022
- return __assign(__assign({}, (input.MFAMode !== undefined && input.MFAMode !== null && { MFAMode: input.MFAMode })), (input.Settings !== undefined &&
4023
- input.Settings !== null && { settings: serializeAws_restJson1Settings(input.Settings, context) }));
3984
+ return __assign(__assign({}, (input.MFAMode != null && { MFAMode: input.MFAMode })), (input.Settings != null && { settings: serializeAws_restJson1Settings(input.Settings, context) }));
4024
3985
  };
4025
3986
  var serializeAws_restJson1CreateBackendAuthOAuthConfig = function (input, context) {
4026
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DomainPrefix !== undefined && input.DomainPrefix !== null && { domainPrefix: input.DomainPrefix })), (input.OAuthGrantType !== undefined &&
4027
- input.OAuthGrantType !== null && { oAuthGrantType: input.OAuthGrantType })), (input.OAuthScopes !== undefined &&
4028
- input.OAuthScopes !== null && {
3987
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DomainPrefix != null && { domainPrefix: input.DomainPrefix })), (input.OAuthGrantType != null && { oAuthGrantType: input.OAuthGrantType })), (input.OAuthScopes != null && {
4029
3988
  oAuthScopes: serializeAws_restJson1ListOfOAuthScopesElement(input.OAuthScopes, context),
4030
- })), (input.RedirectSignInURIs !== undefined &&
4031
- input.RedirectSignInURIs !== null && {
3989
+ })), (input.RedirectSignInURIs != null && {
4032
3990
  redirectSignInURIs: serializeAws_restJson1ListOf__string(input.RedirectSignInURIs, context),
4033
- })), (input.RedirectSignOutURIs !== undefined &&
4034
- input.RedirectSignOutURIs !== null && {
3991
+ })), (input.RedirectSignOutURIs != null && {
4035
3992
  redirectSignOutURIs: serializeAws_restJson1ListOf__string(input.RedirectSignOutURIs, context),
4036
- })), (input.SocialProviderSettings !== undefined &&
4037
- input.SocialProviderSettings !== null && {
3993
+ })), (input.SocialProviderSettings != null && {
4038
3994
  socialProviderSettings: serializeAws_restJson1SocialProviderSettings(input.SocialProviderSettings, context),
4039
3995
  }));
4040
3996
  };
4041
3997
  var serializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = function (input, context) {
4042
- return __assign(__assign({}, (input.AdditionalConstraints !== undefined &&
4043
- input.AdditionalConstraints !== null && {
3998
+ return __assign(__assign({}, (input.AdditionalConstraints != null && {
4044
3999
  additionalConstraints: serializeAws_restJson1ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
4045
- })), (input.MinimumLength !== undefined &&
4046
- input.MinimumLength !== null && { minimumLength: __serializeFloat(input.MinimumLength) }));
4000
+ })), (input.MinimumLength != null && { minimumLength: __serializeFloat(input.MinimumLength) }));
4047
4001
  };
4048
4002
  var serializeAws_restJson1CreateBackendAuthResourceConfig = function (input, context) {
4049
- return __assign(__assign(__assign(__assign({}, (input.AuthResources !== undefined && input.AuthResources !== null && { authResources: input.AuthResources })), (input.IdentityPoolConfigs !== undefined &&
4050
- input.IdentityPoolConfigs !== null && {
4003
+ return __assign(__assign(__assign(__assign({}, (input.AuthResources != null && { authResources: input.AuthResources })), (input.IdentityPoolConfigs != null && {
4051
4004
  identityPoolConfigs: serializeAws_restJson1CreateBackendAuthIdentityPoolConfig(input.IdentityPoolConfigs, context),
4052
- })), (input.Service !== undefined && input.Service !== null && { service: input.Service })), (input.UserPoolConfigs !== undefined &&
4053
- input.UserPoolConfigs !== null && {
4005
+ })), (input.Service != null && { service: input.Service })), (input.UserPoolConfigs != null && {
4054
4006
  userPoolConfigs: serializeAws_restJson1CreateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
4055
4007
  }));
4056
4008
  };
4057
4009
  var serializeAws_restJson1CreateBackendAuthUserPoolConfig = function (input, context) {
4058
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ForgotPassword !== undefined &&
4059
- input.ForgotPassword !== null && {
4010
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ForgotPassword != null && {
4060
4011
  forgotPassword: serializeAws_restJson1CreateBackendAuthForgotPasswordConfig(input.ForgotPassword, context),
4061
- })), (input.Mfa !== undefined &&
4062
- input.Mfa !== null && { mfa: serializeAws_restJson1CreateBackendAuthMFAConfig(input.Mfa, context) })), (input.OAuth !== undefined &&
4063
- input.OAuth !== null && { oAuth: serializeAws_restJson1CreateBackendAuthOAuthConfig(input.OAuth, context) })), (input.PasswordPolicy !== undefined &&
4064
- input.PasswordPolicy !== null && {
4012
+ })), (input.Mfa != null && { mfa: serializeAws_restJson1CreateBackendAuthMFAConfig(input.Mfa, context) })), (input.OAuth != null && { oAuth: serializeAws_restJson1CreateBackendAuthOAuthConfig(input.OAuth, context) })), (input.PasswordPolicy != null && {
4065
4013
  passwordPolicy: serializeAws_restJson1CreateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
4066
- })), (input.RequiredSignUpAttributes !== undefined &&
4067
- input.RequiredSignUpAttributes !== null && {
4014
+ })), (input.RequiredSignUpAttributes != null && {
4068
4015
  requiredSignUpAttributes: serializeAws_restJson1ListOfRequiredSignUpAttributesElement(input.RequiredSignUpAttributes, context),
4069
- })), (input.SignInMethod !== undefined && input.SignInMethod !== null && { signInMethod: input.SignInMethod })), (input.UserPoolName !== undefined && input.UserPoolName !== null && { userPoolName: input.UserPoolName })), (input.VerificationMessage !== undefined &&
4070
- input.VerificationMessage !== null && {
4016
+ })), (input.SignInMethod != null && { signInMethod: input.SignInMethod })), (input.UserPoolName != null && { userPoolName: input.UserPoolName })), (input.VerificationMessage != null && {
4071
4017
  verificationMessage: serializeAws_restJson1CreateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
4072
4018
  }));
4073
4019
  };
4074
4020
  var serializeAws_restJson1CreateBackendAuthVerificationMessageConfig = function (input, context) {
4075
- return __assign(__assign(__assign({}, (input.DeliveryMethod !== undefined &&
4076
- input.DeliveryMethod !== null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings !== undefined &&
4077
- input.EmailSettings !== null && {
4021
+ return __assign(__assign(__assign({}, (input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings != null && {
4078
4022
  emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
4079
- })), (input.SmsSettings !== undefined &&
4080
- input.SmsSettings !== null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
4023
+ })), (input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
4081
4024
  };
4082
4025
  var serializeAws_restJson1CreateBackendStorageResourceConfig = function (input, context) {
4083
- return __assign(__assign(__assign({}, (input.BucketName !== undefined && input.BucketName !== null && { bucketName: input.BucketName })), (input.Permissions !== undefined &&
4084
- input.Permissions !== null && {
4026
+ return __assign(__assign(__assign({}, (input.BucketName != null && { bucketName: input.BucketName })), (input.Permissions != null && {
4085
4027
  permissions: serializeAws_restJson1BackendStoragePermissions(input.Permissions, context),
4086
- })), (input.ServiceName !== undefined && input.ServiceName !== null && { serviceName: input.ServiceName }));
4028
+ })), (input.ServiceName != null && { serviceName: input.ServiceName }));
4087
4029
  };
4088
4030
  var serializeAws_restJson1EmailSettings = function (input, context) {
4089
- return __assign(__assign({}, (input.EmailMessage !== undefined && input.EmailMessage !== null && { emailMessage: input.EmailMessage })), (input.EmailSubject !== undefined && input.EmailSubject !== null && { emailSubject: input.EmailSubject }));
4031
+ return __assign(__assign({}, (input.EmailMessage != null && { emailMessage: input.EmailMessage })), (input.EmailSubject != null && { emailSubject: input.EmailSubject }));
4090
4032
  };
4091
4033
  var serializeAws_restJson1ListOf__string = function (input, context) {
4092
4034
  return input
@@ -4169,112 +4111,80 @@ var serializeAws_restJson1ListOfUnAuthenticatedElement = function (input, contex
4169
4111
  });
4170
4112
  };
4171
4113
  var serializeAws_restJson1LoginAuthConfigReqObj = function (input, context) {
4172
- return __assign(__assign(__assign(__assign({}, (input.AwsCognitoIdentityPoolId !== undefined &&
4173
- input.AwsCognitoIdentityPoolId !== null && { aws_cognito_identity_pool_id: input.AwsCognitoIdentityPoolId })), (input.AwsCognitoRegion !== undefined &&
4174
- input.AwsCognitoRegion !== null && { aws_cognito_region: input.AwsCognitoRegion })), (input.AwsUserPoolsId !== undefined &&
4175
- input.AwsUserPoolsId !== null && { aws_user_pools_id: input.AwsUserPoolsId })), (input.AwsUserPoolsWebClientId !== undefined &&
4176
- input.AwsUserPoolsWebClientId !== null && { aws_user_pools_web_client_id: input.AwsUserPoolsWebClientId }));
4114
+ return __assign(__assign(__assign(__assign({}, (input.AwsCognitoIdentityPoolId != null && { aws_cognito_identity_pool_id: input.AwsCognitoIdentityPoolId })), (input.AwsCognitoRegion != null && { aws_cognito_region: input.AwsCognitoRegion })), (input.AwsUserPoolsId != null && { aws_user_pools_id: input.AwsUserPoolsId })), (input.AwsUserPoolsWebClientId != null && { aws_user_pools_web_client_id: input.AwsUserPoolsWebClientId }));
4177
4115
  };
4178
4116
  var serializeAws_restJson1ResourceConfig = function (input, context) {
4179
4117
  return {};
4180
4118
  };
4181
4119
  var serializeAws_restJson1Settings = function (input, context) {
4182
- return __assign(__assign({}, (input.MfaTypes !== undefined &&
4183
- input.MfaTypes !== null && { mfaTypes: serializeAws_restJson1ListOfMfaTypesElement(input.MfaTypes, context) })), (input.SmsMessage !== undefined && input.SmsMessage !== null && { smsMessage: input.SmsMessage }));
4120
+ return __assign(__assign({}, (input.MfaTypes != null && { mfaTypes: serializeAws_restJson1ListOfMfaTypesElement(input.MfaTypes, context) })), (input.SmsMessage != null && { smsMessage: input.SmsMessage }));
4184
4121
  };
4185
4122
  var serializeAws_restJson1SmsSettings = function (input, context) {
4186
- return __assign({}, (input.SmsMessage !== undefined && input.SmsMessage !== null && { smsMessage: input.SmsMessage }));
4123
+ return __assign({}, (input.SmsMessage != null && { smsMessage: input.SmsMessage }));
4187
4124
  };
4188
4125
  var serializeAws_restJson1SocialProviderSettings = function (input, context) {
4189
- return __assign(__assign(__assign(__assign({}, (input.Facebook !== undefined &&
4190
- input.Facebook !== null && {
4126
+ return __assign(__assign(__assign(__assign({}, (input.Facebook != null && {
4191
4127
  Facebook: serializeAws_restJson1BackendAuthSocialProviderConfig(input.Facebook, context),
4192
- })), (input.Google !== undefined &&
4193
- input.Google !== null && {
4128
+ })), (input.Google != null && {
4194
4129
  Google: serializeAws_restJson1BackendAuthSocialProviderConfig(input.Google, context),
4195
- })), (input.LoginWithAmazon !== undefined &&
4196
- input.LoginWithAmazon !== null && {
4130
+ })), (input.LoginWithAmazon != null && {
4197
4131
  LoginWithAmazon: serializeAws_restJson1BackendAuthSocialProviderConfig(input.LoginWithAmazon, context),
4198
- })), (input.SignInWithApple !== undefined &&
4199
- input.SignInWithApple !== null && {
4132
+ })), (input.SignInWithApple != null && {
4200
4133
  SignInWithApple: serializeAws_restJson1BackendAuthAppleProviderConfig(input.SignInWithApple, context),
4201
4134
  }));
4202
4135
  };
4203
4136
  var serializeAws_restJson1UpdateBackendAuthForgotPasswordConfig = function (input, context) {
4204
- return __assign(__assign(__assign({}, (input.DeliveryMethod !== undefined &&
4205
- input.DeliveryMethod !== null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings !== undefined &&
4206
- input.EmailSettings !== null && {
4137
+ return __assign(__assign(__assign({}, (input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings != null && {
4207
4138
  emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
4208
- })), (input.SmsSettings !== undefined &&
4209
- input.SmsSettings !== null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
4139
+ })), (input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
4210
4140
  };
4211
4141
  var serializeAws_restJson1UpdateBackendAuthIdentityPoolConfig = function (input, context) {
4212
- return __assign({}, (input.UnauthenticatedLogin !== undefined &&
4213
- input.UnauthenticatedLogin !== null && { unauthenticatedLogin: input.UnauthenticatedLogin }));
4142
+ return __assign({}, (input.UnauthenticatedLogin != null && { unauthenticatedLogin: input.UnauthenticatedLogin }));
4214
4143
  };
4215
4144
  var serializeAws_restJson1UpdateBackendAuthMFAConfig = function (input, context) {
4216
- return __assign(__assign({}, (input.MFAMode !== undefined && input.MFAMode !== null && { MFAMode: input.MFAMode })), (input.Settings !== undefined &&
4217
- input.Settings !== null && { settings: serializeAws_restJson1Settings(input.Settings, context) }));
4145
+ return __assign(__assign({}, (input.MFAMode != null && { MFAMode: input.MFAMode })), (input.Settings != null && { settings: serializeAws_restJson1Settings(input.Settings, context) }));
4218
4146
  };
4219
4147
  var serializeAws_restJson1UpdateBackendAuthOAuthConfig = function (input, context) {
4220
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DomainPrefix !== undefined && input.DomainPrefix !== null && { domainPrefix: input.DomainPrefix })), (input.OAuthGrantType !== undefined &&
4221
- input.OAuthGrantType !== null && { oAuthGrantType: input.OAuthGrantType })), (input.OAuthScopes !== undefined &&
4222
- input.OAuthScopes !== null && {
4148
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DomainPrefix != null && { domainPrefix: input.DomainPrefix })), (input.OAuthGrantType != null && { oAuthGrantType: input.OAuthGrantType })), (input.OAuthScopes != null && {
4223
4149
  oAuthScopes: serializeAws_restJson1ListOfOAuthScopesElement(input.OAuthScopes, context),
4224
- })), (input.RedirectSignInURIs !== undefined &&
4225
- input.RedirectSignInURIs !== null && {
4150
+ })), (input.RedirectSignInURIs != null && {
4226
4151
  redirectSignInURIs: serializeAws_restJson1ListOf__string(input.RedirectSignInURIs, context),
4227
- })), (input.RedirectSignOutURIs !== undefined &&
4228
- input.RedirectSignOutURIs !== null && {
4152
+ })), (input.RedirectSignOutURIs != null && {
4229
4153
  redirectSignOutURIs: serializeAws_restJson1ListOf__string(input.RedirectSignOutURIs, context),
4230
- })), (input.SocialProviderSettings !== undefined &&
4231
- input.SocialProviderSettings !== null && {
4154
+ })), (input.SocialProviderSettings != null && {
4232
4155
  socialProviderSettings: serializeAws_restJson1SocialProviderSettings(input.SocialProviderSettings, context),
4233
4156
  }));
4234
4157
  };
4235
4158
  var serializeAws_restJson1UpdateBackendAuthPasswordPolicyConfig = function (input, context) {
4236
- return __assign(__assign({}, (input.AdditionalConstraints !== undefined &&
4237
- input.AdditionalConstraints !== null && {
4159
+ return __assign(__assign({}, (input.AdditionalConstraints != null && {
4238
4160
  additionalConstraints: serializeAws_restJson1ListOfAdditionalConstraintsElement(input.AdditionalConstraints, context),
4239
- })), (input.MinimumLength !== undefined &&
4240
- input.MinimumLength !== null && { minimumLength: __serializeFloat(input.MinimumLength) }));
4161
+ })), (input.MinimumLength != null && { minimumLength: __serializeFloat(input.MinimumLength) }));
4241
4162
  };
4242
4163
  var serializeAws_restJson1UpdateBackendAuthResourceConfig = function (input, context) {
4243
- return __assign(__assign(__assign(__assign({}, (input.AuthResources !== undefined && input.AuthResources !== null && { authResources: input.AuthResources })), (input.IdentityPoolConfigs !== undefined &&
4244
- input.IdentityPoolConfigs !== null && {
4164
+ return __assign(__assign(__assign(__assign({}, (input.AuthResources != null && { authResources: input.AuthResources })), (input.IdentityPoolConfigs != null && {
4245
4165
  identityPoolConfigs: serializeAws_restJson1UpdateBackendAuthIdentityPoolConfig(input.IdentityPoolConfigs, context),
4246
- })), (input.Service !== undefined && input.Service !== null && { service: input.Service })), (input.UserPoolConfigs !== undefined &&
4247
- input.UserPoolConfigs !== null && {
4166
+ })), (input.Service != null && { service: input.Service })), (input.UserPoolConfigs != null && {
4248
4167
  userPoolConfigs: serializeAws_restJson1UpdateBackendAuthUserPoolConfig(input.UserPoolConfigs, context),
4249
4168
  }));
4250
4169
  };
4251
4170
  var serializeAws_restJson1UpdateBackendAuthUserPoolConfig = function (input, context) {
4252
- return __assign(__assign(__assign(__assign(__assign({}, (input.ForgotPassword !== undefined &&
4253
- input.ForgotPassword !== null && {
4171
+ return __assign(__assign(__assign(__assign(__assign({}, (input.ForgotPassword != null && {
4254
4172
  forgotPassword: serializeAws_restJson1UpdateBackendAuthForgotPasswordConfig(input.ForgotPassword, context),
4255
- })), (input.Mfa !== undefined &&
4256
- input.Mfa !== null && { mfa: serializeAws_restJson1UpdateBackendAuthMFAConfig(input.Mfa, context) })), (input.OAuth !== undefined &&
4257
- input.OAuth !== null && { oAuth: serializeAws_restJson1UpdateBackendAuthOAuthConfig(input.OAuth, context) })), (input.PasswordPolicy !== undefined &&
4258
- input.PasswordPolicy !== null && {
4173
+ })), (input.Mfa != null && { mfa: serializeAws_restJson1UpdateBackendAuthMFAConfig(input.Mfa, context) })), (input.OAuth != null && { oAuth: serializeAws_restJson1UpdateBackendAuthOAuthConfig(input.OAuth, context) })), (input.PasswordPolicy != null && {
4259
4174
  passwordPolicy: serializeAws_restJson1UpdateBackendAuthPasswordPolicyConfig(input.PasswordPolicy, context),
4260
- })), (input.VerificationMessage !== undefined &&
4261
- input.VerificationMessage !== null && {
4175
+ })), (input.VerificationMessage != null && {
4262
4176
  verificationMessage: serializeAws_restJson1UpdateBackendAuthVerificationMessageConfig(input.VerificationMessage, context),
4263
4177
  }));
4264
4178
  };
4265
4179
  var serializeAws_restJson1UpdateBackendAuthVerificationMessageConfig = function (input, context) {
4266
- return __assign(__assign(__assign({}, (input.DeliveryMethod !== undefined &&
4267
- input.DeliveryMethod !== null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings !== undefined &&
4268
- input.EmailSettings !== null && {
4180
+ return __assign(__assign(__assign({}, (input.DeliveryMethod != null && { deliveryMethod: input.DeliveryMethod })), (input.EmailSettings != null && {
4269
4181
  emailSettings: serializeAws_restJson1EmailSettings(input.EmailSettings, context),
4270
- })), (input.SmsSettings !== undefined &&
4271
- input.SmsSettings !== null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
4182
+ })), (input.SmsSettings != null && { smsSettings: serializeAws_restJson1SmsSettings(input.SmsSettings, context) }));
4272
4183
  };
4273
4184
  var serializeAws_restJson1UpdateBackendStorageResourceConfig = function (input, context) {
4274
- return __assign(__assign({}, (input.Permissions !== undefined &&
4275
- input.Permissions !== null && {
4185
+ return __assign(__assign({}, (input.Permissions != null && {
4276
4186
  permissions: serializeAws_restJson1BackendStoragePermissions(input.Permissions, context),
4277
- })), (input.ServiceName !== undefined && input.ServiceName !== null && { serviceName: input.ServiceName }));
4187
+ })), (input.ServiceName != null && { serviceName: input.ServiceName }));
4278
4188
  };
4279
4189
  var deserializeAws_restJson1BackendAPIAppSyncAuthSettings = function (output, context) {
4280
4190
  return {
@@ -4291,7 +4201,7 @@ var deserializeAws_restJson1BackendAPIAppSyncAuthSettings = function (output, co
4291
4201
  var deserializeAws_restJson1BackendAPIAuthType = function (output, context) {
4292
4202
  return {
4293
4203
  Mode: __expectString(output.mode),
4294
- Settings: output.settings !== undefined && output.settings !== null
4204
+ Settings: output.settings != null
4295
4205
  ? deserializeAws_restJson1BackendAPIAppSyncAuthSettings(output.settings, context)
4296
4206
  : undefined,
4297
4207
  };
@@ -4303,14 +4213,14 @@ var deserializeAws_restJson1BackendAPIConflictResolution = function (output, con
4303
4213
  };
4304
4214
  var deserializeAws_restJson1BackendAPIResourceConfig = function (output, context) {
4305
4215
  return {
4306
- AdditionalAuthTypes: output.additionalAuthTypes !== undefined && output.additionalAuthTypes !== null
4216
+ AdditionalAuthTypes: output.additionalAuthTypes != null
4307
4217
  ? deserializeAws_restJson1ListOfBackendAPIAuthType(output.additionalAuthTypes, context)
4308
4218
  : undefined,
4309
4219
  ApiName: __expectString(output.apiName),
4310
- ConflictResolution: output.conflictResolution !== undefined && output.conflictResolution !== null
4220
+ ConflictResolution: output.conflictResolution != null
4311
4221
  ? deserializeAws_restJson1BackendAPIConflictResolution(output.conflictResolution, context)
4312
4222
  : undefined,
4313
- DefaultAuthType: output.defaultAuthType !== undefined && output.defaultAuthType !== null
4223
+ DefaultAuthType: output.defaultAuthType != null
4314
4224
  ? deserializeAws_restJson1BackendAPIAuthType(output.defaultAuthType, context)
4315
4225
  : undefined,
4316
4226
  Service: __expectString(output.service),
@@ -4345,10 +4255,10 @@ var deserializeAws_restJson1BackendJobRespObj = function (output, context) {
4345
4255
  };
4346
4256
  var deserializeAws_restJson1BackendStoragePermissions = function (output, context) {
4347
4257
  return {
4348
- Authenticated: output.authenticated !== undefined && output.authenticated !== null
4258
+ Authenticated: output.authenticated != null
4349
4259
  ? deserializeAws_restJson1ListOfAuthenticatedElement(output.authenticated, context)
4350
4260
  : undefined,
4351
- UnAuthenticated: output.unAuthenticated !== undefined && output.unAuthenticated !== null
4261
+ UnAuthenticated: output.unAuthenticated != null
4352
4262
  ? deserializeAws_restJson1ListOfUnAuthenticatedElement(output.unAuthenticated, context)
4353
4263
  : undefined,
4354
4264
  };
@@ -4356,12 +4266,8 @@ var deserializeAws_restJson1BackendStoragePermissions = function (output, contex
4356
4266
  var deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig = function (output, context) {
4357
4267
  return {
4358
4268
  DeliveryMethod: __expectString(output.deliveryMethod),
4359
- EmailSettings: output.emailSettings !== undefined && output.emailSettings !== null
4360
- ? deserializeAws_restJson1EmailSettings(output.emailSettings, context)
4361
- : undefined,
4362
- SmsSettings: output.smsSettings !== undefined && output.smsSettings !== null
4363
- ? deserializeAws_restJson1SmsSettings(output.smsSettings, context)
4364
- : undefined,
4269
+ EmailSettings: output.emailSettings != null ? deserializeAws_restJson1EmailSettings(output.emailSettings, context) : undefined,
4270
+ SmsSettings: output.smsSettings != null ? deserializeAws_restJson1SmsSettings(output.smsSettings, context) : undefined,
4365
4271
  };
4366
4272
  };
4367
4273
  var deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig = function (output, context) {
@@ -4373,32 +4279,30 @@ var deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig = function (outp
4373
4279
  var deserializeAws_restJson1CreateBackendAuthMFAConfig = function (output, context) {
4374
4280
  return {
4375
4281
  MFAMode: __expectString(output.MFAMode),
4376
- Settings: output.settings !== undefined && output.settings !== null
4377
- ? deserializeAws_restJson1Settings(output.settings, context)
4378
- : undefined,
4282
+ Settings: output.settings != null ? deserializeAws_restJson1Settings(output.settings, context) : undefined,
4379
4283
  };
4380
4284
  };
4381
4285
  var deserializeAws_restJson1CreateBackendAuthOAuthConfig = function (output, context) {
4382
4286
  return {
4383
4287
  DomainPrefix: __expectString(output.domainPrefix),
4384
4288
  OAuthGrantType: __expectString(output.oAuthGrantType),
4385
- OAuthScopes: output.oAuthScopes !== undefined && output.oAuthScopes !== null
4289
+ OAuthScopes: output.oAuthScopes != null
4386
4290
  ? deserializeAws_restJson1ListOfOAuthScopesElement(output.oAuthScopes, context)
4387
4291
  : undefined,
4388
- RedirectSignInURIs: output.redirectSignInURIs !== undefined && output.redirectSignInURIs !== null
4292
+ RedirectSignInURIs: output.redirectSignInURIs != null
4389
4293
  ? deserializeAws_restJson1ListOf__string(output.redirectSignInURIs, context)
4390
4294
  : undefined,
4391
- RedirectSignOutURIs: output.redirectSignOutURIs !== undefined && output.redirectSignOutURIs !== null
4295
+ RedirectSignOutURIs: output.redirectSignOutURIs != null
4392
4296
  ? deserializeAws_restJson1ListOf__string(output.redirectSignOutURIs, context)
4393
4297
  : undefined,
4394
- SocialProviderSettings: output.socialProviderSettings !== undefined && output.socialProviderSettings !== null
4298
+ SocialProviderSettings: output.socialProviderSettings != null
4395
4299
  ? deserializeAws_restJson1SocialProviderSettings(output.socialProviderSettings, context)
4396
4300
  : undefined,
4397
4301
  };
4398
4302
  };
4399
4303
  var deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = function (output, context) {
4400
4304
  return {
4401
- AdditionalConstraints: output.additionalConstraints !== undefined && output.additionalConstraints !== null
4305
+ AdditionalConstraints: output.additionalConstraints != null
4402
4306
  ? deserializeAws_restJson1ListOfAdditionalConstraintsElement(output.additionalConstraints, context)
4403
4307
  : undefined,
4404
4308
  MinimumLength: __limitedParseDouble(output.minimumLength),
@@ -4407,35 +4311,31 @@ var deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig = function (ou
4407
4311
  var deserializeAws_restJson1CreateBackendAuthResourceConfig = function (output, context) {
4408
4312
  return {
4409
4313
  AuthResources: __expectString(output.authResources),
4410
- IdentityPoolConfigs: output.identityPoolConfigs !== undefined && output.identityPoolConfigs !== null
4314
+ IdentityPoolConfigs: output.identityPoolConfigs != null
4411
4315
  ? deserializeAws_restJson1CreateBackendAuthIdentityPoolConfig(output.identityPoolConfigs, context)
4412
4316
  : undefined,
4413
4317
  Service: __expectString(output.service),
4414
- UserPoolConfigs: output.userPoolConfigs !== undefined && output.userPoolConfigs !== null
4318
+ UserPoolConfigs: output.userPoolConfigs != null
4415
4319
  ? deserializeAws_restJson1CreateBackendAuthUserPoolConfig(output.userPoolConfigs, context)
4416
4320
  : undefined,
4417
4321
  };
4418
4322
  };
4419
4323
  var deserializeAws_restJson1CreateBackendAuthUserPoolConfig = function (output, context) {
4420
4324
  return {
4421
- ForgotPassword: output.forgotPassword !== undefined && output.forgotPassword !== null
4325
+ ForgotPassword: output.forgotPassword != null
4422
4326
  ? deserializeAws_restJson1CreateBackendAuthForgotPasswordConfig(output.forgotPassword, context)
4423
4327
  : undefined,
4424
- Mfa: output.mfa !== undefined && output.mfa !== null
4425
- ? deserializeAws_restJson1CreateBackendAuthMFAConfig(output.mfa, context)
4426
- : undefined,
4427
- OAuth: output.oAuth !== undefined && output.oAuth !== null
4428
- ? deserializeAws_restJson1CreateBackendAuthOAuthConfig(output.oAuth, context)
4429
- : undefined,
4430
- PasswordPolicy: output.passwordPolicy !== undefined && output.passwordPolicy !== null
4328
+ Mfa: output.mfa != null ? deserializeAws_restJson1CreateBackendAuthMFAConfig(output.mfa, context) : undefined,
4329
+ OAuth: output.oAuth != null ? deserializeAws_restJson1CreateBackendAuthOAuthConfig(output.oAuth, context) : undefined,
4330
+ PasswordPolicy: output.passwordPolicy != null
4431
4331
  ? deserializeAws_restJson1CreateBackendAuthPasswordPolicyConfig(output.passwordPolicy, context)
4432
4332
  : undefined,
4433
- RequiredSignUpAttributes: output.requiredSignUpAttributes !== undefined && output.requiredSignUpAttributes !== null
4333
+ RequiredSignUpAttributes: output.requiredSignUpAttributes != null
4434
4334
  ? deserializeAws_restJson1ListOfRequiredSignUpAttributesElement(output.requiredSignUpAttributes, context)
4435
4335
  : undefined,
4436
4336
  SignInMethod: __expectString(output.signInMethod),
4437
4337
  UserPoolName: __expectString(output.userPoolName),
4438
- VerificationMessage: output.verificationMessage !== undefined && output.verificationMessage !== null
4338
+ VerificationMessage: output.verificationMessage != null
4439
4339
  ? deserializeAws_restJson1CreateBackendAuthVerificationMessageConfig(output.verificationMessage, context)
4440
4340
  : undefined,
4441
4341
  };
@@ -4443,12 +4343,8 @@ var deserializeAws_restJson1CreateBackendAuthUserPoolConfig = function (output,
4443
4343
  var deserializeAws_restJson1CreateBackendAuthVerificationMessageConfig = function (output, context) {
4444
4344
  return {
4445
4345
  DeliveryMethod: __expectString(output.deliveryMethod),
4446
- EmailSettings: output.emailSettings !== undefined && output.emailSettings !== null
4447
- ? deserializeAws_restJson1EmailSettings(output.emailSettings, context)
4448
- : undefined,
4449
- SmsSettings: output.smsSettings !== undefined && output.smsSettings !== null
4450
- ? deserializeAws_restJson1SmsSettings(output.smsSettings, context)
4451
- : undefined,
4346
+ EmailSettings: output.emailSettings != null ? deserializeAws_restJson1EmailSettings(output.emailSettings, context) : undefined,
4347
+ SmsSettings: output.smsSettings != null ? deserializeAws_restJson1SmsSettings(output.smsSettings, context) : undefined,
4452
4348
  };
4453
4349
  };
4454
4350
  var deserializeAws_restJson1EmailSettings = function (output, context) {
@@ -4461,7 +4357,7 @@ var deserializeAws_restJson1GetBackendStorageResourceConfig = function (output,
4461
4357
  return {
4462
4358
  BucketName: __expectString(output.bucketName),
4463
4359
  Imported: __expectBoolean(output.imported),
4464
- Permissions: output.permissions !== undefined && output.permissions !== null
4360
+ Permissions: output.permissions != null
4465
4361
  ? deserializeAws_restJson1BackendStoragePermissions(output.permissions, context)
4466
4362
  : undefined,
4467
4363
  ServiceName: __expectString(output.serviceName),
@@ -4593,9 +4489,7 @@ var deserializeAws_restJson1S3BucketInfo = function (output, context) {
4593
4489
  };
4594
4490
  var deserializeAws_restJson1Settings = function (output, context) {
4595
4491
  return {
4596
- MfaTypes: output.mfaTypes !== undefined && output.mfaTypes !== null
4597
- ? deserializeAws_restJson1ListOfMfaTypesElement(output.mfaTypes, context)
4598
- : undefined,
4492
+ MfaTypes: output.mfaTypes != null ? deserializeAws_restJson1ListOfMfaTypesElement(output.mfaTypes, context) : undefined,
4599
4493
  SmsMessage: __expectString(output.smsMessage),
4600
4494
  };
4601
4495
  };
@@ -4606,16 +4500,16 @@ var deserializeAws_restJson1SmsSettings = function (output, context) {
4606
4500
  };
4607
4501
  var deserializeAws_restJson1SocialProviderSettings = function (output, context) {
4608
4502
  return {
4609
- Facebook: output.Facebook !== undefined && output.Facebook !== null
4503
+ Facebook: output.Facebook != null
4610
4504
  ? deserializeAws_restJson1BackendAuthSocialProviderConfig(output.Facebook, context)
4611
4505
  : undefined,
4612
- Google: output.Google !== undefined && output.Google !== null
4506
+ Google: output.Google != null
4613
4507
  ? deserializeAws_restJson1BackendAuthSocialProviderConfig(output.Google, context)
4614
4508
  : undefined,
4615
- LoginWithAmazon: output.LoginWithAmazon !== undefined && output.LoginWithAmazon !== null
4509
+ LoginWithAmazon: output.LoginWithAmazon != null
4616
4510
  ? deserializeAws_restJson1BackendAuthSocialProviderConfig(output.LoginWithAmazon, context)
4617
4511
  : undefined,
4618
- SignInWithApple: output.SignInWithApple !== undefined && output.SignInWithApple !== null
4512
+ SignInWithApple: output.SignInWithApple != null
4619
4513
  ? deserializeAws_restJson1BackendAuthAppleProviderConfig(output.SignInWithApple, context)
4620
4514
  : undefined,
4621
4515
  };