@aws-sdk/client-cognito-identity-provider 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.
@@ -9331,189 +9331,152 @@ var deserializeAws_json1_1UserPoolTaggingExceptionResponse = function (parsedOut
9331
9331
  });
9332
9332
  }); };
9333
9333
  var serializeAws_json1_1AccountRecoverySettingType = function (input, context) {
9334
- return __assign({}, (input.RecoveryMechanisms !== undefined &&
9335
- input.RecoveryMechanisms !== null && {
9334
+ return __assign({}, (input.RecoveryMechanisms != null && {
9336
9335
  RecoveryMechanisms: serializeAws_json1_1RecoveryMechanismsType(input.RecoveryMechanisms, context),
9337
9336
  }));
9338
9337
  };
9339
9338
  var serializeAws_json1_1AccountTakeoverActionsType = function (input, context) {
9340
- return __assign(__assign(__assign({}, (input.HighAction !== undefined &&
9341
- input.HighAction !== null && {
9339
+ return __assign(__assign(__assign({}, (input.HighAction != null && {
9342
9340
  HighAction: serializeAws_json1_1AccountTakeoverActionType(input.HighAction, context),
9343
- })), (input.LowAction !== undefined &&
9344
- input.LowAction !== null && {
9341
+ })), (input.LowAction != null && {
9345
9342
  LowAction: serializeAws_json1_1AccountTakeoverActionType(input.LowAction, context),
9346
- })), (input.MediumAction !== undefined &&
9347
- input.MediumAction !== null && {
9343
+ })), (input.MediumAction != null && {
9348
9344
  MediumAction: serializeAws_json1_1AccountTakeoverActionType(input.MediumAction, context),
9349
9345
  }));
9350
9346
  };
9351
9347
  var serializeAws_json1_1AccountTakeoverActionType = function (input, context) {
9352
- return __assign(__assign({}, (input.EventAction !== undefined && input.EventAction !== null && { EventAction: input.EventAction })), (input.Notify !== undefined && input.Notify !== null && { Notify: input.Notify }));
9348
+ return __assign(__assign({}, (input.EventAction != null && { EventAction: input.EventAction })), (input.Notify != null && { Notify: input.Notify }));
9353
9349
  };
9354
9350
  var serializeAws_json1_1AccountTakeoverRiskConfigurationType = function (input, context) {
9355
- return __assign(__assign({}, (input.Actions !== undefined &&
9356
- input.Actions !== null && { Actions: serializeAws_json1_1AccountTakeoverActionsType(input.Actions, context) })), (input.NotifyConfiguration !== undefined &&
9357
- input.NotifyConfiguration !== null && {
9351
+ return __assign(__assign({}, (input.Actions != null && { Actions: serializeAws_json1_1AccountTakeoverActionsType(input.Actions, context) })), (input.NotifyConfiguration != null && {
9358
9352
  NotifyConfiguration: serializeAws_json1_1NotifyConfigurationType(input.NotifyConfiguration, context),
9359
9353
  }));
9360
9354
  };
9361
9355
  var serializeAws_json1_1AddCustomAttributesRequest = function (input, context) {
9362
- return __assign(__assign({}, (input.CustomAttributes !== undefined &&
9363
- input.CustomAttributes !== null && {
9356
+ return __assign(__assign({}, (input.CustomAttributes != null && {
9364
9357
  CustomAttributes: serializeAws_json1_1CustomAttributesListType(input.CustomAttributes, context),
9365
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9358
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9366
9359
  };
9367
9360
  var serializeAws_json1_1AdminAddUserToGroupRequest = function (input, context) {
9368
- return __assign(__assign(__assign({}, (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9361
+ return __assign(__assign(__assign({}, (input.GroupName != null && { GroupName: input.GroupName })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9369
9362
  };
9370
9363
  var serializeAws_json1_1AdminConfirmSignUpRequest = function (input, context) {
9371
- return __assign(__assign(__assign({}, (input.ClientMetadata !== undefined &&
9372
- input.ClientMetadata !== null && {
9364
+ return __assign(__assign(__assign({}, (input.ClientMetadata != null && {
9373
9365
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
9374
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9366
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9375
9367
  };
9376
9368
  var serializeAws_json1_1AdminCreateUserConfigType = function (input, context) {
9377
- return __assign(__assign(__assign({}, (input.AllowAdminCreateUserOnly !== undefined &&
9378
- input.AllowAdminCreateUserOnly !== null && { AllowAdminCreateUserOnly: input.AllowAdminCreateUserOnly })), (input.InviteMessageTemplate !== undefined &&
9379
- input.InviteMessageTemplate !== null && {
9369
+ return __assign(__assign(__assign({}, (input.AllowAdminCreateUserOnly != null && { AllowAdminCreateUserOnly: input.AllowAdminCreateUserOnly })), (input.InviteMessageTemplate != null && {
9380
9370
  InviteMessageTemplate: serializeAws_json1_1MessageTemplateType(input.InviteMessageTemplate, context),
9381
- })), (input.UnusedAccountValidityDays !== undefined &&
9382
- input.UnusedAccountValidityDays !== null && { UnusedAccountValidityDays: input.UnusedAccountValidityDays }));
9371
+ })), (input.UnusedAccountValidityDays != null && { UnusedAccountValidityDays: input.UnusedAccountValidityDays }));
9383
9372
  };
9384
9373
  var serializeAws_json1_1AdminCreateUserRequest = function (input, context) {
9385
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientMetadata !== undefined &&
9386
- input.ClientMetadata !== null && {
9374
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.ClientMetadata != null && {
9387
9375
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
9388
- })), (input.DesiredDeliveryMediums !== undefined &&
9389
- input.DesiredDeliveryMediums !== null && {
9376
+ })), (input.DesiredDeliveryMediums != null && {
9390
9377
  DesiredDeliveryMediums: serializeAws_json1_1DeliveryMediumListType(input.DesiredDeliveryMediums, context),
9391
- })), (input.ForceAliasCreation !== undefined &&
9392
- input.ForceAliasCreation !== null && { ForceAliasCreation: input.ForceAliasCreation })), (input.MessageAction !== undefined && input.MessageAction !== null && { MessageAction: input.MessageAction })), (input.TemporaryPassword !== undefined &&
9393
- input.TemporaryPassword !== null && { TemporaryPassword: input.TemporaryPassword })), (input.UserAttributes !== undefined &&
9394
- input.UserAttributes !== null && {
9378
+ })), (input.ForceAliasCreation != null && { ForceAliasCreation: input.ForceAliasCreation })), (input.MessageAction != null && { MessageAction: input.MessageAction })), (input.TemporaryPassword != null && { TemporaryPassword: input.TemporaryPassword })), (input.UserAttributes != null && {
9395
9379
  UserAttributes: serializeAws_json1_1AttributeListType(input.UserAttributes, context),
9396
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username })), (input.ValidationData !== undefined &&
9397
- input.ValidationData !== null && {
9380
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username })), (input.ValidationData != null && {
9398
9381
  ValidationData: serializeAws_json1_1AttributeListType(input.ValidationData, context),
9399
9382
  }));
9400
9383
  };
9401
9384
  var serializeAws_json1_1AdminDeleteUserAttributesRequest = function (input, context) {
9402
- return __assign(__assign(__assign({}, (input.UserAttributeNames !== undefined &&
9403
- input.UserAttributeNames !== null && {
9385
+ return __assign(__assign(__assign({}, (input.UserAttributeNames != null && {
9404
9386
  UserAttributeNames: serializeAws_json1_1AttributeNameListType(input.UserAttributeNames, context),
9405
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9387
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9406
9388
  };
9407
9389
  var serializeAws_json1_1AdminDeleteUserRequest = function (input, context) {
9408
- return __assign(__assign({}, (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9390
+ return __assign(__assign({}, (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9409
9391
  };
9410
9392
  var serializeAws_json1_1AdminDisableProviderForUserRequest = function (input, context) {
9411
- return __assign(__assign({}, (input.User !== undefined &&
9412
- input.User !== null && { User: serializeAws_json1_1ProviderUserIdentifierType(input.User, context) })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9393
+ return __assign(__assign({}, (input.User != null && { User: serializeAws_json1_1ProviderUserIdentifierType(input.User, context) })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9413
9394
  };
9414
9395
  var serializeAws_json1_1AdminDisableUserRequest = function (input, context) {
9415
- return __assign(__assign({}, (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9396
+ return __assign(__assign({}, (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9416
9397
  };
9417
9398
  var serializeAws_json1_1AdminEnableUserRequest = function (input, context) {
9418
- return __assign(__assign({}, (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9399
+ return __assign(__assign({}, (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9419
9400
  };
9420
9401
  var serializeAws_json1_1AdminForgetDeviceRequest = function (input, context) {
9421
- return __assign(__assign(__assign({}, (input.DeviceKey !== undefined && input.DeviceKey !== null && { DeviceKey: input.DeviceKey })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9402
+ return __assign(__assign(__assign({}, (input.DeviceKey != null && { DeviceKey: input.DeviceKey })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9422
9403
  };
9423
9404
  var serializeAws_json1_1AdminGetDeviceRequest = function (input, context) {
9424
- return __assign(__assign(__assign({}, (input.DeviceKey !== undefined && input.DeviceKey !== null && { DeviceKey: input.DeviceKey })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9405
+ return __assign(__assign(__assign({}, (input.DeviceKey != null && { DeviceKey: input.DeviceKey })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9425
9406
  };
9426
9407
  var serializeAws_json1_1AdminGetUserRequest = function (input, context) {
9427
- return __assign(__assign({}, (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9408
+ return __assign(__assign({}, (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9428
9409
  };
9429
9410
  var serializeAws_json1_1AdminInitiateAuthRequest = function (input, context) {
9430
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata !== undefined &&
9431
- input.AnalyticsMetadata !== null && {
9411
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata != null && {
9432
9412
  AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
9433
- })), (input.AuthFlow !== undefined && input.AuthFlow !== null && { AuthFlow: input.AuthFlow })), (input.AuthParameters !== undefined &&
9434
- input.AuthParameters !== null && {
9413
+ })), (input.AuthFlow != null && { AuthFlow: input.AuthFlow })), (input.AuthParameters != null && {
9435
9414
  AuthParameters: serializeAws_json1_1AuthParametersType(input.AuthParameters, context),
9436
- })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientMetadata !== undefined &&
9437
- input.ClientMetadata !== null && {
9415
+ })), (input.ClientId != null && { ClientId: input.ClientId })), (input.ClientMetadata != null && {
9438
9416
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
9439
- })), (input.ContextData !== undefined &&
9440
- input.ContextData !== null && { ContextData: serializeAws_json1_1ContextDataType(input.ContextData, context) })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9417
+ })), (input.ContextData != null && { ContextData: serializeAws_json1_1ContextDataType(input.ContextData, context) })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9441
9418
  };
9442
9419
  var serializeAws_json1_1AdminLinkProviderForUserRequest = function (input, context) {
9443
- return __assign(__assign(__assign({}, (input.DestinationUser !== undefined &&
9444
- input.DestinationUser !== null && {
9420
+ return __assign(__assign(__assign({}, (input.DestinationUser != null && {
9445
9421
  DestinationUser: serializeAws_json1_1ProviderUserIdentifierType(input.DestinationUser, context),
9446
- })), (input.SourceUser !== undefined &&
9447
- input.SourceUser !== null && {
9422
+ })), (input.SourceUser != null && {
9448
9423
  SourceUser: serializeAws_json1_1ProviderUserIdentifierType(input.SourceUser, context),
9449
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9424
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9450
9425
  };
9451
9426
  var serializeAws_json1_1AdminListDevicesRequest = function (input, context) {
9452
- return __assign(__assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.PaginationToken !== undefined &&
9453
- input.PaginationToken !== null && { PaginationToken: input.PaginationToken })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9427
+ return __assign(__assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.PaginationToken != null && { PaginationToken: input.PaginationToken })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9454
9428
  };
9455
9429
  var serializeAws_json1_1AdminListGroupsForUserRequest = function (input, context) {
9456
- return __assign(__assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9430
+ return __assign(__assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextToken != null && { NextToken: input.NextToken })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9457
9431
  };
9458
9432
  var serializeAws_json1_1AdminListUserAuthEventsRequest = function (input, context) {
9459
- return __assign(__assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9433
+ return __assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9460
9434
  };
9461
9435
  var serializeAws_json1_1AdminRemoveUserFromGroupRequest = function (input, context) {
9462
- return __assign(__assign(__assign({}, (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9436
+ return __assign(__assign(__assign({}, (input.GroupName != null && { GroupName: input.GroupName })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9463
9437
  };
9464
9438
  var serializeAws_json1_1AdminResetUserPasswordRequest = function (input, context) {
9465
- return __assign(__assign(__assign({}, (input.ClientMetadata !== undefined &&
9466
- input.ClientMetadata !== null && {
9439
+ return __assign(__assign(__assign({}, (input.ClientMetadata != null && {
9467
9440
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
9468
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9441
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9469
9442
  };
9470
9443
  var serializeAws_json1_1AdminRespondToAuthChallengeRequest = function (input, context) {
9471
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata !== undefined &&
9472
- input.AnalyticsMetadata !== null && {
9444
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata != null && {
9473
9445
  AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
9474
- })), (input.ChallengeName !== undefined && input.ChallengeName !== null && { ChallengeName: input.ChallengeName })), (input.ChallengeResponses !== undefined &&
9475
- input.ChallengeResponses !== null && {
9446
+ })), (input.ChallengeName != null && { ChallengeName: input.ChallengeName })), (input.ChallengeResponses != null && {
9476
9447
  ChallengeResponses: serializeAws_json1_1ChallengeResponsesType(input.ChallengeResponses, context),
9477
- })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientMetadata !== undefined &&
9478
- input.ClientMetadata !== null && {
9448
+ })), (input.ClientId != null && { ClientId: input.ClientId })), (input.ClientMetadata != null && {
9479
9449
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
9480
- })), (input.ContextData !== undefined &&
9481
- input.ContextData !== null && { ContextData: serializeAws_json1_1ContextDataType(input.ContextData, context) })), (input.Session !== undefined && input.Session !== null && { Session: input.Session })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9450
+ })), (input.ContextData != null && { ContextData: serializeAws_json1_1ContextDataType(input.ContextData, context) })), (input.Session != null && { Session: input.Session })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9482
9451
  };
9483
9452
  var serializeAws_json1_1AdminSetUserMFAPreferenceRequest = function (input, context) {
9484
- return __assign(__assign(__assign(__assign({}, (input.SMSMfaSettings !== undefined &&
9485
- input.SMSMfaSettings !== null && {
9453
+ return __assign(__assign(__assign(__assign({}, (input.SMSMfaSettings != null && {
9486
9454
  SMSMfaSettings: serializeAws_json1_1SMSMfaSettingsType(input.SMSMfaSettings, context),
9487
- })), (input.SoftwareTokenMfaSettings !== undefined &&
9488
- input.SoftwareTokenMfaSettings !== null && {
9455
+ })), (input.SoftwareTokenMfaSettings != null && {
9489
9456
  SoftwareTokenMfaSettings: serializeAws_json1_1SoftwareTokenMfaSettingsType(input.SoftwareTokenMfaSettings, context),
9490
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9457
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9491
9458
  };
9492
9459
  var serializeAws_json1_1AdminSetUserPasswordRequest = function (input, context) {
9493
- return __assign(__assign(__assign(__assign({}, (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.Permanent !== undefined && input.Permanent !== null && { Permanent: input.Permanent })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9460
+ return __assign(__assign(__assign(__assign({}, (input.Password != null && { Password: input.Password })), (input.Permanent != null && { Permanent: input.Permanent })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9494
9461
  };
9495
9462
  var serializeAws_json1_1AdminSetUserSettingsRequest = function (input, context) {
9496
- return __assign(__assign(__assign({}, (input.MFAOptions !== undefined &&
9497
- input.MFAOptions !== null && { MFAOptions: serializeAws_json1_1MFAOptionListType(input.MFAOptions, context) })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9463
+ return __assign(__assign(__assign({}, (input.MFAOptions != null && { MFAOptions: serializeAws_json1_1MFAOptionListType(input.MFAOptions, context) })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9498
9464
  };
9499
9465
  var serializeAws_json1_1AdminUpdateAuthEventFeedbackRequest = function (input, context) {
9500
- return __assign(__assign(__assign(__assign({}, (input.EventId !== undefined && input.EventId !== null && { EventId: input.EventId })), (input.FeedbackValue !== undefined && input.FeedbackValue !== null && { FeedbackValue: input.FeedbackValue })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9466
+ return __assign(__assign(__assign(__assign({}, (input.EventId != null && { EventId: input.EventId })), (input.FeedbackValue != null && { FeedbackValue: input.FeedbackValue })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9501
9467
  };
9502
9468
  var serializeAws_json1_1AdminUpdateDeviceStatusRequest = function (input, context) {
9503
- return __assign(__assign(__assign(__assign({}, (input.DeviceKey !== undefined && input.DeviceKey !== null && { DeviceKey: input.DeviceKey })), (input.DeviceRememberedStatus !== undefined &&
9504
- input.DeviceRememberedStatus !== null && { DeviceRememberedStatus: input.DeviceRememberedStatus })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9469
+ return __assign(__assign(__assign(__assign({}, (input.DeviceKey != null && { DeviceKey: input.DeviceKey })), (input.DeviceRememberedStatus != null && { DeviceRememberedStatus: input.DeviceRememberedStatus })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9505
9470
  };
9506
9471
  var serializeAws_json1_1AdminUpdateUserAttributesRequest = function (input, context) {
9507
- return __assign(__assign(__assign(__assign({}, (input.ClientMetadata !== undefined &&
9508
- input.ClientMetadata !== null && {
9472
+ return __assign(__assign(__assign(__assign({}, (input.ClientMetadata != null && {
9509
9473
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
9510
- })), (input.UserAttributes !== undefined &&
9511
- input.UserAttributes !== null && {
9474
+ })), (input.UserAttributes != null && {
9512
9475
  UserAttributes: serializeAws_json1_1AttributeListType(input.UserAttributes, context),
9513
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9476
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9514
9477
  };
9515
9478
  var serializeAws_json1_1AdminUserGlobalSignOutRequest = function (input, context) {
9516
- return __assign(__assign({}, (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9479
+ return __assign(__assign({}, (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
9517
9480
  };
9518
9481
  var serializeAws_json1_1AliasAttributesListType = function (input, context) {
9519
9482
  return input
@@ -9526,16 +9489,13 @@ var serializeAws_json1_1AliasAttributesListType = function (input, context) {
9526
9489
  });
9527
9490
  };
9528
9491
  var serializeAws_json1_1AnalyticsConfigurationType = function (input, context) {
9529
- return __assign(__assign(__assign(__assign(__assign({}, (input.ApplicationArn !== undefined &&
9530
- input.ApplicationArn !== null && { ApplicationArn: input.ApplicationArn })), (input.ApplicationId !== undefined && input.ApplicationId !== null && { ApplicationId: input.ApplicationId })), (input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.UserDataShared !== undefined &&
9531
- input.UserDataShared !== null && { UserDataShared: input.UserDataShared }));
9492
+ return __assign(__assign(__assign(__assign(__assign({}, (input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn })), (input.ApplicationId != null && { ApplicationId: input.ApplicationId })), (input.ExternalId != null && { ExternalId: input.ExternalId })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.UserDataShared != null && { UserDataShared: input.UserDataShared }));
9532
9493
  };
9533
9494
  var serializeAws_json1_1AnalyticsMetadataType = function (input, context) {
9534
- return __assign({}, (input.AnalyticsEndpointId !== undefined &&
9535
- input.AnalyticsEndpointId !== null && { AnalyticsEndpointId: input.AnalyticsEndpointId }));
9495
+ return __assign({}, (input.AnalyticsEndpointId != null && { AnalyticsEndpointId: input.AnalyticsEndpointId }));
9536
9496
  };
9537
9497
  var serializeAws_json1_1AssociateSoftwareTokenRequest = function (input, context) {
9538
- return __assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.Session !== undefined && input.Session !== null && { Session: input.Session }));
9498
+ return __assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.Session != null && { Session: input.Session }));
9539
9499
  };
9540
9500
  var serializeAws_json1_1AttributeListType = function (input, context) {
9541
9501
  return input
@@ -9578,7 +9538,7 @@ var serializeAws_json1_1AttributesRequireVerificationBeforeUpdateType = function
9578
9538
  });
9579
9539
  };
9580
9540
  var serializeAws_json1_1AttributeType = function (input, context) {
9581
- return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Value !== undefined && input.Value !== null && { Value: input.Value }));
9541
+ return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
9582
9542
  };
9583
9543
  var serializeAws_json1_1AuthParametersType = function (input, context) {
9584
9544
  return Object.entries(input).reduce(function (acc, _a) {
@@ -9621,9 +9581,7 @@ var serializeAws_json1_1ChallengeResponsesType = function (input, context) {
9621
9581
  }, {});
9622
9582
  };
9623
9583
  var serializeAws_json1_1ChangePasswordRequest = function (input, context) {
9624
- return __assign(__assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.PreviousPassword !== undefined &&
9625
- input.PreviousPassword !== null && { PreviousPassword: input.PreviousPassword })), (input.ProposedPassword !== undefined &&
9626
- input.ProposedPassword !== null && { ProposedPassword: input.ProposedPassword }));
9584
+ return __assign(__assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.PreviousPassword != null && { PreviousPassword: input.PreviousPassword })), (input.ProposedPassword != null && { ProposedPassword: input.ProposedPassword }));
9627
9585
  };
9628
9586
  var serializeAws_json1_1ClientMetadataType = function (input, context) {
9629
9587
  return Object.entries(input).reduce(function (acc, _a) {
@@ -9646,174 +9604,115 @@ var serializeAws_json1_1ClientPermissionListType = function (input, context) {
9646
9604
  });
9647
9605
  };
9648
9606
  var serializeAws_json1_1CompromisedCredentialsActionsType = function (input, context) {
9649
- return __assign({}, (input.EventAction !== undefined && input.EventAction !== null && { EventAction: input.EventAction }));
9607
+ return __assign({}, (input.EventAction != null && { EventAction: input.EventAction }));
9650
9608
  };
9651
9609
  var serializeAws_json1_1CompromisedCredentialsRiskConfigurationType = function (input, context) {
9652
- return __assign(__assign({}, (input.Actions !== undefined &&
9653
- input.Actions !== null && {
9610
+ return __assign(__assign({}, (input.Actions != null && {
9654
9611
  Actions: serializeAws_json1_1CompromisedCredentialsActionsType(input.Actions, context),
9655
- })), (input.EventFilter !== undefined &&
9656
- input.EventFilter !== null && { EventFilter: serializeAws_json1_1EventFiltersType(input.EventFilter, context) }));
9612
+ })), (input.EventFilter != null && { EventFilter: serializeAws_json1_1EventFiltersType(input.EventFilter, context) }));
9657
9613
  };
9658
9614
  var serializeAws_json1_1ConfirmDeviceRequest = function (input, context) {
9659
- return __assign(__assign(__assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.DeviceKey !== undefined && input.DeviceKey !== null && { DeviceKey: input.DeviceKey })), (input.DeviceName !== undefined && input.DeviceName !== null && { DeviceName: input.DeviceName })), (input.DeviceSecretVerifierConfig !== undefined &&
9660
- input.DeviceSecretVerifierConfig !== null && {
9615
+ return __assign(__assign(__assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.DeviceKey != null && { DeviceKey: input.DeviceKey })), (input.DeviceName != null && { DeviceName: input.DeviceName })), (input.DeviceSecretVerifierConfig != null && {
9661
9616
  DeviceSecretVerifierConfig: serializeAws_json1_1DeviceSecretVerifierConfigType(input.DeviceSecretVerifierConfig, context),
9662
9617
  }));
9663
9618
  };
9664
9619
  var serializeAws_json1_1ConfirmForgotPasswordRequest = function (input, context) {
9665
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata !== undefined &&
9666
- input.AnalyticsMetadata !== null && {
9620
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata != null && {
9667
9621
  AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
9668
- })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientMetadata !== undefined &&
9669
- input.ClientMetadata !== null && {
9622
+ })), (input.ClientId != null && { ClientId: input.ClientId })), (input.ClientMetadata != null && {
9670
9623
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
9671
- })), (input.ConfirmationCode !== undefined &&
9672
- input.ConfirmationCode !== null && { ConfirmationCode: input.ConfirmationCode })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.SecretHash !== undefined && input.SecretHash !== null && { SecretHash: input.SecretHash })), (input.UserContextData !== undefined &&
9673
- input.UserContextData !== null && {
9624
+ })), (input.ConfirmationCode != null && { ConfirmationCode: input.ConfirmationCode })), (input.Password != null && { Password: input.Password })), (input.SecretHash != null && { SecretHash: input.SecretHash })), (input.UserContextData != null && {
9674
9625
  UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
9675
- })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9626
+ })), (input.Username != null && { Username: input.Username }));
9676
9627
  };
9677
9628
  var serializeAws_json1_1ConfirmSignUpRequest = function (input, context) {
9678
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata !== undefined &&
9679
- input.AnalyticsMetadata !== null && {
9629
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata != null && {
9680
9630
  AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
9681
- })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientMetadata !== undefined &&
9682
- input.ClientMetadata !== null && {
9631
+ })), (input.ClientId != null && { ClientId: input.ClientId })), (input.ClientMetadata != null && {
9683
9632
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
9684
- })), (input.ConfirmationCode !== undefined &&
9685
- input.ConfirmationCode !== null && { ConfirmationCode: input.ConfirmationCode })), (input.ForceAliasCreation !== undefined &&
9686
- input.ForceAliasCreation !== null && { ForceAliasCreation: input.ForceAliasCreation })), (input.SecretHash !== undefined && input.SecretHash !== null && { SecretHash: input.SecretHash })), (input.UserContextData !== undefined &&
9687
- input.UserContextData !== null && {
9633
+ })), (input.ConfirmationCode != null && { ConfirmationCode: input.ConfirmationCode })), (input.ForceAliasCreation != null && { ForceAliasCreation: input.ForceAliasCreation })), (input.SecretHash != null && { SecretHash: input.SecretHash })), (input.UserContextData != null && {
9688
9634
  UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
9689
- })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9635
+ })), (input.Username != null && { Username: input.Username }));
9690
9636
  };
9691
9637
  var serializeAws_json1_1ContextDataType = function (input, context) {
9692
- return __assign(__assign(__assign(__assign(__assign({}, (input.EncodedData !== undefined && input.EncodedData !== null && { EncodedData: input.EncodedData })), (input.HttpHeaders !== undefined &&
9693
- input.HttpHeaders !== null && { HttpHeaders: serializeAws_json1_1HttpHeaderList(input.HttpHeaders, context) })), (input.IpAddress !== undefined && input.IpAddress !== null && { IpAddress: input.IpAddress })), (input.ServerName !== undefined && input.ServerName !== null && { ServerName: input.ServerName })), (input.ServerPath !== undefined && input.ServerPath !== null && { ServerPath: input.ServerPath }));
9638
+ return __assign(__assign(__assign(__assign(__assign({}, (input.EncodedData != null && { EncodedData: input.EncodedData })), (input.HttpHeaders != null && { HttpHeaders: serializeAws_json1_1HttpHeaderList(input.HttpHeaders, context) })), (input.IpAddress != null && { IpAddress: input.IpAddress })), (input.ServerName != null && { ServerName: input.ServerName })), (input.ServerPath != null && { ServerPath: input.ServerPath }));
9694
9639
  };
9695
9640
  var serializeAws_json1_1CreateGroupRequest = function (input, context) {
9696
- return __assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })), (input.Precedence !== undefined && input.Precedence !== null && { Precedence: input.Precedence })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9641
+ return __assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.GroupName != null && { GroupName: input.GroupName })), (input.Precedence != null && { Precedence: input.Precedence })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9697
9642
  };
9698
9643
  var serializeAws_json1_1CreateIdentityProviderRequest = function (input, context) {
9699
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributeMapping !== undefined &&
9700
- input.AttributeMapping !== null && {
9644
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributeMapping != null && {
9701
9645
  AttributeMapping: serializeAws_json1_1AttributeMappingType(input.AttributeMapping, context),
9702
- })), (input.IdpIdentifiers !== undefined &&
9703
- input.IdpIdentifiers !== null && {
9646
+ })), (input.IdpIdentifiers != null && {
9704
9647
  IdpIdentifiers: serializeAws_json1_1IdpIdentifiersListType(input.IdpIdentifiers, context),
9705
- })), (input.ProviderDetails !== undefined &&
9706
- input.ProviderDetails !== null && {
9648
+ })), (input.ProviderDetails != null && {
9707
9649
  ProviderDetails: serializeAws_json1_1ProviderDetailsType(input.ProviderDetails, context),
9708
- })), (input.ProviderName !== undefined && input.ProviderName !== null && { ProviderName: input.ProviderName })), (input.ProviderType !== undefined && input.ProviderType !== null && { ProviderType: input.ProviderType })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9650
+ })), (input.ProviderName != null && { ProviderName: input.ProviderName })), (input.ProviderType != null && { ProviderType: input.ProviderType })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9709
9651
  };
9710
9652
  var serializeAws_json1_1CreateResourceServerRequest = function (input, context) {
9711
- return __assign(__assign(__assign(__assign({}, (input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scopes !== undefined &&
9712
- input.Scopes !== null && { Scopes: serializeAws_json1_1ResourceServerScopeListType(input.Scopes, context) })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9653
+ return __assign(__assign(__assign(__assign({}, (input.Identifier != null && { Identifier: input.Identifier })), (input.Name != null && { Name: input.Name })), (input.Scopes != null && { Scopes: serializeAws_json1_1ResourceServerScopeListType(input.Scopes, context) })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9713
9654
  };
9714
9655
  var serializeAws_json1_1CreateUserImportJobRequest = function (input, context) {
9715
- return __assign(__assign(__assign({}, (input.CloudWatchLogsRoleArn !== undefined &&
9716
- input.CloudWatchLogsRoleArn !== null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn })), (input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9656
+ return __assign(__assign(__assign({}, (input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn })), (input.JobName != null && { JobName: input.JobName })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9717
9657
  };
9718
9658
  var serializeAws_json1_1CreateUserPoolClientRequest = function (input, context) {
9719
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessTokenValidity !== undefined &&
9720
- input.AccessTokenValidity !== null && { AccessTokenValidity: input.AccessTokenValidity })), (input.AllowedOAuthFlows !== undefined &&
9721
- input.AllowedOAuthFlows !== null && {
9659
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessTokenValidity != null && { AccessTokenValidity: input.AccessTokenValidity })), (input.AllowedOAuthFlows != null && {
9722
9660
  AllowedOAuthFlows: serializeAws_json1_1OAuthFlowsType(input.AllowedOAuthFlows, context),
9723
- })), (input.AllowedOAuthFlowsUserPoolClient !== undefined &&
9724
- input.AllowedOAuthFlowsUserPoolClient !== null && {
9661
+ })), (input.AllowedOAuthFlowsUserPoolClient != null && {
9725
9662
  AllowedOAuthFlowsUserPoolClient: input.AllowedOAuthFlowsUserPoolClient,
9726
- })), (input.AllowedOAuthScopes !== undefined &&
9727
- input.AllowedOAuthScopes !== null && {
9663
+ })), (input.AllowedOAuthScopes != null && {
9728
9664
  AllowedOAuthScopes: serializeAws_json1_1ScopeListType(input.AllowedOAuthScopes, context),
9729
- })), (input.AnalyticsConfiguration !== undefined &&
9730
- input.AnalyticsConfiguration !== null && {
9665
+ })), (input.AnalyticsConfiguration != null && {
9731
9666
  AnalyticsConfiguration: serializeAws_json1_1AnalyticsConfigurationType(input.AnalyticsConfiguration, context),
9732
- })), (input.CallbackURLs !== undefined &&
9733
- input.CallbackURLs !== null && {
9667
+ })), (input.CallbackURLs != null && {
9734
9668
  CallbackURLs: serializeAws_json1_1CallbackURLsListType(input.CallbackURLs, context),
9735
- })), (input.ClientName !== undefined && input.ClientName !== null && { ClientName: input.ClientName })), (input.DefaultRedirectURI !== undefined &&
9736
- input.DefaultRedirectURI !== null && { DefaultRedirectURI: input.DefaultRedirectURI })), (input.EnablePropagateAdditionalUserContextData !== undefined &&
9737
- input.EnablePropagateAdditionalUserContextData !== null && {
9669
+ })), (input.ClientName != null && { ClientName: input.ClientName })), (input.DefaultRedirectURI != null && { DefaultRedirectURI: input.DefaultRedirectURI })), (input.EnablePropagateAdditionalUserContextData != null && {
9738
9670
  EnablePropagateAdditionalUserContextData: input.EnablePropagateAdditionalUserContextData,
9739
- })), (input.EnableTokenRevocation !== undefined &&
9740
- input.EnableTokenRevocation !== null && { EnableTokenRevocation: input.EnableTokenRevocation })), (input.ExplicitAuthFlows !== undefined &&
9741
- input.ExplicitAuthFlows !== null && {
9671
+ })), (input.EnableTokenRevocation != null && { EnableTokenRevocation: input.EnableTokenRevocation })), (input.ExplicitAuthFlows != null && {
9742
9672
  ExplicitAuthFlows: serializeAws_json1_1ExplicitAuthFlowsListType(input.ExplicitAuthFlows, context),
9743
- })), (input.GenerateSecret !== undefined &&
9744
- input.GenerateSecret !== null && { GenerateSecret: input.GenerateSecret })), (input.IdTokenValidity !== undefined &&
9745
- input.IdTokenValidity !== null && { IdTokenValidity: input.IdTokenValidity })), (input.LogoutURLs !== undefined &&
9746
- input.LogoutURLs !== null && { LogoutURLs: serializeAws_json1_1LogoutURLsListType(input.LogoutURLs, context) })), (input.PreventUserExistenceErrors !== undefined &&
9747
- input.PreventUserExistenceErrors !== null && { PreventUserExistenceErrors: input.PreventUserExistenceErrors })), (input.ReadAttributes !== undefined &&
9748
- input.ReadAttributes !== null && {
9673
+ })), (input.GenerateSecret != null && { GenerateSecret: input.GenerateSecret })), (input.IdTokenValidity != null && { IdTokenValidity: input.IdTokenValidity })), (input.LogoutURLs != null && { LogoutURLs: serializeAws_json1_1LogoutURLsListType(input.LogoutURLs, context) })), (input.PreventUserExistenceErrors != null && { PreventUserExistenceErrors: input.PreventUserExistenceErrors })), (input.ReadAttributes != null && {
9749
9674
  ReadAttributes: serializeAws_json1_1ClientPermissionListType(input.ReadAttributes, context),
9750
- })), (input.RefreshTokenValidity !== undefined &&
9751
- input.RefreshTokenValidity !== null && { RefreshTokenValidity: input.RefreshTokenValidity })), (input.SupportedIdentityProviders !== undefined &&
9752
- input.SupportedIdentityProviders !== null && {
9675
+ })), (input.RefreshTokenValidity != null && { RefreshTokenValidity: input.RefreshTokenValidity })), (input.SupportedIdentityProviders != null && {
9753
9676
  SupportedIdentityProviders: serializeAws_json1_1SupportedIdentityProvidersListType(input.SupportedIdentityProviders, context),
9754
- })), (input.TokenValidityUnits !== undefined &&
9755
- input.TokenValidityUnits !== null && {
9677
+ })), (input.TokenValidityUnits != null && {
9756
9678
  TokenValidityUnits: serializeAws_json1_1TokenValidityUnitsType(input.TokenValidityUnits, context),
9757
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.WriteAttributes !== undefined &&
9758
- input.WriteAttributes !== null && {
9679
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.WriteAttributes != null && {
9759
9680
  WriteAttributes: serializeAws_json1_1ClientPermissionListType(input.WriteAttributes, context),
9760
9681
  }));
9761
9682
  };
9762
9683
  var serializeAws_json1_1CreateUserPoolDomainRequest = function (input, context) {
9763
- return __assign(__assign(__assign({}, (input.CustomDomainConfig !== undefined &&
9764
- input.CustomDomainConfig !== null && {
9684
+ return __assign(__assign(__assign({}, (input.CustomDomainConfig != null && {
9765
9685
  CustomDomainConfig: serializeAws_json1_1CustomDomainConfigType(input.CustomDomainConfig, context),
9766
- })), (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9686
+ })), (input.Domain != null && { Domain: input.Domain })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9767
9687
  };
9768
9688
  var serializeAws_json1_1CreateUserPoolRequest = function (input, context) {
9769
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountRecoverySetting !== undefined &&
9770
- input.AccountRecoverySetting !== null && {
9689
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountRecoverySetting != null && {
9771
9690
  AccountRecoverySetting: serializeAws_json1_1AccountRecoverySettingType(input.AccountRecoverySetting, context),
9772
- })), (input.AdminCreateUserConfig !== undefined &&
9773
- input.AdminCreateUserConfig !== null && {
9691
+ })), (input.AdminCreateUserConfig != null && {
9774
9692
  AdminCreateUserConfig: serializeAws_json1_1AdminCreateUserConfigType(input.AdminCreateUserConfig, context),
9775
- })), (input.AliasAttributes !== undefined &&
9776
- input.AliasAttributes !== null && {
9693
+ })), (input.AliasAttributes != null && {
9777
9694
  AliasAttributes: serializeAws_json1_1AliasAttributesListType(input.AliasAttributes, context),
9778
- })), (input.AutoVerifiedAttributes !== undefined &&
9779
- input.AutoVerifiedAttributes !== null && {
9695
+ })), (input.AutoVerifiedAttributes != null && {
9780
9696
  AutoVerifiedAttributes: serializeAws_json1_1VerifiedAttributesListType(input.AutoVerifiedAttributes, context),
9781
- })), (input.DeviceConfiguration !== undefined &&
9782
- input.DeviceConfiguration !== null && {
9697
+ })), (input.DeviceConfiguration != null && {
9783
9698
  DeviceConfiguration: serializeAws_json1_1DeviceConfigurationType(input.DeviceConfiguration, context),
9784
- })), (input.EmailConfiguration !== undefined &&
9785
- input.EmailConfiguration !== null && {
9699
+ })), (input.EmailConfiguration != null && {
9786
9700
  EmailConfiguration: serializeAws_json1_1EmailConfigurationType(input.EmailConfiguration, context),
9787
- })), (input.EmailVerificationMessage !== undefined &&
9788
- input.EmailVerificationMessage !== null && { EmailVerificationMessage: input.EmailVerificationMessage })), (input.EmailVerificationSubject !== undefined &&
9789
- input.EmailVerificationSubject !== null && { EmailVerificationSubject: input.EmailVerificationSubject })), (input.LambdaConfig !== undefined &&
9790
- input.LambdaConfig !== null && {
9701
+ })), (input.EmailVerificationMessage != null && { EmailVerificationMessage: input.EmailVerificationMessage })), (input.EmailVerificationSubject != null && { EmailVerificationSubject: input.EmailVerificationSubject })), (input.LambdaConfig != null && {
9791
9702
  LambdaConfig: serializeAws_json1_1LambdaConfigType(input.LambdaConfig, context),
9792
- })), (input.MfaConfiguration !== undefined &&
9793
- input.MfaConfiguration !== null && { MfaConfiguration: input.MfaConfiguration })), (input.Policies !== undefined &&
9794
- input.Policies !== null && { Policies: serializeAws_json1_1UserPoolPolicyType(input.Policies, context) })), (input.PoolName !== undefined && input.PoolName !== null && { PoolName: input.PoolName })), (input.Schema !== undefined &&
9795
- input.Schema !== null && { Schema: serializeAws_json1_1SchemaAttributesListType(input.Schema, context) })), (input.SmsAuthenticationMessage !== undefined &&
9796
- input.SmsAuthenticationMessage !== null && { SmsAuthenticationMessage: input.SmsAuthenticationMessage })), (input.SmsConfiguration !== undefined &&
9797
- input.SmsConfiguration !== null && {
9703
+ })), (input.MfaConfiguration != null && { MfaConfiguration: input.MfaConfiguration })), (input.Policies != null && { Policies: serializeAws_json1_1UserPoolPolicyType(input.Policies, context) })), (input.PoolName != null && { PoolName: input.PoolName })), (input.Schema != null && { Schema: serializeAws_json1_1SchemaAttributesListType(input.Schema, context) })), (input.SmsAuthenticationMessage != null && { SmsAuthenticationMessage: input.SmsAuthenticationMessage })), (input.SmsConfiguration != null && {
9798
9704
  SmsConfiguration: serializeAws_json1_1SmsConfigurationType(input.SmsConfiguration, context),
9799
- })), (input.SmsVerificationMessage !== undefined &&
9800
- input.SmsVerificationMessage !== null && { SmsVerificationMessage: input.SmsVerificationMessage })), (input.UserAttributeUpdateSettings !== undefined &&
9801
- input.UserAttributeUpdateSettings !== null && {
9705
+ })), (input.SmsVerificationMessage != null && { SmsVerificationMessage: input.SmsVerificationMessage })), (input.UserAttributeUpdateSettings != null && {
9802
9706
  UserAttributeUpdateSettings: serializeAws_json1_1UserAttributeUpdateSettingsType(input.UserAttributeUpdateSettings, context),
9803
- })), (input.UserPoolAddOns !== undefined &&
9804
- input.UserPoolAddOns !== null && {
9707
+ })), (input.UserPoolAddOns != null && {
9805
9708
  UserPoolAddOns: serializeAws_json1_1UserPoolAddOnsType(input.UserPoolAddOns, context),
9806
- })), (input.UserPoolTags !== undefined &&
9807
- input.UserPoolTags !== null && {
9709
+ })), (input.UserPoolTags != null && {
9808
9710
  UserPoolTags: serializeAws_json1_1UserPoolTagsType(input.UserPoolTags, context),
9809
- })), (input.UsernameAttributes !== undefined &&
9810
- input.UsernameAttributes !== null && {
9711
+ })), (input.UsernameAttributes != null && {
9811
9712
  UsernameAttributes: serializeAws_json1_1UsernameAttributesListType(input.UsernameAttributes, context),
9812
- })), (input.UsernameConfiguration !== undefined &&
9813
- input.UsernameConfiguration !== null && {
9713
+ })), (input.UsernameConfiguration != null && {
9814
9714
  UsernameConfiguration: serializeAws_json1_1UsernameConfigurationType(input.UsernameConfiguration, context),
9815
- })), (input.VerificationMessageTemplate !== undefined &&
9816
- input.VerificationMessageTemplate !== null && {
9715
+ })), (input.VerificationMessageTemplate != null && {
9817
9716
  VerificationMessageTemplate: serializeAws_json1_1VerificationMessageTemplateType(input.VerificationMessageTemplate, context),
9818
9717
  }));
9819
9718
  };
@@ -9828,41 +9727,39 @@ var serializeAws_json1_1CustomAttributesListType = function (input, context) {
9828
9727
  });
9829
9728
  };
9830
9729
  var serializeAws_json1_1CustomDomainConfigType = function (input, context) {
9831
- return __assign({}, (input.CertificateArn !== undefined &&
9832
- input.CertificateArn !== null && { CertificateArn: input.CertificateArn }));
9730
+ return __assign({}, (input.CertificateArn != null && { CertificateArn: input.CertificateArn }));
9833
9731
  };
9834
9732
  var serializeAws_json1_1CustomEmailLambdaVersionConfigType = function (input, context) {
9835
- return __assign(__assign({}, (input.LambdaArn !== undefined && input.LambdaArn !== null && { LambdaArn: input.LambdaArn })), (input.LambdaVersion !== undefined && input.LambdaVersion !== null && { LambdaVersion: input.LambdaVersion }));
9733
+ return __assign(__assign({}, (input.LambdaArn != null && { LambdaArn: input.LambdaArn })), (input.LambdaVersion != null && { LambdaVersion: input.LambdaVersion }));
9836
9734
  };
9837
9735
  var serializeAws_json1_1CustomSMSLambdaVersionConfigType = function (input, context) {
9838
- return __assign(__assign({}, (input.LambdaArn !== undefined && input.LambdaArn !== null && { LambdaArn: input.LambdaArn })), (input.LambdaVersion !== undefined && input.LambdaVersion !== null && { LambdaVersion: input.LambdaVersion }));
9736
+ return __assign(__assign({}, (input.LambdaArn != null && { LambdaArn: input.LambdaArn })), (input.LambdaVersion != null && { LambdaVersion: input.LambdaVersion }));
9839
9737
  };
9840
9738
  var serializeAws_json1_1DeleteGroupRequest = function (input, context) {
9841
- return __assign(__assign({}, (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9739
+ return __assign(__assign({}, (input.GroupName != null && { GroupName: input.GroupName })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9842
9740
  };
9843
9741
  var serializeAws_json1_1DeleteIdentityProviderRequest = function (input, context) {
9844
- return __assign(__assign({}, (input.ProviderName !== undefined && input.ProviderName !== null && { ProviderName: input.ProviderName })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9742
+ return __assign(__assign({}, (input.ProviderName != null && { ProviderName: input.ProviderName })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9845
9743
  };
9846
9744
  var serializeAws_json1_1DeleteResourceServerRequest = function (input, context) {
9847
- return __assign(__assign({}, (input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9745
+ return __assign(__assign({}, (input.Identifier != null && { Identifier: input.Identifier })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9848
9746
  };
9849
9747
  var serializeAws_json1_1DeleteUserAttributesRequest = function (input, context) {
9850
- return __assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.UserAttributeNames !== undefined &&
9851
- input.UserAttributeNames !== null && {
9748
+ return __assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.UserAttributeNames != null && {
9852
9749
  UserAttributeNames: serializeAws_json1_1AttributeNameListType(input.UserAttributeNames, context),
9853
9750
  }));
9854
9751
  };
9855
9752
  var serializeAws_json1_1DeleteUserPoolClientRequest = function (input, context) {
9856
- return __assign(__assign({}, (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9753
+ return __assign(__assign({}, (input.ClientId != null && { ClientId: input.ClientId })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9857
9754
  };
9858
9755
  var serializeAws_json1_1DeleteUserPoolDomainRequest = function (input, context) {
9859
- return __assign(__assign({}, (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9756
+ return __assign(__assign({}, (input.Domain != null && { Domain: input.Domain })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9860
9757
  };
9861
9758
  var serializeAws_json1_1DeleteUserPoolRequest = function (input, context) {
9862
- return __assign({}, (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9759
+ return __assign({}, (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9863
9760
  };
9864
9761
  var serializeAws_json1_1DeleteUserRequest = function (input, context) {
9865
- return __assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken }));
9762
+ return __assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken }));
9866
9763
  };
9867
9764
  var serializeAws_json1_1DeliveryMediumListType = function (input, context) {
9868
9765
  return input
@@ -9875,44 +9772,38 @@ var serializeAws_json1_1DeliveryMediumListType = function (input, context) {
9875
9772
  });
9876
9773
  };
9877
9774
  var serializeAws_json1_1DescribeIdentityProviderRequest = function (input, context) {
9878
- return __assign(__assign({}, (input.ProviderName !== undefined && input.ProviderName !== null && { ProviderName: input.ProviderName })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9775
+ return __assign(__assign({}, (input.ProviderName != null && { ProviderName: input.ProviderName })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9879
9776
  };
9880
9777
  var serializeAws_json1_1DescribeResourceServerRequest = function (input, context) {
9881
- return __assign(__assign({}, (input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9778
+ return __assign(__assign({}, (input.Identifier != null && { Identifier: input.Identifier })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9882
9779
  };
9883
9780
  var serializeAws_json1_1DescribeRiskConfigurationRequest = function (input, context) {
9884
- return __assign(__assign({}, (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9781
+ return __assign(__assign({}, (input.ClientId != null && { ClientId: input.ClientId })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9885
9782
  };
9886
9783
  var serializeAws_json1_1DescribeUserImportJobRequest = function (input, context) {
9887
- return __assign(__assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9784
+ return __assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9888
9785
  };
9889
9786
  var serializeAws_json1_1DescribeUserPoolClientRequest = function (input, context) {
9890
- return __assign(__assign({}, (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9787
+ return __assign(__assign({}, (input.ClientId != null && { ClientId: input.ClientId })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9891
9788
  };
9892
9789
  var serializeAws_json1_1DescribeUserPoolDomainRequest = function (input, context) {
9893
- return __assign({}, (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain }));
9790
+ return __assign({}, (input.Domain != null && { Domain: input.Domain }));
9894
9791
  };
9895
9792
  var serializeAws_json1_1DescribeUserPoolRequest = function (input, context) {
9896
- return __assign({}, (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9793
+ return __assign({}, (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9897
9794
  };
9898
9795
  var serializeAws_json1_1DeviceConfigurationType = function (input, context) {
9899
- return __assign(__assign({}, (input.ChallengeRequiredOnNewDevice !== undefined &&
9900
- input.ChallengeRequiredOnNewDevice !== null && {
9796
+ return __assign(__assign({}, (input.ChallengeRequiredOnNewDevice != null && {
9901
9797
  ChallengeRequiredOnNewDevice: input.ChallengeRequiredOnNewDevice,
9902
- })), (input.DeviceOnlyRememberedOnUserPrompt !== undefined &&
9903
- input.DeviceOnlyRememberedOnUserPrompt !== null && {
9798
+ })), (input.DeviceOnlyRememberedOnUserPrompt != null && {
9904
9799
  DeviceOnlyRememberedOnUserPrompt: input.DeviceOnlyRememberedOnUserPrompt,
9905
9800
  }));
9906
9801
  };
9907
9802
  var serializeAws_json1_1DeviceSecretVerifierConfigType = function (input, context) {
9908
- return __assign(__assign({}, (input.PasswordVerifier !== undefined &&
9909
- input.PasswordVerifier !== null && { PasswordVerifier: input.PasswordVerifier })), (input.Salt !== undefined && input.Salt !== null && { Salt: input.Salt }));
9803
+ return __assign(__assign({}, (input.PasswordVerifier != null && { PasswordVerifier: input.PasswordVerifier })), (input.Salt != null && { Salt: input.Salt }));
9910
9804
  };
9911
9805
  var serializeAws_json1_1EmailConfigurationType = function (input, context) {
9912
- return __assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationSet !== undefined &&
9913
- input.ConfigurationSet !== null && { ConfigurationSet: input.ConfigurationSet })), (input.EmailSendingAccount !== undefined &&
9914
- input.EmailSendingAccount !== null && { EmailSendingAccount: input.EmailSendingAccount })), (input.From !== undefined && input.From !== null && { From: input.From })), (input.ReplyToEmailAddress !== undefined &&
9915
- input.ReplyToEmailAddress !== null && { ReplyToEmailAddress: input.ReplyToEmailAddress })), (input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }));
9806
+ return __assign(__assign(__assign(__assign(__assign({}, (input.ConfigurationSet != null && { ConfigurationSet: input.ConfigurationSet })), (input.EmailSendingAccount != null && { EmailSendingAccount: input.EmailSendingAccount })), (input.From != null && { From: input.From })), (input.ReplyToEmailAddress != null && { ReplyToEmailAddress: input.ReplyToEmailAddress })), (input.SourceArn != null && { SourceArn: input.SourceArn }));
9916
9807
  };
9917
9808
  var serializeAws_json1_1EventFiltersType = function (input, context) {
9918
9809
  return input
@@ -9935,55 +9826,51 @@ var serializeAws_json1_1ExplicitAuthFlowsListType = function (input, context) {
9935
9826
  });
9936
9827
  };
9937
9828
  var serializeAws_json1_1ForgetDeviceRequest = function (input, context) {
9938
- return __assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.DeviceKey !== undefined && input.DeviceKey !== null && { DeviceKey: input.DeviceKey }));
9829
+ return __assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.DeviceKey != null && { DeviceKey: input.DeviceKey }));
9939
9830
  };
9940
9831
  var serializeAws_json1_1ForgotPasswordRequest = function (input, context) {
9941
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata !== undefined &&
9942
- input.AnalyticsMetadata !== null && {
9832
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata != null && {
9943
9833
  AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
9944
- })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientMetadata !== undefined &&
9945
- input.ClientMetadata !== null && {
9834
+ })), (input.ClientId != null && { ClientId: input.ClientId })), (input.ClientMetadata != null && {
9946
9835
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
9947
- })), (input.SecretHash !== undefined && input.SecretHash !== null && { SecretHash: input.SecretHash })), (input.UserContextData !== undefined &&
9948
- input.UserContextData !== null && {
9836
+ })), (input.SecretHash != null && { SecretHash: input.SecretHash })), (input.UserContextData != null && {
9949
9837
  UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
9950
- })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
9838
+ })), (input.Username != null && { Username: input.Username }));
9951
9839
  };
9952
9840
  var serializeAws_json1_1GetCSVHeaderRequest = function (input, context) {
9953
- return __assign({}, (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9841
+ return __assign({}, (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9954
9842
  };
9955
9843
  var serializeAws_json1_1GetDeviceRequest = function (input, context) {
9956
- return __assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.DeviceKey !== undefined && input.DeviceKey !== null && { DeviceKey: input.DeviceKey }));
9844
+ return __assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.DeviceKey != null && { DeviceKey: input.DeviceKey }));
9957
9845
  };
9958
9846
  var serializeAws_json1_1GetGroupRequest = function (input, context) {
9959
- return __assign(__assign({}, (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9847
+ return __assign(__assign({}, (input.GroupName != null && { GroupName: input.GroupName })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9960
9848
  };
9961
9849
  var serializeAws_json1_1GetIdentityProviderByIdentifierRequest = function (input, context) {
9962
- return __assign(__assign({}, (input.IdpIdentifier !== undefined && input.IdpIdentifier !== null && { IdpIdentifier: input.IdpIdentifier })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9850
+ return __assign(__assign({}, (input.IdpIdentifier != null && { IdpIdentifier: input.IdpIdentifier })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9963
9851
  };
9964
9852
  var serializeAws_json1_1GetSigningCertificateRequest = function (input, context) {
9965
- return __assign({}, (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9853
+ return __assign({}, (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9966
9854
  };
9967
9855
  var serializeAws_json1_1GetUICustomizationRequest = function (input, context) {
9968
- return __assign(__assign({}, (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9856
+ return __assign(__assign({}, (input.ClientId != null && { ClientId: input.ClientId })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9969
9857
  };
9970
9858
  var serializeAws_json1_1GetUserAttributeVerificationCodeRequest = function (input, context) {
9971
- return __assign(__assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName })), (input.ClientMetadata !== undefined &&
9972
- input.ClientMetadata !== null && {
9859
+ return __assign(__assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.AttributeName != null && { AttributeName: input.AttributeName })), (input.ClientMetadata != null && {
9973
9860
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
9974
9861
  }));
9975
9862
  };
9976
9863
  var serializeAws_json1_1GetUserPoolMfaConfigRequest = function (input, context) {
9977
- return __assign({}, (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9864
+ return __assign({}, (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
9978
9865
  };
9979
9866
  var serializeAws_json1_1GetUserRequest = function (input, context) {
9980
- return __assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken }));
9867
+ return __assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken }));
9981
9868
  };
9982
9869
  var serializeAws_json1_1GlobalSignOutRequest = function (input, context) {
9983
- return __assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken }));
9870
+ return __assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken }));
9984
9871
  };
9985
9872
  var serializeAws_json1_1HttpHeader = function (input, context) {
9986
- return __assign(__assign({}, (input.headerName !== undefined && input.headerName !== null && { headerName: input.headerName })), (input.headerValue !== undefined && input.headerValue !== null && { headerValue: input.headerValue }));
9873
+ return __assign(__assign({}, (input.headerName != null && { headerName: input.headerName })), (input.headerValue != null && { headerValue: input.headerValue }));
9987
9874
  };
9988
9875
  var serializeAws_json1_1HttpHeaderList = function (input, context) {
9989
9876
  return input
@@ -10006,71 +9893,56 @@ var serializeAws_json1_1IdpIdentifiersListType = function (input, context) {
10006
9893
  });
10007
9894
  };
10008
9895
  var serializeAws_json1_1InitiateAuthRequest = function (input, context) {
10009
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata !== undefined &&
10010
- input.AnalyticsMetadata !== null && {
9896
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata != null && {
10011
9897
  AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
10012
- })), (input.AuthFlow !== undefined && input.AuthFlow !== null && { AuthFlow: input.AuthFlow })), (input.AuthParameters !== undefined &&
10013
- input.AuthParameters !== null && {
9898
+ })), (input.AuthFlow != null && { AuthFlow: input.AuthFlow })), (input.AuthParameters != null && {
10014
9899
  AuthParameters: serializeAws_json1_1AuthParametersType(input.AuthParameters, context),
10015
- })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientMetadata !== undefined &&
10016
- input.ClientMetadata !== null && {
9900
+ })), (input.ClientId != null && { ClientId: input.ClientId })), (input.ClientMetadata != null && {
10017
9901
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
10018
- })), (input.UserContextData !== undefined &&
10019
- input.UserContextData !== null && {
9902
+ })), (input.UserContextData != null && {
10020
9903
  UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
10021
9904
  }));
10022
9905
  };
10023
9906
  var serializeAws_json1_1LambdaConfigType = function (input, context) {
10024
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CreateAuthChallenge !== undefined &&
10025
- input.CreateAuthChallenge !== null && { CreateAuthChallenge: input.CreateAuthChallenge })), (input.CustomEmailSender !== undefined &&
10026
- input.CustomEmailSender !== null && {
9907
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.CreateAuthChallenge != null && { CreateAuthChallenge: input.CreateAuthChallenge })), (input.CustomEmailSender != null && {
10027
9908
  CustomEmailSender: serializeAws_json1_1CustomEmailLambdaVersionConfigType(input.CustomEmailSender, context),
10028
- })), (input.CustomMessage !== undefined && input.CustomMessage !== null && { CustomMessage: input.CustomMessage })), (input.CustomSMSSender !== undefined &&
10029
- input.CustomSMSSender !== null && {
9909
+ })), (input.CustomMessage != null && { CustomMessage: input.CustomMessage })), (input.CustomSMSSender != null && {
10030
9910
  CustomSMSSender: serializeAws_json1_1CustomSMSLambdaVersionConfigType(input.CustomSMSSender, context),
10031
- })), (input.DefineAuthChallenge !== undefined &&
10032
- input.DefineAuthChallenge !== null && { DefineAuthChallenge: input.DefineAuthChallenge })), (input.KMSKeyID !== undefined && input.KMSKeyID !== null && { KMSKeyID: input.KMSKeyID })), (input.PostAuthentication !== undefined &&
10033
- input.PostAuthentication !== null && { PostAuthentication: input.PostAuthentication })), (input.PostConfirmation !== undefined &&
10034
- input.PostConfirmation !== null && { PostConfirmation: input.PostConfirmation })), (input.PreAuthentication !== undefined &&
10035
- input.PreAuthentication !== null && { PreAuthentication: input.PreAuthentication })), (input.PreSignUp !== undefined && input.PreSignUp !== null && { PreSignUp: input.PreSignUp })), (input.PreTokenGeneration !== undefined &&
10036
- input.PreTokenGeneration !== null && { PreTokenGeneration: input.PreTokenGeneration })), (input.UserMigration !== undefined && input.UserMigration !== null && { UserMigration: input.UserMigration })), (input.VerifyAuthChallengeResponse !== undefined &&
10037
- input.VerifyAuthChallengeResponse !== null && { VerifyAuthChallengeResponse: input.VerifyAuthChallengeResponse }));
9911
+ })), (input.DefineAuthChallenge != null && { DefineAuthChallenge: input.DefineAuthChallenge })), (input.KMSKeyID != null && { KMSKeyID: input.KMSKeyID })), (input.PostAuthentication != null && { PostAuthentication: input.PostAuthentication })), (input.PostConfirmation != null && { PostConfirmation: input.PostConfirmation })), (input.PreAuthentication != null && { PreAuthentication: input.PreAuthentication })), (input.PreSignUp != null && { PreSignUp: input.PreSignUp })), (input.PreTokenGeneration != null && { PreTokenGeneration: input.PreTokenGeneration })), (input.UserMigration != null && { UserMigration: input.UserMigration })), (input.VerifyAuthChallengeResponse != null && {
9912
+ VerifyAuthChallengeResponse: input.VerifyAuthChallengeResponse,
9913
+ }));
10038
9914
  };
10039
9915
  var serializeAws_json1_1ListDevicesRequest = function (input, context) {
10040
- return __assign(__assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.PaginationToken !== undefined &&
10041
- input.PaginationToken !== null && { PaginationToken: input.PaginationToken }));
9916
+ return __assign(__assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.Limit != null && { Limit: input.Limit })), (input.PaginationToken != null && { PaginationToken: input.PaginationToken }));
10042
9917
  };
10043
9918
  var serializeAws_json1_1ListGroupsRequest = function (input, context) {
10044
- return __assign(__assign(__assign({}, (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9919
+ return __assign(__assign(__assign({}, (input.Limit != null && { Limit: input.Limit })), (input.NextToken != null && { NextToken: input.NextToken })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10045
9920
  };
10046
9921
  var serializeAws_json1_1ListIdentityProvidersRequest = function (input, context) {
10047
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9922
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10048
9923
  };
10049
9924
  var serializeAws_json1_1ListResourceServersRequest = function (input, context) {
10050
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9925
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10051
9926
  };
10052
9927
  var serializeAws_json1_1ListTagsForResourceRequest = function (input, context) {
10053
- return __assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
9928
+ return __assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
10054
9929
  };
10055
9930
  var serializeAws_json1_1ListUserImportJobsRequest = function (input, context) {
10056
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.PaginationToken !== undefined &&
10057
- input.PaginationToken !== null && { PaginationToken: input.PaginationToken })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9931
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.PaginationToken != null && { PaginationToken: input.PaginationToken })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10058
9932
  };
10059
9933
  var serializeAws_json1_1ListUserPoolClientsRequest = function (input, context) {
10060
- return __assign(__assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9934
+ return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10061
9935
  };
10062
9936
  var serializeAws_json1_1ListUserPoolsRequest = function (input, context) {
10063
- return __assign(__assign({}, (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
9937
+ return __assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
10064
9938
  };
10065
9939
  var serializeAws_json1_1ListUsersInGroupRequest = function (input, context) {
10066
- return __assign(__assign(__assign(__assign({}, (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9940
+ return __assign(__assign(__assign(__assign({}, (input.GroupName != null && { GroupName: input.GroupName })), (input.Limit != null && { Limit: input.Limit })), (input.NextToken != null && { NextToken: input.NextToken })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10067
9941
  };
10068
9942
  var serializeAws_json1_1ListUsersRequest = function (input, context) {
10069
- return __assign(__assign(__assign(__assign(__assign({}, (input.AttributesToGet !== undefined &&
10070
- input.AttributesToGet !== null && {
9943
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AttributesToGet != null && {
10071
9944
  AttributesToGet: serializeAws_json1_1SearchedAttributeNamesListType(input.AttributesToGet, context),
10072
- })), (input.Filter !== undefined && input.Filter !== null && { Filter: input.Filter })), (input.Limit !== undefined && input.Limit !== null && { Limit: input.Limit })), (input.PaginationToken !== undefined &&
10073
- input.PaginationToken !== null && { PaginationToken: input.PaginationToken })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
9945
+ })), (input.Filter != null && { Filter: input.Filter })), (input.Limit != null && { Limit: input.Limit })), (input.PaginationToken != null && { PaginationToken: input.PaginationToken })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10074
9946
  };
10075
9947
  var serializeAws_json1_1LogoutURLsListType = function (input, context) {
10076
9948
  return input
@@ -10083,7 +9955,7 @@ var serializeAws_json1_1LogoutURLsListType = function (input, context) {
10083
9955
  });
10084
9956
  };
10085
9957
  var serializeAws_json1_1MessageTemplateType = function (input, context) {
10086
- return __assign(__assign(__assign({}, (input.EmailMessage !== undefined && input.EmailMessage !== null && { EmailMessage: input.EmailMessage })), (input.EmailSubject !== undefined && input.EmailSubject !== null && { EmailSubject: input.EmailSubject })), (input.SMSMessage !== undefined && input.SMSMessage !== null && { SMSMessage: input.SMSMessage }));
9958
+ return __assign(__assign(__assign({}, (input.EmailMessage != null && { EmailMessage: input.EmailMessage })), (input.EmailSubject != null && { EmailSubject: input.EmailSubject })), (input.SMSMessage != null && { SMSMessage: input.SMSMessage }));
10087
9959
  };
10088
9960
  var serializeAws_json1_1MFAOptionListType = function (input, context) {
10089
9961
  return input
@@ -10096,22 +9968,18 @@ var serializeAws_json1_1MFAOptionListType = function (input, context) {
10096
9968
  });
10097
9969
  };
10098
9970
  var serializeAws_json1_1MFAOptionType = function (input, context) {
10099
- return __assign(__assign({}, (input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName })), (input.DeliveryMedium !== undefined &&
10100
- input.DeliveryMedium !== null && { DeliveryMedium: input.DeliveryMedium }));
9971
+ return __assign(__assign({}, (input.AttributeName != null && { AttributeName: input.AttributeName })), (input.DeliveryMedium != null && { DeliveryMedium: input.DeliveryMedium }));
10101
9972
  };
10102
9973
  var serializeAws_json1_1NotifyConfigurationType = function (input, context) {
10103
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.BlockEmail !== undefined &&
10104
- input.BlockEmail !== null && { BlockEmail: serializeAws_json1_1NotifyEmailType(input.BlockEmail, context) })), (input.From !== undefined && input.From !== null && { From: input.From })), (input.MfaEmail !== undefined &&
10105
- input.MfaEmail !== null && { MfaEmail: serializeAws_json1_1NotifyEmailType(input.MfaEmail, context) })), (input.NoActionEmail !== undefined &&
10106
- input.NoActionEmail !== null && {
9974
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.BlockEmail != null && { BlockEmail: serializeAws_json1_1NotifyEmailType(input.BlockEmail, context) })), (input.From != null && { From: input.From })), (input.MfaEmail != null && { MfaEmail: serializeAws_json1_1NotifyEmailType(input.MfaEmail, context) })), (input.NoActionEmail != null && {
10107
9975
  NoActionEmail: serializeAws_json1_1NotifyEmailType(input.NoActionEmail, context),
10108
- })), (input.ReplyTo !== undefined && input.ReplyTo !== null && { ReplyTo: input.ReplyTo })), (input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }));
9976
+ })), (input.ReplyTo != null && { ReplyTo: input.ReplyTo })), (input.SourceArn != null && { SourceArn: input.SourceArn }));
10109
9977
  };
10110
9978
  var serializeAws_json1_1NotifyEmailType = function (input, context) {
10111
- return __assign(__assign(__assign({}, (input.HtmlBody !== undefined && input.HtmlBody !== null && { HtmlBody: input.HtmlBody })), (input.Subject !== undefined && input.Subject !== null && { Subject: input.Subject })), (input.TextBody !== undefined && input.TextBody !== null && { TextBody: input.TextBody }));
9979
+ return __assign(__assign(__assign({}, (input.HtmlBody != null && { HtmlBody: input.HtmlBody })), (input.Subject != null && { Subject: input.Subject })), (input.TextBody != null && { TextBody: input.TextBody }));
10112
9980
  };
10113
9981
  var serializeAws_json1_1NumberAttributeConstraintsType = function (input, context) {
10114
- return __assign(__assign({}, (input.MaxValue !== undefined && input.MaxValue !== null && { MaxValue: input.MaxValue })), (input.MinValue !== undefined && input.MinValue !== null && { MinValue: input.MinValue }));
9982
+ return __assign(__assign({}, (input.MaxValue != null && { MaxValue: input.MaxValue })), (input.MinValue != null && { MinValue: input.MinValue }));
10115
9983
  };
10116
9984
  var serializeAws_json1_1OAuthFlowsType = function (input, context) {
10117
9985
  return input
@@ -10124,12 +9992,7 @@ var serializeAws_json1_1OAuthFlowsType = function (input, context) {
10124
9992
  });
10125
9993
  };
10126
9994
  var serializeAws_json1_1PasswordPolicyType = function (input, context) {
10127
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.MinimumLength !== undefined && input.MinimumLength !== null && { MinimumLength: input.MinimumLength })), (input.RequireLowercase !== undefined &&
10128
- input.RequireLowercase !== null && { RequireLowercase: input.RequireLowercase })), (input.RequireNumbers !== undefined &&
10129
- input.RequireNumbers !== null && { RequireNumbers: input.RequireNumbers })), (input.RequireSymbols !== undefined &&
10130
- input.RequireSymbols !== null && { RequireSymbols: input.RequireSymbols })), (input.RequireUppercase !== undefined &&
10131
- input.RequireUppercase !== null && { RequireUppercase: input.RequireUppercase })), (input.TemporaryPasswordValidityDays !== undefined &&
10132
- input.TemporaryPasswordValidityDays !== null && {
9995
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.MinimumLength != null && { MinimumLength: input.MinimumLength })), (input.RequireLowercase != null && { RequireLowercase: input.RequireLowercase })), (input.RequireNumbers != null && { RequireNumbers: input.RequireNumbers })), (input.RequireSymbols != null && { RequireSymbols: input.RequireSymbols })), (input.RequireUppercase != null && { RequireUppercase: input.RequireUppercase })), (input.TemporaryPasswordValidityDays != null && {
10133
9996
  TemporaryPasswordValidityDays: input.TemporaryPasswordValidityDays,
10134
9997
  }));
10135
9998
  };
@@ -10144,9 +10007,7 @@ var serializeAws_json1_1ProviderDetailsType = function (input, context) {
10144
10007
  }, {});
10145
10008
  };
10146
10009
  var serializeAws_json1_1ProviderUserIdentifierType = function (input, context) {
10147
- return __assign(__assign(__assign({}, (input.ProviderAttributeName !== undefined &&
10148
- input.ProviderAttributeName !== null && { ProviderAttributeName: input.ProviderAttributeName })), (input.ProviderAttributeValue !== undefined &&
10149
- input.ProviderAttributeValue !== null && { ProviderAttributeValue: input.ProviderAttributeValue })), (input.ProviderName !== undefined && input.ProviderName !== null && { ProviderName: input.ProviderName }));
10010
+ return __assign(__assign(__assign({}, (input.ProviderAttributeName != null && { ProviderAttributeName: input.ProviderAttributeName })), (input.ProviderAttributeValue != null && { ProviderAttributeValue: input.ProviderAttributeValue })), (input.ProviderName != null && { ProviderName: input.ProviderName }));
10150
10011
  };
10151
10012
  var serializeAws_json1_1RecoveryMechanismsType = function (input, context) {
10152
10013
  return input
@@ -10159,19 +10020,16 @@ var serializeAws_json1_1RecoveryMechanismsType = function (input, context) {
10159
10020
  });
10160
10021
  };
10161
10022
  var serializeAws_json1_1RecoveryOptionType = function (input, context) {
10162
- return __assign(__assign({}, (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Priority !== undefined && input.Priority !== null && { Priority: input.Priority }));
10023
+ return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Priority != null && { Priority: input.Priority }));
10163
10024
  };
10164
10025
  var serializeAws_json1_1ResendConfirmationCodeRequest = function (input, context) {
10165
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata !== undefined &&
10166
- input.AnalyticsMetadata !== null && {
10026
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata != null && {
10167
10027
  AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
10168
- })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientMetadata !== undefined &&
10169
- input.ClientMetadata !== null && {
10028
+ })), (input.ClientId != null && { ClientId: input.ClientId })), (input.ClientMetadata != null && {
10170
10029
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
10171
- })), (input.SecretHash !== undefined && input.SecretHash !== null && { SecretHash: input.SecretHash })), (input.UserContextData !== undefined &&
10172
- input.UserContextData !== null && {
10030
+ })), (input.SecretHash != null && { SecretHash: input.SecretHash })), (input.UserContextData != null && {
10173
10031
  UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
10174
- })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
10032
+ })), (input.Username != null && { Username: input.Username }));
10175
10033
  };
10176
10034
  var serializeAws_json1_1ResourceServerScopeListType = function (input, context) {
10177
10035
  return input
@@ -10184,33 +10042,26 @@ var serializeAws_json1_1ResourceServerScopeListType = function (input, context)
10184
10042
  });
10185
10043
  };
10186
10044
  var serializeAws_json1_1ResourceServerScopeType = function (input, context) {
10187
- return __assign(__assign({}, (input.ScopeDescription !== undefined &&
10188
- input.ScopeDescription !== null && { ScopeDescription: input.ScopeDescription })), (input.ScopeName !== undefined && input.ScopeName !== null && { ScopeName: input.ScopeName }));
10045
+ return __assign(__assign({}, (input.ScopeDescription != null && { ScopeDescription: input.ScopeDescription })), (input.ScopeName != null && { ScopeName: input.ScopeName }));
10189
10046
  };
10190
10047
  var serializeAws_json1_1RespondToAuthChallengeRequest = function (input, context) {
10191
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata !== undefined &&
10192
- input.AnalyticsMetadata !== null && {
10048
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata != null && {
10193
10049
  AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
10194
- })), (input.ChallengeName !== undefined && input.ChallengeName !== null && { ChallengeName: input.ChallengeName })), (input.ChallengeResponses !== undefined &&
10195
- input.ChallengeResponses !== null && {
10050
+ })), (input.ChallengeName != null && { ChallengeName: input.ChallengeName })), (input.ChallengeResponses != null && {
10196
10051
  ChallengeResponses: serializeAws_json1_1ChallengeResponsesType(input.ChallengeResponses, context),
10197
- })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientMetadata !== undefined &&
10198
- input.ClientMetadata !== null && {
10052
+ })), (input.ClientId != null && { ClientId: input.ClientId })), (input.ClientMetadata != null && {
10199
10053
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
10200
- })), (input.Session !== undefined && input.Session !== null && { Session: input.Session })), (input.UserContextData !== undefined &&
10201
- input.UserContextData !== null && {
10054
+ })), (input.Session != null && { Session: input.Session })), (input.UserContextData != null && {
10202
10055
  UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
10203
10056
  }));
10204
10057
  };
10205
10058
  var serializeAws_json1_1RevokeTokenRequest = function (input, context) {
10206
- return __assign(__assign(__assign({}, (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientSecret !== undefined && input.ClientSecret !== null && { ClientSecret: input.ClientSecret })), (input.Token !== undefined && input.Token !== null && { Token: input.Token }));
10059
+ return __assign(__assign(__assign({}, (input.ClientId != null && { ClientId: input.ClientId })), (input.ClientSecret != null && { ClientSecret: input.ClientSecret })), (input.Token != null && { Token: input.Token }));
10207
10060
  };
10208
10061
  var serializeAws_json1_1RiskExceptionConfigurationType = function (input, context) {
10209
- return __assign(__assign({}, (input.BlockedIPRangeList !== undefined &&
10210
- input.BlockedIPRangeList !== null && {
10062
+ return __assign(__assign({}, (input.BlockedIPRangeList != null && {
10211
10063
  BlockedIPRangeList: serializeAws_json1_1BlockedIPRangeListType(input.BlockedIPRangeList, context),
10212
- })), (input.SkippedIPRangeList !== undefined &&
10213
- input.SkippedIPRangeList !== null && {
10064
+ })), (input.SkippedIPRangeList != null && {
10214
10065
  SkippedIPRangeList: serializeAws_json1_1SkippedIPRangeListType(input.SkippedIPRangeList, context),
10215
10066
  }));
10216
10067
  };
@@ -10225,13 +10076,9 @@ var serializeAws_json1_1SchemaAttributesListType = function (input, context) {
10225
10076
  });
10226
10077
  };
10227
10078
  var serializeAws_json1_1SchemaAttributeType = function (input, context) {
10228
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributeDataType !== undefined &&
10229
- input.AttributeDataType !== null && { AttributeDataType: input.AttributeDataType })), (input.DeveloperOnlyAttribute !== undefined &&
10230
- input.DeveloperOnlyAttribute !== null && { DeveloperOnlyAttribute: input.DeveloperOnlyAttribute })), (input.Mutable !== undefined && input.Mutable !== null && { Mutable: input.Mutable })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.NumberAttributeConstraints !== undefined &&
10231
- input.NumberAttributeConstraints !== null && {
10079
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttributeDataType != null && { AttributeDataType: input.AttributeDataType })), (input.DeveloperOnlyAttribute != null && { DeveloperOnlyAttribute: input.DeveloperOnlyAttribute })), (input.Mutable != null && { Mutable: input.Mutable })), (input.Name != null && { Name: input.Name })), (input.NumberAttributeConstraints != null && {
10232
10080
  NumberAttributeConstraints: serializeAws_json1_1NumberAttributeConstraintsType(input.NumberAttributeConstraints, context),
10233
- })), (input.Required !== undefined && input.Required !== null && { Required: input.Required })), (input.StringAttributeConstraints !== undefined &&
10234
- input.StringAttributeConstraints !== null && {
10081
+ })), (input.Required != null && { Required: input.Required })), (input.StringAttributeConstraints != null && {
10235
10082
  StringAttributeConstraints: serializeAws_json1_1StringAttributeConstraintsType(input.StringAttributeConstraints, context),
10236
10083
  }));
10237
10084
  };
@@ -10256,59 +10103,44 @@ var serializeAws_json1_1SearchedAttributeNamesListType = function (input, contex
10256
10103
  });
10257
10104
  };
10258
10105
  var serializeAws_json1_1SetRiskConfigurationRequest = function (input, context) {
10259
- return __assign(__assign(__assign(__assign(__assign({}, (input.AccountTakeoverRiskConfiguration !== undefined &&
10260
- input.AccountTakeoverRiskConfiguration !== null && {
10106
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AccountTakeoverRiskConfiguration != null && {
10261
10107
  AccountTakeoverRiskConfiguration: serializeAws_json1_1AccountTakeoverRiskConfigurationType(input.AccountTakeoverRiskConfiguration, context),
10262
- })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.CompromisedCredentialsRiskConfiguration !== undefined &&
10263
- input.CompromisedCredentialsRiskConfiguration !== null && {
10108
+ })), (input.ClientId != null && { ClientId: input.ClientId })), (input.CompromisedCredentialsRiskConfiguration != null && {
10264
10109
  CompromisedCredentialsRiskConfiguration: serializeAws_json1_1CompromisedCredentialsRiskConfigurationType(input.CompromisedCredentialsRiskConfiguration, context),
10265
- })), (input.RiskExceptionConfiguration !== undefined &&
10266
- input.RiskExceptionConfiguration !== null && {
10110
+ })), (input.RiskExceptionConfiguration != null && {
10267
10111
  RiskExceptionConfiguration: serializeAws_json1_1RiskExceptionConfigurationType(input.RiskExceptionConfiguration, context),
10268
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
10112
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10269
10113
  };
10270
10114
  var serializeAws_json1_1SetUICustomizationRequest = function (input, context) {
10271
- return __assign(__assign(__assign(__assign({}, (input.CSS !== undefined && input.CSS !== null && { CSS: input.CSS })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ImageFile !== undefined &&
10272
- input.ImageFile !== null && { ImageFile: context.base64Encoder(input.ImageFile) })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
10115
+ return __assign(__assign(__assign(__assign({}, (input.CSS != null && { CSS: input.CSS })), (input.ClientId != null && { ClientId: input.ClientId })), (input.ImageFile != null && { ImageFile: context.base64Encoder(input.ImageFile) })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10273
10116
  };
10274
10117
  var serializeAws_json1_1SetUserMFAPreferenceRequest = function (input, context) {
10275
- return __assign(__assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.SMSMfaSettings !== undefined &&
10276
- input.SMSMfaSettings !== null && {
10118
+ return __assign(__assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.SMSMfaSettings != null && {
10277
10119
  SMSMfaSettings: serializeAws_json1_1SMSMfaSettingsType(input.SMSMfaSettings, context),
10278
- })), (input.SoftwareTokenMfaSettings !== undefined &&
10279
- input.SoftwareTokenMfaSettings !== null && {
10120
+ })), (input.SoftwareTokenMfaSettings != null && {
10280
10121
  SoftwareTokenMfaSettings: serializeAws_json1_1SoftwareTokenMfaSettingsType(input.SoftwareTokenMfaSettings, context),
10281
10122
  }));
10282
10123
  };
10283
10124
  var serializeAws_json1_1SetUserPoolMfaConfigRequest = function (input, context) {
10284
- return __assign(__assign(__assign(__assign({}, (input.MfaConfiguration !== undefined &&
10285
- input.MfaConfiguration !== null && { MfaConfiguration: input.MfaConfiguration })), (input.SmsMfaConfiguration !== undefined &&
10286
- input.SmsMfaConfiguration !== null && {
10125
+ return __assign(__assign(__assign(__assign({}, (input.MfaConfiguration != null && { MfaConfiguration: input.MfaConfiguration })), (input.SmsMfaConfiguration != null && {
10287
10126
  SmsMfaConfiguration: serializeAws_json1_1SmsMfaConfigType(input.SmsMfaConfiguration, context),
10288
- })), (input.SoftwareTokenMfaConfiguration !== undefined &&
10289
- input.SoftwareTokenMfaConfiguration !== null && {
10127
+ })), (input.SoftwareTokenMfaConfiguration != null && {
10290
10128
  SoftwareTokenMfaConfiguration: serializeAws_json1_1SoftwareTokenMfaConfigType(input.SoftwareTokenMfaConfiguration, context),
10291
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
10129
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10292
10130
  };
10293
10131
  var serializeAws_json1_1SetUserSettingsRequest = function (input, context) {
10294
- return __assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.MFAOptions !== undefined &&
10295
- input.MFAOptions !== null && { MFAOptions: serializeAws_json1_1MFAOptionListType(input.MFAOptions, context) }));
10132
+ return __assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.MFAOptions != null && { MFAOptions: serializeAws_json1_1MFAOptionListType(input.MFAOptions, context) }));
10296
10133
  };
10297
10134
  var serializeAws_json1_1SignUpRequest = function (input, context) {
10298
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata !== undefined &&
10299
- input.AnalyticsMetadata !== null && {
10135
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AnalyticsMetadata != null && {
10300
10136
  AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
10301
- })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientMetadata !== undefined &&
10302
- input.ClientMetadata !== null && {
10137
+ })), (input.ClientId != null && { ClientId: input.ClientId })), (input.ClientMetadata != null && {
10303
10138
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
10304
- })), (input.Password !== undefined && input.Password !== null && { Password: input.Password })), (input.SecretHash !== undefined && input.SecretHash !== null && { SecretHash: input.SecretHash })), (input.UserAttributes !== undefined &&
10305
- input.UserAttributes !== null && {
10139
+ })), (input.Password != null && { Password: input.Password })), (input.SecretHash != null && { SecretHash: input.SecretHash })), (input.UserAttributes != null && {
10306
10140
  UserAttributes: serializeAws_json1_1AttributeListType(input.UserAttributes, context),
10307
- })), (input.UserContextData !== undefined &&
10308
- input.UserContextData !== null && {
10141
+ })), (input.UserContextData != null && {
10309
10142
  UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
10310
- })), (input.Username !== undefined && input.Username !== null && { Username: input.Username })), (input.ValidationData !== undefined &&
10311
- input.ValidationData !== null && {
10143
+ })), (input.Username != null && { Username: input.Username })), (input.ValidationData != null && {
10312
10144
  ValidationData: serializeAws_json1_1AttributeListType(input.ValidationData, context),
10313
10145
  }));
10314
10146
  };
@@ -10323,32 +10155,30 @@ var serializeAws_json1_1SkippedIPRangeListType = function (input, context) {
10323
10155
  });
10324
10156
  };
10325
10157
  var serializeAws_json1_1SmsConfigurationType = function (input, context) {
10326
- return __assign(__assign(__assign({}, (input.ExternalId !== undefined && input.ExternalId !== null && { ExternalId: input.ExternalId })), (input.SnsCallerArn !== undefined && input.SnsCallerArn !== null && { SnsCallerArn: input.SnsCallerArn })), (input.SnsRegion !== undefined && input.SnsRegion !== null && { SnsRegion: input.SnsRegion }));
10158
+ return __assign(__assign(__assign({}, (input.ExternalId != null && { ExternalId: input.ExternalId })), (input.SnsCallerArn != null && { SnsCallerArn: input.SnsCallerArn })), (input.SnsRegion != null && { SnsRegion: input.SnsRegion }));
10327
10159
  };
10328
10160
  var serializeAws_json1_1SmsMfaConfigType = function (input, context) {
10329
- return __assign(__assign({}, (input.SmsAuthenticationMessage !== undefined &&
10330
- input.SmsAuthenticationMessage !== null && { SmsAuthenticationMessage: input.SmsAuthenticationMessage })), (input.SmsConfiguration !== undefined &&
10331
- input.SmsConfiguration !== null && {
10161
+ return __assign(__assign({}, (input.SmsAuthenticationMessage != null && { SmsAuthenticationMessage: input.SmsAuthenticationMessage })), (input.SmsConfiguration != null && {
10332
10162
  SmsConfiguration: serializeAws_json1_1SmsConfigurationType(input.SmsConfiguration, context),
10333
10163
  }));
10334
10164
  };
10335
10165
  var serializeAws_json1_1SMSMfaSettingsType = function (input, context) {
10336
- return __assign(__assign({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.PreferredMfa !== undefined && input.PreferredMfa !== null && { PreferredMfa: input.PreferredMfa }));
10166
+ return __assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.PreferredMfa != null && { PreferredMfa: input.PreferredMfa }));
10337
10167
  };
10338
10168
  var serializeAws_json1_1SoftwareTokenMfaConfigType = function (input, context) {
10339
- return __assign({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled }));
10169
+ return __assign({}, (input.Enabled != null && { Enabled: input.Enabled }));
10340
10170
  };
10341
10171
  var serializeAws_json1_1SoftwareTokenMfaSettingsType = function (input, context) {
10342
- return __assign(__assign({}, (input.Enabled !== undefined && input.Enabled !== null && { Enabled: input.Enabled })), (input.PreferredMfa !== undefined && input.PreferredMfa !== null && { PreferredMfa: input.PreferredMfa }));
10172
+ return __assign(__assign({}, (input.Enabled != null && { Enabled: input.Enabled })), (input.PreferredMfa != null && { PreferredMfa: input.PreferredMfa }));
10343
10173
  };
10344
10174
  var serializeAws_json1_1StartUserImportJobRequest = function (input, context) {
10345
- return __assign(__assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
10175
+ return __assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10346
10176
  };
10347
10177
  var serializeAws_json1_1StopUserImportJobRequest = function (input, context) {
10348
- return __assign(__assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
10178
+ return __assign(__assign({}, (input.JobId != null && { JobId: input.JobId })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10349
10179
  };
10350
10180
  var serializeAws_json1_1StringAttributeConstraintsType = function (input, context) {
10351
- return __assign(__assign({}, (input.MaxLength !== undefined && input.MaxLength !== null && { MaxLength: input.MaxLength })), (input.MinLength !== undefined && input.MinLength !== null && { MinLength: input.MinLength }));
10181
+ return __assign(__assign({}, (input.MaxLength != null && { MaxLength: input.MaxLength })), (input.MinLength != null && { MinLength: input.MinLength }));
10352
10182
  };
10353
10183
  var serializeAws_json1_1SupportedIdentityProvidersListType = function (input, context) {
10354
10184
  return input
@@ -10361,150 +10191,104 @@ var serializeAws_json1_1SupportedIdentityProvidersListType = function (input, co
10361
10191
  });
10362
10192
  };
10363
10193
  var serializeAws_json1_1TagResourceRequest = function (input, context) {
10364
- return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.Tags !== undefined &&
10365
- input.Tags !== null && { Tags: serializeAws_json1_1UserPoolTagsType(input.Tags, context) }));
10194
+ return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.Tags != null && { Tags: serializeAws_json1_1UserPoolTagsType(input.Tags, context) }));
10366
10195
  };
10367
10196
  var serializeAws_json1_1TokenValidityUnitsType = function (input, context) {
10368
- return __assign(__assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.IdToken !== undefined && input.IdToken !== null && { IdToken: input.IdToken })), (input.RefreshToken !== undefined && input.RefreshToken !== null && { RefreshToken: input.RefreshToken }));
10197
+ return __assign(__assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.IdToken != null && { IdToken: input.IdToken })), (input.RefreshToken != null && { RefreshToken: input.RefreshToken }));
10369
10198
  };
10370
10199
  var serializeAws_json1_1UntagResourceRequest = function (input, context) {
10371
- return __assign(__assign({}, (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn })), (input.TagKeys !== undefined &&
10372
- input.TagKeys !== null && { TagKeys: serializeAws_json1_1UserPoolTagsListType(input.TagKeys, context) }));
10200
+ return __assign(__assign({}, (input.ResourceArn != null && { ResourceArn: input.ResourceArn })), (input.TagKeys != null && { TagKeys: serializeAws_json1_1UserPoolTagsListType(input.TagKeys, context) }));
10373
10201
  };
10374
10202
  var serializeAws_json1_1UpdateAuthEventFeedbackRequest = function (input, context) {
10375
- return __assign(__assign(__assign(__assign(__assign({}, (input.EventId !== undefined && input.EventId !== null && { EventId: input.EventId })), (input.FeedbackToken !== undefined && input.FeedbackToken !== null && { FeedbackToken: input.FeedbackToken })), (input.FeedbackValue !== undefined && input.FeedbackValue !== null && { FeedbackValue: input.FeedbackValue })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.Username !== undefined && input.Username !== null && { Username: input.Username }));
10203
+ return __assign(__assign(__assign(__assign(__assign({}, (input.EventId != null && { EventId: input.EventId })), (input.FeedbackToken != null && { FeedbackToken: input.FeedbackToken })), (input.FeedbackValue != null && { FeedbackValue: input.FeedbackValue })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.Username != null && { Username: input.Username }));
10376
10204
  };
10377
10205
  var serializeAws_json1_1UpdateDeviceStatusRequest = function (input, context) {
10378
- return __assign(__assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.DeviceKey !== undefined && input.DeviceKey !== null && { DeviceKey: input.DeviceKey })), (input.DeviceRememberedStatus !== undefined &&
10379
- input.DeviceRememberedStatus !== null && { DeviceRememberedStatus: input.DeviceRememberedStatus }));
10206
+ return __assign(__assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.DeviceKey != null && { DeviceKey: input.DeviceKey })), (input.DeviceRememberedStatus != null && { DeviceRememberedStatus: input.DeviceRememberedStatus }));
10380
10207
  };
10381
10208
  var serializeAws_json1_1UpdateGroupRequest = function (input, context) {
10382
- return __assign(__assign(__assign(__assign(__assign({}, (input.Description !== undefined && input.Description !== null && { Description: input.Description })), (input.GroupName !== undefined && input.GroupName !== null && { GroupName: input.GroupName })), (input.Precedence !== undefined && input.Precedence !== null && { Precedence: input.Precedence })), (input.RoleArn !== undefined && input.RoleArn !== null && { RoleArn: input.RoleArn })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
10209
+ return __assign(__assign(__assign(__assign(__assign({}, (input.Description != null && { Description: input.Description })), (input.GroupName != null && { GroupName: input.GroupName })), (input.Precedence != null && { Precedence: input.Precedence })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10383
10210
  };
10384
10211
  var serializeAws_json1_1UpdateIdentityProviderRequest = function (input, context) {
10385
- return __assign(__assign(__assign(__assign(__assign({}, (input.AttributeMapping !== undefined &&
10386
- input.AttributeMapping !== null && {
10212
+ return __assign(__assign(__assign(__assign(__assign({}, (input.AttributeMapping != null && {
10387
10213
  AttributeMapping: serializeAws_json1_1AttributeMappingType(input.AttributeMapping, context),
10388
- })), (input.IdpIdentifiers !== undefined &&
10389
- input.IdpIdentifiers !== null && {
10214
+ })), (input.IdpIdentifiers != null && {
10390
10215
  IdpIdentifiers: serializeAws_json1_1IdpIdentifiersListType(input.IdpIdentifiers, context),
10391
- })), (input.ProviderDetails !== undefined &&
10392
- input.ProviderDetails !== null && {
10216
+ })), (input.ProviderDetails != null && {
10393
10217
  ProviderDetails: serializeAws_json1_1ProviderDetailsType(input.ProviderDetails, context),
10394
- })), (input.ProviderName !== undefined && input.ProviderName !== null && { ProviderName: input.ProviderName })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
10218
+ })), (input.ProviderName != null && { ProviderName: input.ProviderName })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10395
10219
  };
10396
10220
  var serializeAws_json1_1UpdateResourceServerRequest = function (input, context) {
10397
- return __assign(__assign(__assign(__assign({}, (input.Identifier !== undefined && input.Identifier !== null && { Identifier: input.Identifier })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Scopes !== undefined &&
10398
- input.Scopes !== null && { Scopes: serializeAws_json1_1ResourceServerScopeListType(input.Scopes, context) })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
10221
+ return __assign(__assign(__assign(__assign({}, (input.Identifier != null && { Identifier: input.Identifier })), (input.Name != null && { Name: input.Name })), (input.Scopes != null && { Scopes: serializeAws_json1_1ResourceServerScopeListType(input.Scopes, context) })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10399
10222
  };
10400
10223
  var serializeAws_json1_1UpdateUserAttributesRequest = function (input, context) {
10401
- return __assign(__assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.ClientMetadata !== undefined &&
10402
- input.ClientMetadata !== null && {
10224
+ return __assign(__assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.ClientMetadata != null && {
10403
10225
  ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
10404
- })), (input.UserAttributes !== undefined &&
10405
- input.UserAttributes !== null && {
10226
+ })), (input.UserAttributes != null && {
10406
10227
  UserAttributes: serializeAws_json1_1AttributeListType(input.UserAttributes, context),
10407
10228
  }));
10408
10229
  };
10409
10230
  var serializeAws_json1_1UpdateUserPoolClientRequest = function (input, context) {
10410
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessTokenValidity !== undefined &&
10411
- input.AccessTokenValidity !== null && { AccessTokenValidity: input.AccessTokenValidity })), (input.AllowedOAuthFlows !== undefined &&
10412
- input.AllowedOAuthFlows !== null && {
10231
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccessTokenValidity != null && { AccessTokenValidity: input.AccessTokenValidity })), (input.AllowedOAuthFlows != null && {
10413
10232
  AllowedOAuthFlows: serializeAws_json1_1OAuthFlowsType(input.AllowedOAuthFlows, context),
10414
- })), (input.AllowedOAuthFlowsUserPoolClient !== undefined &&
10415
- input.AllowedOAuthFlowsUserPoolClient !== null && {
10233
+ })), (input.AllowedOAuthFlowsUserPoolClient != null && {
10416
10234
  AllowedOAuthFlowsUserPoolClient: input.AllowedOAuthFlowsUserPoolClient,
10417
- })), (input.AllowedOAuthScopes !== undefined &&
10418
- input.AllowedOAuthScopes !== null && {
10235
+ })), (input.AllowedOAuthScopes != null && {
10419
10236
  AllowedOAuthScopes: serializeAws_json1_1ScopeListType(input.AllowedOAuthScopes, context),
10420
- })), (input.AnalyticsConfiguration !== undefined &&
10421
- input.AnalyticsConfiguration !== null && {
10237
+ })), (input.AnalyticsConfiguration != null && {
10422
10238
  AnalyticsConfiguration: serializeAws_json1_1AnalyticsConfigurationType(input.AnalyticsConfiguration, context),
10423
- })), (input.CallbackURLs !== undefined &&
10424
- input.CallbackURLs !== null && {
10239
+ })), (input.CallbackURLs != null && {
10425
10240
  CallbackURLs: serializeAws_json1_1CallbackURLsListType(input.CallbackURLs, context),
10426
- })), (input.ClientId !== undefined && input.ClientId !== null && { ClientId: input.ClientId })), (input.ClientName !== undefined && input.ClientName !== null && { ClientName: input.ClientName })), (input.DefaultRedirectURI !== undefined &&
10427
- input.DefaultRedirectURI !== null && { DefaultRedirectURI: input.DefaultRedirectURI })), (input.EnablePropagateAdditionalUserContextData !== undefined &&
10428
- input.EnablePropagateAdditionalUserContextData !== null && {
10241
+ })), (input.ClientId != null && { ClientId: input.ClientId })), (input.ClientName != null && { ClientName: input.ClientName })), (input.DefaultRedirectURI != null && { DefaultRedirectURI: input.DefaultRedirectURI })), (input.EnablePropagateAdditionalUserContextData != null && {
10429
10242
  EnablePropagateAdditionalUserContextData: input.EnablePropagateAdditionalUserContextData,
10430
- })), (input.EnableTokenRevocation !== undefined &&
10431
- input.EnableTokenRevocation !== null && { EnableTokenRevocation: input.EnableTokenRevocation })), (input.ExplicitAuthFlows !== undefined &&
10432
- input.ExplicitAuthFlows !== null && {
10243
+ })), (input.EnableTokenRevocation != null && { EnableTokenRevocation: input.EnableTokenRevocation })), (input.ExplicitAuthFlows != null && {
10433
10244
  ExplicitAuthFlows: serializeAws_json1_1ExplicitAuthFlowsListType(input.ExplicitAuthFlows, context),
10434
- })), (input.IdTokenValidity !== undefined &&
10435
- input.IdTokenValidity !== null && { IdTokenValidity: input.IdTokenValidity })), (input.LogoutURLs !== undefined &&
10436
- input.LogoutURLs !== null && { LogoutURLs: serializeAws_json1_1LogoutURLsListType(input.LogoutURLs, context) })), (input.PreventUserExistenceErrors !== undefined &&
10437
- input.PreventUserExistenceErrors !== null && { PreventUserExistenceErrors: input.PreventUserExistenceErrors })), (input.ReadAttributes !== undefined &&
10438
- input.ReadAttributes !== null && {
10245
+ })), (input.IdTokenValidity != null && { IdTokenValidity: input.IdTokenValidity })), (input.LogoutURLs != null && { LogoutURLs: serializeAws_json1_1LogoutURLsListType(input.LogoutURLs, context) })), (input.PreventUserExistenceErrors != null && { PreventUserExistenceErrors: input.PreventUserExistenceErrors })), (input.ReadAttributes != null && {
10439
10246
  ReadAttributes: serializeAws_json1_1ClientPermissionListType(input.ReadAttributes, context),
10440
- })), (input.RefreshTokenValidity !== undefined &&
10441
- input.RefreshTokenValidity !== null && { RefreshTokenValidity: input.RefreshTokenValidity })), (input.SupportedIdentityProviders !== undefined &&
10442
- input.SupportedIdentityProviders !== null && {
10247
+ })), (input.RefreshTokenValidity != null && { RefreshTokenValidity: input.RefreshTokenValidity })), (input.SupportedIdentityProviders != null && {
10443
10248
  SupportedIdentityProviders: serializeAws_json1_1SupportedIdentityProvidersListType(input.SupportedIdentityProviders, context),
10444
- })), (input.TokenValidityUnits !== undefined &&
10445
- input.TokenValidityUnits !== null && {
10249
+ })), (input.TokenValidityUnits != null && {
10446
10250
  TokenValidityUnits: serializeAws_json1_1TokenValidityUnitsType(input.TokenValidityUnits, context),
10447
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.WriteAttributes !== undefined &&
10448
- input.WriteAttributes !== null && {
10251
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.WriteAttributes != null && {
10449
10252
  WriteAttributes: serializeAws_json1_1ClientPermissionListType(input.WriteAttributes, context),
10450
10253
  }));
10451
10254
  };
10452
10255
  var serializeAws_json1_1UpdateUserPoolDomainRequest = function (input, context) {
10453
- return __assign(__assign(__assign({}, (input.CustomDomainConfig !== undefined &&
10454
- input.CustomDomainConfig !== null && {
10256
+ return __assign(__assign(__assign({}, (input.CustomDomainConfig != null && {
10455
10257
  CustomDomainConfig: serializeAws_json1_1CustomDomainConfigType(input.CustomDomainConfig, context),
10456
- })), (input.Domain !== undefined && input.Domain !== null && { Domain: input.Domain })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }));
10258
+ })), (input.Domain != null && { Domain: input.Domain })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId }));
10457
10259
  };
10458
10260
  var serializeAws_json1_1UpdateUserPoolRequest = function (input, context) {
10459
- return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountRecoverySetting !== undefined &&
10460
- input.AccountRecoverySetting !== null && {
10261
+ return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AccountRecoverySetting != null && {
10461
10262
  AccountRecoverySetting: serializeAws_json1_1AccountRecoverySettingType(input.AccountRecoverySetting, context),
10462
- })), (input.AdminCreateUserConfig !== undefined &&
10463
- input.AdminCreateUserConfig !== null && {
10263
+ })), (input.AdminCreateUserConfig != null && {
10464
10264
  AdminCreateUserConfig: serializeAws_json1_1AdminCreateUserConfigType(input.AdminCreateUserConfig, context),
10465
- })), (input.AutoVerifiedAttributes !== undefined &&
10466
- input.AutoVerifiedAttributes !== null && {
10265
+ })), (input.AutoVerifiedAttributes != null && {
10467
10266
  AutoVerifiedAttributes: serializeAws_json1_1VerifiedAttributesListType(input.AutoVerifiedAttributes, context),
10468
- })), (input.DeviceConfiguration !== undefined &&
10469
- input.DeviceConfiguration !== null && {
10267
+ })), (input.DeviceConfiguration != null && {
10470
10268
  DeviceConfiguration: serializeAws_json1_1DeviceConfigurationType(input.DeviceConfiguration, context),
10471
- })), (input.EmailConfiguration !== undefined &&
10472
- input.EmailConfiguration !== null && {
10269
+ })), (input.EmailConfiguration != null && {
10473
10270
  EmailConfiguration: serializeAws_json1_1EmailConfigurationType(input.EmailConfiguration, context),
10474
- })), (input.EmailVerificationMessage !== undefined &&
10475
- input.EmailVerificationMessage !== null && { EmailVerificationMessage: input.EmailVerificationMessage })), (input.EmailVerificationSubject !== undefined &&
10476
- input.EmailVerificationSubject !== null && { EmailVerificationSubject: input.EmailVerificationSubject })), (input.LambdaConfig !== undefined &&
10477
- input.LambdaConfig !== null && {
10271
+ })), (input.EmailVerificationMessage != null && { EmailVerificationMessage: input.EmailVerificationMessage })), (input.EmailVerificationSubject != null && { EmailVerificationSubject: input.EmailVerificationSubject })), (input.LambdaConfig != null && {
10478
10272
  LambdaConfig: serializeAws_json1_1LambdaConfigType(input.LambdaConfig, context),
10479
- })), (input.MfaConfiguration !== undefined &&
10480
- input.MfaConfiguration !== null && { MfaConfiguration: input.MfaConfiguration })), (input.Policies !== undefined &&
10481
- input.Policies !== null && { Policies: serializeAws_json1_1UserPoolPolicyType(input.Policies, context) })), (input.SmsAuthenticationMessage !== undefined &&
10482
- input.SmsAuthenticationMessage !== null && { SmsAuthenticationMessage: input.SmsAuthenticationMessage })), (input.SmsConfiguration !== undefined &&
10483
- input.SmsConfiguration !== null && {
10273
+ })), (input.MfaConfiguration != null && { MfaConfiguration: input.MfaConfiguration })), (input.Policies != null && { Policies: serializeAws_json1_1UserPoolPolicyType(input.Policies, context) })), (input.SmsAuthenticationMessage != null && { SmsAuthenticationMessage: input.SmsAuthenticationMessage })), (input.SmsConfiguration != null && {
10484
10274
  SmsConfiguration: serializeAws_json1_1SmsConfigurationType(input.SmsConfiguration, context),
10485
- })), (input.SmsVerificationMessage !== undefined &&
10486
- input.SmsVerificationMessage !== null && { SmsVerificationMessage: input.SmsVerificationMessage })), (input.UserAttributeUpdateSettings !== undefined &&
10487
- input.UserAttributeUpdateSettings !== null && {
10275
+ })), (input.SmsVerificationMessage != null && { SmsVerificationMessage: input.SmsVerificationMessage })), (input.UserAttributeUpdateSettings != null && {
10488
10276
  UserAttributeUpdateSettings: serializeAws_json1_1UserAttributeUpdateSettingsType(input.UserAttributeUpdateSettings, context),
10489
- })), (input.UserPoolAddOns !== undefined &&
10490
- input.UserPoolAddOns !== null && {
10277
+ })), (input.UserPoolAddOns != null && {
10491
10278
  UserPoolAddOns: serializeAws_json1_1UserPoolAddOnsType(input.UserPoolAddOns, context),
10492
- })), (input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId })), (input.UserPoolTags !== undefined &&
10493
- input.UserPoolTags !== null && {
10279
+ })), (input.UserPoolId != null && { UserPoolId: input.UserPoolId })), (input.UserPoolTags != null && {
10494
10280
  UserPoolTags: serializeAws_json1_1UserPoolTagsType(input.UserPoolTags, context),
10495
- })), (input.VerificationMessageTemplate !== undefined &&
10496
- input.VerificationMessageTemplate !== null && {
10281
+ })), (input.VerificationMessageTemplate != null && {
10497
10282
  VerificationMessageTemplate: serializeAws_json1_1VerificationMessageTemplateType(input.VerificationMessageTemplate, context),
10498
10283
  }));
10499
10284
  };
10500
10285
  var serializeAws_json1_1UserAttributeUpdateSettingsType = function (input, context) {
10501
- return __assign({}, (input.AttributesRequireVerificationBeforeUpdate !== undefined &&
10502
- input.AttributesRequireVerificationBeforeUpdate !== null && {
10286
+ return __assign({}, (input.AttributesRequireVerificationBeforeUpdate != null && {
10503
10287
  AttributesRequireVerificationBeforeUpdate: serializeAws_json1_1AttributesRequireVerificationBeforeUpdateType(input.AttributesRequireVerificationBeforeUpdate, context),
10504
10288
  }));
10505
10289
  };
10506
10290
  var serializeAws_json1_1UserContextDataType = function (input, context) {
10507
- return __assign(__assign({}, (input.EncodedData !== undefined && input.EncodedData !== null && { EncodedData: input.EncodedData })), (input.IpAddress !== undefined && input.IpAddress !== null && { IpAddress: input.IpAddress }));
10291
+ return __assign(__assign({}, (input.EncodedData != null && { EncodedData: input.EncodedData })), (input.IpAddress != null && { IpAddress: input.IpAddress }));
10508
10292
  };
10509
10293
  var serializeAws_json1_1UsernameAttributesListType = function (input, context) {
10510
10294
  return input
@@ -10517,15 +10301,13 @@ var serializeAws_json1_1UsernameAttributesListType = function (input, context) {
10517
10301
  });
10518
10302
  };
10519
10303
  var serializeAws_json1_1UsernameConfigurationType = function (input, context) {
10520
- return __assign({}, (input.CaseSensitive !== undefined && input.CaseSensitive !== null && { CaseSensitive: input.CaseSensitive }));
10304
+ return __assign({}, (input.CaseSensitive != null && { CaseSensitive: input.CaseSensitive }));
10521
10305
  };
10522
10306
  var serializeAws_json1_1UserPoolAddOnsType = function (input, context) {
10523
- return __assign({}, (input.AdvancedSecurityMode !== undefined &&
10524
- input.AdvancedSecurityMode !== null && { AdvancedSecurityMode: input.AdvancedSecurityMode }));
10307
+ return __assign({}, (input.AdvancedSecurityMode != null && { AdvancedSecurityMode: input.AdvancedSecurityMode }));
10525
10308
  };
10526
10309
  var serializeAws_json1_1UserPoolPolicyType = function (input, context) {
10527
- return __assign({}, (input.PasswordPolicy !== undefined &&
10528
- input.PasswordPolicy !== null && {
10310
+ return __assign({}, (input.PasswordPolicy != null && {
10529
10311
  PasswordPolicy: serializeAws_json1_1PasswordPolicyType(input.PasswordPolicy, context),
10530
10312
  }));
10531
10313
  };
@@ -10550,10 +10332,7 @@ var serializeAws_json1_1UserPoolTagsType = function (input, context) {
10550
10332
  }, {});
10551
10333
  };
10552
10334
  var serializeAws_json1_1VerificationMessageTemplateType = function (input, context) {
10553
- return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DefaultEmailOption !== undefined &&
10554
- input.DefaultEmailOption !== null && { DefaultEmailOption: input.DefaultEmailOption })), (input.EmailMessage !== undefined && input.EmailMessage !== null && { EmailMessage: input.EmailMessage })), (input.EmailMessageByLink !== undefined &&
10555
- input.EmailMessageByLink !== null && { EmailMessageByLink: input.EmailMessageByLink })), (input.EmailSubject !== undefined && input.EmailSubject !== null && { EmailSubject: input.EmailSubject })), (input.EmailSubjectByLink !== undefined &&
10556
- input.EmailSubjectByLink !== null && { EmailSubjectByLink: input.EmailSubjectByLink })), (input.SmsMessage !== undefined && input.SmsMessage !== null && { SmsMessage: input.SmsMessage }));
10335
+ return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.DefaultEmailOption != null && { DefaultEmailOption: input.DefaultEmailOption })), (input.EmailMessage != null && { EmailMessage: input.EmailMessage })), (input.EmailMessageByLink != null && { EmailMessageByLink: input.EmailMessageByLink })), (input.EmailSubject != null && { EmailSubject: input.EmailSubject })), (input.EmailSubjectByLink != null && { EmailSubjectByLink: input.EmailSubjectByLink })), (input.SmsMessage != null && { SmsMessage: input.SmsMessage }));
10557
10336
  };
10558
10337
  var serializeAws_json1_1VerifiedAttributesListType = function (input, context) {
10559
10338
  return input
@@ -10566,28 +10345,25 @@ var serializeAws_json1_1VerifiedAttributesListType = function (input, context) {
10566
10345
  });
10567
10346
  };
10568
10347
  var serializeAws_json1_1VerifySoftwareTokenRequest = function (input, context) {
10569
- return __assign(__assign(__assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.FriendlyDeviceName !== undefined &&
10570
- input.FriendlyDeviceName !== null && { FriendlyDeviceName: input.FriendlyDeviceName })), (input.Session !== undefined && input.Session !== null && { Session: input.Session })), (input.UserCode !== undefined && input.UserCode !== null && { UserCode: input.UserCode }));
10348
+ return __assign(__assign(__assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.FriendlyDeviceName != null && { FriendlyDeviceName: input.FriendlyDeviceName })), (input.Session != null && { Session: input.Session })), (input.UserCode != null && { UserCode: input.UserCode }));
10571
10349
  };
10572
10350
  var serializeAws_json1_1VerifyUserAttributeRequest = function (input, context) {
10573
- return __assign(__assign(__assign({}, (input.AccessToken !== undefined && input.AccessToken !== null && { AccessToken: input.AccessToken })), (input.AttributeName !== undefined && input.AttributeName !== null && { AttributeName: input.AttributeName })), (input.Code !== undefined && input.Code !== null && { Code: input.Code }));
10351
+ return __assign(__assign(__assign({}, (input.AccessToken != null && { AccessToken: input.AccessToken })), (input.AttributeName != null && { AttributeName: input.AttributeName })), (input.Code != null && { Code: input.Code }));
10574
10352
  };
10575
10353
  var deserializeAws_json1_1AccountRecoverySettingType = function (output, context) {
10576
10354
  return {
10577
- RecoveryMechanisms: output.RecoveryMechanisms !== undefined && output.RecoveryMechanisms !== null
10355
+ RecoveryMechanisms: output.RecoveryMechanisms != null
10578
10356
  ? deserializeAws_json1_1RecoveryMechanismsType(output.RecoveryMechanisms, context)
10579
10357
  : undefined,
10580
10358
  };
10581
10359
  };
10582
10360
  var deserializeAws_json1_1AccountTakeoverActionsType = function (output, context) {
10583
10361
  return {
10584
- HighAction: output.HighAction !== undefined && output.HighAction !== null
10362
+ HighAction: output.HighAction != null
10585
10363
  ? deserializeAws_json1_1AccountTakeoverActionType(output.HighAction, context)
10586
10364
  : undefined,
10587
- LowAction: output.LowAction !== undefined && output.LowAction !== null
10588
- ? deserializeAws_json1_1AccountTakeoverActionType(output.LowAction, context)
10589
- : undefined,
10590
- MediumAction: output.MediumAction !== undefined && output.MediumAction !== null
10365
+ LowAction: output.LowAction != null ? deserializeAws_json1_1AccountTakeoverActionType(output.LowAction, context) : undefined,
10366
+ MediumAction: output.MediumAction != null
10591
10367
  ? deserializeAws_json1_1AccountTakeoverActionType(output.MediumAction, context)
10592
10368
  : undefined,
10593
10369
  };
@@ -10600,10 +10376,8 @@ var deserializeAws_json1_1AccountTakeoverActionType = function (output, context)
10600
10376
  };
10601
10377
  var deserializeAws_json1_1AccountTakeoverRiskConfigurationType = function (output, context) {
10602
10378
  return {
10603
- Actions: output.Actions !== undefined && output.Actions !== null
10604
- ? deserializeAws_json1_1AccountTakeoverActionsType(output.Actions, context)
10605
- : undefined,
10606
- NotifyConfiguration: output.NotifyConfiguration !== undefined && output.NotifyConfiguration !== null
10379
+ Actions: output.Actions != null ? deserializeAws_json1_1AccountTakeoverActionsType(output.Actions, context) : undefined,
10380
+ NotifyConfiguration: output.NotifyConfiguration != null
10607
10381
  ? deserializeAws_json1_1NotifyConfigurationType(output.NotifyConfiguration, context)
10608
10382
  : undefined,
10609
10383
  };
@@ -10617,7 +10391,7 @@ var deserializeAws_json1_1AdminConfirmSignUpResponse = function (output, context
10617
10391
  var deserializeAws_json1_1AdminCreateUserConfigType = function (output, context) {
10618
10392
  return {
10619
10393
  AllowAdminCreateUserOnly: __expectBoolean(output.AllowAdminCreateUserOnly),
10620
- InviteMessageTemplate: output.InviteMessageTemplate !== undefined && output.InviteMessageTemplate !== null
10394
+ InviteMessageTemplate: output.InviteMessageTemplate != null
10621
10395
  ? deserializeAws_json1_1MessageTemplateType(output.InviteMessageTemplate, context)
10622
10396
  : undefined,
10623
10397
  UnusedAccountValidityDays: __expectInt32(output.UnusedAccountValidityDays),
@@ -10625,9 +10399,7 @@ var deserializeAws_json1_1AdminCreateUserConfigType = function (output, context)
10625
10399
  };
10626
10400
  var deserializeAws_json1_1AdminCreateUserResponse = function (output, context) {
10627
10401
  return {
10628
- User: output.User !== undefined && output.User !== null
10629
- ? deserializeAws_json1_1UserType(output.User, context)
10630
- : undefined,
10402
+ User: output.User != null ? deserializeAws_json1_1UserType(output.User, context) : undefined,
10631
10403
  };
10632
10404
  };
10633
10405
  var deserializeAws_json1_1AdminDeleteUserAttributesResponse = function (output, context) {
@@ -10644,28 +10416,24 @@ var deserializeAws_json1_1AdminEnableUserResponse = function (output, context) {
10644
10416
  };
10645
10417
  var deserializeAws_json1_1AdminGetDeviceResponse = function (output, context) {
10646
10418
  return {
10647
- Device: output.Device !== undefined && output.Device !== null
10648
- ? deserializeAws_json1_1DeviceType(output.Device, context)
10649
- : undefined,
10419
+ Device: output.Device != null ? deserializeAws_json1_1DeviceType(output.Device, context) : undefined,
10650
10420
  };
10651
10421
  };
10652
10422
  var deserializeAws_json1_1AdminGetUserResponse = function (output, context) {
10653
10423
  return {
10654
10424
  Enabled: __expectBoolean(output.Enabled),
10655
- MFAOptions: output.MFAOptions !== undefined && output.MFAOptions !== null
10656
- ? deserializeAws_json1_1MFAOptionListType(output.MFAOptions, context)
10657
- : undefined,
10425
+ MFAOptions: output.MFAOptions != null ? deserializeAws_json1_1MFAOptionListType(output.MFAOptions, context) : undefined,
10658
10426
  PreferredMfaSetting: __expectString(output.PreferredMfaSetting),
10659
- UserAttributes: output.UserAttributes !== undefined && output.UserAttributes !== null
10427
+ UserAttributes: output.UserAttributes != null
10660
10428
  ? deserializeAws_json1_1AttributeListType(output.UserAttributes, context)
10661
10429
  : undefined,
10662
- UserCreateDate: output.UserCreateDate !== undefined && output.UserCreateDate !== null
10430
+ UserCreateDate: output.UserCreateDate != null
10663
10431
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UserCreateDate)))
10664
10432
  : undefined,
10665
- UserLastModifiedDate: output.UserLastModifiedDate !== undefined && output.UserLastModifiedDate !== null
10433
+ UserLastModifiedDate: output.UserLastModifiedDate != null
10666
10434
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UserLastModifiedDate)))
10667
10435
  : undefined,
10668
- UserMFASettingList: output.UserMFASettingList !== undefined && output.UserMFASettingList !== null
10436
+ UserMFASettingList: output.UserMFASettingList != null
10669
10437
  ? deserializeAws_json1_1UserMFASettingListType(output.UserMFASettingList, context)
10670
10438
  : undefined,
10671
10439
  UserStatus: __expectString(output.UserStatus),
@@ -10674,11 +10442,11 @@ var deserializeAws_json1_1AdminGetUserResponse = function (output, context) {
10674
10442
  };
10675
10443
  var deserializeAws_json1_1AdminInitiateAuthResponse = function (output, context) {
10676
10444
  return {
10677
- AuthenticationResult: output.AuthenticationResult !== undefined && output.AuthenticationResult !== null
10445
+ AuthenticationResult: output.AuthenticationResult != null
10678
10446
  ? deserializeAws_json1_1AuthenticationResultType(output.AuthenticationResult, context)
10679
10447
  : undefined,
10680
10448
  ChallengeName: __expectString(output.ChallengeName),
10681
- ChallengeParameters: output.ChallengeParameters !== undefined && output.ChallengeParameters !== null
10449
+ ChallengeParameters: output.ChallengeParameters != null
10682
10450
  ? deserializeAws_json1_1ChallengeParametersType(output.ChallengeParameters, context)
10683
10451
  : undefined,
10684
10452
  Session: __expectString(output.Session),
@@ -10689,25 +10457,19 @@ var deserializeAws_json1_1AdminLinkProviderForUserResponse = function (output, c
10689
10457
  };
10690
10458
  var deserializeAws_json1_1AdminListDevicesResponse = function (output, context) {
10691
10459
  return {
10692
- Devices: output.Devices !== undefined && output.Devices !== null
10693
- ? deserializeAws_json1_1DeviceListType(output.Devices, context)
10694
- : undefined,
10460
+ Devices: output.Devices != null ? deserializeAws_json1_1DeviceListType(output.Devices, context) : undefined,
10695
10461
  PaginationToken: __expectString(output.PaginationToken),
10696
10462
  };
10697
10463
  };
10698
10464
  var deserializeAws_json1_1AdminListGroupsForUserResponse = function (output, context) {
10699
10465
  return {
10700
- Groups: output.Groups !== undefined && output.Groups !== null
10701
- ? deserializeAws_json1_1GroupListType(output.Groups, context)
10702
- : undefined,
10466
+ Groups: output.Groups != null ? deserializeAws_json1_1GroupListType(output.Groups, context) : undefined,
10703
10467
  NextToken: __expectString(output.NextToken),
10704
10468
  };
10705
10469
  };
10706
10470
  var deserializeAws_json1_1AdminListUserAuthEventsResponse = function (output, context) {
10707
10471
  return {
10708
- AuthEvents: output.AuthEvents !== undefined && output.AuthEvents !== null
10709
- ? deserializeAws_json1_1AuthEventsType(output.AuthEvents, context)
10710
- : undefined,
10472
+ AuthEvents: output.AuthEvents != null ? deserializeAws_json1_1AuthEventsType(output.AuthEvents, context) : undefined,
10711
10473
  NextToken: __expectString(output.NextToken),
10712
10474
  };
10713
10475
  };
@@ -10716,11 +10478,11 @@ var deserializeAws_json1_1AdminResetUserPasswordResponse = function (output, con
10716
10478
  };
10717
10479
  var deserializeAws_json1_1AdminRespondToAuthChallengeResponse = function (output, context) {
10718
10480
  return {
10719
- AuthenticationResult: output.AuthenticationResult !== undefined && output.AuthenticationResult !== null
10481
+ AuthenticationResult: output.AuthenticationResult != null
10720
10482
  ? deserializeAws_json1_1AuthenticationResultType(output.AuthenticationResult, context)
10721
10483
  : undefined,
10722
10484
  ChallengeName: __expectString(output.ChallengeName),
10723
- ChallengeParameters: output.ChallengeParameters !== undefined && output.ChallengeParameters !== null
10485
+ ChallengeParameters: output.ChallengeParameters != null
10724
10486
  ? deserializeAws_json1_1ChallengeParametersType(output.ChallengeParameters, context)
10725
10487
  : undefined,
10726
10488
  Session: __expectString(output.Session),
@@ -10821,7 +10583,7 @@ var deserializeAws_json1_1AuthenticationResultType = function (output, context)
10821
10583
  AccessToken: __expectString(output.AccessToken),
10822
10584
  ExpiresIn: __expectInt32(output.ExpiresIn),
10823
10585
  IdToken: __expectString(output.IdToken),
10824
- NewDeviceMetadata: output.NewDeviceMetadata !== undefined && output.NewDeviceMetadata !== null
10586
+ NewDeviceMetadata: output.NewDeviceMetadata != null
10825
10587
  ? deserializeAws_json1_1NewDeviceMetadataType(output.NewDeviceMetadata, context)
10826
10588
  : undefined,
10827
10589
  RefreshToken: __expectString(output.RefreshToken),
@@ -10841,23 +10603,19 @@ var deserializeAws_json1_1AuthEventsType = function (output, context) {
10841
10603
  };
10842
10604
  var deserializeAws_json1_1AuthEventType = function (output, context) {
10843
10605
  return {
10844
- ChallengeResponses: output.ChallengeResponses !== undefined && output.ChallengeResponses !== null
10606
+ ChallengeResponses: output.ChallengeResponses != null
10845
10607
  ? deserializeAws_json1_1ChallengeResponseListType(output.ChallengeResponses, context)
10846
10608
  : undefined,
10847
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
10609
+ CreationDate: output.CreationDate != null
10848
10610
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
10849
10611
  : undefined,
10850
- EventContextData: output.EventContextData !== undefined && output.EventContextData !== null
10612
+ EventContextData: output.EventContextData != null
10851
10613
  ? deserializeAws_json1_1EventContextDataType(output.EventContextData, context)
10852
10614
  : undefined,
10853
- EventFeedback: output.EventFeedback !== undefined && output.EventFeedback !== null
10854
- ? deserializeAws_json1_1EventFeedbackType(output.EventFeedback, context)
10855
- : undefined,
10615
+ EventFeedback: output.EventFeedback != null ? deserializeAws_json1_1EventFeedbackType(output.EventFeedback, context) : undefined,
10856
10616
  EventId: __expectString(output.EventId),
10857
10617
  EventResponse: __expectString(output.EventResponse),
10858
- EventRisk: output.EventRisk !== undefined && output.EventRisk !== null
10859
- ? deserializeAws_json1_1EventRiskType(output.EventRisk, context)
10860
- : undefined,
10618
+ EventRisk: output.EventRisk != null ? deserializeAws_json1_1EventRiskType(output.EventRisk, context) : undefined,
10861
10619
  EventType: __expectString(output.EventType),
10862
10620
  };
10863
10621
  };
@@ -10959,12 +10717,10 @@ var deserializeAws_json1_1CompromisedCredentialsActionsType = function (output,
10959
10717
  };
10960
10718
  var deserializeAws_json1_1CompromisedCredentialsRiskConfigurationType = function (output, context) {
10961
10719
  return {
10962
- Actions: output.Actions !== undefined && output.Actions !== null
10720
+ Actions: output.Actions != null
10963
10721
  ? deserializeAws_json1_1CompromisedCredentialsActionsType(output.Actions, context)
10964
10722
  : undefined,
10965
- EventFilter: output.EventFilter !== undefined && output.EventFilter !== null
10966
- ? deserializeAws_json1_1EventFiltersType(output.EventFilter, context)
10967
- : undefined,
10723
+ EventFilter: output.EventFilter != null ? deserializeAws_json1_1EventFiltersType(output.EventFilter, context) : undefined,
10968
10724
  };
10969
10725
  };
10970
10726
  var deserializeAws_json1_1ConcurrentModificationException = function (output, context) {
@@ -10985,35 +10741,31 @@ var deserializeAws_json1_1ConfirmSignUpResponse = function (output, context) {
10985
10741
  };
10986
10742
  var deserializeAws_json1_1CreateGroupResponse = function (output, context) {
10987
10743
  return {
10988
- Group: output.Group !== undefined && output.Group !== null
10989
- ? deserializeAws_json1_1GroupType(output.Group, context)
10990
- : undefined,
10744
+ Group: output.Group != null ? deserializeAws_json1_1GroupType(output.Group, context) : undefined,
10991
10745
  };
10992
10746
  };
10993
10747
  var deserializeAws_json1_1CreateIdentityProviderResponse = function (output, context) {
10994
10748
  return {
10995
- IdentityProvider: output.IdentityProvider !== undefined && output.IdentityProvider !== null
10749
+ IdentityProvider: output.IdentityProvider != null
10996
10750
  ? deserializeAws_json1_1IdentityProviderType(output.IdentityProvider, context)
10997
10751
  : undefined,
10998
10752
  };
10999
10753
  };
11000
10754
  var deserializeAws_json1_1CreateResourceServerResponse = function (output, context) {
11001
10755
  return {
11002
- ResourceServer: output.ResourceServer !== undefined && output.ResourceServer !== null
10756
+ ResourceServer: output.ResourceServer != null
11003
10757
  ? deserializeAws_json1_1ResourceServerType(output.ResourceServer, context)
11004
10758
  : undefined,
11005
10759
  };
11006
10760
  };
11007
10761
  var deserializeAws_json1_1CreateUserImportJobResponse = function (output, context) {
11008
10762
  return {
11009
- UserImportJob: output.UserImportJob !== undefined && output.UserImportJob !== null
11010
- ? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context)
11011
- : undefined,
10763
+ UserImportJob: output.UserImportJob != null ? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context) : undefined,
11012
10764
  };
11013
10765
  };
11014
10766
  var deserializeAws_json1_1CreateUserPoolClientResponse = function (output, context) {
11015
10767
  return {
11016
- UserPoolClient: output.UserPoolClient !== undefined && output.UserPoolClient !== null
10768
+ UserPoolClient: output.UserPoolClient != null
11017
10769
  ? deserializeAws_json1_1UserPoolClientType(output.UserPoolClient, context)
11018
10770
  : undefined,
11019
10771
  };
@@ -11025,9 +10777,7 @@ var deserializeAws_json1_1CreateUserPoolDomainResponse = function (output, conte
11025
10777
  };
11026
10778
  var deserializeAws_json1_1CreateUserPoolResponse = function (output, context) {
11027
10779
  return {
11028
- UserPool: output.UserPool !== undefined && output.UserPool !== null
11029
- ? deserializeAws_json1_1UserPoolType(output.UserPool, context)
11030
- : undefined,
10780
+ UserPool: output.UserPool != null ? deserializeAws_json1_1UserPoolType(output.UserPool, context) : undefined,
11031
10781
  };
11032
10782
  };
11033
10783
  var deserializeAws_json1_1CustomDomainConfigType = function (output, context) {
@@ -11055,51 +10805,47 @@ var deserializeAws_json1_1DeleteUserPoolDomainResponse = function (output, conte
11055
10805
  };
11056
10806
  var deserializeAws_json1_1DescribeIdentityProviderResponse = function (output, context) {
11057
10807
  return {
11058
- IdentityProvider: output.IdentityProvider !== undefined && output.IdentityProvider !== null
10808
+ IdentityProvider: output.IdentityProvider != null
11059
10809
  ? deserializeAws_json1_1IdentityProviderType(output.IdentityProvider, context)
11060
10810
  : undefined,
11061
10811
  };
11062
10812
  };
11063
10813
  var deserializeAws_json1_1DescribeResourceServerResponse = function (output, context) {
11064
10814
  return {
11065
- ResourceServer: output.ResourceServer !== undefined && output.ResourceServer !== null
10815
+ ResourceServer: output.ResourceServer != null
11066
10816
  ? deserializeAws_json1_1ResourceServerType(output.ResourceServer, context)
11067
10817
  : undefined,
11068
10818
  };
11069
10819
  };
11070
10820
  var deserializeAws_json1_1DescribeRiskConfigurationResponse = function (output, context) {
11071
10821
  return {
11072
- RiskConfiguration: output.RiskConfiguration !== undefined && output.RiskConfiguration !== null
10822
+ RiskConfiguration: output.RiskConfiguration != null
11073
10823
  ? deserializeAws_json1_1RiskConfigurationType(output.RiskConfiguration, context)
11074
10824
  : undefined,
11075
10825
  };
11076
10826
  };
11077
10827
  var deserializeAws_json1_1DescribeUserImportJobResponse = function (output, context) {
11078
10828
  return {
11079
- UserImportJob: output.UserImportJob !== undefined && output.UserImportJob !== null
11080
- ? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context)
11081
- : undefined,
10829
+ UserImportJob: output.UserImportJob != null ? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context) : undefined,
11082
10830
  };
11083
10831
  };
11084
10832
  var deserializeAws_json1_1DescribeUserPoolClientResponse = function (output, context) {
11085
10833
  return {
11086
- UserPoolClient: output.UserPoolClient !== undefined && output.UserPoolClient !== null
10834
+ UserPoolClient: output.UserPoolClient != null
11087
10835
  ? deserializeAws_json1_1UserPoolClientType(output.UserPoolClient, context)
11088
10836
  : undefined,
11089
10837
  };
11090
10838
  };
11091
10839
  var deserializeAws_json1_1DescribeUserPoolDomainResponse = function (output, context) {
11092
10840
  return {
11093
- DomainDescription: output.DomainDescription !== undefined && output.DomainDescription !== null
10841
+ DomainDescription: output.DomainDescription != null
11094
10842
  ? deserializeAws_json1_1DomainDescriptionType(output.DomainDescription, context)
11095
10843
  : undefined,
11096
10844
  };
11097
10845
  };
11098
10846
  var deserializeAws_json1_1DescribeUserPoolResponse = function (output, context) {
11099
10847
  return {
11100
- UserPool: output.UserPool !== undefined && output.UserPool !== null
11101
- ? deserializeAws_json1_1UserPoolType(output.UserPool, context)
11102
- : undefined,
10848
+ UserPool: output.UserPool != null ? deserializeAws_json1_1UserPoolType(output.UserPool, context) : undefined,
11103
10849
  };
11104
10850
  };
11105
10851
  var deserializeAws_json1_1DeviceConfigurationType = function (output, context) {
@@ -11121,17 +10867,17 @@ var deserializeAws_json1_1DeviceListType = function (output, context) {
11121
10867
  };
11122
10868
  var deserializeAws_json1_1DeviceType = function (output, context) {
11123
10869
  return {
11124
- DeviceAttributes: output.DeviceAttributes !== undefined && output.DeviceAttributes !== null
10870
+ DeviceAttributes: output.DeviceAttributes != null
11125
10871
  ? deserializeAws_json1_1AttributeListType(output.DeviceAttributes, context)
11126
10872
  : undefined,
11127
- DeviceCreateDate: output.DeviceCreateDate !== undefined && output.DeviceCreateDate !== null
10873
+ DeviceCreateDate: output.DeviceCreateDate != null
11128
10874
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeviceCreateDate)))
11129
10875
  : undefined,
11130
10876
  DeviceKey: __expectString(output.DeviceKey),
11131
- DeviceLastAuthenticatedDate: output.DeviceLastAuthenticatedDate !== undefined && output.DeviceLastAuthenticatedDate !== null
10877
+ DeviceLastAuthenticatedDate: output.DeviceLastAuthenticatedDate != null
11132
10878
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeviceLastAuthenticatedDate)))
11133
10879
  : undefined,
11134
- DeviceLastModifiedDate: output.DeviceLastModifiedDate !== undefined && output.DeviceLastModifiedDate !== null
10880
+ DeviceLastModifiedDate: output.DeviceLastModifiedDate != null
11135
10881
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DeviceLastModifiedDate)))
11136
10882
  : undefined,
11137
10883
  };
@@ -11140,7 +10886,7 @@ var deserializeAws_json1_1DomainDescriptionType = function (output, context) {
11140
10886
  return {
11141
10887
  AWSAccountId: __expectString(output.AWSAccountId),
11142
10888
  CloudFrontDistribution: __expectString(output.CloudFrontDistribution),
11143
- CustomDomainConfig: output.CustomDomainConfig !== undefined && output.CustomDomainConfig !== null
10889
+ CustomDomainConfig: output.CustomDomainConfig != null
11144
10890
  ? deserializeAws_json1_1CustomDomainConfigType(output.CustomDomainConfig, context)
11145
10891
  : undefined,
11146
10892
  Domain: __expectString(output.Domain),
@@ -11180,7 +10926,7 @@ var deserializeAws_json1_1EventContextDataType = function (output, context) {
11180
10926
  };
11181
10927
  var deserializeAws_json1_1EventFeedbackType = function (output, context) {
11182
10928
  return {
11183
- FeedbackDate: output.FeedbackDate !== undefined && output.FeedbackDate !== null
10929
+ FeedbackDate: output.FeedbackDate != null
11184
10930
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.FeedbackDate)))
11185
10931
  : undefined,
11186
10932
  FeedbackValue: __expectString(output.FeedbackValue),
@@ -11223,36 +10969,30 @@ var deserializeAws_json1_1ExplicitAuthFlowsListType = function (output, context)
11223
10969
  };
11224
10970
  var deserializeAws_json1_1ForgotPasswordResponse = function (output, context) {
11225
10971
  return {
11226
- CodeDeliveryDetails: output.CodeDeliveryDetails !== undefined && output.CodeDeliveryDetails !== null
10972
+ CodeDeliveryDetails: output.CodeDeliveryDetails != null
11227
10973
  ? deserializeAws_json1_1CodeDeliveryDetailsType(output.CodeDeliveryDetails, context)
11228
10974
  : undefined,
11229
10975
  };
11230
10976
  };
11231
10977
  var deserializeAws_json1_1GetCSVHeaderResponse = function (output, context) {
11232
10978
  return {
11233
- CSVHeader: output.CSVHeader !== undefined && output.CSVHeader !== null
11234
- ? deserializeAws_json1_1ListOfStringTypes(output.CSVHeader, context)
11235
- : undefined,
10979
+ CSVHeader: output.CSVHeader != null ? deserializeAws_json1_1ListOfStringTypes(output.CSVHeader, context) : undefined,
11236
10980
  UserPoolId: __expectString(output.UserPoolId),
11237
10981
  };
11238
10982
  };
11239
10983
  var deserializeAws_json1_1GetDeviceResponse = function (output, context) {
11240
10984
  return {
11241
- Device: output.Device !== undefined && output.Device !== null
11242
- ? deserializeAws_json1_1DeviceType(output.Device, context)
11243
- : undefined,
10985
+ Device: output.Device != null ? deserializeAws_json1_1DeviceType(output.Device, context) : undefined,
11244
10986
  };
11245
10987
  };
11246
10988
  var deserializeAws_json1_1GetGroupResponse = function (output, context) {
11247
10989
  return {
11248
- Group: output.Group !== undefined && output.Group !== null
11249
- ? deserializeAws_json1_1GroupType(output.Group, context)
11250
- : undefined,
10990
+ Group: output.Group != null ? deserializeAws_json1_1GroupType(output.Group, context) : undefined,
11251
10991
  };
11252
10992
  };
11253
10993
  var deserializeAws_json1_1GetIdentityProviderByIdentifierResponse = function (output, context) {
11254
10994
  return {
11255
- IdentityProvider: output.IdentityProvider !== undefined && output.IdentityProvider !== null
10995
+ IdentityProvider: output.IdentityProvider != null
11256
10996
  ? deserializeAws_json1_1IdentityProviderType(output.IdentityProvider, context)
11257
10997
  : undefined,
11258
10998
  };
@@ -11264,14 +11004,14 @@ var deserializeAws_json1_1GetSigningCertificateResponse = function (output, cont
11264
11004
  };
11265
11005
  var deserializeAws_json1_1GetUICustomizationResponse = function (output, context) {
11266
11006
  return {
11267
- UICustomization: output.UICustomization !== undefined && output.UICustomization !== null
11007
+ UICustomization: output.UICustomization != null
11268
11008
  ? deserializeAws_json1_1UICustomizationType(output.UICustomization, context)
11269
11009
  : undefined,
11270
11010
  };
11271
11011
  };
11272
11012
  var deserializeAws_json1_1GetUserAttributeVerificationCodeResponse = function (output, context) {
11273
11013
  return {
11274
- CodeDeliveryDetails: output.CodeDeliveryDetails !== undefined && output.CodeDeliveryDetails !== null
11014
+ CodeDeliveryDetails: output.CodeDeliveryDetails != null
11275
11015
  ? deserializeAws_json1_1CodeDeliveryDetailsType(output.CodeDeliveryDetails, context)
11276
11016
  : undefined,
11277
11017
  };
@@ -11279,24 +11019,22 @@ var deserializeAws_json1_1GetUserAttributeVerificationCodeResponse = function (o
11279
11019
  var deserializeAws_json1_1GetUserPoolMfaConfigResponse = function (output, context) {
11280
11020
  return {
11281
11021
  MfaConfiguration: __expectString(output.MfaConfiguration),
11282
- SmsMfaConfiguration: output.SmsMfaConfiguration !== undefined && output.SmsMfaConfiguration !== null
11022
+ SmsMfaConfiguration: output.SmsMfaConfiguration != null
11283
11023
  ? deserializeAws_json1_1SmsMfaConfigType(output.SmsMfaConfiguration, context)
11284
11024
  : undefined,
11285
- SoftwareTokenMfaConfiguration: output.SoftwareTokenMfaConfiguration !== undefined && output.SoftwareTokenMfaConfiguration !== null
11025
+ SoftwareTokenMfaConfiguration: output.SoftwareTokenMfaConfiguration != null
11286
11026
  ? deserializeAws_json1_1SoftwareTokenMfaConfigType(output.SoftwareTokenMfaConfiguration, context)
11287
11027
  : undefined,
11288
11028
  };
11289
11029
  };
11290
11030
  var deserializeAws_json1_1GetUserResponse = function (output, context) {
11291
11031
  return {
11292
- MFAOptions: output.MFAOptions !== undefined && output.MFAOptions !== null
11293
- ? deserializeAws_json1_1MFAOptionListType(output.MFAOptions, context)
11294
- : undefined,
11032
+ MFAOptions: output.MFAOptions != null ? deserializeAws_json1_1MFAOptionListType(output.MFAOptions, context) : undefined,
11295
11033
  PreferredMfaSetting: __expectString(output.PreferredMfaSetting),
11296
- UserAttributes: output.UserAttributes !== undefined && output.UserAttributes !== null
11034
+ UserAttributes: output.UserAttributes != null
11297
11035
  ? deserializeAws_json1_1AttributeListType(output.UserAttributes, context)
11298
11036
  : undefined,
11299
- UserMFASettingList: output.UserMFASettingList !== undefined && output.UserMFASettingList !== null
11037
+ UserMFASettingList: output.UserMFASettingList != null
11300
11038
  ? deserializeAws_json1_1UserMFASettingListType(output.UserMFASettingList, context)
11301
11039
  : undefined,
11302
11040
  Username: __expectString(output.Username),
@@ -11323,12 +11061,12 @@ var deserializeAws_json1_1GroupListType = function (output, context) {
11323
11061
  };
11324
11062
  var deserializeAws_json1_1GroupType = function (output, context) {
11325
11063
  return {
11326
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
11064
+ CreationDate: output.CreationDate != null
11327
11065
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
11328
11066
  : undefined,
11329
11067
  Description: __expectString(output.Description),
11330
11068
  GroupName: __expectString(output.GroupName),
11331
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
11069
+ LastModifiedDate: output.LastModifiedDate != null
11332
11070
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
11333
11071
  : undefined,
11334
11072
  Precedence: __expectInt32(output.Precedence),
@@ -11338,19 +11076,19 @@ var deserializeAws_json1_1GroupType = function (output, context) {
11338
11076
  };
11339
11077
  var deserializeAws_json1_1IdentityProviderType = function (output, context) {
11340
11078
  return {
11341
- AttributeMapping: output.AttributeMapping !== undefined && output.AttributeMapping !== null
11079
+ AttributeMapping: output.AttributeMapping != null
11342
11080
  ? deserializeAws_json1_1AttributeMappingType(output.AttributeMapping, context)
11343
11081
  : undefined,
11344
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
11082
+ CreationDate: output.CreationDate != null
11345
11083
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
11346
11084
  : undefined,
11347
- IdpIdentifiers: output.IdpIdentifiers !== undefined && output.IdpIdentifiers !== null
11085
+ IdpIdentifiers: output.IdpIdentifiers != null
11348
11086
  ? deserializeAws_json1_1IdpIdentifiersListType(output.IdpIdentifiers, context)
11349
11087
  : undefined,
11350
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
11088
+ LastModifiedDate: output.LastModifiedDate != null
11351
11089
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
11352
11090
  : undefined,
11353
- ProviderDetails: output.ProviderDetails !== undefined && output.ProviderDetails !== null
11091
+ ProviderDetails: output.ProviderDetails != null
11354
11092
  ? deserializeAws_json1_1ProviderDetailsType(output.ProviderDetails, context)
11355
11093
  : undefined,
11356
11094
  ProviderName: __expectString(output.ProviderName),
@@ -11371,11 +11109,11 @@ var deserializeAws_json1_1IdpIdentifiersListType = function (output, context) {
11371
11109
  };
11372
11110
  var deserializeAws_json1_1InitiateAuthResponse = function (output, context) {
11373
11111
  return {
11374
- AuthenticationResult: output.AuthenticationResult !== undefined && output.AuthenticationResult !== null
11112
+ AuthenticationResult: output.AuthenticationResult != null
11375
11113
  ? deserializeAws_json1_1AuthenticationResultType(output.AuthenticationResult, context)
11376
11114
  : undefined,
11377
11115
  ChallengeName: __expectString(output.ChallengeName),
11378
- ChallengeParameters: output.ChallengeParameters !== undefined && output.ChallengeParameters !== null
11116
+ ChallengeParameters: output.ChallengeParameters != null
11379
11117
  ? deserializeAws_json1_1ChallengeParametersType(output.ChallengeParameters, context)
11380
11118
  : undefined,
11381
11119
  Session: __expectString(output.Session),
@@ -11429,11 +11167,11 @@ var deserializeAws_json1_1InvalidUserPoolConfigurationException = function (outp
11429
11167
  var deserializeAws_json1_1LambdaConfigType = function (output, context) {
11430
11168
  return {
11431
11169
  CreateAuthChallenge: __expectString(output.CreateAuthChallenge),
11432
- CustomEmailSender: output.CustomEmailSender !== undefined && output.CustomEmailSender !== null
11170
+ CustomEmailSender: output.CustomEmailSender != null
11433
11171
  ? deserializeAws_json1_1CustomEmailLambdaVersionConfigType(output.CustomEmailSender, context)
11434
11172
  : undefined,
11435
11173
  CustomMessage: __expectString(output.CustomMessage),
11436
- CustomSMSSender: output.CustomSMSSender !== undefined && output.CustomSMSSender !== null
11174
+ CustomSMSSender: output.CustomSMSSender != null
11437
11175
  ? deserializeAws_json1_1CustomSMSLambdaVersionConfigType(output.CustomSMSSender, context)
11438
11176
  : undefined,
11439
11177
  DefineAuthChallenge: __expectString(output.DefineAuthChallenge),
@@ -11454,26 +11192,20 @@ var deserializeAws_json1_1LimitExceededException = function (output, context) {
11454
11192
  };
11455
11193
  var deserializeAws_json1_1ListDevicesResponse = function (output, context) {
11456
11194
  return {
11457
- Devices: output.Devices !== undefined && output.Devices !== null
11458
- ? deserializeAws_json1_1DeviceListType(output.Devices, context)
11459
- : undefined,
11195
+ Devices: output.Devices != null ? deserializeAws_json1_1DeviceListType(output.Devices, context) : undefined,
11460
11196
  PaginationToken: __expectString(output.PaginationToken),
11461
11197
  };
11462
11198
  };
11463
11199
  var deserializeAws_json1_1ListGroupsResponse = function (output, context) {
11464
11200
  return {
11465
- Groups: output.Groups !== undefined && output.Groups !== null
11466
- ? deserializeAws_json1_1GroupListType(output.Groups, context)
11467
- : undefined,
11201
+ Groups: output.Groups != null ? deserializeAws_json1_1GroupListType(output.Groups, context) : undefined,
11468
11202
  NextToken: __expectString(output.NextToken),
11469
11203
  };
11470
11204
  };
11471
11205
  var deserializeAws_json1_1ListIdentityProvidersResponse = function (output, context) {
11472
11206
  return {
11473
11207
  NextToken: __expectString(output.NextToken),
11474
- Providers: output.Providers !== undefined && output.Providers !== null
11475
- ? deserializeAws_json1_1ProvidersListType(output.Providers, context)
11476
- : undefined,
11208
+ Providers: output.Providers != null ? deserializeAws_json1_1ProvidersListType(output.Providers, context) : undefined,
11477
11209
  };
11478
11210
  };
11479
11211
  var deserializeAws_json1_1ListOfStringTypes = function (output, context) {
@@ -11490,22 +11222,20 @@ var deserializeAws_json1_1ListOfStringTypes = function (output, context) {
11490
11222
  var deserializeAws_json1_1ListResourceServersResponse = function (output, context) {
11491
11223
  return {
11492
11224
  NextToken: __expectString(output.NextToken),
11493
- ResourceServers: output.ResourceServers !== undefined && output.ResourceServers !== null
11225
+ ResourceServers: output.ResourceServers != null
11494
11226
  ? deserializeAws_json1_1ResourceServersListType(output.ResourceServers, context)
11495
11227
  : undefined,
11496
11228
  };
11497
11229
  };
11498
11230
  var deserializeAws_json1_1ListTagsForResourceResponse = function (output, context) {
11499
11231
  return {
11500
- Tags: output.Tags !== undefined && output.Tags !== null
11501
- ? deserializeAws_json1_1UserPoolTagsType(output.Tags, context)
11502
- : undefined,
11232
+ Tags: output.Tags != null ? deserializeAws_json1_1UserPoolTagsType(output.Tags, context) : undefined,
11503
11233
  };
11504
11234
  };
11505
11235
  var deserializeAws_json1_1ListUserImportJobsResponse = function (output, context) {
11506
11236
  return {
11507
11237
  PaginationToken: __expectString(output.PaginationToken),
11508
- UserImportJobs: output.UserImportJobs !== undefined && output.UserImportJobs !== null
11238
+ UserImportJobs: output.UserImportJobs != null
11509
11239
  ? deserializeAws_json1_1UserImportJobsListType(output.UserImportJobs, context)
11510
11240
  : undefined,
11511
11241
  };
@@ -11513,7 +11243,7 @@ var deserializeAws_json1_1ListUserImportJobsResponse = function (output, context
11513
11243
  var deserializeAws_json1_1ListUserPoolClientsResponse = function (output, context) {
11514
11244
  return {
11515
11245
  NextToken: __expectString(output.NextToken),
11516
- UserPoolClients: output.UserPoolClients !== undefined && output.UserPoolClients !== null
11246
+ UserPoolClients: output.UserPoolClients != null
11517
11247
  ? deserializeAws_json1_1UserPoolClientListType(output.UserPoolClients, context)
11518
11248
  : undefined,
11519
11249
  };
@@ -11521,25 +11251,19 @@ var deserializeAws_json1_1ListUserPoolClientsResponse = function (output, contex
11521
11251
  var deserializeAws_json1_1ListUserPoolsResponse = function (output, context) {
11522
11252
  return {
11523
11253
  NextToken: __expectString(output.NextToken),
11524
- UserPools: output.UserPools !== undefined && output.UserPools !== null
11525
- ? deserializeAws_json1_1UserPoolListType(output.UserPools, context)
11526
- : undefined,
11254
+ UserPools: output.UserPools != null ? deserializeAws_json1_1UserPoolListType(output.UserPools, context) : undefined,
11527
11255
  };
11528
11256
  };
11529
11257
  var deserializeAws_json1_1ListUsersInGroupResponse = function (output, context) {
11530
11258
  return {
11531
11259
  NextToken: __expectString(output.NextToken),
11532
- Users: output.Users !== undefined && output.Users !== null
11533
- ? deserializeAws_json1_1UsersListType(output.Users, context)
11534
- : undefined,
11260
+ Users: output.Users != null ? deserializeAws_json1_1UsersListType(output.Users, context) : undefined,
11535
11261
  };
11536
11262
  };
11537
11263
  var deserializeAws_json1_1ListUsersResponse = function (output, context) {
11538
11264
  return {
11539
11265
  PaginationToken: __expectString(output.PaginationToken),
11540
- Users: output.Users !== undefined && output.Users !== null
11541
- ? deserializeAws_json1_1UsersListType(output.Users, context)
11542
- : undefined,
11266
+ Users: output.Users != null ? deserializeAws_json1_1UsersListType(output.Users, context) : undefined,
11543
11267
  };
11544
11268
  };
11545
11269
  var deserializeAws_json1_1LogoutURLsListType = function (output, context) {
@@ -11595,16 +11319,10 @@ var deserializeAws_json1_1NotAuthorizedException = function (output, context) {
11595
11319
  };
11596
11320
  var deserializeAws_json1_1NotifyConfigurationType = function (output, context) {
11597
11321
  return {
11598
- BlockEmail: output.BlockEmail !== undefined && output.BlockEmail !== null
11599
- ? deserializeAws_json1_1NotifyEmailType(output.BlockEmail, context)
11600
- : undefined,
11322
+ BlockEmail: output.BlockEmail != null ? deserializeAws_json1_1NotifyEmailType(output.BlockEmail, context) : undefined,
11601
11323
  From: __expectString(output.From),
11602
- MfaEmail: output.MfaEmail !== undefined && output.MfaEmail !== null
11603
- ? deserializeAws_json1_1NotifyEmailType(output.MfaEmail, context)
11604
- : undefined,
11605
- NoActionEmail: output.NoActionEmail !== undefined && output.NoActionEmail !== null
11606
- ? deserializeAws_json1_1NotifyEmailType(output.NoActionEmail, context)
11607
- : undefined,
11324
+ MfaEmail: output.MfaEmail != null ? deserializeAws_json1_1NotifyEmailType(output.MfaEmail, context) : undefined,
11325
+ NoActionEmail: output.NoActionEmail != null ? deserializeAws_json1_1NotifyEmailType(output.NoActionEmail, context) : undefined,
11608
11326
  ReplyTo: __expectString(output.ReplyTo),
11609
11327
  SourceArn: __expectString(output.SourceArn),
11610
11328
  };
@@ -11655,10 +11373,10 @@ var deserializeAws_json1_1PreconditionNotMetException = function (output, contex
11655
11373
  };
11656
11374
  var deserializeAws_json1_1ProviderDescription = function (output, context) {
11657
11375
  return {
11658
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
11376
+ CreationDate: output.CreationDate != null
11659
11377
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
11660
11378
  : undefined,
11661
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
11379
+ LastModifiedDate: output.LastModifiedDate != null
11662
11380
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
11663
11381
  : undefined,
11664
11382
  ProviderName: __expectString(output.ProviderName),
@@ -11705,7 +11423,7 @@ var deserializeAws_json1_1RecoveryOptionType = function (output, context) {
11705
11423
  };
11706
11424
  var deserializeAws_json1_1ResendConfirmationCodeResponse = function (output, context) {
11707
11425
  return {
11708
- CodeDeliveryDetails: output.CodeDeliveryDetails !== undefined && output.CodeDeliveryDetails !== null
11426
+ CodeDeliveryDetails: output.CodeDeliveryDetails != null
11709
11427
  ? deserializeAws_json1_1CodeDeliveryDetailsType(output.CodeDeliveryDetails, context)
11710
11428
  : undefined,
11711
11429
  };
@@ -11747,19 +11465,17 @@ var deserializeAws_json1_1ResourceServerType = function (output, context) {
11747
11465
  return {
11748
11466
  Identifier: __expectString(output.Identifier),
11749
11467
  Name: __expectString(output.Name),
11750
- Scopes: output.Scopes !== undefined && output.Scopes !== null
11751
- ? deserializeAws_json1_1ResourceServerScopeListType(output.Scopes, context)
11752
- : undefined,
11468
+ Scopes: output.Scopes != null ? deserializeAws_json1_1ResourceServerScopeListType(output.Scopes, context) : undefined,
11753
11469
  UserPoolId: __expectString(output.UserPoolId),
11754
11470
  };
11755
11471
  };
11756
11472
  var deserializeAws_json1_1RespondToAuthChallengeResponse = function (output, context) {
11757
11473
  return {
11758
- AuthenticationResult: output.AuthenticationResult !== undefined && output.AuthenticationResult !== null
11474
+ AuthenticationResult: output.AuthenticationResult != null
11759
11475
  ? deserializeAws_json1_1AuthenticationResultType(output.AuthenticationResult, context)
11760
11476
  : undefined,
11761
11477
  ChallengeName: __expectString(output.ChallengeName),
11762
- ChallengeParameters: output.ChallengeParameters !== undefined && output.ChallengeParameters !== null
11478
+ ChallengeParameters: output.ChallengeParameters != null
11763
11479
  ? deserializeAws_json1_1ChallengeParametersType(output.ChallengeParameters, context)
11764
11480
  : undefined,
11765
11481
  Session: __expectString(output.Session),
@@ -11770,18 +11486,17 @@ var deserializeAws_json1_1RevokeTokenResponse = function (output, context) {
11770
11486
  };
11771
11487
  var deserializeAws_json1_1RiskConfigurationType = function (output, context) {
11772
11488
  return {
11773
- AccountTakeoverRiskConfiguration: output.AccountTakeoverRiskConfiguration !== undefined && output.AccountTakeoverRiskConfiguration !== null
11489
+ AccountTakeoverRiskConfiguration: output.AccountTakeoverRiskConfiguration != null
11774
11490
  ? deserializeAws_json1_1AccountTakeoverRiskConfigurationType(output.AccountTakeoverRiskConfiguration, context)
11775
11491
  : undefined,
11776
11492
  ClientId: __expectString(output.ClientId),
11777
- CompromisedCredentialsRiskConfiguration: output.CompromisedCredentialsRiskConfiguration !== undefined &&
11778
- output.CompromisedCredentialsRiskConfiguration !== null
11493
+ CompromisedCredentialsRiskConfiguration: output.CompromisedCredentialsRiskConfiguration != null
11779
11494
  ? deserializeAws_json1_1CompromisedCredentialsRiskConfigurationType(output.CompromisedCredentialsRiskConfiguration, context)
11780
11495
  : undefined,
11781
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
11496
+ LastModifiedDate: output.LastModifiedDate != null
11782
11497
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
11783
11498
  : undefined,
11784
- RiskExceptionConfiguration: output.RiskExceptionConfiguration !== undefined && output.RiskExceptionConfiguration !== null
11499
+ RiskExceptionConfiguration: output.RiskExceptionConfiguration != null
11785
11500
  ? deserializeAws_json1_1RiskExceptionConfigurationType(output.RiskExceptionConfiguration, context)
11786
11501
  : undefined,
11787
11502
  UserPoolId: __expectString(output.UserPoolId),
@@ -11789,10 +11504,10 @@ var deserializeAws_json1_1RiskConfigurationType = function (output, context) {
11789
11504
  };
11790
11505
  var deserializeAws_json1_1RiskExceptionConfigurationType = function (output, context) {
11791
11506
  return {
11792
- BlockedIPRangeList: output.BlockedIPRangeList !== undefined && output.BlockedIPRangeList !== null
11507
+ BlockedIPRangeList: output.BlockedIPRangeList != null
11793
11508
  ? deserializeAws_json1_1BlockedIPRangeListType(output.BlockedIPRangeList, context)
11794
11509
  : undefined,
11795
- SkippedIPRangeList: output.SkippedIPRangeList !== undefined && output.SkippedIPRangeList !== null
11510
+ SkippedIPRangeList: output.SkippedIPRangeList != null
11796
11511
  ? deserializeAws_json1_1SkippedIPRangeListType(output.SkippedIPRangeList, context)
11797
11512
  : undefined,
11798
11513
  };
@@ -11814,11 +11529,11 @@ var deserializeAws_json1_1SchemaAttributeType = function (output, context) {
11814
11529
  DeveloperOnlyAttribute: __expectBoolean(output.DeveloperOnlyAttribute),
11815
11530
  Mutable: __expectBoolean(output.Mutable),
11816
11531
  Name: __expectString(output.Name),
11817
- NumberAttributeConstraints: output.NumberAttributeConstraints !== undefined && output.NumberAttributeConstraints !== null
11532
+ NumberAttributeConstraints: output.NumberAttributeConstraints != null
11818
11533
  ? deserializeAws_json1_1NumberAttributeConstraintsType(output.NumberAttributeConstraints, context)
11819
11534
  : undefined,
11820
11535
  Required: __expectBoolean(output.Required),
11821
- StringAttributeConstraints: output.StringAttributeConstraints !== undefined && output.StringAttributeConstraints !== null
11536
+ StringAttributeConstraints: output.StringAttributeConstraints != null
11822
11537
  ? deserializeAws_json1_1StringAttributeConstraintsType(output.StringAttributeConstraints, context)
11823
11538
  : undefined,
11824
11539
  };
@@ -11841,14 +11556,14 @@ var deserializeAws_json1_1ScopeListType = function (output, context) {
11841
11556
  };
11842
11557
  var deserializeAws_json1_1SetRiskConfigurationResponse = function (output, context) {
11843
11558
  return {
11844
- RiskConfiguration: output.RiskConfiguration !== undefined && output.RiskConfiguration !== null
11559
+ RiskConfiguration: output.RiskConfiguration != null
11845
11560
  ? deserializeAws_json1_1RiskConfigurationType(output.RiskConfiguration, context)
11846
11561
  : undefined,
11847
11562
  };
11848
11563
  };
11849
11564
  var deserializeAws_json1_1SetUICustomizationResponse = function (output, context) {
11850
11565
  return {
11851
- UICustomization: output.UICustomization !== undefined && output.UICustomization !== null
11566
+ UICustomization: output.UICustomization != null
11852
11567
  ? deserializeAws_json1_1UICustomizationType(output.UICustomization, context)
11853
11568
  : undefined,
11854
11569
  };
@@ -11859,10 +11574,10 @@ var deserializeAws_json1_1SetUserMFAPreferenceResponse = function (output, conte
11859
11574
  var deserializeAws_json1_1SetUserPoolMfaConfigResponse = function (output, context) {
11860
11575
  return {
11861
11576
  MfaConfiguration: __expectString(output.MfaConfiguration),
11862
- SmsMfaConfiguration: output.SmsMfaConfiguration !== undefined && output.SmsMfaConfiguration !== null
11577
+ SmsMfaConfiguration: output.SmsMfaConfiguration != null
11863
11578
  ? deserializeAws_json1_1SmsMfaConfigType(output.SmsMfaConfiguration, context)
11864
11579
  : undefined,
11865
- SoftwareTokenMfaConfiguration: output.SoftwareTokenMfaConfiguration !== undefined && output.SoftwareTokenMfaConfiguration !== null
11580
+ SoftwareTokenMfaConfiguration: output.SoftwareTokenMfaConfiguration != null
11866
11581
  ? deserializeAws_json1_1SoftwareTokenMfaConfigType(output.SoftwareTokenMfaConfiguration, context)
11867
11582
  : undefined,
11868
11583
  };
@@ -11872,7 +11587,7 @@ var deserializeAws_json1_1SetUserSettingsResponse = function (output, context) {
11872
11587
  };
11873
11588
  var deserializeAws_json1_1SignUpResponse = function (output, context) {
11874
11589
  return {
11875
- CodeDeliveryDetails: output.CodeDeliveryDetails !== undefined && output.CodeDeliveryDetails !== null
11590
+ CodeDeliveryDetails: output.CodeDeliveryDetails != null
11876
11591
  ? deserializeAws_json1_1CodeDeliveryDetailsType(output.CodeDeliveryDetails, context)
11877
11592
  : undefined,
11878
11593
  UserConfirmed: __expectBoolean(output.UserConfirmed),
@@ -11900,7 +11615,7 @@ var deserializeAws_json1_1SmsConfigurationType = function (output, context) {
11900
11615
  var deserializeAws_json1_1SmsMfaConfigType = function (output, context) {
11901
11616
  return {
11902
11617
  SmsAuthenticationMessage: __expectString(output.SmsAuthenticationMessage),
11903
- SmsConfiguration: output.SmsConfiguration !== undefined && output.SmsConfiguration !== null
11618
+ SmsConfiguration: output.SmsConfiguration != null
11904
11619
  ? deserializeAws_json1_1SmsConfigurationType(output.SmsConfiguration, context)
11905
11620
  : undefined,
11906
11621
  };
@@ -11917,16 +11632,12 @@ var deserializeAws_json1_1SoftwareTokenMFANotFoundException = function (output,
11917
11632
  };
11918
11633
  var deserializeAws_json1_1StartUserImportJobResponse = function (output, context) {
11919
11634
  return {
11920
- UserImportJob: output.UserImportJob !== undefined && output.UserImportJob !== null
11921
- ? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context)
11922
- : undefined,
11635
+ UserImportJob: output.UserImportJob != null ? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context) : undefined,
11923
11636
  };
11924
11637
  };
11925
11638
  var deserializeAws_json1_1StopUserImportJobResponse = function (output, context) {
11926
11639
  return {
11927
- UserImportJob: output.UserImportJob !== undefined && output.UserImportJob !== null
11928
- ? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context)
11929
- : undefined,
11640
+ UserImportJob: output.UserImportJob != null ? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context) : undefined,
11930
11641
  };
11931
11642
  };
11932
11643
  var deserializeAws_json1_1StringAttributeConstraintsType = function (output, context) {
@@ -11971,11 +11682,11 @@ var deserializeAws_json1_1UICustomizationType = function (output, context) {
11971
11682
  CSS: __expectString(output.CSS),
11972
11683
  CSSVersion: __expectString(output.CSSVersion),
11973
11684
  ClientId: __expectString(output.ClientId),
11974
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
11685
+ CreationDate: output.CreationDate != null
11975
11686
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
11976
11687
  : undefined,
11977
11688
  ImageUrl: __expectString(output.ImageUrl),
11978
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
11689
+ LastModifiedDate: output.LastModifiedDate != null
11979
11690
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
11980
11691
  : undefined,
11981
11692
  UserPoolId: __expectString(output.UserPoolId),
@@ -12022,35 +11733,33 @@ var deserializeAws_json1_1UpdateDeviceStatusResponse = function (output, context
12022
11733
  };
12023
11734
  var deserializeAws_json1_1UpdateGroupResponse = function (output, context) {
12024
11735
  return {
12025
- Group: output.Group !== undefined && output.Group !== null
12026
- ? deserializeAws_json1_1GroupType(output.Group, context)
12027
- : undefined,
11736
+ Group: output.Group != null ? deserializeAws_json1_1GroupType(output.Group, context) : undefined,
12028
11737
  };
12029
11738
  };
12030
11739
  var deserializeAws_json1_1UpdateIdentityProviderResponse = function (output, context) {
12031
11740
  return {
12032
- IdentityProvider: output.IdentityProvider !== undefined && output.IdentityProvider !== null
11741
+ IdentityProvider: output.IdentityProvider != null
12033
11742
  ? deserializeAws_json1_1IdentityProviderType(output.IdentityProvider, context)
12034
11743
  : undefined,
12035
11744
  };
12036
11745
  };
12037
11746
  var deserializeAws_json1_1UpdateResourceServerResponse = function (output, context) {
12038
11747
  return {
12039
- ResourceServer: output.ResourceServer !== undefined && output.ResourceServer !== null
11748
+ ResourceServer: output.ResourceServer != null
12040
11749
  ? deserializeAws_json1_1ResourceServerType(output.ResourceServer, context)
12041
11750
  : undefined,
12042
11751
  };
12043
11752
  };
12044
11753
  var deserializeAws_json1_1UpdateUserAttributesResponse = function (output, context) {
12045
11754
  return {
12046
- CodeDeliveryDetailsList: output.CodeDeliveryDetailsList !== undefined && output.CodeDeliveryDetailsList !== null
11755
+ CodeDeliveryDetailsList: output.CodeDeliveryDetailsList != null
12047
11756
  ? deserializeAws_json1_1CodeDeliveryDetailsListType(output.CodeDeliveryDetailsList, context)
12048
11757
  : undefined,
12049
11758
  };
12050
11759
  };
12051
11760
  var deserializeAws_json1_1UpdateUserPoolClientResponse = function (output, context) {
12052
11761
  return {
12053
- UserPoolClient: output.UserPoolClient !== undefined && output.UserPoolClient !== null
11762
+ UserPoolClient: output.UserPoolClient != null
12054
11763
  ? deserializeAws_json1_1UserPoolClientType(output.UserPoolClient, context)
12055
11764
  : undefined,
12056
11765
  };
@@ -12065,8 +11774,7 @@ var deserializeAws_json1_1UpdateUserPoolResponse = function (output, context) {
12065
11774
  };
12066
11775
  var deserializeAws_json1_1UserAttributeUpdateSettingsType = function (output, context) {
12067
11776
  return {
12068
- AttributesRequireVerificationBeforeUpdate: output.AttributesRequireVerificationBeforeUpdate !== undefined &&
12069
- output.AttributesRequireVerificationBeforeUpdate !== null
11777
+ AttributesRequireVerificationBeforeUpdate: output.AttributesRequireVerificationBeforeUpdate != null
12070
11778
  ? deserializeAws_json1_1AttributesRequireVerificationBeforeUpdateType(output.AttributesRequireVerificationBeforeUpdate, context)
12071
11779
  : undefined,
12072
11780
  };
@@ -12090,11 +11798,11 @@ var deserializeAws_json1_1UserImportJobsListType = function (output, context) {
12090
11798
  var deserializeAws_json1_1UserImportJobType = function (output, context) {
12091
11799
  return {
12092
11800
  CloudWatchLogsRoleArn: __expectString(output.CloudWatchLogsRoleArn),
12093
- CompletionDate: output.CompletionDate !== undefined && output.CompletionDate !== null
11801
+ CompletionDate: output.CompletionDate != null
12094
11802
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CompletionDate)))
12095
11803
  : undefined,
12096
11804
  CompletionMessage: __expectString(output.CompletionMessage),
12097
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
11805
+ CreationDate: output.CreationDate != null
12098
11806
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
12099
11807
  : undefined,
12100
11808
  FailedUsers: __expectLong(output.FailedUsers),
@@ -12103,9 +11811,7 @@ var deserializeAws_json1_1UserImportJobType = function (output, context) {
12103
11811
  JobName: __expectString(output.JobName),
12104
11812
  PreSignedUrl: __expectString(output.PreSignedUrl),
12105
11813
  SkippedUsers: __expectLong(output.SkippedUsers),
12106
- StartDate: output.StartDate !== undefined && output.StartDate !== null
12107
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartDate)))
12108
- : undefined,
11814
+ StartDate: output.StartDate != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartDate))) : undefined,
12109
11815
  Status: __expectString(output.Status),
12110
11816
  UserPoolId: __expectString(output.UserPoolId),
12111
11817
  };
@@ -12188,65 +11894,61 @@ var deserializeAws_json1_1UserPoolClientListType = function (output, context) {
12188
11894
  var deserializeAws_json1_1UserPoolClientType = function (output, context) {
12189
11895
  return {
12190
11896
  AccessTokenValidity: __expectInt32(output.AccessTokenValidity),
12191
- AllowedOAuthFlows: output.AllowedOAuthFlows !== undefined && output.AllowedOAuthFlows !== null
11897
+ AllowedOAuthFlows: output.AllowedOAuthFlows != null
12192
11898
  ? deserializeAws_json1_1OAuthFlowsType(output.AllowedOAuthFlows, context)
12193
11899
  : undefined,
12194
11900
  AllowedOAuthFlowsUserPoolClient: __expectBoolean(output.AllowedOAuthFlowsUserPoolClient),
12195
- AllowedOAuthScopes: output.AllowedOAuthScopes !== undefined && output.AllowedOAuthScopes !== null
11901
+ AllowedOAuthScopes: output.AllowedOAuthScopes != null
12196
11902
  ? deserializeAws_json1_1ScopeListType(output.AllowedOAuthScopes, context)
12197
11903
  : undefined,
12198
- AnalyticsConfiguration: output.AnalyticsConfiguration !== undefined && output.AnalyticsConfiguration !== null
11904
+ AnalyticsConfiguration: output.AnalyticsConfiguration != null
12199
11905
  ? deserializeAws_json1_1AnalyticsConfigurationType(output.AnalyticsConfiguration, context)
12200
11906
  : undefined,
12201
- CallbackURLs: output.CallbackURLs !== undefined && output.CallbackURLs !== null
11907
+ CallbackURLs: output.CallbackURLs != null
12202
11908
  ? deserializeAws_json1_1CallbackURLsListType(output.CallbackURLs, context)
12203
11909
  : undefined,
12204
11910
  ClientId: __expectString(output.ClientId),
12205
11911
  ClientName: __expectString(output.ClientName),
12206
11912
  ClientSecret: __expectString(output.ClientSecret),
12207
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
11913
+ CreationDate: output.CreationDate != null
12208
11914
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
12209
11915
  : undefined,
12210
11916
  DefaultRedirectURI: __expectString(output.DefaultRedirectURI),
12211
11917
  EnablePropagateAdditionalUserContextData: __expectBoolean(output.EnablePropagateAdditionalUserContextData),
12212
11918
  EnableTokenRevocation: __expectBoolean(output.EnableTokenRevocation),
12213
- ExplicitAuthFlows: output.ExplicitAuthFlows !== undefined && output.ExplicitAuthFlows !== null
11919
+ ExplicitAuthFlows: output.ExplicitAuthFlows != null
12214
11920
  ? deserializeAws_json1_1ExplicitAuthFlowsListType(output.ExplicitAuthFlows, context)
12215
11921
  : undefined,
12216
11922
  IdTokenValidity: __expectInt32(output.IdTokenValidity),
12217
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
11923
+ LastModifiedDate: output.LastModifiedDate != null
12218
11924
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
12219
11925
  : undefined,
12220
- LogoutURLs: output.LogoutURLs !== undefined && output.LogoutURLs !== null
12221
- ? deserializeAws_json1_1LogoutURLsListType(output.LogoutURLs, context)
12222
- : undefined,
11926
+ LogoutURLs: output.LogoutURLs != null ? deserializeAws_json1_1LogoutURLsListType(output.LogoutURLs, context) : undefined,
12223
11927
  PreventUserExistenceErrors: __expectString(output.PreventUserExistenceErrors),
12224
- ReadAttributes: output.ReadAttributes !== undefined && output.ReadAttributes !== null
11928
+ ReadAttributes: output.ReadAttributes != null
12225
11929
  ? deserializeAws_json1_1ClientPermissionListType(output.ReadAttributes, context)
12226
11930
  : undefined,
12227
11931
  RefreshTokenValidity: __expectInt32(output.RefreshTokenValidity),
12228
- SupportedIdentityProviders: output.SupportedIdentityProviders !== undefined && output.SupportedIdentityProviders !== null
11932
+ SupportedIdentityProviders: output.SupportedIdentityProviders != null
12229
11933
  ? deserializeAws_json1_1SupportedIdentityProvidersListType(output.SupportedIdentityProviders, context)
12230
11934
  : undefined,
12231
- TokenValidityUnits: output.TokenValidityUnits !== undefined && output.TokenValidityUnits !== null
11935
+ TokenValidityUnits: output.TokenValidityUnits != null
12232
11936
  ? deserializeAws_json1_1TokenValidityUnitsType(output.TokenValidityUnits, context)
12233
11937
  : undefined,
12234
11938
  UserPoolId: __expectString(output.UserPoolId),
12235
- WriteAttributes: output.WriteAttributes !== undefined && output.WriteAttributes !== null
11939
+ WriteAttributes: output.WriteAttributes != null
12236
11940
  ? deserializeAws_json1_1ClientPermissionListType(output.WriteAttributes, context)
12237
11941
  : undefined,
12238
11942
  };
12239
11943
  };
12240
11944
  var deserializeAws_json1_1UserPoolDescriptionType = function (output, context) {
12241
11945
  return {
12242
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
11946
+ CreationDate: output.CreationDate != null
12243
11947
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
12244
11948
  : undefined,
12245
11949
  Id: __expectString(output.Id),
12246
- LambdaConfig: output.LambdaConfig !== undefined && output.LambdaConfig !== null
12247
- ? deserializeAws_json1_1LambdaConfigType(output.LambdaConfig, context)
12248
- : undefined,
12249
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
11950
+ LambdaConfig: output.LambdaConfig != null ? deserializeAws_json1_1LambdaConfigType(output.LambdaConfig, context) : undefined,
11951
+ LastModifiedDate: output.LastModifiedDate != null
12250
11952
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
12251
11953
  : undefined,
12252
11954
  Name: __expectString(output.Name),
@@ -12266,7 +11968,7 @@ var deserializeAws_json1_1UserPoolListType = function (output, context) {
12266
11968
  };
12267
11969
  var deserializeAws_json1_1UserPoolPolicyType = function (output, context) {
12268
11970
  return {
12269
- PasswordPolicy: output.PasswordPolicy !== undefined && output.PasswordPolicy !== null
11971
+ PasswordPolicy: output.PasswordPolicy != null
12270
11972
  ? deserializeAws_json1_1PasswordPolicyType(output.PasswordPolicy, context)
12271
11973
  : undefined,
12272
11974
  };
@@ -12288,28 +11990,28 @@ var deserializeAws_json1_1UserPoolTagsType = function (output, context) {
12288
11990
  };
12289
11991
  var deserializeAws_json1_1UserPoolType = function (output, context) {
12290
11992
  return {
12291
- AccountRecoverySetting: output.AccountRecoverySetting !== undefined && output.AccountRecoverySetting !== null
11993
+ AccountRecoverySetting: output.AccountRecoverySetting != null
12292
11994
  ? deserializeAws_json1_1AccountRecoverySettingType(output.AccountRecoverySetting, context)
12293
11995
  : undefined,
12294
- AdminCreateUserConfig: output.AdminCreateUserConfig !== undefined && output.AdminCreateUserConfig !== null
11996
+ AdminCreateUserConfig: output.AdminCreateUserConfig != null
12295
11997
  ? deserializeAws_json1_1AdminCreateUserConfigType(output.AdminCreateUserConfig, context)
12296
11998
  : undefined,
12297
- AliasAttributes: output.AliasAttributes !== undefined && output.AliasAttributes !== null
11999
+ AliasAttributes: output.AliasAttributes != null
12298
12000
  ? deserializeAws_json1_1AliasAttributesListType(output.AliasAttributes, context)
12299
12001
  : undefined,
12300
12002
  Arn: __expectString(output.Arn),
12301
- AutoVerifiedAttributes: output.AutoVerifiedAttributes !== undefined && output.AutoVerifiedAttributes !== null
12003
+ AutoVerifiedAttributes: output.AutoVerifiedAttributes != null
12302
12004
  ? deserializeAws_json1_1VerifiedAttributesListType(output.AutoVerifiedAttributes, context)
12303
12005
  : undefined,
12304
- CreationDate: output.CreationDate !== undefined && output.CreationDate !== null
12006
+ CreationDate: output.CreationDate != null
12305
12007
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
12306
12008
  : undefined,
12307
12009
  CustomDomain: __expectString(output.CustomDomain),
12308
- DeviceConfiguration: output.DeviceConfiguration !== undefined && output.DeviceConfiguration !== null
12010
+ DeviceConfiguration: output.DeviceConfiguration != null
12309
12011
  ? deserializeAws_json1_1DeviceConfigurationType(output.DeviceConfiguration, context)
12310
12012
  : undefined,
12311
12013
  Domain: __expectString(output.Domain),
12312
- EmailConfiguration: output.EmailConfiguration !== undefined && output.EmailConfiguration !== null
12014
+ EmailConfiguration: output.EmailConfiguration != null
12313
12015
  ? deserializeAws_json1_1EmailConfigurationType(output.EmailConfiguration, context)
12314
12016
  : undefined,
12315
12017
  EmailConfigurationFailure: __expectString(output.EmailConfigurationFailure),
@@ -12317,43 +12019,37 @@ var deserializeAws_json1_1UserPoolType = function (output, context) {
12317
12019
  EmailVerificationSubject: __expectString(output.EmailVerificationSubject),
12318
12020
  EstimatedNumberOfUsers: __expectInt32(output.EstimatedNumberOfUsers),
12319
12021
  Id: __expectString(output.Id),
12320
- LambdaConfig: output.LambdaConfig !== undefined && output.LambdaConfig !== null
12321
- ? deserializeAws_json1_1LambdaConfigType(output.LambdaConfig, context)
12322
- : undefined,
12323
- LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
12022
+ LambdaConfig: output.LambdaConfig != null ? deserializeAws_json1_1LambdaConfigType(output.LambdaConfig, context) : undefined,
12023
+ LastModifiedDate: output.LastModifiedDate != null
12324
12024
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastModifiedDate)))
12325
12025
  : undefined,
12326
12026
  MfaConfiguration: __expectString(output.MfaConfiguration),
12327
12027
  Name: __expectString(output.Name),
12328
- Policies: output.Policies !== undefined && output.Policies !== null
12329
- ? deserializeAws_json1_1UserPoolPolicyType(output.Policies, context)
12330
- : undefined,
12331
- SchemaAttributes: output.SchemaAttributes !== undefined && output.SchemaAttributes !== null
12028
+ Policies: output.Policies != null ? deserializeAws_json1_1UserPoolPolicyType(output.Policies, context) : undefined,
12029
+ SchemaAttributes: output.SchemaAttributes != null
12332
12030
  ? deserializeAws_json1_1SchemaAttributesListType(output.SchemaAttributes, context)
12333
12031
  : undefined,
12334
12032
  SmsAuthenticationMessage: __expectString(output.SmsAuthenticationMessage),
12335
- SmsConfiguration: output.SmsConfiguration !== undefined && output.SmsConfiguration !== null
12033
+ SmsConfiguration: output.SmsConfiguration != null
12336
12034
  ? deserializeAws_json1_1SmsConfigurationType(output.SmsConfiguration, context)
12337
12035
  : undefined,
12338
12036
  SmsConfigurationFailure: __expectString(output.SmsConfigurationFailure),
12339
12037
  SmsVerificationMessage: __expectString(output.SmsVerificationMessage),
12340
12038
  Status: __expectString(output.Status),
12341
- UserAttributeUpdateSettings: output.UserAttributeUpdateSettings !== undefined && output.UserAttributeUpdateSettings !== null
12039
+ UserAttributeUpdateSettings: output.UserAttributeUpdateSettings != null
12342
12040
  ? deserializeAws_json1_1UserAttributeUpdateSettingsType(output.UserAttributeUpdateSettings, context)
12343
12041
  : undefined,
12344
- UserPoolAddOns: output.UserPoolAddOns !== undefined && output.UserPoolAddOns !== null
12042
+ UserPoolAddOns: output.UserPoolAddOns != null
12345
12043
  ? deserializeAws_json1_1UserPoolAddOnsType(output.UserPoolAddOns, context)
12346
12044
  : undefined,
12347
- UserPoolTags: output.UserPoolTags !== undefined && output.UserPoolTags !== null
12348
- ? deserializeAws_json1_1UserPoolTagsType(output.UserPoolTags, context)
12349
- : undefined,
12350
- UsernameAttributes: output.UsernameAttributes !== undefined && output.UsernameAttributes !== null
12045
+ UserPoolTags: output.UserPoolTags != null ? deserializeAws_json1_1UserPoolTagsType(output.UserPoolTags, context) : undefined,
12046
+ UsernameAttributes: output.UsernameAttributes != null
12351
12047
  ? deserializeAws_json1_1UsernameAttributesListType(output.UsernameAttributes, context)
12352
12048
  : undefined,
12353
- UsernameConfiguration: output.UsernameConfiguration !== undefined && output.UsernameConfiguration !== null
12049
+ UsernameConfiguration: output.UsernameConfiguration != null
12354
12050
  ? deserializeAws_json1_1UsernameConfigurationType(output.UsernameConfiguration, context)
12355
12051
  : undefined,
12356
- VerificationMessageTemplate: output.VerificationMessageTemplate !== undefined && output.VerificationMessageTemplate !== null
12052
+ VerificationMessageTemplate: output.VerificationMessageTemplate != null
12357
12053
  ? deserializeAws_json1_1VerificationMessageTemplateType(output.VerificationMessageTemplate, context)
12358
12054
  : undefined,
12359
12055
  };
@@ -12371,17 +12067,13 @@ var deserializeAws_json1_1UsersListType = function (output, context) {
12371
12067
  };
12372
12068
  var deserializeAws_json1_1UserType = function (output, context) {
12373
12069
  return {
12374
- Attributes: output.Attributes !== undefined && output.Attributes !== null
12375
- ? deserializeAws_json1_1AttributeListType(output.Attributes, context)
12376
- : undefined,
12070
+ Attributes: output.Attributes != null ? deserializeAws_json1_1AttributeListType(output.Attributes, context) : undefined,
12377
12071
  Enabled: __expectBoolean(output.Enabled),
12378
- MFAOptions: output.MFAOptions !== undefined && output.MFAOptions !== null
12379
- ? deserializeAws_json1_1MFAOptionListType(output.MFAOptions, context)
12380
- : undefined,
12381
- UserCreateDate: output.UserCreateDate !== undefined && output.UserCreateDate !== null
12072
+ MFAOptions: output.MFAOptions != null ? deserializeAws_json1_1MFAOptionListType(output.MFAOptions, context) : undefined,
12073
+ UserCreateDate: output.UserCreateDate != null
12382
12074
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UserCreateDate)))
12383
12075
  : undefined,
12384
- UserLastModifiedDate: output.UserLastModifiedDate !== undefined && output.UserLastModifiedDate !== null
12076
+ UserLastModifiedDate: output.UserLastModifiedDate != null
12385
12077
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UserLastModifiedDate)))
12386
12078
  : undefined,
12387
12079
  UserStatus: __expectString(output.UserStatus),
@@ -12474,6 +12166,9 @@ var loadRestJsonErrorCode = function (output, data) {
12474
12166
  var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
12475
12167
  var sanitizeErrorCode = function (rawValue) {
12476
12168
  var cleanValue = rawValue;
12169
+ if (typeof cleanValue === "number") {
12170
+ cleanValue = cleanValue.toString();
12171
+ }
12477
12172
  if (cleanValue.indexOf(":") >= 0) {
12478
12173
  cleanValue = cleanValue.split(":")[0];
12479
12174
  }