@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.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_1.js +678 -983
- package/dist-es/protocols/Aws_json1_1.js +414 -719
- package/package.json +26 -26
|
@@ -7114,327 +7114,290 @@ const deserializeAws_json1_1UserPoolTaggingExceptionResponse = async (parsedOutp
|
|
|
7114
7114
|
};
|
|
7115
7115
|
const serializeAws_json1_1AccountRecoverySettingType = (input, context) => {
|
|
7116
7116
|
return {
|
|
7117
|
-
...(input.RecoveryMechanisms
|
|
7118
|
-
input.RecoveryMechanisms !== null && {
|
|
7117
|
+
...(input.RecoveryMechanisms != null && {
|
|
7119
7118
|
RecoveryMechanisms: serializeAws_json1_1RecoveryMechanismsType(input.RecoveryMechanisms, context),
|
|
7120
7119
|
}),
|
|
7121
7120
|
};
|
|
7122
7121
|
};
|
|
7123
7122
|
const serializeAws_json1_1AccountTakeoverActionsType = (input, context) => {
|
|
7124
7123
|
return {
|
|
7125
|
-
...(input.HighAction
|
|
7126
|
-
input.HighAction !== null && {
|
|
7124
|
+
...(input.HighAction != null && {
|
|
7127
7125
|
HighAction: serializeAws_json1_1AccountTakeoverActionType(input.HighAction, context),
|
|
7128
7126
|
}),
|
|
7129
|
-
...(input.LowAction
|
|
7130
|
-
input.LowAction !== null && {
|
|
7127
|
+
...(input.LowAction != null && {
|
|
7131
7128
|
LowAction: serializeAws_json1_1AccountTakeoverActionType(input.LowAction, context),
|
|
7132
7129
|
}),
|
|
7133
|
-
...(input.MediumAction
|
|
7134
|
-
input.MediumAction !== null && {
|
|
7130
|
+
...(input.MediumAction != null && {
|
|
7135
7131
|
MediumAction: serializeAws_json1_1AccountTakeoverActionType(input.MediumAction, context),
|
|
7136
7132
|
}),
|
|
7137
7133
|
};
|
|
7138
7134
|
};
|
|
7139
7135
|
const serializeAws_json1_1AccountTakeoverActionType = (input, context) => {
|
|
7140
7136
|
return {
|
|
7141
|
-
...(input.EventAction
|
|
7142
|
-
...(input.Notify
|
|
7137
|
+
...(input.EventAction != null && { EventAction: input.EventAction }),
|
|
7138
|
+
...(input.Notify != null && { Notify: input.Notify }),
|
|
7143
7139
|
};
|
|
7144
7140
|
};
|
|
7145
7141
|
const serializeAws_json1_1AccountTakeoverRiskConfigurationType = (input, context) => {
|
|
7146
7142
|
return {
|
|
7147
|
-
...(input.Actions
|
|
7148
|
-
|
|
7149
|
-
...(input.NotifyConfiguration !== undefined &&
|
|
7150
|
-
input.NotifyConfiguration !== null && {
|
|
7143
|
+
...(input.Actions != null && { Actions: serializeAws_json1_1AccountTakeoverActionsType(input.Actions, context) }),
|
|
7144
|
+
...(input.NotifyConfiguration != null && {
|
|
7151
7145
|
NotifyConfiguration: serializeAws_json1_1NotifyConfigurationType(input.NotifyConfiguration, context),
|
|
7152
7146
|
}),
|
|
7153
7147
|
};
|
|
7154
7148
|
};
|
|
7155
7149
|
const serializeAws_json1_1AddCustomAttributesRequest = (input, context) => {
|
|
7156
7150
|
return {
|
|
7157
|
-
...(input.CustomAttributes
|
|
7158
|
-
input.CustomAttributes !== null && {
|
|
7151
|
+
...(input.CustomAttributes != null && {
|
|
7159
7152
|
CustomAttributes: serializeAws_json1_1CustomAttributesListType(input.CustomAttributes, context),
|
|
7160
7153
|
}),
|
|
7161
|
-
...(input.UserPoolId
|
|
7154
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7162
7155
|
};
|
|
7163
7156
|
};
|
|
7164
7157
|
const serializeAws_json1_1AdminAddUserToGroupRequest = (input, context) => {
|
|
7165
7158
|
return {
|
|
7166
|
-
...(input.GroupName
|
|
7167
|
-
...(input.UserPoolId
|
|
7168
|
-
...(input.Username
|
|
7159
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
7160
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7161
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7169
7162
|
};
|
|
7170
7163
|
};
|
|
7171
7164
|
const serializeAws_json1_1AdminConfirmSignUpRequest = (input, context) => {
|
|
7172
7165
|
return {
|
|
7173
|
-
...(input.ClientMetadata
|
|
7174
|
-
input.ClientMetadata !== null && {
|
|
7166
|
+
...(input.ClientMetadata != null && {
|
|
7175
7167
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
7176
7168
|
}),
|
|
7177
|
-
...(input.UserPoolId
|
|
7178
|
-
...(input.Username
|
|
7169
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7170
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7179
7171
|
};
|
|
7180
7172
|
};
|
|
7181
7173
|
const serializeAws_json1_1AdminCreateUserConfigType = (input, context) => {
|
|
7182
7174
|
return {
|
|
7183
|
-
...(input.AllowAdminCreateUserOnly
|
|
7184
|
-
|
|
7185
|
-
...(input.InviteMessageTemplate !== undefined &&
|
|
7186
|
-
input.InviteMessageTemplate !== null && {
|
|
7175
|
+
...(input.AllowAdminCreateUserOnly != null && { AllowAdminCreateUserOnly: input.AllowAdminCreateUserOnly }),
|
|
7176
|
+
...(input.InviteMessageTemplate != null && {
|
|
7187
7177
|
InviteMessageTemplate: serializeAws_json1_1MessageTemplateType(input.InviteMessageTemplate, context),
|
|
7188
7178
|
}),
|
|
7189
|
-
...(input.UnusedAccountValidityDays
|
|
7190
|
-
input.UnusedAccountValidityDays !== null && { UnusedAccountValidityDays: input.UnusedAccountValidityDays }),
|
|
7179
|
+
...(input.UnusedAccountValidityDays != null && { UnusedAccountValidityDays: input.UnusedAccountValidityDays }),
|
|
7191
7180
|
};
|
|
7192
7181
|
};
|
|
7193
7182
|
const serializeAws_json1_1AdminCreateUserRequest = (input, context) => {
|
|
7194
7183
|
return {
|
|
7195
|
-
...(input.ClientMetadata
|
|
7196
|
-
input.ClientMetadata !== null && {
|
|
7184
|
+
...(input.ClientMetadata != null && {
|
|
7197
7185
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
7198
7186
|
}),
|
|
7199
|
-
...(input.DesiredDeliveryMediums
|
|
7200
|
-
input.DesiredDeliveryMediums !== null && {
|
|
7187
|
+
...(input.DesiredDeliveryMediums != null && {
|
|
7201
7188
|
DesiredDeliveryMediums: serializeAws_json1_1DeliveryMediumListType(input.DesiredDeliveryMediums, context),
|
|
7202
7189
|
}),
|
|
7203
|
-
...(input.ForceAliasCreation
|
|
7204
|
-
|
|
7205
|
-
...(input.
|
|
7206
|
-
...(input.
|
|
7207
|
-
input.TemporaryPassword !== null && { TemporaryPassword: input.TemporaryPassword }),
|
|
7208
|
-
...(input.UserAttributes !== undefined &&
|
|
7209
|
-
input.UserAttributes !== null && {
|
|
7190
|
+
...(input.ForceAliasCreation != null && { ForceAliasCreation: input.ForceAliasCreation }),
|
|
7191
|
+
...(input.MessageAction != null && { MessageAction: input.MessageAction }),
|
|
7192
|
+
...(input.TemporaryPassword != null && { TemporaryPassword: input.TemporaryPassword }),
|
|
7193
|
+
...(input.UserAttributes != null && {
|
|
7210
7194
|
UserAttributes: serializeAws_json1_1AttributeListType(input.UserAttributes, context),
|
|
7211
7195
|
}),
|
|
7212
|
-
...(input.UserPoolId
|
|
7213
|
-
...(input.Username
|
|
7214
|
-
...(input.ValidationData
|
|
7215
|
-
input.ValidationData !== null && {
|
|
7196
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7197
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7198
|
+
...(input.ValidationData != null && {
|
|
7216
7199
|
ValidationData: serializeAws_json1_1AttributeListType(input.ValidationData, context),
|
|
7217
7200
|
}),
|
|
7218
7201
|
};
|
|
7219
7202
|
};
|
|
7220
7203
|
const serializeAws_json1_1AdminDeleteUserAttributesRequest = (input, context) => {
|
|
7221
7204
|
return {
|
|
7222
|
-
...(input.UserAttributeNames
|
|
7223
|
-
input.UserAttributeNames !== null && {
|
|
7205
|
+
...(input.UserAttributeNames != null && {
|
|
7224
7206
|
UserAttributeNames: serializeAws_json1_1AttributeNameListType(input.UserAttributeNames, context),
|
|
7225
7207
|
}),
|
|
7226
|
-
...(input.UserPoolId
|
|
7227
|
-
...(input.Username
|
|
7208
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7209
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7228
7210
|
};
|
|
7229
7211
|
};
|
|
7230
7212
|
const serializeAws_json1_1AdminDeleteUserRequest = (input, context) => {
|
|
7231
7213
|
return {
|
|
7232
|
-
...(input.UserPoolId
|
|
7233
|
-
...(input.Username
|
|
7214
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7215
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7234
7216
|
};
|
|
7235
7217
|
};
|
|
7236
7218
|
const serializeAws_json1_1AdminDisableProviderForUserRequest = (input, context) => {
|
|
7237
7219
|
return {
|
|
7238
|
-
...(input.User
|
|
7239
|
-
|
|
7240
|
-
...(input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }),
|
|
7220
|
+
...(input.User != null && { User: serializeAws_json1_1ProviderUserIdentifierType(input.User, context) }),
|
|
7221
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7241
7222
|
};
|
|
7242
7223
|
};
|
|
7243
7224
|
const serializeAws_json1_1AdminDisableUserRequest = (input, context) => {
|
|
7244
7225
|
return {
|
|
7245
|
-
...(input.UserPoolId
|
|
7246
|
-
...(input.Username
|
|
7226
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7227
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7247
7228
|
};
|
|
7248
7229
|
};
|
|
7249
7230
|
const serializeAws_json1_1AdminEnableUserRequest = (input, context) => {
|
|
7250
7231
|
return {
|
|
7251
|
-
...(input.UserPoolId
|
|
7252
|
-
...(input.Username
|
|
7232
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7233
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7253
7234
|
};
|
|
7254
7235
|
};
|
|
7255
7236
|
const serializeAws_json1_1AdminForgetDeviceRequest = (input, context) => {
|
|
7256
7237
|
return {
|
|
7257
|
-
...(input.DeviceKey
|
|
7258
|
-
...(input.UserPoolId
|
|
7259
|
-
...(input.Username
|
|
7238
|
+
...(input.DeviceKey != null && { DeviceKey: input.DeviceKey }),
|
|
7239
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7240
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7260
7241
|
};
|
|
7261
7242
|
};
|
|
7262
7243
|
const serializeAws_json1_1AdminGetDeviceRequest = (input, context) => {
|
|
7263
7244
|
return {
|
|
7264
|
-
...(input.DeviceKey
|
|
7265
|
-
...(input.UserPoolId
|
|
7266
|
-
...(input.Username
|
|
7245
|
+
...(input.DeviceKey != null && { DeviceKey: input.DeviceKey }),
|
|
7246
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7247
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7267
7248
|
};
|
|
7268
7249
|
};
|
|
7269
7250
|
const serializeAws_json1_1AdminGetUserRequest = (input, context) => {
|
|
7270
7251
|
return {
|
|
7271
|
-
...(input.UserPoolId
|
|
7272
|
-
...(input.Username
|
|
7252
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7253
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7273
7254
|
};
|
|
7274
7255
|
};
|
|
7275
7256
|
const serializeAws_json1_1AdminInitiateAuthRequest = (input, context) => {
|
|
7276
7257
|
return {
|
|
7277
|
-
...(input.AnalyticsMetadata
|
|
7278
|
-
input.AnalyticsMetadata !== null && {
|
|
7258
|
+
...(input.AnalyticsMetadata != null && {
|
|
7279
7259
|
AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
|
|
7280
7260
|
}),
|
|
7281
|
-
...(input.AuthFlow
|
|
7282
|
-
...(input.AuthParameters
|
|
7283
|
-
input.AuthParameters !== null && {
|
|
7261
|
+
...(input.AuthFlow != null && { AuthFlow: input.AuthFlow }),
|
|
7262
|
+
...(input.AuthParameters != null && {
|
|
7284
7263
|
AuthParameters: serializeAws_json1_1AuthParametersType(input.AuthParameters, context),
|
|
7285
7264
|
}),
|
|
7286
|
-
...(input.ClientId
|
|
7287
|
-
...(input.ClientMetadata
|
|
7288
|
-
input.ClientMetadata !== null && {
|
|
7265
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
7266
|
+
...(input.ClientMetadata != null && {
|
|
7289
7267
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
7290
7268
|
}),
|
|
7291
|
-
...(input.ContextData
|
|
7292
|
-
|
|
7293
|
-
...(input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }),
|
|
7269
|
+
...(input.ContextData != null && { ContextData: serializeAws_json1_1ContextDataType(input.ContextData, context) }),
|
|
7270
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7294
7271
|
};
|
|
7295
7272
|
};
|
|
7296
7273
|
const serializeAws_json1_1AdminLinkProviderForUserRequest = (input, context) => {
|
|
7297
7274
|
return {
|
|
7298
|
-
...(input.DestinationUser
|
|
7299
|
-
input.DestinationUser !== null && {
|
|
7275
|
+
...(input.DestinationUser != null && {
|
|
7300
7276
|
DestinationUser: serializeAws_json1_1ProviderUserIdentifierType(input.DestinationUser, context),
|
|
7301
7277
|
}),
|
|
7302
|
-
...(input.SourceUser
|
|
7303
|
-
input.SourceUser !== null && {
|
|
7278
|
+
...(input.SourceUser != null && {
|
|
7304
7279
|
SourceUser: serializeAws_json1_1ProviderUserIdentifierType(input.SourceUser, context),
|
|
7305
7280
|
}),
|
|
7306
|
-
...(input.UserPoolId
|
|
7281
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7307
7282
|
};
|
|
7308
7283
|
};
|
|
7309
7284
|
const serializeAws_json1_1AdminListDevicesRequest = (input, context) => {
|
|
7310
7285
|
return {
|
|
7311
|
-
...(input.Limit
|
|
7312
|
-
...(input.PaginationToken
|
|
7313
|
-
|
|
7314
|
-
...(input.
|
|
7315
|
-
...(input.Username !== undefined && input.Username !== null && { Username: input.Username }),
|
|
7286
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
7287
|
+
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
7288
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7289
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7316
7290
|
};
|
|
7317
7291
|
};
|
|
7318
7292
|
const serializeAws_json1_1AdminListGroupsForUserRequest = (input, context) => {
|
|
7319
7293
|
return {
|
|
7320
|
-
...(input.Limit
|
|
7321
|
-
...(input.NextToken
|
|
7322
|
-
...(input.UserPoolId
|
|
7323
|
-
...(input.Username
|
|
7294
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
7295
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
7296
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7297
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7324
7298
|
};
|
|
7325
7299
|
};
|
|
7326
7300
|
const serializeAws_json1_1AdminListUserAuthEventsRequest = (input, context) => {
|
|
7327
7301
|
return {
|
|
7328
|
-
...(input.MaxResults
|
|
7329
|
-
...(input.NextToken
|
|
7330
|
-
...(input.UserPoolId
|
|
7331
|
-
...(input.Username
|
|
7302
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
7303
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
7304
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7305
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7332
7306
|
};
|
|
7333
7307
|
};
|
|
7334
7308
|
const serializeAws_json1_1AdminRemoveUserFromGroupRequest = (input, context) => {
|
|
7335
7309
|
return {
|
|
7336
|
-
...(input.GroupName
|
|
7337
|
-
...(input.UserPoolId
|
|
7338
|
-
...(input.Username
|
|
7310
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
7311
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7312
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7339
7313
|
};
|
|
7340
7314
|
};
|
|
7341
7315
|
const serializeAws_json1_1AdminResetUserPasswordRequest = (input, context) => {
|
|
7342
7316
|
return {
|
|
7343
|
-
...(input.ClientMetadata
|
|
7344
|
-
input.ClientMetadata !== null && {
|
|
7317
|
+
...(input.ClientMetadata != null && {
|
|
7345
7318
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
7346
7319
|
}),
|
|
7347
|
-
...(input.UserPoolId
|
|
7348
|
-
...(input.Username
|
|
7320
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7321
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7349
7322
|
};
|
|
7350
7323
|
};
|
|
7351
7324
|
const serializeAws_json1_1AdminRespondToAuthChallengeRequest = (input, context) => {
|
|
7352
7325
|
return {
|
|
7353
|
-
...(input.AnalyticsMetadata
|
|
7354
|
-
input.AnalyticsMetadata !== null && {
|
|
7326
|
+
...(input.AnalyticsMetadata != null && {
|
|
7355
7327
|
AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
|
|
7356
7328
|
}),
|
|
7357
|
-
...(input.ChallengeName
|
|
7358
|
-
...(input.ChallengeResponses
|
|
7359
|
-
input.ChallengeResponses !== null && {
|
|
7329
|
+
...(input.ChallengeName != null && { ChallengeName: input.ChallengeName }),
|
|
7330
|
+
...(input.ChallengeResponses != null && {
|
|
7360
7331
|
ChallengeResponses: serializeAws_json1_1ChallengeResponsesType(input.ChallengeResponses, context),
|
|
7361
7332
|
}),
|
|
7362
|
-
...(input.ClientId
|
|
7363
|
-
...(input.ClientMetadata
|
|
7364
|
-
input.ClientMetadata !== null && {
|
|
7333
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
7334
|
+
...(input.ClientMetadata != null && {
|
|
7365
7335
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
7366
7336
|
}),
|
|
7367
|
-
...(input.ContextData
|
|
7368
|
-
|
|
7369
|
-
...(input.
|
|
7370
|
-
...(input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }),
|
|
7337
|
+
...(input.ContextData != null && { ContextData: serializeAws_json1_1ContextDataType(input.ContextData, context) }),
|
|
7338
|
+
...(input.Session != null && { Session: input.Session }),
|
|
7339
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7371
7340
|
};
|
|
7372
7341
|
};
|
|
7373
7342
|
const serializeAws_json1_1AdminSetUserMFAPreferenceRequest = (input, context) => {
|
|
7374
7343
|
return {
|
|
7375
|
-
...(input.SMSMfaSettings
|
|
7376
|
-
input.SMSMfaSettings !== null && {
|
|
7344
|
+
...(input.SMSMfaSettings != null && {
|
|
7377
7345
|
SMSMfaSettings: serializeAws_json1_1SMSMfaSettingsType(input.SMSMfaSettings, context),
|
|
7378
7346
|
}),
|
|
7379
|
-
...(input.SoftwareTokenMfaSettings
|
|
7380
|
-
input.SoftwareTokenMfaSettings !== null && {
|
|
7347
|
+
...(input.SoftwareTokenMfaSettings != null && {
|
|
7381
7348
|
SoftwareTokenMfaSettings: serializeAws_json1_1SoftwareTokenMfaSettingsType(input.SoftwareTokenMfaSettings, context),
|
|
7382
7349
|
}),
|
|
7383
|
-
...(input.UserPoolId
|
|
7384
|
-
...(input.Username
|
|
7350
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7351
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7385
7352
|
};
|
|
7386
7353
|
};
|
|
7387
7354
|
const serializeAws_json1_1AdminSetUserPasswordRequest = (input, context) => {
|
|
7388
7355
|
return {
|
|
7389
|
-
...(input.Password
|
|
7390
|
-
...(input.Permanent
|
|
7391
|
-
...(input.UserPoolId
|
|
7392
|
-
...(input.Username
|
|
7356
|
+
...(input.Password != null && { Password: input.Password }),
|
|
7357
|
+
...(input.Permanent != null && { Permanent: input.Permanent }),
|
|
7358
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7359
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7393
7360
|
};
|
|
7394
7361
|
};
|
|
7395
7362
|
const serializeAws_json1_1AdminSetUserSettingsRequest = (input, context) => {
|
|
7396
7363
|
return {
|
|
7397
|
-
...(input.MFAOptions
|
|
7398
|
-
|
|
7399
|
-
...(input.
|
|
7400
|
-
...(input.Username !== undefined && input.Username !== null && { Username: input.Username }),
|
|
7364
|
+
...(input.MFAOptions != null && { MFAOptions: serializeAws_json1_1MFAOptionListType(input.MFAOptions, context) }),
|
|
7365
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7366
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7401
7367
|
};
|
|
7402
7368
|
};
|
|
7403
7369
|
const serializeAws_json1_1AdminUpdateAuthEventFeedbackRequest = (input, context) => {
|
|
7404
7370
|
return {
|
|
7405
|
-
...(input.EventId
|
|
7406
|
-
...(input.FeedbackValue
|
|
7407
|
-
...(input.UserPoolId
|
|
7408
|
-
...(input.Username
|
|
7371
|
+
...(input.EventId != null && { EventId: input.EventId }),
|
|
7372
|
+
...(input.FeedbackValue != null && { FeedbackValue: input.FeedbackValue }),
|
|
7373
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7374
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7409
7375
|
};
|
|
7410
7376
|
};
|
|
7411
7377
|
const serializeAws_json1_1AdminUpdateDeviceStatusRequest = (input, context) => {
|
|
7412
7378
|
return {
|
|
7413
|
-
...(input.DeviceKey
|
|
7414
|
-
...(input.DeviceRememberedStatus
|
|
7415
|
-
|
|
7416
|
-
...(input.
|
|
7417
|
-
...(input.Username !== undefined && input.Username !== null && { Username: input.Username }),
|
|
7379
|
+
...(input.DeviceKey != null && { DeviceKey: input.DeviceKey }),
|
|
7380
|
+
...(input.DeviceRememberedStatus != null && { DeviceRememberedStatus: input.DeviceRememberedStatus }),
|
|
7381
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7382
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7418
7383
|
};
|
|
7419
7384
|
};
|
|
7420
7385
|
const serializeAws_json1_1AdminUpdateUserAttributesRequest = (input, context) => {
|
|
7421
7386
|
return {
|
|
7422
|
-
...(input.ClientMetadata
|
|
7423
|
-
input.ClientMetadata !== null && {
|
|
7387
|
+
...(input.ClientMetadata != null && {
|
|
7424
7388
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
7425
7389
|
}),
|
|
7426
|
-
...(input.UserAttributes
|
|
7427
|
-
input.UserAttributes !== null && {
|
|
7390
|
+
...(input.UserAttributes != null && {
|
|
7428
7391
|
UserAttributes: serializeAws_json1_1AttributeListType(input.UserAttributes, context),
|
|
7429
7392
|
}),
|
|
7430
|
-
...(input.UserPoolId
|
|
7431
|
-
...(input.Username
|
|
7393
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7394
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7432
7395
|
};
|
|
7433
7396
|
};
|
|
7434
7397
|
const serializeAws_json1_1AdminUserGlobalSignOutRequest = (input, context) => {
|
|
7435
7398
|
return {
|
|
7436
|
-
...(input.UserPoolId
|
|
7437
|
-
...(input.Username
|
|
7399
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7400
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7438
7401
|
};
|
|
7439
7402
|
};
|
|
7440
7403
|
const serializeAws_json1_1AliasAttributesListType = (input, context) => {
|
|
@@ -7449,25 +7412,22 @@ const serializeAws_json1_1AliasAttributesListType = (input, context) => {
|
|
|
7449
7412
|
};
|
|
7450
7413
|
const serializeAws_json1_1AnalyticsConfigurationType = (input, context) => {
|
|
7451
7414
|
return {
|
|
7452
|
-
...(input.ApplicationArn
|
|
7453
|
-
|
|
7454
|
-
...(input.
|
|
7455
|
-
...(input.
|
|
7456
|
-
...(input.
|
|
7457
|
-
...(input.UserDataShared !== undefined &&
|
|
7458
|
-
input.UserDataShared !== null && { UserDataShared: input.UserDataShared }),
|
|
7415
|
+
...(input.ApplicationArn != null && { ApplicationArn: input.ApplicationArn }),
|
|
7416
|
+
...(input.ApplicationId != null && { ApplicationId: input.ApplicationId }),
|
|
7417
|
+
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
7418
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
7419
|
+
...(input.UserDataShared != null && { UserDataShared: input.UserDataShared }),
|
|
7459
7420
|
};
|
|
7460
7421
|
};
|
|
7461
7422
|
const serializeAws_json1_1AnalyticsMetadataType = (input, context) => {
|
|
7462
7423
|
return {
|
|
7463
|
-
...(input.AnalyticsEndpointId
|
|
7464
|
-
input.AnalyticsEndpointId !== null && { AnalyticsEndpointId: input.AnalyticsEndpointId }),
|
|
7424
|
+
...(input.AnalyticsEndpointId != null && { AnalyticsEndpointId: input.AnalyticsEndpointId }),
|
|
7465
7425
|
};
|
|
7466
7426
|
};
|
|
7467
7427
|
const serializeAws_json1_1AssociateSoftwareTokenRequest = (input, context) => {
|
|
7468
7428
|
return {
|
|
7469
|
-
...(input.AccessToken
|
|
7470
|
-
...(input.Session
|
|
7429
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
7430
|
+
...(input.Session != null && { Session: input.Session }),
|
|
7471
7431
|
};
|
|
7472
7432
|
};
|
|
7473
7433
|
const serializeAws_json1_1AttributeListType = (input, context) => {
|
|
@@ -7513,8 +7473,8 @@ const serializeAws_json1_1AttributesRequireVerificationBeforeUpdateType = (input
|
|
|
7513
7473
|
};
|
|
7514
7474
|
const serializeAws_json1_1AttributeType = (input, context) => {
|
|
7515
7475
|
return {
|
|
7516
|
-
...(input.Name
|
|
7517
|
-
...(input.Value
|
|
7476
|
+
...(input.Name != null && { Name: input.Name }),
|
|
7477
|
+
...(input.Value != null && { Value: input.Value }),
|
|
7518
7478
|
};
|
|
7519
7479
|
};
|
|
7520
7480
|
const serializeAws_json1_1AuthParametersType = (input, context) => {
|
|
@@ -7561,11 +7521,9 @@ const serializeAws_json1_1ChallengeResponsesType = (input, context) => {
|
|
|
7561
7521
|
};
|
|
7562
7522
|
const serializeAws_json1_1ChangePasswordRequest = (input, context) => {
|
|
7563
7523
|
return {
|
|
7564
|
-
...(input.AccessToken
|
|
7565
|
-
...(input.PreviousPassword
|
|
7566
|
-
|
|
7567
|
-
...(input.ProposedPassword !== undefined &&
|
|
7568
|
-
input.ProposedPassword !== null && { ProposedPassword: input.ProposedPassword }),
|
|
7524
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
7525
|
+
...(input.PreviousPassword != null && { PreviousPassword: input.PreviousPassword }),
|
|
7526
|
+
...(input.ProposedPassword != null && { ProposedPassword: input.ProposedPassword }),
|
|
7569
7527
|
};
|
|
7570
7528
|
};
|
|
7571
7529
|
const serializeAws_json1_1ClientMetadataType = (input, context) => {
|
|
@@ -7591,277 +7549,218 @@ const serializeAws_json1_1ClientPermissionListType = (input, context) => {
|
|
|
7591
7549
|
};
|
|
7592
7550
|
const serializeAws_json1_1CompromisedCredentialsActionsType = (input, context) => {
|
|
7593
7551
|
return {
|
|
7594
|
-
...(input.EventAction
|
|
7552
|
+
...(input.EventAction != null && { EventAction: input.EventAction }),
|
|
7595
7553
|
};
|
|
7596
7554
|
};
|
|
7597
7555
|
const serializeAws_json1_1CompromisedCredentialsRiskConfigurationType = (input, context) => {
|
|
7598
7556
|
return {
|
|
7599
|
-
...(input.Actions
|
|
7600
|
-
input.Actions !== null && {
|
|
7557
|
+
...(input.Actions != null && {
|
|
7601
7558
|
Actions: serializeAws_json1_1CompromisedCredentialsActionsType(input.Actions, context),
|
|
7602
7559
|
}),
|
|
7603
|
-
...(input.EventFilter
|
|
7604
|
-
input.EventFilter !== null && { EventFilter: serializeAws_json1_1EventFiltersType(input.EventFilter, context) }),
|
|
7560
|
+
...(input.EventFilter != null && { EventFilter: serializeAws_json1_1EventFiltersType(input.EventFilter, context) }),
|
|
7605
7561
|
};
|
|
7606
7562
|
};
|
|
7607
7563
|
const serializeAws_json1_1ConfirmDeviceRequest = (input, context) => {
|
|
7608
7564
|
return {
|
|
7609
|
-
...(input.AccessToken
|
|
7610
|
-
...(input.DeviceKey
|
|
7611
|
-
...(input.DeviceName
|
|
7612
|
-
...(input.DeviceSecretVerifierConfig
|
|
7613
|
-
input.DeviceSecretVerifierConfig !== null && {
|
|
7565
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
7566
|
+
...(input.DeviceKey != null && { DeviceKey: input.DeviceKey }),
|
|
7567
|
+
...(input.DeviceName != null && { DeviceName: input.DeviceName }),
|
|
7568
|
+
...(input.DeviceSecretVerifierConfig != null && {
|
|
7614
7569
|
DeviceSecretVerifierConfig: serializeAws_json1_1DeviceSecretVerifierConfigType(input.DeviceSecretVerifierConfig, context),
|
|
7615
7570
|
}),
|
|
7616
7571
|
};
|
|
7617
7572
|
};
|
|
7618
7573
|
const serializeAws_json1_1ConfirmForgotPasswordRequest = (input, context) => {
|
|
7619
7574
|
return {
|
|
7620
|
-
...(input.AnalyticsMetadata
|
|
7621
|
-
input.AnalyticsMetadata !== null && {
|
|
7575
|
+
...(input.AnalyticsMetadata != null && {
|
|
7622
7576
|
AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
|
|
7623
7577
|
}),
|
|
7624
|
-
...(input.ClientId
|
|
7625
|
-
...(input.ClientMetadata
|
|
7626
|
-
input.ClientMetadata !== null && {
|
|
7578
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
7579
|
+
...(input.ClientMetadata != null && {
|
|
7627
7580
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
7628
7581
|
}),
|
|
7629
|
-
...(input.ConfirmationCode
|
|
7630
|
-
|
|
7631
|
-
...(input.
|
|
7632
|
-
...(input.
|
|
7633
|
-
...(input.UserContextData !== undefined &&
|
|
7634
|
-
input.UserContextData !== null && {
|
|
7582
|
+
...(input.ConfirmationCode != null && { ConfirmationCode: input.ConfirmationCode }),
|
|
7583
|
+
...(input.Password != null && { Password: input.Password }),
|
|
7584
|
+
...(input.SecretHash != null && { SecretHash: input.SecretHash }),
|
|
7585
|
+
...(input.UserContextData != null && {
|
|
7635
7586
|
UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
|
|
7636
7587
|
}),
|
|
7637
|
-
...(input.Username
|
|
7588
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7638
7589
|
};
|
|
7639
7590
|
};
|
|
7640
7591
|
const serializeAws_json1_1ConfirmSignUpRequest = (input, context) => {
|
|
7641
7592
|
return {
|
|
7642
|
-
...(input.AnalyticsMetadata
|
|
7643
|
-
input.AnalyticsMetadata !== null && {
|
|
7593
|
+
...(input.AnalyticsMetadata != null && {
|
|
7644
7594
|
AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
|
|
7645
7595
|
}),
|
|
7646
|
-
...(input.ClientId
|
|
7647
|
-
...(input.ClientMetadata
|
|
7648
|
-
input.ClientMetadata !== null && {
|
|
7596
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
7597
|
+
...(input.ClientMetadata != null && {
|
|
7649
7598
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
7650
7599
|
}),
|
|
7651
|
-
...(input.ConfirmationCode
|
|
7652
|
-
|
|
7653
|
-
...(input.
|
|
7654
|
-
|
|
7655
|
-
...(input.SecretHash !== undefined && input.SecretHash !== null && { SecretHash: input.SecretHash }),
|
|
7656
|
-
...(input.UserContextData !== undefined &&
|
|
7657
|
-
input.UserContextData !== null && {
|
|
7600
|
+
...(input.ConfirmationCode != null && { ConfirmationCode: input.ConfirmationCode }),
|
|
7601
|
+
...(input.ForceAliasCreation != null && { ForceAliasCreation: input.ForceAliasCreation }),
|
|
7602
|
+
...(input.SecretHash != null && { SecretHash: input.SecretHash }),
|
|
7603
|
+
...(input.UserContextData != null && {
|
|
7658
7604
|
UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
|
|
7659
7605
|
}),
|
|
7660
|
-
...(input.Username
|
|
7606
|
+
...(input.Username != null && { Username: input.Username }),
|
|
7661
7607
|
};
|
|
7662
7608
|
};
|
|
7663
7609
|
const serializeAws_json1_1ContextDataType = (input, context) => {
|
|
7664
7610
|
return {
|
|
7665
|
-
...(input.EncodedData
|
|
7666
|
-
...(input.HttpHeaders
|
|
7667
|
-
|
|
7668
|
-
...(input.
|
|
7669
|
-
...(input.
|
|
7670
|
-
...(input.ServerPath !== undefined && input.ServerPath !== null && { ServerPath: input.ServerPath }),
|
|
7611
|
+
...(input.EncodedData != null && { EncodedData: input.EncodedData }),
|
|
7612
|
+
...(input.HttpHeaders != null && { HttpHeaders: serializeAws_json1_1HttpHeaderList(input.HttpHeaders, context) }),
|
|
7613
|
+
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
7614
|
+
...(input.ServerName != null && { ServerName: input.ServerName }),
|
|
7615
|
+
...(input.ServerPath != null && { ServerPath: input.ServerPath }),
|
|
7671
7616
|
};
|
|
7672
7617
|
};
|
|
7673
7618
|
const serializeAws_json1_1CreateGroupRequest = (input, context) => {
|
|
7674
7619
|
return {
|
|
7675
|
-
...(input.Description
|
|
7676
|
-
...(input.GroupName
|
|
7677
|
-
...(input.Precedence
|
|
7678
|
-
...(input.RoleArn
|
|
7679
|
-
...(input.UserPoolId
|
|
7620
|
+
...(input.Description != null && { Description: input.Description }),
|
|
7621
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
7622
|
+
...(input.Precedence != null && { Precedence: input.Precedence }),
|
|
7623
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
7624
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7680
7625
|
};
|
|
7681
7626
|
};
|
|
7682
7627
|
const serializeAws_json1_1CreateIdentityProviderRequest = (input, context) => {
|
|
7683
7628
|
return {
|
|
7684
|
-
...(input.AttributeMapping
|
|
7685
|
-
input.AttributeMapping !== null && {
|
|
7629
|
+
...(input.AttributeMapping != null && {
|
|
7686
7630
|
AttributeMapping: serializeAws_json1_1AttributeMappingType(input.AttributeMapping, context),
|
|
7687
7631
|
}),
|
|
7688
|
-
...(input.IdpIdentifiers
|
|
7689
|
-
input.IdpIdentifiers !== null && {
|
|
7632
|
+
...(input.IdpIdentifiers != null && {
|
|
7690
7633
|
IdpIdentifiers: serializeAws_json1_1IdpIdentifiersListType(input.IdpIdentifiers, context),
|
|
7691
7634
|
}),
|
|
7692
|
-
...(input.ProviderDetails
|
|
7693
|
-
input.ProviderDetails !== null && {
|
|
7635
|
+
...(input.ProviderDetails != null && {
|
|
7694
7636
|
ProviderDetails: serializeAws_json1_1ProviderDetailsType(input.ProviderDetails, context),
|
|
7695
7637
|
}),
|
|
7696
|
-
...(input.ProviderName
|
|
7697
|
-
...(input.ProviderType
|
|
7698
|
-
...(input.UserPoolId
|
|
7638
|
+
...(input.ProviderName != null && { ProviderName: input.ProviderName }),
|
|
7639
|
+
...(input.ProviderType != null && { ProviderType: input.ProviderType }),
|
|
7640
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7699
7641
|
};
|
|
7700
7642
|
};
|
|
7701
7643
|
const serializeAws_json1_1CreateResourceServerRequest = (input, context) => {
|
|
7702
7644
|
return {
|
|
7703
|
-
...(input.Identifier
|
|
7704
|
-
...(input.Name
|
|
7705
|
-
...(input.Scopes
|
|
7706
|
-
|
|
7707
|
-
...(input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }),
|
|
7645
|
+
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
7646
|
+
...(input.Name != null && { Name: input.Name }),
|
|
7647
|
+
...(input.Scopes != null && { Scopes: serializeAws_json1_1ResourceServerScopeListType(input.Scopes, context) }),
|
|
7648
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7708
7649
|
};
|
|
7709
7650
|
};
|
|
7710
7651
|
const serializeAws_json1_1CreateUserImportJobRequest = (input, context) => {
|
|
7711
7652
|
return {
|
|
7712
|
-
...(input.CloudWatchLogsRoleArn
|
|
7713
|
-
|
|
7714
|
-
...(input.
|
|
7715
|
-
...(input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }),
|
|
7653
|
+
...(input.CloudWatchLogsRoleArn != null && { CloudWatchLogsRoleArn: input.CloudWatchLogsRoleArn }),
|
|
7654
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
7655
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7716
7656
|
};
|
|
7717
7657
|
};
|
|
7718
7658
|
const serializeAws_json1_1CreateUserPoolClientRequest = (input, context) => {
|
|
7719
7659
|
return {
|
|
7720
|
-
...(input.AccessTokenValidity
|
|
7721
|
-
|
|
7722
|
-
...(input.AllowedOAuthFlows !== undefined &&
|
|
7723
|
-
input.AllowedOAuthFlows !== null && {
|
|
7660
|
+
...(input.AccessTokenValidity != null && { AccessTokenValidity: input.AccessTokenValidity }),
|
|
7661
|
+
...(input.AllowedOAuthFlows != null && {
|
|
7724
7662
|
AllowedOAuthFlows: serializeAws_json1_1OAuthFlowsType(input.AllowedOAuthFlows, context),
|
|
7725
7663
|
}),
|
|
7726
|
-
...(input.AllowedOAuthFlowsUserPoolClient
|
|
7727
|
-
input.AllowedOAuthFlowsUserPoolClient !== null && {
|
|
7664
|
+
...(input.AllowedOAuthFlowsUserPoolClient != null && {
|
|
7728
7665
|
AllowedOAuthFlowsUserPoolClient: input.AllowedOAuthFlowsUserPoolClient,
|
|
7729
7666
|
}),
|
|
7730
|
-
...(input.AllowedOAuthScopes
|
|
7731
|
-
input.AllowedOAuthScopes !== null && {
|
|
7667
|
+
...(input.AllowedOAuthScopes != null && {
|
|
7732
7668
|
AllowedOAuthScopes: serializeAws_json1_1ScopeListType(input.AllowedOAuthScopes, context),
|
|
7733
7669
|
}),
|
|
7734
|
-
...(input.AnalyticsConfiguration
|
|
7735
|
-
input.AnalyticsConfiguration !== null && {
|
|
7670
|
+
...(input.AnalyticsConfiguration != null && {
|
|
7736
7671
|
AnalyticsConfiguration: serializeAws_json1_1AnalyticsConfigurationType(input.AnalyticsConfiguration, context),
|
|
7737
7672
|
}),
|
|
7738
|
-
...(input.CallbackURLs
|
|
7739
|
-
input.CallbackURLs !== null && {
|
|
7673
|
+
...(input.CallbackURLs != null && {
|
|
7740
7674
|
CallbackURLs: serializeAws_json1_1CallbackURLsListType(input.CallbackURLs, context),
|
|
7741
7675
|
}),
|
|
7742
|
-
...(input.ClientName
|
|
7743
|
-
...(input.DefaultRedirectURI
|
|
7744
|
-
|
|
7745
|
-
...(input.EnablePropagateAdditionalUserContextData !== undefined &&
|
|
7746
|
-
input.EnablePropagateAdditionalUserContextData !== null && {
|
|
7676
|
+
...(input.ClientName != null && { ClientName: input.ClientName }),
|
|
7677
|
+
...(input.DefaultRedirectURI != null && { DefaultRedirectURI: input.DefaultRedirectURI }),
|
|
7678
|
+
...(input.EnablePropagateAdditionalUserContextData != null && {
|
|
7747
7679
|
EnablePropagateAdditionalUserContextData: input.EnablePropagateAdditionalUserContextData,
|
|
7748
7680
|
}),
|
|
7749
|
-
...(input.EnableTokenRevocation
|
|
7750
|
-
|
|
7751
|
-
...(input.ExplicitAuthFlows !== undefined &&
|
|
7752
|
-
input.ExplicitAuthFlows !== null && {
|
|
7681
|
+
...(input.EnableTokenRevocation != null && { EnableTokenRevocation: input.EnableTokenRevocation }),
|
|
7682
|
+
...(input.ExplicitAuthFlows != null && {
|
|
7753
7683
|
ExplicitAuthFlows: serializeAws_json1_1ExplicitAuthFlowsListType(input.ExplicitAuthFlows, context),
|
|
7754
7684
|
}),
|
|
7755
|
-
...(input.GenerateSecret
|
|
7756
|
-
|
|
7757
|
-
...(input.
|
|
7758
|
-
|
|
7759
|
-
...(input.
|
|
7760
|
-
input.LogoutURLs !== null && { LogoutURLs: serializeAws_json1_1LogoutURLsListType(input.LogoutURLs, context) }),
|
|
7761
|
-
...(input.PreventUserExistenceErrors !== undefined &&
|
|
7762
|
-
input.PreventUserExistenceErrors !== null && { PreventUserExistenceErrors: input.PreventUserExistenceErrors }),
|
|
7763
|
-
...(input.ReadAttributes !== undefined &&
|
|
7764
|
-
input.ReadAttributes !== null && {
|
|
7685
|
+
...(input.GenerateSecret != null && { GenerateSecret: input.GenerateSecret }),
|
|
7686
|
+
...(input.IdTokenValidity != null && { IdTokenValidity: input.IdTokenValidity }),
|
|
7687
|
+
...(input.LogoutURLs != null && { LogoutURLs: serializeAws_json1_1LogoutURLsListType(input.LogoutURLs, context) }),
|
|
7688
|
+
...(input.PreventUserExistenceErrors != null && { PreventUserExistenceErrors: input.PreventUserExistenceErrors }),
|
|
7689
|
+
...(input.ReadAttributes != null && {
|
|
7765
7690
|
ReadAttributes: serializeAws_json1_1ClientPermissionListType(input.ReadAttributes, context),
|
|
7766
7691
|
}),
|
|
7767
|
-
...(input.RefreshTokenValidity
|
|
7768
|
-
|
|
7769
|
-
...(input.SupportedIdentityProviders !== undefined &&
|
|
7770
|
-
input.SupportedIdentityProviders !== null && {
|
|
7692
|
+
...(input.RefreshTokenValidity != null && { RefreshTokenValidity: input.RefreshTokenValidity }),
|
|
7693
|
+
...(input.SupportedIdentityProviders != null && {
|
|
7771
7694
|
SupportedIdentityProviders: serializeAws_json1_1SupportedIdentityProvidersListType(input.SupportedIdentityProviders, context),
|
|
7772
7695
|
}),
|
|
7773
|
-
...(input.TokenValidityUnits
|
|
7774
|
-
input.TokenValidityUnits !== null && {
|
|
7696
|
+
...(input.TokenValidityUnits != null && {
|
|
7775
7697
|
TokenValidityUnits: serializeAws_json1_1TokenValidityUnitsType(input.TokenValidityUnits, context),
|
|
7776
7698
|
}),
|
|
7777
|
-
...(input.UserPoolId
|
|
7778
|
-
...(input.WriteAttributes
|
|
7779
|
-
input.WriteAttributes !== null && {
|
|
7699
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7700
|
+
...(input.WriteAttributes != null && {
|
|
7780
7701
|
WriteAttributes: serializeAws_json1_1ClientPermissionListType(input.WriteAttributes, context),
|
|
7781
7702
|
}),
|
|
7782
7703
|
};
|
|
7783
7704
|
};
|
|
7784
7705
|
const serializeAws_json1_1CreateUserPoolDomainRequest = (input, context) => {
|
|
7785
7706
|
return {
|
|
7786
|
-
...(input.CustomDomainConfig
|
|
7787
|
-
input.CustomDomainConfig !== null && {
|
|
7707
|
+
...(input.CustomDomainConfig != null && {
|
|
7788
7708
|
CustomDomainConfig: serializeAws_json1_1CustomDomainConfigType(input.CustomDomainConfig, context),
|
|
7789
7709
|
}),
|
|
7790
|
-
...(input.Domain
|
|
7791
|
-
...(input.UserPoolId
|
|
7710
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
7711
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7792
7712
|
};
|
|
7793
7713
|
};
|
|
7794
7714
|
const serializeAws_json1_1CreateUserPoolRequest = (input, context) => {
|
|
7795
7715
|
return {
|
|
7796
|
-
...(input.AccountRecoverySetting
|
|
7797
|
-
input.AccountRecoverySetting !== null && {
|
|
7716
|
+
...(input.AccountRecoverySetting != null && {
|
|
7798
7717
|
AccountRecoverySetting: serializeAws_json1_1AccountRecoverySettingType(input.AccountRecoverySetting, context),
|
|
7799
7718
|
}),
|
|
7800
|
-
...(input.AdminCreateUserConfig
|
|
7801
|
-
input.AdminCreateUserConfig !== null && {
|
|
7719
|
+
...(input.AdminCreateUserConfig != null && {
|
|
7802
7720
|
AdminCreateUserConfig: serializeAws_json1_1AdminCreateUserConfigType(input.AdminCreateUserConfig, context),
|
|
7803
7721
|
}),
|
|
7804
|
-
...(input.AliasAttributes
|
|
7805
|
-
input.AliasAttributes !== null && {
|
|
7722
|
+
...(input.AliasAttributes != null && {
|
|
7806
7723
|
AliasAttributes: serializeAws_json1_1AliasAttributesListType(input.AliasAttributes, context),
|
|
7807
7724
|
}),
|
|
7808
|
-
...(input.AutoVerifiedAttributes
|
|
7809
|
-
input.AutoVerifiedAttributes !== null && {
|
|
7725
|
+
...(input.AutoVerifiedAttributes != null && {
|
|
7810
7726
|
AutoVerifiedAttributes: serializeAws_json1_1VerifiedAttributesListType(input.AutoVerifiedAttributes, context),
|
|
7811
7727
|
}),
|
|
7812
|
-
...(input.DeviceConfiguration
|
|
7813
|
-
input.DeviceConfiguration !== null && {
|
|
7728
|
+
...(input.DeviceConfiguration != null && {
|
|
7814
7729
|
DeviceConfiguration: serializeAws_json1_1DeviceConfigurationType(input.DeviceConfiguration, context),
|
|
7815
7730
|
}),
|
|
7816
|
-
...(input.EmailConfiguration
|
|
7817
|
-
input.EmailConfiguration !== null && {
|
|
7731
|
+
...(input.EmailConfiguration != null && {
|
|
7818
7732
|
EmailConfiguration: serializeAws_json1_1EmailConfigurationType(input.EmailConfiguration, context),
|
|
7819
7733
|
}),
|
|
7820
|
-
...(input.EmailVerificationMessage
|
|
7821
|
-
|
|
7822
|
-
...(input.
|
|
7823
|
-
input.EmailVerificationSubject !== null && { EmailVerificationSubject: input.EmailVerificationSubject }),
|
|
7824
|
-
...(input.LambdaConfig !== undefined &&
|
|
7825
|
-
input.LambdaConfig !== null && {
|
|
7734
|
+
...(input.EmailVerificationMessage != null && { EmailVerificationMessage: input.EmailVerificationMessage }),
|
|
7735
|
+
...(input.EmailVerificationSubject != null && { EmailVerificationSubject: input.EmailVerificationSubject }),
|
|
7736
|
+
...(input.LambdaConfig != null && {
|
|
7826
7737
|
LambdaConfig: serializeAws_json1_1LambdaConfigType(input.LambdaConfig, context),
|
|
7827
7738
|
}),
|
|
7828
|
-
...(input.MfaConfiguration
|
|
7829
|
-
|
|
7830
|
-
...(input.
|
|
7831
|
-
|
|
7832
|
-
...(input.
|
|
7833
|
-
...(input.
|
|
7834
|
-
input.Schema !== null && { Schema: serializeAws_json1_1SchemaAttributesListType(input.Schema, context) }),
|
|
7835
|
-
...(input.SmsAuthenticationMessage !== undefined &&
|
|
7836
|
-
input.SmsAuthenticationMessage !== null && { SmsAuthenticationMessage: input.SmsAuthenticationMessage }),
|
|
7837
|
-
...(input.SmsConfiguration !== undefined &&
|
|
7838
|
-
input.SmsConfiguration !== null && {
|
|
7739
|
+
...(input.MfaConfiguration != null && { MfaConfiguration: input.MfaConfiguration }),
|
|
7740
|
+
...(input.Policies != null && { Policies: serializeAws_json1_1UserPoolPolicyType(input.Policies, context) }),
|
|
7741
|
+
...(input.PoolName != null && { PoolName: input.PoolName }),
|
|
7742
|
+
...(input.Schema != null && { Schema: serializeAws_json1_1SchemaAttributesListType(input.Schema, context) }),
|
|
7743
|
+
...(input.SmsAuthenticationMessage != null && { SmsAuthenticationMessage: input.SmsAuthenticationMessage }),
|
|
7744
|
+
...(input.SmsConfiguration != null && {
|
|
7839
7745
|
SmsConfiguration: serializeAws_json1_1SmsConfigurationType(input.SmsConfiguration, context),
|
|
7840
7746
|
}),
|
|
7841
|
-
...(input.SmsVerificationMessage
|
|
7842
|
-
|
|
7843
|
-
...(input.UserAttributeUpdateSettings !== undefined &&
|
|
7844
|
-
input.UserAttributeUpdateSettings !== null && {
|
|
7747
|
+
...(input.SmsVerificationMessage != null && { SmsVerificationMessage: input.SmsVerificationMessage }),
|
|
7748
|
+
...(input.UserAttributeUpdateSettings != null && {
|
|
7845
7749
|
UserAttributeUpdateSettings: serializeAws_json1_1UserAttributeUpdateSettingsType(input.UserAttributeUpdateSettings, context),
|
|
7846
7750
|
}),
|
|
7847
|
-
...(input.UserPoolAddOns
|
|
7848
|
-
input.UserPoolAddOns !== null && {
|
|
7751
|
+
...(input.UserPoolAddOns != null && {
|
|
7849
7752
|
UserPoolAddOns: serializeAws_json1_1UserPoolAddOnsType(input.UserPoolAddOns, context),
|
|
7850
7753
|
}),
|
|
7851
|
-
...(input.UserPoolTags
|
|
7852
|
-
input.UserPoolTags !== null && {
|
|
7754
|
+
...(input.UserPoolTags != null && {
|
|
7853
7755
|
UserPoolTags: serializeAws_json1_1UserPoolTagsType(input.UserPoolTags, context),
|
|
7854
7756
|
}),
|
|
7855
|
-
...(input.UsernameAttributes
|
|
7856
|
-
input.UsernameAttributes !== null && {
|
|
7757
|
+
...(input.UsernameAttributes != null && {
|
|
7857
7758
|
UsernameAttributes: serializeAws_json1_1UsernameAttributesListType(input.UsernameAttributes, context),
|
|
7858
7759
|
}),
|
|
7859
|
-
...(input.UsernameConfiguration
|
|
7860
|
-
input.UsernameConfiguration !== null && {
|
|
7760
|
+
...(input.UsernameConfiguration != null && {
|
|
7861
7761
|
UsernameConfiguration: serializeAws_json1_1UsernameConfigurationType(input.UsernameConfiguration, context),
|
|
7862
7762
|
}),
|
|
7863
|
-
...(input.VerificationMessageTemplate
|
|
7864
|
-
input.VerificationMessageTemplate !== null && {
|
|
7763
|
+
...(input.VerificationMessageTemplate != null && {
|
|
7865
7764
|
VerificationMessageTemplate: serializeAws_json1_1VerificationMessageTemplateType(input.VerificationMessageTemplate, context),
|
|
7866
7765
|
}),
|
|
7867
7766
|
};
|
|
@@ -7878,69 +7777,67 @@ const serializeAws_json1_1CustomAttributesListType = (input, context) => {
|
|
|
7878
7777
|
};
|
|
7879
7778
|
const serializeAws_json1_1CustomDomainConfigType = (input, context) => {
|
|
7880
7779
|
return {
|
|
7881
|
-
...(input.CertificateArn
|
|
7882
|
-
input.CertificateArn !== null && { CertificateArn: input.CertificateArn }),
|
|
7780
|
+
...(input.CertificateArn != null && { CertificateArn: input.CertificateArn }),
|
|
7883
7781
|
};
|
|
7884
7782
|
};
|
|
7885
7783
|
const serializeAws_json1_1CustomEmailLambdaVersionConfigType = (input, context) => {
|
|
7886
7784
|
return {
|
|
7887
|
-
...(input.LambdaArn
|
|
7888
|
-
...(input.LambdaVersion
|
|
7785
|
+
...(input.LambdaArn != null && { LambdaArn: input.LambdaArn }),
|
|
7786
|
+
...(input.LambdaVersion != null && { LambdaVersion: input.LambdaVersion }),
|
|
7889
7787
|
};
|
|
7890
7788
|
};
|
|
7891
7789
|
const serializeAws_json1_1CustomSMSLambdaVersionConfigType = (input, context) => {
|
|
7892
7790
|
return {
|
|
7893
|
-
...(input.LambdaArn
|
|
7894
|
-
...(input.LambdaVersion
|
|
7791
|
+
...(input.LambdaArn != null && { LambdaArn: input.LambdaArn }),
|
|
7792
|
+
...(input.LambdaVersion != null && { LambdaVersion: input.LambdaVersion }),
|
|
7895
7793
|
};
|
|
7896
7794
|
};
|
|
7897
7795
|
const serializeAws_json1_1DeleteGroupRequest = (input, context) => {
|
|
7898
7796
|
return {
|
|
7899
|
-
...(input.GroupName
|
|
7900
|
-
...(input.UserPoolId
|
|
7797
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
7798
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7901
7799
|
};
|
|
7902
7800
|
};
|
|
7903
7801
|
const serializeAws_json1_1DeleteIdentityProviderRequest = (input, context) => {
|
|
7904
7802
|
return {
|
|
7905
|
-
...(input.ProviderName
|
|
7906
|
-
...(input.UserPoolId
|
|
7803
|
+
...(input.ProviderName != null && { ProviderName: input.ProviderName }),
|
|
7804
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7907
7805
|
};
|
|
7908
7806
|
};
|
|
7909
7807
|
const serializeAws_json1_1DeleteResourceServerRequest = (input, context) => {
|
|
7910
7808
|
return {
|
|
7911
|
-
...(input.Identifier
|
|
7912
|
-
...(input.UserPoolId
|
|
7809
|
+
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
7810
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7913
7811
|
};
|
|
7914
7812
|
};
|
|
7915
7813
|
const serializeAws_json1_1DeleteUserAttributesRequest = (input, context) => {
|
|
7916
7814
|
return {
|
|
7917
|
-
...(input.AccessToken
|
|
7918
|
-
...(input.UserAttributeNames
|
|
7919
|
-
input.UserAttributeNames !== null && {
|
|
7815
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
7816
|
+
...(input.UserAttributeNames != null && {
|
|
7920
7817
|
UserAttributeNames: serializeAws_json1_1AttributeNameListType(input.UserAttributeNames, context),
|
|
7921
7818
|
}),
|
|
7922
7819
|
};
|
|
7923
7820
|
};
|
|
7924
7821
|
const serializeAws_json1_1DeleteUserPoolClientRequest = (input, context) => {
|
|
7925
7822
|
return {
|
|
7926
|
-
...(input.ClientId
|
|
7927
|
-
...(input.UserPoolId
|
|
7823
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
7824
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7928
7825
|
};
|
|
7929
7826
|
};
|
|
7930
7827
|
const serializeAws_json1_1DeleteUserPoolDomainRequest = (input, context) => {
|
|
7931
7828
|
return {
|
|
7932
|
-
...(input.Domain
|
|
7933
|
-
...(input.UserPoolId
|
|
7829
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
7830
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7934
7831
|
};
|
|
7935
7832
|
};
|
|
7936
7833
|
const serializeAws_json1_1DeleteUserPoolRequest = (input, context) => {
|
|
7937
7834
|
return {
|
|
7938
|
-
...(input.UserPoolId
|
|
7835
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7939
7836
|
};
|
|
7940
7837
|
};
|
|
7941
7838
|
const serializeAws_json1_1DeleteUserRequest = (input, context) => {
|
|
7942
7839
|
return {
|
|
7943
|
-
...(input.AccessToken
|
|
7840
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
7944
7841
|
};
|
|
7945
7842
|
};
|
|
7946
7843
|
const serializeAws_json1_1DeliveryMediumListType = (input, context) => {
|
|
@@ -7955,73 +7852,67 @@ const serializeAws_json1_1DeliveryMediumListType = (input, context) => {
|
|
|
7955
7852
|
};
|
|
7956
7853
|
const serializeAws_json1_1DescribeIdentityProviderRequest = (input, context) => {
|
|
7957
7854
|
return {
|
|
7958
|
-
...(input.ProviderName
|
|
7959
|
-
...(input.UserPoolId
|
|
7855
|
+
...(input.ProviderName != null && { ProviderName: input.ProviderName }),
|
|
7856
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7960
7857
|
};
|
|
7961
7858
|
};
|
|
7962
7859
|
const serializeAws_json1_1DescribeResourceServerRequest = (input, context) => {
|
|
7963
7860
|
return {
|
|
7964
|
-
...(input.Identifier
|
|
7965
|
-
...(input.UserPoolId
|
|
7861
|
+
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
7862
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7966
7863
|
};
|
|
7967
7864
|
};
|
|
7968
7865
|
const serializeAws_json1_1DescribeRiskConfigurationRequest = (input, context) => {
|
|
7969
7866
|
return {
|
|
7970
|
-
...(input.ClientId
|
|
7971
|
-
...(input.UserPoolId
|
|
7867
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
7868
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7972
7869
|
};
|
|
7973
7870
|
};
|
|
7974
7871
|
const serializeAws_json1_1DescribeUserImportJobRequest = (input, context) => {
|
|
7975
7872
|
return {
|
|
7976
|
-
...(input.JobId
|
|
7977
|
-
...(input.UserPoolId
|
|
7873
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
7874
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7978
7875
|
};
|
|
7979
7876
|
};
|
|
7980
7877
|
const serializeAws_json1_1DescribeUserPoolClientRequest = (input, context) => {
|
|
7981
7878
|
return {
|
|
7982
|
-
...(input.ClientId
|
|
7983
|
-
...(input.UserPoolId
|
|
7879
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
7880
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7984
7881
|
};
|
|
7985
7882
|
};
|
|
7986
7883
|
const serializeAws_json1_1DescribeUserPoolDomainRequest = (input, context) => {
|
|
7987
7884
|
return {
|
|
7988
|
-
...(input.Domain
|
|
7885
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
7989
7886
|
};
|
|
7990
7887
|
};
|
|
7991
7888
|
const serializeAws_json1_1DescribeUserPoolRequest = (input, context) => {
|
|
7992
7889
|
return {
|
|
7993
|
-
...(input.UserPoolId
|
|
7890
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
7994
7891
|
};
|
|
7995
7892
|
};
|
|
7996
7893
|
const serializeAws_json1_1DeviceConfigurationType = (input, context) => {
|
|
7997
7894
|
return {
|
|
7998
|
-
...(input.ChallengeRequiredOnNewDevice
|
|
7999
|
-
input.ChallengeRequiredOnNewDevice !== null && {
|
|
7895
|
+
...(input.ChallengeRequiredOnNewDevice != null && {
|
|
8000
7896
|
ChallengeRequiredOnNewDevice: input.ChallengeRequiredOnNewDevice,
|
|
8001
7897
|
}),
|
|
8002
|
-
...(input.DeviceOnlyRememberedOnUserPrompt
|
|
8003
|
-
input.DeviceOnlyRememberedOnUserPrompt !== null && {
|
|
7898
|
+
...(input.DeviceOnlyRememberedOnUserPrompt != null && {
|
|
8004
7899
|
DeviceOnlyRememberedOnUserPrompt: input.DeviceOnlyRememberedOnUserPrompt,
|
|
8005
7900
|
}),
|
|
8006
7901
|
};
|
|
8007
7902
|
};
|
|
8008
7903
|
const serializeAws_json1_1DeviceSecretVerifierConfigType = (input, context) => {
|
|
8009
7904
|
return {
|
|
8010
|
-
...(input.PasswordVerifier
|
|
8011
|
-
|
|
8012
|
-
...(input.Salt !== undefined && input.Salt !== null && { Salt: input.Salt }),
|
|
7905
|
+
...(input.PasswordVerifier != null && { PasswordVerifier: input.PasswordVerifier }),
|
|
7906
|
+
...(input.Salt != null && { Salt: input.Salt }),
|
|
8013
7907
|
};
|
|
8014
7908
|
};
|
|
8015
7909
|
const serializeAws_json1_1EmailConfigurationType = (input, context) => {
|
|
8016
7910
|
return {
|
|
8017
|
-
...(input.ConfigurationSet
|
|
8018
|
-
|
|
8019
|
-
...(input.
|
|
8020
|
-
|
|
8021
|
-
...(input.
|
|
8022
|
-
...(input.ReplyToEmailAddress !== undefined &&
|
|
8023
|
-
input.ReplyToEmailAddress !== null && { ReplyToEmailAddress: input.ReplyToEmailAddress }),
|
|
8024
|
-
...(input.SourceArn !== undefined && input.SourceArn !== null && { SourceArn: input.SourceArn }),
|
|
7911
|
+
...(input.ConfigurationSet != null && { ConfigurationSet: input.ConfigurationSet }),
|
|
7912
|
+
...(input.EmailSendingAccount != null && { EmailSendingAccount: input.EmailSendingAccount }),
|
|
7913
|
+
...(input.From != null && { From: input.From }),
|
|
7914
|
+
...(input.ReplyToEmailAddress != null && { ReplyToEmailAddress: input.ReplyToEmailAddress }),
|
|
7915
|
+
...(input.SourceArn != null && { SourceArn: input.SourceArn }),
|
|
8025
7916
|
};
|
|
8026
7917
|
};
|
|
8027
7918
|
const serializeAws_json1_1EventFiltersType = (input, context) => {
|
|
@@ -8046,92 +7937,88 @@ const serializeAws_json1_1ExplicitAuthFlowsListType = (input, context) => {
|
|
|
8046
7937
|
};
|
|
8047
7938
|
const serializeAws_json1_1ForgetDeviceRequest = (input, context) => {
|
|
8048
7939
|
return {
|
|
8049
|
-
...(input.AccessToken
|
|
8050
|
-
...(input.DeviceKey
|
|
7940
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
7941
|
+
...(input.DeviceKey != null && { DeviceKey: input.DeviceKey }),
|
|
8051
7942
|
};
|
|
8052
7943
|
};
|
|
8053
7944
|
const serializeAws_json1_1ForgotPasswordRequest = (input, context) => {
|
|
8054
7945
|
return {
|
|
8055
|
-
...(input.AnalyticsMetadata
|
|
8056
|
-
input.AnalyticsMetadata !== null && {
|
|
7946
|
+
...(input.AnalyticsMetadata != null && {
|
|
8057
7947
|
AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
|
|
8058
7948
|
}),
|
|
8059
|
-
...(input.ClientId
|
|
8060
|
-
...(input.ClientMetadata
|
|
8061
|
-
input.ClientMetadata !== null && {
|
|
7949
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
7950
|
+
...(input.ClientMetadata != null && {
|
|
8062
7951
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
8063
7952
|
}),
|
|
8064
|
-
...(input.SecretHash
|
|
8065
|
-
...(input.UserContextData
|
|
8066
|
-
input.UserContextData !== null && {
|
|
7953
|
+
...(input.SecretHash != null && { SecretHash: input.SecretHash }),
|
|
7954
|
+
...(input.UserContextData != null && {
|
|
8067
7955
|
UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
|
|
8068
7956
|
}),
|
|
8069
|
-
...(input.Username
|
|
7957
|
+
...(input.Username != null && { Username: input.Username }),
|
|
8070
7958
|
};
|
|
8071
7959
|
};
|
|
8072
7960
|
const serializeAws_json1_1GetCSVHeaderRequest = (input, context) => {
|
|
8073
7961
|
return {
|
|
8074
|
-
...(input.UserPoolId
|
|
7962
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8075
7963
|
};
|
|
8076
7964
|
};
|
|
8077
7965
|
const serializeAws_json1_1GetDeviceRequest = (input, context) => {
|
|
8078
7966
|
return {
|
|
8079
|
-
...(input.AccessToken
|
|
8080
|
-
...(input.DeviceKey
|
|
7967
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
7968
|
+
...(input.DeviceKey != null && { DeviceKey: input.DeviceKey }),
|
|
8081
7969
|
};
|
|
8082
7970
|
};
|
|
8083
7971
|
const serializeAws_json1_1GetGroupRequest = (input, context) => {
|
|
8084
7972
|
return {
|
|
8085
|
-
...(input.GroupName
|
|
8086
|
-
...(input.UserPoolId
|
|
7973
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
7974
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8087
7975
|
};
|
|
8088
7976
|
};
|
|
8089
7977
|
const serializeAws_json1_1GetIdentityProviderByIdentifierRequest = (input, context) => {
|
|
8090
7978
|
return {
|
|
8091
|
-
...(input.IdpIdentifier
|
|
8092
|
-
...(input.UserPoolId
|
|
7979
|
+
...(input.IdpIdentifier != null && { IdpIdentifier: input.IdpIdentifier }),
|
|
7980
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8093
7981
|
};
|
|
8094
7982
|
};
|
|
8095
7983
|
const serializeAws_json1_1GetSigningCertificateRequest = (input, context) => {
|
|
8096
7984
|
return {
|
|
8097
|
-
...(input.UserPoolId
|
|
7985
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8098
7986
|
};
|
|
8099
7987
|
};
|
|
8100
7988
|
const serializeAws_json1_1GetUICustomizationRequest = (input, context) => {
|
|
8101
7989
|
return {
|
|
8102
|
-
...(input.ClientId
|
|
8103
|
-
...(input.UserPoolId
|
|
7990
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
7991
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8104
7992
|
};
|
|
8105
7993
|
};
|
|
8106
7994
|
const serializeAws_json1_1GetUserAttributeVerificationCodeRequest = (input, context) => {
|
|
8107
7995
|
return {
|
|
8108
|
-
...(input.AccessToken
|
|
8109
|
-
...(input.AttributeName
|
|
8110
|
-
...(input.ClientMetadata
|
|
8111
|
-
input.ClientMetadata !== null && {
|
|
7996
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
7997
|
+
...(input.AttributeName != null && { AttributeName: input.AttributeName }),
|
|
7998
|
+
...(input.ClientMetadata != null && {
|
|
8112
7999
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
8113
8000
|
}),
|
|
8114
8001
|
};
|
|
8115
8002
|
};
|
|
8116
8003
|
const serializeAws_json1_1GetUserPoolMfaConfigRequest = (input, context) => {
|
|
8117
8004
|
return {
|
|
8118
|
-
...(input.UserPoolId
|
|
8005
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8119
8006
|
};
|
|
8120
8007
|
};
|
|
8121
8008
|
const serializeAws_json1_1GetUserRequest = (input, context) => {
|
|
8122
8009
|
return {
|
|
8123
|
-
...(input.AccessToken
|
|
8010
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
8124
8011
|
};
|
|
8125
8012
|
};
|
|
8126
8013
|
const serializeAws_json1_1GlobalSignOutRequest = (input, context) => {
|
|
8127
8014
|
return {
|
|
8128
|
-
...(input.AccessToken
|
|
8015
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
8129
8016
|
};
|
|
8130
8017
|
};
|
|
8131
8018
|
const serializeAws_json1_1HttpHeader = (input, context) => {
|
|
8132
8019
|
return {
|
|
8133
|
-
...(input.headerName
|
|
8134
|
-
...(input.headerValue
|
|
8020
|
+
...(input.headerName != null && { headerName: input.headerName }),
|
|
8021
|
+
...(input.headerValue != null && { headerValue: input.headerValue }),
|
|
8135
8022
|
};
|
|
8136
8023
|
};
|
|
8137
8024
|
const serializeAws_json1_1HttpHeaderList = (input, context) => {
|
|
@@ -8156,130 +8043,115 @@ const serializeAws_json1_1IdpIdentifiersListType = (input, context) => {
|
|
|
8156
8043
|
};
|
|
8157
8044
|
const serializeAws_json1_1InitiateAuthRequest = (input, context) => {
|
|
8158
8045
|
return {
|
|
8159
|
-
...(input.AnalyticsMetadata
|
|
8160
|
-
input.AnalyticsMetadata !== null && {
|
|
8046
|
+
...(input.AnalyticsMetadata != null && {
|
|
8161
8047
|
AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
|
|
8162
8048
|
}),
|
|
8163
|
-
...(input.AuthFlow
|
|
8164
|
-
...(input.AuthParameters
|
|
8165
|
-
input.AuthParameters !== null && {
|
|
8049
|
+
...(input.AuthFlow != null && { AuthFlow: input.AuthFlow }),
|
|
8050
|
+
...(input.AuthParameters != null && {
|
|
8166
8051
|
AuthParameters: serializeAws_json1_1AuthParametersType(input.AuthParameters, context),
|
|
8167
8052
|
}),
|
|
8168
|
-
...(input.ClientId
|
|
8169
|
-
...(input.ClientMetadata
|
|
8170
|
-
input.ClientMetadata !== null && {
|
|
8053
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
8054
|
+
...(input.ClientMetadata != null && {
|
|
8171
8055
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
8172
8056
|
}),
|
|
8173
|
-
...(input.UserContextData
|
|
8174
|
-
input.UserContextData !== null && {
|
|
8057
|
+
...(input.UserContextData != null && {
|
|
8175
8058
|
UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
|
|
8176
8059
|
}),
|
|
8177
8060
|
};
|
|
8178
8061
|
};
|
|
8179
8062
|
const serializeAws_json1_1LambdaConfigType = (input, context) => {
|
|
8180
8063
|
return {
|
|
8181
|
-
...(input.CreateAuthChallenge
|
|
8182
|
-
|
|
8183
|
-
...(input.CustomEmailSender !== undefined &&
|
|
8184
|
-
input.CustomEmailSender !== null && {
|
|
8064
|
+
...(input.CreateAuthChallenge != null && { CreateAuthChallenge: input.CreateAuthChallenge }),
|
|
8065
|
+
...(input.CustomEmailSender != null && {
|
|
8185
8066
|
CustomEmailSender: serializeAws_json1_1CustomEmailLambdaVersionConfigType(input.CustomEmailSender, context),
|
|
8186
8067
|
}),
|
|
8187
|
-
...(input.CustomMessage
|
|
8188
|
-
...(input.CustomSMSSender
|
|
8189
|
-
input.CustomSMSSender !== null && {
|
|
8068
|
+
...(input.CustomMessage != null && { CustomMessage: input.CustomMessage }),
|
|
8069
|
+
...(input.CustomSMSSender != null && {
|
|
8190
8070
|
CustomSMSSender: serializeAws_json1_1CustomSMSLambdaVersionConfigType(input.CustomSMSSender, context),
|
|
8191
8071
|
}),
|
|
8192
|
-
...(input.DefineAuthChallenge
|
|
8193
|
-
|
|
8194
|
-
...(input.
|
|
8195
|
-
...(input.
|
|
8196
|
-
|
|
8197
|
-
...(input.
|
|
8198
|
-
|
|
8199
|
-
...(input.
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8203
|
-
input.PreTokenGeneration !== null && { PreTokenGeneration: input.PreTokenGeneration }),
|
|
8204
|
-
...(input.UserMigration !== undefined && input.UserMigration !== null && { UserMigration: input.UserMigration }),
|
|
8205
|
-
...(input.VerifyAuthChallengeResponse !== undefined &&
|
|
8206
|
-
input.VerifyAuthChallengeResponse !== null && { VerifyAuthChallengeResponse: input.VerifyAuthChallengeResponse }),
|
|
8072
|
+
...(input.DefineAuthChallenge != null && { DefineAuthChallenge: input.DefineAuthChallenge }),
|
|
8073
|
+
...(input.KMSKeyID != null && { KMSKeyID: input.KMSKeyID }),
|
|
8074
|
+
...(input.PostAuthentication != null && { PostAuthentication: input.PostAuthentication }),
|
|
8075
|
+
...(input.PostConfirmation != null && { PostConfirmation: input.PostConfirmation }),
|
|
8076
|
+
...(input.PreAuthentication != null && { PreAuthentication: input.PreAuthentication }),
|
|
8077
|
+
...(input.PreSignUp != null && { PreSignUp: input.PreSignUp }),
|
|
8078
|
+
...(input.PreTokenGeneration != null && { PreTokenGeneration: input.PreTokenGeneration }),
|
|
8079
|
+
...(input.UserMigration != null && { UserMigration: input.UserMigration }),
|
|
8080
|
+
...(input.VerifyAuthChallengeResponse != null && {
|
|
8081
|
+
VerifyAuthChallengeResponse: input.VerifyAuthChallengeResponse,
|
|
8082
|
+
}),
|
|
8207
8083
|
};
|
|
8208
8084
|
};
|
|
8209
8085
|
const serializeAws_json1_1ListDevicesRequest = (input, context) => {
|
|
8210
8086
|
return {
|
|
8211
|
-
...(input.AccessToken
|
|
8212
|
-
...(input.Limit
|
|
8213
|
-
...(input.PaginationToken
|
|
8214
|
-
input.PaginationToken !== null && { PaginationToken: input.PaginationToken }),
|
|
8087
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
8088
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
8089
|
+
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
8215
8090
|
};
|
|
8216
8091
|
};
|
|
8217
8092
|
const serializeAws_json1_1ListGroupsRequest = (input, context) => {
|
|
8218
8093
|
return {
|
|
8219
|
-
...(input.Limit
|
|
8220
|
-
...(input.NextToken
|
|
8221
|
-
...(input.UserPoolId
|
|
8094
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
8095
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
8096
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8222
8097
|
};
|
|
8223
8098
|
};
|
|
8224
8099
|
const serializeAws_json1_1ListIdentityProvidersRequest = (input, context) => {
|
|
8225
8100
|
return {
|
|
8226
|
-
...(input.MaxResults
|
|
8227
|
-
...(input.NextToken
|
|
8228
|
-
...(input.UserPoolId
|
|
8101
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
8102
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
8103
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8229
8104
|
};
|
|
8230
8105
|
};
|
|
8231
8106
|
const serializeAws_json1_1ListResourceServersRequest = (input, context) => {
|
|
8232
8107
|
return {
|
|
8233
|
-
...(input.MaxResults
|
|
8234
|
-
...(input.NextToken
|
|
8235
|
-
...(input.UserPoolId
|
|
8108
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
8109
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
8110
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8236
8111
|
};
|
|
8237
8112
|
};
|
|
8238
8113
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
8239
8114
|
return {
|
|
8240
|
-
...(input.ResourceArn
|
|
8115
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
8241
8116
|
};
|
|
8242
8117
|
};
|
|
8243
8118
|
const serializeAws_json1_1ListUserImportJobsRequest = (input, context) => {
|
|
8244
8119
|
return {
|
|
8245
|
-
...(input.MaxResults
|
|
8246
|
-
...(input.PaginationToken
|
|
8247
|
-
|
|
8248
|
-
...(input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }),
|
|
8120
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
8121
|
+
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
8122
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8249
8123
|
};
|
|
8250
8124
|
};
|
|
8251
8125
|
const serializeAws_json1_1ListUserPoolClientsRequest = (input, context) => {
|
|
8252
8126
|
return {
|
|
8253
|
-
...(input.MaxResults
|
|
8254
|
-
...(input.NextToken
|
|
8255
|
-
...(input.UserPoolId
|
|
8127
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
8128
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
8129
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8256
8130
|
};
|
|
8257
8131
|
};
|
|
8258
8132
|
const serializeAws_json1_1ListUserPoolsRequest = (input, context) => {
|
|
8259
8133
|
return {
|
|
8260
|
-
...(input.MaxResults
|
|
8261
|
-
...(input.NextToken
|
|
8134
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
8135
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
8262
8136
|
};
|
|
8263
8137
|
};
|
|
8264
8138
|
const serializeAws_json1_1ListUsersInGroupRequest = (input, context) => {
|
|
8265
8139
|
return {
|
|
8266
|
-
...(input.GroupName
|
|
8267
|
-
...(input.Limit
|
|
8268
|
-
...(input.NextToken
|
|
8269
|
-
...(input.UserPoolId
|
|
8140
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
8141
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
8142
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
8143
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8270
8144
|
};
|
|
8271
8145
|
};
|
|
8272
8146
|
const serializeAws_json1_1ListUsersRequest = (input, context) => {
|
|
8273
8147
|
return {
|
|
8274
|
-
...(input.AttributesToGet
|
|
8275
|
-
input.AttributesToGet !== null && {
|
|
8148
|
+
...(input.AttributesToGet != null && {
|
|
8276
8149
|
AttributesToGet: serializeAws_json1_1SearchedAttributeNamesListType(input.AttributesToGet, context),
|
|
8277
8150
|
}),
|
|
8278
|
-
...(input.Filter
|
|
8279
|
-
...(input.Limit
|
|
8280
|
-
...(input.PaginationToken
|
|
8281
|
-
|
|
8282
|
-
...(input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }),
|
|
8151
|
+
...(input.Filter != null && { Filter: input.Filter }),
|
|
8152
|
+
...(input.Limit != null && { Limit: input.Limit }),
|
|
8153
|
+
...(input.PaginationToken != null && { PaginationToken: input.PaginationToken }),
|
|
8154
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8283
8155
|
};
|
|
8284
8156
|
};
|
|
8285
8157
|
const serializeAws_json1_1LogoutURLsListType = (input, context) => {
|
|
@@ -8294,9 +8166,9 @@ const serializeAws_json1_1LogoutURLsListType = (input, context) => {
|
|
|
8294
8166
|
};
|
|
8295
8167
|
const serializeAws_json1_1MessageTemplateType = (input, context) => {
|
|
8296
8168
|
return {
|
|
8297
|
-
...(input.EmailMessage
|
|
8298
|
-
...(input.EmailSubject
|
|
8299
|
-
...(input.SMSMessage
|
|
8169
|
+
...(input.EmailMessage != null && { EmailMessage: input.EmailMessage }),
|
|
8170
|
+
...(input.EmailSubject != null && { EmailSubject: input.EmailSubject }),
|
|
8171
|
+
...(input.SMSMessage != null && { SMSMessage: input.SMSMessage }),
|
|
8300
8172
|
};
|
|
8301
8173
|
};
|
|
8302
8174
|
const serializeAws_json1_1MFAOptionListType = (input, context) => {
|
|
@@ -8311,37 +8183,33 @@ const serializeAws_json1_1MFAOptionListType = (input, context) => {
|
|
|
8311
8183
|
};
|
|
8312
8184
|
const serializeAws_json1_1MFAOptionType = (input, context) => {
|
|
8313
8185
|
return {
|
|
8314
|
-
...(input.AttributeName
|
|
8315
|
-
...(input.DeliveryMedium
|
|
8316
|
-
input.DeliveryMedium !== null && { DeliveryMedium: input.DeliveryMedium }),
|
|
8186
|
+
...(input.AttributeName != null && { AttributeName: input.AttributeName }),
|
|
8187
|
+
...(input.DeliveryMedium != null && { DeliveryMedium: input.DeliveryMedium }),
|
|
8317
8188
|
};
|
|
8318
8189
|
};
|
|
8319
8190
|
const serializeAws_json1_1NotifyConfigurationType = (input, context) => {
|
|
8320
8191
|
return {
|
|
8321
|
-
...(input.BlockEmail
|
|
8322
|
-
|
|
8323
|
-
...(input.
|
|
8324
|
-
...(input.
|
|
8325
|
-
input.MfaEmail !== null && { MfaEmail: serializeAws_json1_1NotifyEmailType(input.MfaEmail, context) }),
|
|
8326
|
-
...(input.NoActionEmail !== undefined &&
|
|
8327
|
-
input.NoActionEmail !== null && {
|
|
8192
|
+
...(input.BlockEmail != null && { BlockEmail: serializeAws_json1_1NotifyEmailType(input.BlockEmail, context) }),
|
|
8193
|
+
...(input.From != null && { From: input.From }),
|
|
8194
|
+
...(input.MfaEmail != null && { MfaEmail: serializeAws_json1_1NotifyEmailType(input.MfaEmail, context) }),
|
|
8195
|
+
...(input.NoActionEmail != null && {
|
|
8328
8196
|
NoActionEmail: serializeAws_json1_1NotifyEmailType(input.NoActionEmail, context),
|
|
8329
8197
|
}),
|
|
8330
|
-
...(input.ReplyTo
|
|
8331
|
-
...(input.SourceArn
|
|
8198
|
+
...(input.ReplyTo != null && { ReplyTo: input.ReplyTo }),
|
|
8199
|
+
...(input.SourceArn != null && { SourceArn: input.SourceArn }),
|
|
8332
8200
|
};
|
|
8333
8201
|
};
|
|
8334
8202
|
const serializeAws_json1_1NotifyEmailType = (input, context) => {
|
|
8335
8203
|
return {
|
|
8336
|
-
...(input.HtmlBody
|
|
8337
|
-
...(input.Subject
|
|
8338
|
-
...(input.TextBody
|
|
8204
|
+
...(input.HtmlBody != null && { HtmlBody: input.HtmlBody }),
|
|
8205
|
+
...(input.Subject != null && { Subject: input.Subject }),
|
|
8206
|
+
...(input.TextBody != null && { TextBody: input.TextBody }),
|
|
8339
8207
|
};
|
|
8340
8208
|
};
|
|
8341
8209
|
const serializeAws_json1_1NumberAttributeConstraintsType = (input, context) => {
|
|
8342
8210
|
return {
|
|
8343
|
-
...(input.MaxValue
|
|
8344
|
-
...(input.MinValue
|
|
8211
|
+
...(input.MaxValue != null && { MaxValue: input.MaxValue }),
|
|
8212
|
+
...(input.MinValue != null && { MinValue: input.MinValue }),
|
|
8345
8213
|
};
|
|
8346
8214
|
};
|
|
8347
8215
|
const serializeAws_json1_1OAuthFlowsType = (input, context) => {
|
|
@@ -8356,17 +8224,12 @@ const serializeAws_json1_1OAuthFlowsType = (input, context) => {
|
|
|
8356
8224
|
};
|
|
8357
8225
|
const serializeAws_json1_1PasswordPolicyType = (input, context) => {
|
|
8358
8226
|
return {
|
|
8359
|
-
...(input.MinimumLength
|
|
8360
|
-
...(input.RequireLowercase
|
|
8361
|
-
|
|
8362
|
-
...(input.
|
|
8363
|
-
|
|
8364
|
-
...(input.
|
|
8365
|
-
input.RequireSymbols !== null && { RequireSymbols: input.RequireSymbols }),
|
|
8366
|
-
...(input.RequireUppercase !== undefined &&
|
|
8367
|
-
input.RequireUppercase !== null && { RequireUppercase: input.RequireUppercase }),
|
|
8368
|
-
...(input.TemporaryPasswordValidityDays !== undefined &&
|
|
8369
|
-
input.TemporaryPasswordValidityDays !== null && {
|
|
8227
|
+
...(input.MinimumLength != null && { MinimumLength: input.MinimumLength }),
|
|
8228
|
+
...(input.RequireLowercase != null && { RequireLowercase: input.RequireLowercase }),
|
|
8229
|
+
...(input.RequireNumbers != null && { RequireNumbers: input.RequireNumbers }),
|
|
8230
|
+
...(input.RequireSymbols != null && { RequireSymbols: input.RequireSymbols }),
|
|
8231
|
+
...(input.RequireUppercase != null && { RequireUppercase: input.RequireUppercase }),
|
|
8232
|
+
...(input.TemporaryPasswordValidityDays != null && {
|
|
8370
8233
|
TemporaryPasswordValidityDays: input.TemporaryPasswordValidityDays,
|
|
8371
8234
|
}),
|
|
8372
8235
|
};
|
|
@@ -8384,11 +8247,9 @@ const serializeAws_json1_1ProviderDetailsType = (input, context) => {
|
|
|
8384
8247
|
};
|
|
8385
8248
|
const serializeAws_json1_1ProviderUserIdentifierType = (input, context) => {
|
|
8386
8249
|
return {
|
|
8387
|
-
...(input.ProviderAttributeName
|
|
8388
|
-
|
|
8389
|
-
...(input.
|
|
8390
|
-
input.ProviderAttributeValue !== null && { ProviderAttributeValue: input.ProviderAttributeValue }),
|
|
8391
|
-
...(input.ProviderName !== undefined && input.ProviderName !== null && { ProviderName: input.ProviderName }),
|
|
8250
|
+
...(input.ProviderAttributeName != null && { ProviderAttributeName: input.ProviderAttributeName }),
|
|
8251
|
+
...(input.ProviderAttributeValue != null && { ProviderAttributeValue: input.ProviderAttributeValue }),
|
|
8252
|
+
...(input.ProviderName != null && { ProviderName: input.ProviderName }),
|
|
8392
8253
|
};
|
|
8393
8254
|
};
|
|
8394
8255
|
const serializeAws_json1_1RecoveryMechanismsType = (input, context) => {
|
|
@@ -8403,27 +8264,24 @@ const serializeAws_json1_1RecoveryMechanismsType = (input, context) => {
|
|
|
8403
8264
|
};
|
|
8404
8265
|
const serializeAws_json1_1RecoveryOptionType = (input, context) => {
|
|
8405
8266
|
return {
|
|
8406
|
-
...(input.Name
|
|
8407
|
-
...(input.Priority
|
|
8267
|
+
...(input.Name != null && { Name: input.Name }),
|
|
8268
|
+
...(input.Priority != null && { Priority: input.Priority }),
|
|
8408
8269
|
};
|
|
8409
8270
|
};
|
|
8410
8271
|
const serializeAws_json1_1ResendConfirmationCodeRequest = (input, context) => {
|
|
8411
8272
|
return {
|
|
8412
|
-
...(input.AnalyticsMetadata
|
|
8413
|
-
input.AnalyticsMetadata !== null && {
|
|
8273
|
+
...(input.AnalyticsMetadata != null && {
|
|
8414
8274
|
AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
|
|
8415
8275
|
}),
|
|
8416
|
-
...(input.ClientId
|
|
8417
|
-
...(input.ClientMetadata
|
|
8418
|
-
input.ClientMetadata !== null && {
|
|
8276
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
8277
|
+
...(input.ClientMetadata != null && {
|
|
8419
8278
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
8420
8279
|
}),
|
|
8421
|
-
...(input.SecretHash
|
|
8422
|
-
...(input.UserContextData
|
|
8423
|
-
input.UserContextData !== null && {
|
|
8280
|
+
...(input.SecretHash != null && { SecretHash: input.SecretHash }),
|
|
8281
|
+
...(input.UserContextData != null && {
|
|
8424
8282
|
UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
|
|
8425
8283
|
}),
|
|
8426
|
-
...(input.Username
|
|
8284
|
+
...(input.Username != null && { Username: input.Username }),
|
|
8427
8285
|
};
|
|
8428
8286
|
};
|
|
8429
8287
|
const serializeAws_json1_1ResourceServerScopeListType = (input, context) => {
|
|
@@ -8438,49 +8296,42 @@ const serializeAws_json1_1ResourceServerScopeListType = (input, context) => {
|
|
|
8438
8296
|
};
|
|
8439
8297
|
const serializeAws_json1_1ResourceServerScopeType = (input, context) => {
|
|
8440
8298
|
return {
|
|
8441
|
-
...(input.ScopeDescription
|
|
8442
|
-
|
|
8443
|
-
...(input.ScopeName !== undefined && input.ScopeName !== null && { ScopeName: input.ScopeName }),
|
|
8299
|
+
...(input.ScopeDescription != null && { ScopeDescription: input.ScopeDescription }),
|
|
8300
|
+
...(input.ScopeName != null && { ScopeName: input.ScopeName }),
|
|
8444
8301
|
};
|
|
8445
8302
|
};
|
|
8446
8303
|
const serializeAws_json1_1RespondToAuthChallengeRequest = (input, context) => {
|
|
8447
8304
|
return {
|
|
8448
|
-
...(input.AnalyticsMetadata
|
|
8449
|
-
input.AnalyticsMetadata !== null && {
|
|
8305
|
+
...(input.AnalyticsMetadata != null && {
|
|
8450
8306
|
AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
|
|
8451
8307
|
}),
|
|
8452
|
-
...(input.ChallengeName
|
|
8453
|
-
...(input.ChallengeResponses
|
|
8454
|
-
input.ChallengeResponses !== null && {
|
|
8308
|
+
...(input.ChallengeName != null && { ChallengeName: input.ChallengeName }),
|
|
8309
|
+
...(input.ChallengeResponses != null && {
|
|
8455
8310
|
ChallengeResponses: serializeAws_json1_1ChallengeResponsesType(input.ChallengeResponses, context),
|
|
8456
8311
|
}),
|
|
8457
|
-
...(input.ClientId
|
|
8458
|
-
...(input.ClientMetadata
|
|
8459
|
-
input.ClientMetadata !== null && {
|
|
8312
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
8313
|
+
...(input.ClientMetadata != null && {
|
|
8460
8314
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
8461
8315
|
}),
|
|
8462
|
-
...(input.Session
|
|
8463
|
-
...(input.UserContextData
|
|
8464
|
-
input.UserContextData !== null && {
|
|
8316
|
+
...(input.Session != null && { Session: input.Session }),
|
|
8317
|
+
...(input.UserContextData != null && {
|
|
8465
8318
|
UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
|
|
8466
8319
|
}),
|
|
8467
8320
|
};
|
|
8468
8321
|
};
|
|
8469
8322
|
const serializeAws_json1_1RevokeTokenRequest = (input, context) => {
|
|
8470
8323
|
return {
|
|
8471
|
-
...(input.ClientId
|
|
8472
|
-
...(input.ClientSecret
|
|
8473
|
-
...(input.Token
|
|
8324
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
8325
|
+
...(input.ClientSecret != null && { ClientSecret: input.ClientSecret }),
|
|
8326
|
+
...(input.Token != null && { Token: input.Token }),
|
|
8474
8327
|
};
|
|
8475
8328
|
};
|
|
8476
8329
|
const serializeAws_json1_1RiskExceptionConfigurationType = (input, context) => {
|
|
8477
8330
|
return {
|
|
8478
|
-
...(input.BlockedIPRangeList
|
|
8479
|
-
input.BlockedIPRangeList !== null && {
|
|
8331
|
+
...(input.BlockedIPRangeList != null && {
|
|
8480
8332
|
BlockedIPRangeList: serializeAws_json1_1BlockedIPRangeListType(input.BlockedIPRangeList, context),
|
|
8481
8333
|
}),
|
|
8482
|
-
...(input.SkippedIPRangeList
|
|
8483
|
-
input.SkippedIPRangeList !== null && {
|
|
8334
|
+
...(input.SkippedIPRangeList != null && {
|
|
8484
8335
|
SkippedIPRangeList: serializeAws_json1_1SkippedIPRangeListType(input.SkippedIPRangeList, context),
|
|
8485
8336
|
}),
|
|
8486
8337
|
};
|
|
@@ -8497,19 +8348,15 @@ const serializeAws_json1_1SchemaAttributesListType = (input, context) => {
|
|
|
8497
8348
|
};
|
|
8498
8349
|
const serializeAws_json1_1SchemaAttributeType = (input, context) => {
|
|
8499
8350
|
return {
|
|
8500
|
-
...(input.AttributeDataType
|
|
8501
|
-
|
|
8502
|
-
...(input.
|
|
8503
|
-
|
|
8504
|
-
...(input.
|
|
8505
|
-
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
8506
|
-
...(input.NumberAttributeConstraints !== undefined &&
|
|
8507
|
-
input.NumberAttributeConstraints !== null && {
|
|
8351
|
+
...(input.AttributeDataType != null && { AttributeDataType: input.AttributeDataType }),
|
|
8352
|
+
...(input.DeveloperOnlyAttribute != null && { DeveloperOnlyAttribute: input.DeveloperOnlyAttribute }),
|
|
8353
|
+
...(input.Mutable != null && { Mutable: input.Mutable }),
|
|
8354
|
+
...(input.Name != null && { Name: input.Name }),
|
|
8355
|
+
...(input.NumberAttributeConstraints != null && {
|
|
8508
8356
|
NumberAttributeConstraints: serializeAws_json1_1NumberAttributeConstraintsType(input.NumberAttributeConstraints, context),
|
|
8509
8357
|
}),
|
|
8510
|
-
...(input.Required
|
|
8511
|
-
...(input.StringAttributeConstraints
|
|
8512
|
-
input.StringAttributeConstraints !== null && {
|
|
8358
|
+
...(input.Required != null && { Required: input.Required }),
|
|
8359
|
+
...(input.StringAttributeConstraints != null && {
|
|
8513
8360
|
StringAttributeConstraints: serializeAws_json1_1StringAttributeConstraintsType(input.StringAttributeConstraints, context),
|
|
8514
8361
|
}),
|
|
8515
8362
|
};
|
|
@@ -8536,90 +8383,75 @@ const serializeAws_json1_1SearchedAttributeNamesListType = (input, context) => {
|
|
|
8536
8383
|
};
|
|
8537
8384
|
const serializeAws_json1_1SetRiskConfigurationRequest = (input, context) => {
|
|
8538
8385
|
return {
|
|
8539
|
-
...(input.AccountTakeoverRiskConfiguration
|
|
8540
|
-
input.AccountTakeoverRiskConfiguration !== null && {
|
|
8386
|
+
...(input.AccountTakeoverRiskConfiguration != null && {
|
|
8541
8387
|
AccountTakeoverRiskConfiguration: serializeAws_json1_1AccountTakeoverRiskConfigurationType(input.AccountTakeoverRiskConfiguration, context),
|
|
8542
8388
|
}),
|
|
8543
|
-
...(input.ClientId
|
|
8544
|
-
...(input.CompromisedCredentialsRiskConfiguration
|
|
8545
|
-
input.CompromisedCredentialsRiskConfiguration !== null && {
|
|
8389
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
8390
|
+
...(input.CompromisedCredentialsRiskConfiguration != null && {
|
|
8546
8391
|
CompromisedCredentialsRiskConfiguration: serializeAws_json1_1CompromisedCredentialsRiskConfigurationType(input.CompromisedCredentialsRiskConfiguration, context),
|
|
8547
8392
|
}),
|
|
8548
|
-
...(input.RiskExceptionConfiguration
|
|
8549
|
-
input.RiskExceptionConfiguration !== null && {
|
|
8393
|
+
...(input.RiskExceptionConfiguration != null && {
|
|
8550
8394
|
RiskExceptionConfiguration: serializeAws_json1_1RiskExceptionConfigurationType(input.RiskExceptionConfiguration, context),
|
|
8551
8395
|
}),
|
|
8552
|
-
...(input.UserPoolId
|
|
8396
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8553
8397
|
};
|
|
8554
8398
|
};
|
|
8555
8399
|
const serializeAws_json1_1SetUICustomizationRequest = (input, context) => {
|
|
8556
8400
|
return {
|
|
8557
|
-
...(input.CSS
|
|
8558
|
-
...(input.ClientId
|
|
8559
|
-
...(input.ImageFile
|
|
8560
|
-
|
|
8561
|
-
...(input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }),
|
|
8401
|
+
...(input.CSS != null && { CSS: input.CSS }),
|
|
8402
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
8403
|
+
...(input.ImageFile != null && { ImageFile: context.base64Encoder(input.ImageFile) }),
|
|
8404
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8562
8405
|
};
|
|
8563
8406
|
};
|
|
8564
8407
|
const serializeAws_json1_1SetUserMFAPreferenceRequest = (input, context) => {
|
|
8565
8408
|
return {
|
|
8566
|
-
...(input.AccessToken
|
|
8567
|
-
...(input.SMSMfaSettings
|
|
8568
|
-
input.SMSMfaSettings !== null && {
|
|
8409
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
8410
|
+
...(input.SMSMfaSettings != null && {
|
|
8569
8411
|
SMSMfaSettings: serializeAws_json1_1SMSMfaSettingsType(input.SMSMfaSettings, context),
|
|
8570
8412
|
}),
|
|
8571
|
-
...(input.SoftwareTokenMfaSettings
|
|
8572
|
-
input.SoftwareTokenMfaSettings !== null && {
|
|
8413
|
+
...(input.SoftwareTokenMfaSettings != null && {
|
|
8573
8414
|
SoftwareTokenMfaSettings: serializeAws_json1_1SoftwareTokenMfaSettingsType(input.SoftwareTokenMfaSettings, context),
|
|
8574
8415
|
}),
|
|
8575
8416
|
};
|
|
8576
8417
|
};
|
|
8577
8418
|
const serializeAws_json1_1SetUserPoolMfaConfigRequest = (input, context) => {
|
|
8578
8419
|
return {
|
|
8579
|
-
...(input.MfaConfiguration
|
|
8580
|
-
|
|
8581
|
-
...(input.SmsMfaConfiguration !== undefined &&
|
|
8582
|
-
input.SmsMfaConfiguration !== null && {
|
|
8420
|
+
...(input.MfaConfiguration != null && { MfaConfiguration: input.MfaConfiguration }),
|
|
8421
|
+
...(input.SmsMfaConfiguration != null && {
|
|
8583
8422
|
SmsMfaConfiguration: serializeAws_json1_1SmsMfaConfigType(input.SmsMfaConfiguration, context),
|
|
8584
8423
|
}),
|
|
8585
|
-
...(input.SoftwareTokenMfaConfiguration
|
|
8586
|
-
input.SoftwareTokenMfaConfiguration !== null && {
|
|
8424
|
+
...(input.SoftwareTokenMfaConfiguration != null && {
|
|
8587
8425
|
SoftwareTokenMfaConfiguration: serializeAws_json1_1SoftwareTokenMfaConfigType(input.SoftwareTokenMfaConfiguration, context),
|
|
8588
8426
|
}),
|
|
8589
|
-
...(input.UserPoolId
|
|
8427
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8590
8428
|
};
|
|
8591
8429
|
};
|
|
8592
8430
|
const serializeAws_json1_1SetUserSettingsRequest = (input, context) => {
|
|
8593
8431
|
return {
|
|
8594
|
-
...(input.AccessToken
|
|
8595
|
-
...(input.MFAOptions
|
|
8596
|
-
input.MFAOptions !== null && { MFAOptions: serializeAws_json1_1MFAOptionListType(input.MFAOptions, context) }),
|
|
8432
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
8433
|
+
...(input.MFAOptions != null && { MFAOptions: serializeAws_json1_1MFAOptionListType(input.MFAOptions, context) }),
|
|
8597
8434
|
};
|
|
8598
8435
|
};
|
|
8599
8436
|
const serializeAws_json1_1SignUpRequest = (input, context) => {
|
|
8600
8437
|
return {
|
|
8601
|
-
...(input.AnalyticsMetadata
|
|
8602
|
-
input.AnalyticsMetadata !== null && {
|
|
8438
|
+
...(input.AnalyticsMetadata != null && {
|
|
8603
8439
|
AnalyticsMetadata: serializeAws_json1_1AnalyticsMetadataType(input.AnalyticsMetadata, context),
|
|
8604
8440
|
}),
|
|
8605
|
-
...(input.ClientId
|
|
8606
|
-
...(input.ClientMetadata
|
|
8607
|
-
input.ClientMetadata !== null && {
|
|
8441
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
8442
|
+
...(input.ClientMetadata != null && {
|
|
8608
8443
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
8609
8444
|
}),
|
|
8610
|
-
...(input.Password
|
|
8611
|
-
...(input.SecretHash
|
|
8612
|
-
...(input.UserAttributes
|
|
8613
|
-
input.UserAttributes !== null && {
|
|
8445
|
+
...(input.Password != null && { Password: input.Password }),
|
|
8446
|
+
...(input.SecretHash != null && { SecretHash: input.SecretHash }),
|
|
8447
|
+
...(input.UserAttributes != null && {
|
|
8614
8448
|
UserAttributes: serializeAws_json1_1AttributeListType(input.UserAttributes, context),
|
|
8615
8449
|
}),
|
|
8616
|
-
...(input.UserContextData
|
|
8617
|
-
input.UserContextData !== null && {
|
|
8450
|
+
...(input.UserContextData != null && {
|
|
8618
8451
|
UserContextData: serializeAws_json1_1UserContextDataType(input.UserContextData, context),
|
|
8619
8452
|
}),
|
|
8620
|
-
...(input.Username
|
|
8621
|
-
...(input.ValidationData
|
|
8622
|
-
input.ValidationData !== null && {
|
|
8453
|
+
...(input.Username != null && { Username: input.Username }),
|
|
8454
|
+
...(input.ValidationData != null && {
|
|
8623
8455
|
ValidationData: serializeAws_json1_1AttributeListType(input.ValidationData, context),
|
|
8624
8456
|
}),
|
|
8625
8457
|
};
|
|
@@ -8636,54 +8468,52 @@ const serializeAws_json1_1SkippedIPRangeListType = (input, context) => {
|
|
|
8636
8468
|
};
|
|
8637
8469
|
const serializeAws_json1_1SmsConfigurationType = (input, context) => {
|
|
8638
8470
|
return {
|
|
8639
|
-
...(input.ExternalId
|
|
8640
|
-
...(input.SnsCallerArn
|
|
8641
|
-
...(input.SnsRegion
|
|
8471
|
+
...(input.ExternalId != null && { ExternalId: input.ExternalId }),
|
|
8472
|
+
...(input.SnsCallerArn != null && { SnsCallerArn: input.SnsCallerArn }),
|
|
8473
|
+
...(input.SnsRegion != null && { SnsRegion: input.SnsRegion }),
|
|
8642
8474
|
};
|
|
8643
8475
|
};
|
|
8644
8476
|
const serializeAws_json1_1SmsMfaConfigType = (input, context) => {
|
|
8645
8477
|
return {
|
|
8646
|
-
...(input.SmsAuthenticationMessage
|
|
8647
|
-
|
|
8648
|
-
...(input.SmsConfiguration !== undefined &&
|
|
8649
|
-
input.SmsConfiguration !== null && {
|
|
8478
|
+
...(input.SmsAuthenticationMessage != null && { SmsAuthenticationMessage: input.SmsAuthenticationMessage }),
|
|
8479
|
+
...(input.SmsConfiguration != null && {
|
|
8650
8480
|
SmsConfiguration: serializeAws_json1_1SmsConfigurationType(input.SmsConfiguration, context),
|
|
8651
8481
|
}),
|
|
8652
8482
|
};
|
|
8653
8483
|
};
|
|
8654
8484
|
const serializeAws_json1_1SMSMfaSettingsType = (input, context) => {
|
|
8655
8485
|
return {
|
|
8656
|
-
...(input.Enabled
|
|
8657
|
-
...(input.PreferredMfa
|
|
8486
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
8487
|
+
...(input.PreferredMfa != null && { PreferredMfa: input.PreferredMfa }),
|
|
8658
8488
|
};
|
|
8659
8489
|
};
|
|
8660
8490
|
const serializeAws_json1_1SoftwareTokenMfaConfigType = (input, context) => {
|
|
8661
8491
|
return {
|
|
8662
|
-
...(input.Enabled
|
|
8492
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
8663
8493
|
};
|
|
8664
8494
|
};
|
|
8665
8495
|
const serializeAws_json1_1SoftwareTokenMfaSettingsType = (input, context) => {
|
|
8666
8496
|
return {
|
|
8667
|
-
...(input.Enabled
|
|
8668
|
-
...(input.PreferredMfa
|
|
8497
|
+
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
8498
|
+
...(input.PreferredMfa != null && { PreferredMfa: input.PreferredMfa }),
|
|
8669
8499
|
};
|
|
8670
8500
|
};
|
|
8671
8501
|
const serializeAws_json1_1StartUserImportJobRequest = (input, context) => {
|
|
8672
8502
|
return {
|
|
8673
|
-
...(input.JobId
|
|
8674
|
-
...(input.UserPoolId
|
|
8503
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
8504
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8675
8505
|
};
|
|
8676
8506
|
};
|
|
8677
8507
|
const serializeAws_json1_1StopUserImportJobRequest = (input, context) => {
|
|
8678
8508
|
return {
|
|
8679
|
-
...(input.JobId
|
|
8680
|
-
...(input.UserPoolId
|
|
8509
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
8510
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8681
8511
|
};
|
|
8682
8512
|
};
|
|
8683
8513
|
const serializeAws_json1_1StringAttributeConstraintsType = (input, context) => {
|
|
8684
8514
|
return {
|
|
8685
|
-
...(input.MaxLength
|
|
8686
|
-
...(input.MinLength
|
|
8515
|
+
...(input.MaxLength != null && { MaxLength: input.MaxLength }),
|
|
8516
|
+
...(input.MinLength != null && { MinLength: input.MinLength }),
|
|
8687
8517
|
};
|
|
8688
8518
|
};
|
|
8689
8519
|
const serializeAws_json1_1SupportedIdentityProvidersListType = (input, context) => {
|
|
@@ -8698,239 +8528,193 @@ const serializeAws_json1_1SupportedIdentityProvidersListType = (input, context)
|
|
|
8698
8528
|
};
|
|
8699
8529
|
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
8700
8530
|
return {
|
|
8701
|
-
...(input.ResourceArn
|
|
8702
|
-
...(input.Tags
|
|
8703
|
-
input.Tags !== null && { Tags: serializeAws_json1_1UserPoolTagsType(input.Tags, context) }),
|
|
8531
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
8532
|
+
...(input.Tags != null && { Tags: serializeAws_json1_1UserPoolTagsType(input.Tags, context) }),
|
|
8704
8533
|
};
|
|
8705
8534
|
};
|
|
8706
8535
|
const serializeAws_json1_1TokenValidityUnitsType = (input, context) => {
|
|
8707
8536
|
return {
|
|
8708
|
-
...(input.AccessToken
|
|
8709
|
-
...(input.IdToken
|
|
8710
|
-
...(input.RefreshToken
|
|
8537
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
8538
|
+
...(input.IdToken != null && { IdToken: input.IdToken }),
|
|
8539
|
+
...(input.RefreshToken != null && { RefreshToken: input.RefreshToken }),
|
|
8711
8540
|
};
|
|
8712
8541
|
};
|
|
8713
8542
|
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
8714
8543
|
return {
|
|
8715
|
-
...(input.ResourceArn
|
|
8716
|
-
...(input.TagKeys
|
|
8717
|
-
input.TagKeys !== null && { TagKeys: serializeAws_json1_1UserPoolTagsListType(input.TagKeys, context) }),
|
|
8544
|
+
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
8545
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_json1_1UserPoolTagsListType(input.TagKeys, context) }),
|
|
8718
8546
|
};
|
|
8719
8547
|
};
|
|
8720
8548
|
const serializeAws_json1_1UpdateAuthEventFeedbackRequest = (input, context) => {
|
|
8721
8549
|
return {
|
|
8722
|
-
...(input.EventId
|
|
8723
|
-
...(input.FeedbackToken
|
|
8724
|
-
...(input.FeedbackValue
|
|
8725
|
-
...(input.UserPoolId
|
|
8726
|
-
...(input.Username
|
|
8550
|
+
...(input.EventId != null && { EventId: input.EventId }),
|
|
8551
|
+
...(input.FeedbackToken != null && { FeedbackToken: input.FeedbackToken }),
|
|
8552
|
+
...(input.FeedbackValue != null && { FeedbackValue: input.FeedbackValue }),
|
|
8553
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8554
|
+
...(input.Username != null && { Username: input.Username }),
|
|
8727
8555
|
};
|
|
8728
8556
|
};
|
|
8729
8557
|
const serializeAws_json1_1UpdateDeviceStatusRequest = (input, context) => {
|
|
8730
8558
|
return {
|
|
8731
|
-
...(input.AccessToken
|
|
8732
|
-
...(input.DeviceKey
|
|
8733
|
-
...(input.DeviceRememberedStatus
|
|
8734
|
-
input.DeviceRememberedStatus !== null && { DeviceRememberedStatus: input.DeviceRememberedStatus }),
|
|
8559
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
8560
|
+
...(input.DeviceKey != null && { DeviceKey: input.DeviceKey }),
|
|
8561
|
+
...(input.DeviceRememberedStatus != null && { DeviceRememberedStatus: input.DeviceRememberedStatus }),
|
|
8735
8562
|
};
|
|
8736
8563
|
};
|
|
8737
8564
|
const serializeAws_json1_1UpdateGroupRequest = (input, context) => {
|
|
8738
8565
|
return {
|
|
8739
|
-
...(input.Description
|
|
8740
|
-
...(input.GroupName
|
|
8741
|
-
...(input.Precedence
|
|
8742
|
-
...(input.RoleArn
|
|
8743
|
-
...(input.UserPoolId
|
|
8566
|
+
...(input.Description != null && { Description: input.Description }),
|
|
8567
|
+
...(input.GroupName != null && { GroupName: input.GroupName }),
|
|
8568
|
+
...(input.Precedence != null && { Precedence: input.Precedence }),
|
|
8569
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
8570
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8744
8571
|
};
|
|
8745
8572
|
};
|
|
8746
8573
|
const serializeAws_json1_1UpdateIdentityProviderRequest = (input, context) => {
|
|
8747
8574
|
return {
|
|
8748
|
-
...(input.AttributeMapping
|
|
8749
|
-
input.AttributeMapping !== null && {
|
|
8575
|
+
...(input.AttributeMapping != null && {
|
|
8750
8576
|
AttributeMapping: serializeAws_json1_1AttributeMappingType(input.AttributeMapping, context),
|
|
8751
8577
|
}),
|
|
8752
|
-
...(input.IdpIdentifiers
|
|
8753
|
-
input.IdpIdentifiers !== null && {
|
|
8578
|
+
...(input.IdpIdentifiers != null && {
|
|
8754
8579
|
IdpIdentifiers: serializeAws_json1_1IdpIdentifiersListType(input.IdpIdentifiers, context),
|
|
8755
8580
|
}),
|
|
8756
|
-
...(input.ProviderDetails
|
|
8757
|
-
input.ProviderDetails !== null && {
|
|
8581
|
+
...(input.ProviderDetails != null && {
|
|
8758
8582
|
ProviderDetails: serializeAws_json1_1ProviderDetailsType(input.ProviderDetails, context),
|
|
8759
8583
|
}),
|
|
8760
|
-
...(input.ProviderName
|
|
8761
|
-
...(input.UserPoolId
|
|
8584
|
+
...(input.ProviderName != null && { ProviderName: input.ProviderName }),
|
|
8585
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8762
8586
|
};
|
|
8763
8587
|
};
|
|
8764
8588
|
const serializeAws_json1_1UpdateResourceServerRequest = (input, context) => {
|
|
8765
8589
|
return {
|
|
8766
|
-
...(input.Identifier
|
|
8767
|
-
...(input.Name
|
|
8768
|
-
...(input.Scopes
|
|
8769
|
-
|
|
8770
|
-
...(input.UserPoolId !== undefined && input.UserPoolId !== null && { UserPoolId: input.UserPoolId }),
|
|
8590
|
+
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
8591
|
+
...(input.Name != null && { Name: input.Name }),
|
|
8592
|
+
...(input.Scopes != null && { Scopes: serializeAws_json1_1ResourceServerScopeListType(input.Scopes, context) }),
|
|
8593
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8771
8594
|
};
|
|
8772
8595
|
};
|
|
8773
8596
|
const serializeAws_json1_1UpdateUserAttributesRequest = (input, context) => {
|
|
8774
8597
|
return {
|
|
8775
|
-
...(input.AccessToken
|
|
8776
|
-
...(input.ClientMetadata
|
|
8777
|
-
input.ClientMetadata !== null && {
|
|
8598
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
8599
|
+
...(input.ClientMetadata != null && {
|
|
8778
8600
|
ClientMetadata: serializeAws_json1_1ClientMetadataType(input.ClientMetadata, context),
|
|
8779
8601
|
}),
|
|
8780
|
-
...(input.UserAttributes
|
|
8781
|
-
input.UserAttributes !== null && {
|
|
8602
|
+
...(input.UserAttributes != null && {
|
|
8782
8603
|
UserAttributes: serializeAws_json1_1AttributeListType(input.UserAttributes, context),
|
|
8783
8604
|
}),
|
|
8784
8605
|
};
|
|
8785
8606
|
};
|
|
8786
8607
|
const serializeAws_json1_1UpdateUserPoolClientRequest = (input, context) => {
|
|
8787
8608
|
return {
|
|
8788
|
-
...(input.AccessTokenValidity
|
|
8789
|
-
|
|
8790
|
-
...(input.AllowedOAuthFlows !== undefined &&
|
|
8791
|
-
input.AllowedOAuthFlows !== null && {
|
|
8609
|
+
...(input.AccessTokenValidity != null && { AccessTokenValidity: input.AccessTokenValidity }),
|
|
8610
|
+
...(input.AllowedOAuthFlows != null && {
|
|
8792
8611
|
AllowedOAuthFlows: serializeAws_json1_1OAuthFlowsType(input.AllowedOAuthFlows, context),
|
|
8793
8612
|
}),
|
|
8794
|
-
...(input.AllowedOAuthFlowsUserPoolClient
|
|
8795
|
-
input.AllowedOAuthFlowsUserPoolClient !== null && {
|
|
8613
|
+
...(input.AllowedOAuthFlowsUserPoolClient != null && {
|
|
8796
8614
|
AllowedOAuthFlowsUserPoolClient: input.AllowedOAuthFlowsUserPoolClient,
|
|
8797
8615
|
}),
|
|
8798
|
-
...(input.AllowedOAuthScopes
|
|
8799
|
-
input.AllowedOAuthScopes !== null && {
|
|
8616
|
+
...(input.AllowedOAuthScopes != null && {
|
|
8800
8617
|
AllowedOAuthScopes: serializeAws_json1_1ScopeListType(input.AllowedOAuthScopes, context),
|
|
8801
8618
|
}),
|
|
8802
|
-
...(input.AnalyticsConfiguration
|
|
8803
|
-
input.AnalyticsConfiguration !== null && {
|
|
8619
|
+
...(input.AnalyticsConfiguration != null && {
|
|
8804
8620
|
AnalyticsConfiguration: serializeAws_json1_1AnalyticsConfigurationType(input.AnalyticsConfiguration, context),
|
|
8805
8621
|
}),
|
|
8806
|
-
...(input.CallbackURLs
|
|
8807
|
-
input.CallbackURLs !== null && {
|
|
8622
|
+
...(input.CallbackURLs != null && {
|
|
8808
8623
|
CallbackURLs: serializeAws_json1_1CallbackURLsListType(input.CallbackURLs, context),
|
|
8809
8624
|
}),
|
|
8810
|
-
...(input.ClientId
|
|
8811
|
-
...(input.ClientName
|
|
8812
|
-
...(input.DefaultRedirectURI
|
|
8813
|
-
|
|
8814
|
-
...(input.EnablePropagateAdditionalUserContextData !== undefined &&
|
|
8815
|
-
input.EnablePropagateAdditionalUserContextData !== null && {
|
|
8625
|
+
...(input.ClientId != null && { ClientId: input.ClientId }),
|
|
8626
|
+
...(input.ClientName != null && { ClientName: input.ClientName }),
|
|
8627
|
+
...(input.DefaultRedirectURI != null && { DefaultRedirectURI: input.DefaultRedirectURI }),
|
|
8628
|
+
...(input.EnablePropagateAdditionalUserContextData != null && {
|
|
8816
8629
|
EnablePropagateAdditionalUserContextData: input.EnablePropagateAdditionalUserContextData,
|
|
8817
8630
|
}),
|
|
8818
|
-
...(input.EnableTokenRevocation
|
|
8819
|
-
|
|
8820
|
-
...(input.ExplicitAuthFlows !== undefined &&
|
|
8821
|
-
input.ExplicitAuthFlows !== null && {
|
|
8631
|
+
...(input.EnableTokenRevocation != null && { EnableTokenRevocation: input.EnableTokenRevocation }),
|
|
8632
|
+
...(input.ExplicitAuthFlows != null && {
|
|
8822
8633
|
ExplicitAuthFlows: serializeAws_json1_1ExplicitAuthFlowsListType(input.ExplicitAuthFlows, context),
|
|
8823
8634
|
}),
|
|
8824
|
-
...(input.IdTokenValidity
|
|
8825
|
-
|
|
8826
|
-
...(input.
|
|
8827
|
-
|
|
8828
|
-
...(input.PreventUserExistenceErrors !== undefined &&
|
|
8829
|
-
input.PreventUserExistenceErrors !== null && { PreventUserExistenceErrors: input.PreventUserExistenceErrors }),
|
|
8830
|
-
...(input.ReadAttributes !== undefined &&
|
|
8831
|
-
input.ReadAttributes !== null && {
|
|
8635
|
+
...(input.IdTokenValidity != null && { IdTokenValidity: input.IdTokenValidity }),
|
|
8636
|
+
...(input.LogoutURLs != null && { LogoutURLs: serializeAws_json1_1LogoutURLsListType(input.LogoutURLs, context) }),
|
|
8637
|
+
...(input.PreventUserExistenceErrors != null && { PreventUserExistenceErrors: input.PreventUserExistenceErrors }),
|
|
8638
|
+
...(input.ReadAttributes != null && {
|
|
8832
8639
|
ReadAttributes: serializeAws_json1_1ClientPermissionListType(input.ReadAttributes, context),
|
|
8833
8640
|
}),
|
|
8834
|
-
...(input.RefreshTokenValidity
|
|
8835
|
-
|
|
8836
|
-
...(input.SupportedIdentityProviders !== undefined &&
|
|
8837
|
-
input.SupportedIdentityProviders !== null && {
|
|
8641
|
+
...(input.RefreshTokenValidity != null && { RefreshTokenValidity: input.RefreshTokenValidity }),
|
|
8642
|
+
...(input.SupportedIdentityProviders != null && {
|
|
8838
8643
|
SupportedIdentityProviders: serializeAws_json1_1SupportedIdentityProvidersListType(input.SupportedIdentityProviders, context),
|
|
8839
8644
|
}),
|
|
8840
|
-
...(input.TokenValidityUnits
|
|
8841
|
-
input.TokenValidityUnits !== null && {
|
|
8645
|
+
...(input.TokenValidityUnits != null && {
|
|
8842
8646
|
TokenValidityUnits: serializeAws_json1_1TokenValidityUnitsType(input.TokenValidityUnits, context),
|
|
8843
8647
|
}),
|
|
8844
|
-
...(input.UserPoolId
|
|
8845
|
-
...(input.WriteAttributes
|
|
8846
|
-
input.WriteAttributes !== null && {
|
|
8648
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8649
|
+
...(input.WriteAttributes != null && {
|
|
8847
8650
|
WriteAttributes: serializeAws_json1_1ClientPermissionListType(input.WriteAttributes, context),
|
|
8848
8651
|
}),
|
|
8849
8652
|
};
|
|
8850
8653
|
};
|
|
8851
8654
|
const serializeAws_json1_1UpdateUserPoolDomainRequest = (input, context) => {
|
|
8852
8655
|
return {
|
|
8853
|
-
...(input.CustomDomainConfig
|
|
8854
|
-
input.CustomDomainConfig !== null && {
|
|
8656
|
+
...(input.CustomDomainConfig != null && {
|
|
8855
8657
|
CustomDomainConfig: serializeAws_json1_1CustomDomainConfigType(input.CustomDomainConfig, context),
|
|
8856
8658
|
}),
|
|
8857
|
-
...(input.Domain
|
|
8858
|
-
...(input.UserPoolId
|
|
8659
|
+
...(input.Domain != null && { Domain: input.Domain }),
|
|
8660
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8859
8661
|
};
|
|
8860
8662
|
};
|
|
8861
8663
|
const serializeAws_json1_1UpdateUserPoolRequest = (input, context) => {
|
|
8862
8664
|
return {
|
|
8863
|
-
...(input.AccountRecoverySetting
|
|
8864
|
-
input.AccountRecoverySetting !== null && {
|
|
8665
|
+
...(input.AccountRecoverySetting != null && {
|
|
8865
8666
|
AccountRecoverySetting: serializeAws_json1_1AccountRecoverySettingType(input.AccountRecoverySetting, context),
|
|
8866
8667
|
}),
|
|
8867
|
-
...(input.AdminCreateUserConfig
|
|
8868
|
-
input.AdminCreateUserConfig !== null && {
|
|
8668
|
+
...(input.AdminCreateUserConfig != null && {
|
|
8869
8669
|
AdminCreateUserConfig: serializeAws_json1_1AdminCreateUserConfigType(input.AdminCreateUserConfig, context),
|
|
8870
8670
|
}),
|
|
8871
|
-
...(input.AutoVerifiedAttributes
|
|
8872
|
-
input.AutoVerifiedAttributes !== null && {
|
|
8671
|
+
...(input.AutoVerifiedAttributes != null && {
|
|
8873
8672
|
AutoVerifiedAttributes: serializeAws_json1_1VerifiedAttributesListType(input.AutoVerifiedAttributes, context),
|
|
8874
8673
|
}),
|
|
8875
|
-
...(input.DeviceConfiguration
|
|
8876
|
-
input.DeviceConfiguration !== null && {
|
|
8674
|
+
...(input.DeviceConfiguration != null && {
|
|
8877
8675
|
DeviceConfiguration: serializeAws_json1_1DeviceConfigurationType(input.DeviceConfiguration, context),
|
|
8878
8676
|
}),
|
|
8879
|
-
...(input.EmailConfiguration
|
|
8880
|
-
input.EmailConfiguration !== null && {
|
|
8677
|
+
...(input.EmailConfiguration != null && {
|
|
8881
8678
|
EmailConfiguration: serializeAws_json1_1EmailConfigurationType(input.EmailConfiguration, context),
|
|
8882
8679
|
}),
|
|
8883
|
-
...(input.EmailVerificationMessage
|
|
8884
|
-
|
|
8885
|
-
...(input.
|
|
8886
|
-
input.EmailVerificationSubject !== null && { EmailVerificationSubject: input.EmailVerificationSubject }),
|
|
8887
|
-
...(input.LambdaConfig !== undefined &&
|
|
8888
|
-
input.LambdaConfig !== null && {
|
|
8680
|
+
...(input.EmailVerificationMessage != null && { EmailVerificationMessage: input.EmailVerificationMessage }),
|
|
8681
|
+
...(input.EmailVerificationSubject != null && { EmailVerificationSubject: input.EmailVerificationSubject }),
|
|
8682
|
+
...(input.LambdaConfig != null && {
|
|
8889
8683
|
LambdaConfig: serializeAws_json1_1LambdaConfigType(input.LambdaConfig, context),
|
|
8890
8684
|
}),
|
|
8891
|
-
...(input.MfaConfiguration
|
|
8892
|
-
|
|
8893
|
-
...(input.
|
|
8894
|
-
|
|
8895
|
-
...(input.SmsAuthenticationMessage !== undefined &&
|
|
8896
|
-
input.SmsAuthenticationMessage !== null && { SmsAuthenticationMessage: input.SmsAuthenticationMessage }),
|
|
8897
|
-
...(input.SmsConfiguration !== undefined &&
|
|
8898
|
-
input.SmsConfiguration !== null && {
|
|
8685
|
+
...(input.MfaConfiguration != null && { MfaConfiguration: input.MfaConfiguration }),
|
|
8686
|
+
...(input.Policies != null && { Policies: serializeAws_json1_1UserPoolPolicyType(input.Policies, context) }),
|
|
8687
|
+
...(input.SmsAuthenticationMessage != null && { SmsAuthenticationMessage: input.SmsAuthenticationMessage }),
|
|
8688
|
+
...(input.SmsConfiguration != null && {
|
|
8899
8689
|
SmsConfiguration: serializeAws_json1_1SmsConfigurationType(input.SmsConfiguration, context),
|
|
8900
8690
|
}),
|
|
8901
|
-
...(input.SmsVerificationMessage
|
|
8902
|
-
|
|
8903
|
-
...(input.UserAttributeUpdateSettings !== undefined &&
|
|
8904
|
-
input.UserAttributeUpdateSettings !== null && {
|
|
8691
|
+
...(input.SmsVerificationMessage != null && { SmsVerificationMessage: input.SmsVerificationMessage }),
|
|
8692
|
+
...(input.UserAttributeUpdateSettings != null && {
|
|
8905
8693
|
UserAttributeUpdateSettings: serializeAws_json1_1UserAttributeUpdateSettingsType(input.UserAttributeUpdateSettings, context),
|
|
8906
8694
|
}),
|
|
8907
|
-
...(input.UserPoolAddOns
|
|
8908
|
-
input.UserPoolAddOns !== null && {
|
|
8695
|
+
...(input.UserPoolAddOns != null && {
|
|
8909
8696
|
UserPoolAddOns: serializeAws_json1_1UserPoolAddOnsType(input.UserPoolAddOns, context),
|
|
8910
8697
|
}),
|
|
8911
|
-
...(input.UserPoolId
|
|
8912
|
-
...(input.UserPoolTags
|
|
8913
|
-
input.UserPoolTags !== null && {
|
|
8698
|
+
...(input.UserPoolId != null && { UserPoolId: input.UserPoolId }),
|
|
8699
|
+
...(input.UserPoolTags != null && {
|
|
8914
8700
|
UserPoolTags: serializeAws_json1_1UserPoolTagsType(input.UserPoolTags, context),
|
|
8915
8701
|
}),
|
|
8916
|
-
...(input.VerificationMessageTemplate
|
|
8917
|
-
input.VerificationMessageTemplate !== null && {
|
|
8702
|
+
...(input.VerificationMessageTemplate != null && {
|
|
8918
8703
|
VerificationMessageTemplate: serializeAws_json1_1VerificationMessageTemplateType(input.VerificationMessageTemplate, context),
|
|
8919
8704
|
}),
|
|
8920
8705
|
};
|
|
8921
8706
|
};
|
|
8922
8707
|
const serializeAws_json1_1UserAttributeUpdateSettingsType = (input, context) => {
|
|
8923
8708
|
return {
|
|
8924
|
-
...(input.AttributesRequireVerificationBeforeUpdate
|
|
8925
|
-
input.AttributesRequireVerificationBeforeUpdate !== null && {
|
|
8709
|
+
...(input.AttributesRequireVerificationBeforeUpdate != null && {
|
|
8926
8710
|
AttributesRequireVerificationBeforeUpdate: serializeAws_json1_1AttributesRequireVerificationBeforeUpdateType(input.AttributesRequireVerificationBeforeUpdate, context),
|
|
8927
8711
|
}),
|
|
8928
8712
|
};
|
|
8929
8713
|
};
|
|
8930
8714
|
const serializeAws_json1_1UserContextDataType = (input, context) => {
|
|
8931
8715
|
return {
|
|
8932
|
-
...(input.EncodedData
|
|
8933
|
-
...(input.IpAddress
|
|
8716
|
+
...(input.EncodedData != null && { EncodedData: input.EncodedData }),
|
|
8717
|
+
...(input.IpAddress != null && { IpAddress: input.IpAddress }),
|
|
8934
8718
|
};
|
|
8935
8719
|
};
|
|
8936
8720
|
const serializeAws_json1_1UsernameAttributesListType = (input, context) => {
|
|
@@ -8945,19 +8729,17 @@ const serializeAws_json1_1UsernameAttributesListType = (input, context) => {
|
|
|
8945
8729
|
};
|
|
8946
8730
|
const serializeAws_json1_1UsernameConfigurationType = (input, context) => {
|
|
8947
8731
|
return {
|
|
8948
|
-
...(input.CaseSensitive
|
|
8732
|
+
...(input.CaseSensitive != null && { CaseSensitive: input.CaseSensitive }),
|
|
8949
8733
|
};
|
|
8950
8734
|
};
|
|
8951
8735
|
const serializeAws_json1_1UserPoolAddOnsType = (input, context) => {
|
|
8952
8736
|
return {
|
|
8953
|
-
...(input.AdvancedSecurityMode
|
|
8954
|
-
input.AdvancedSecurityMode !== null && { AdvancedSecurityMode: input.AdvancedSecurityMode }),
|
|
8737
|
+
...(input.AdvancedSecurityMode != null && { AdvancedSecurityMode: input.AdvancedSecurityMode }),
|
|
8955
8738
|
};
|
|
8956
8739
|
};
|
|
8957
8740
|
const serializeAws_json1_1UserPoolPolicyType = (input, context) => {
|
|
8958
8741
|
return {
|
|
8959
|
-
...(input.PasswordPolicy
|
|
8960
|
-
input.PasswordPolicy !== null && {
|
|
8742
|
+
...(input.PasswordPolicy != null && {
|
|
8961
8743
|
PasswordPolicy: serializeAws_json1_1PasswordPolicyType(input.PasswordPolicy, context),
|
|
8962
8744
|
}),
|
|
8963
8745
|
};
|
|
@@ -8985,15 +8767,12 @@ const serializeAws_json1_1UserPoolTagsType = (input, context) => {
|
|
|
8985
8767
|
};
|
|
8986
8768
|
const serializeAws_json1_1VerificationMessageTemplateType = (input, context) => {
|
|
8987
8769
|
return {
|
|
8988
|
-
...(input.DefaultEmailOption
|
|
8989
|
-
|
|
8990
|
-
...(input.
|
|
8991
|
-
...(input.
|
|
8992
|
-
|
|
8993
|
-
...(input.
|
|
8994
|
-
...(input.EmailSubjectByLink !== undefined &&
|
|
8995
|
-
input.EmailSubjectByLink !== null && { EmailSubjectByLink: input.EmailSubjectByLink }),
|
|
8996
|
-
...(input.SmsMessage !== undefined && input.SmsMessage !== null && { SmsMessage: input.SmsMessage }),
|
|
8770
|
+
...(input.DefaultEmailOption != null && { DefaultEmailOption: input.DefaultEmailOption }),
|
|
8771
|
+
...(input.EmailMessage != null && { EmailMessage: input.EmailMessage }),
|
|
8772
|
+
...(input.EmailMessageByLink != null && { EmailMessageByLink: input.EmailMessageByLink }),
|
|
8773
|
+
...(input.EmailSubject != null && { EmailSubject: input.EmailSubject }),
|
|
8774
|
+
...(input.EmailSubjectByLink != null && { EmailSubjectByLink: input.EmailSubjectByLink }),
|
|
8775
|
+
...(input.SmsMessage != null && { SmsMessage: input.SmsMessage }),
|
|
8997
8776
|
};
|
|
8998
8777
|
};
|
|
8999
8778
|
const serializeAws_json1_1VerifiedAttributesListType = (input, context) => {
|
|
@@ -9008,36 +8787,33 @@ const serializeAws_json1_1VerifiedAttributesListType = (input, context) => {
|
|
|
9008
8787
|
};
|
|
9009
8788
|
const serializeAws_json1_1VerifySoftwareTokenRequest = (input, context) => {
|
|
9010
8789
|
return {
|
|
9011
|
-
...(input.AccessToken
|
|
9012
|
-
...(input.FriendlyDeviceName
|
|
9013
|
-
|
|
9014
|
-
...(input.
|
|
9015
|
-
...(input.UserCode !== undefined && input.UserCode !== null && { UserCode: input.UserCode }),
|
|
8790
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
8791
|
+
...(input.FriendlyDeviceName != null && { FriendlyDeviceName: input.FriendlyDeviceName }),
|
|
8792
|
+
...(input.Session != null && { Session: input.Session }),
|
|
8793
|
+
...(input.UserCode != null && { UserCode: input.UserCode }),
|
|
9016
8794
|
};
|
|
9017
8795
|
};
|
|
9018
8796
|
const serializeAws_json1_1VerifyUserAttributeRequest = (input, context) => {
|
|
9019
8797
|
return {
|
|
9020
|
-
...(input.AccessToken
|
|
9021
|
-
...(input.AttributeName
|
|
9022
|
-
...(input.Code
|
|
8798
|
+
...(input.AccessToken != null && { AccessToken: input.AccessToken }),
|
|
8799
|
+
...(input.AttributeName != null && { AttributeName: input.AttributeName }),
|
|
8800
|
+
...(input.Code != null && { Code: input.Code }),
|
|
9023
8801
|
};
|
|
9024
8802
|
};
|
|
9025
8803
|
const deserializeAws_json1_1AccountRecoverySettingType = (output, context) => {
|
|
9026
8804
|
return {
|
|
9027
|
-
RecoveryMechanisms: output.RecoveryMechanisms
|
|
8805
|
+
RecoveryMechanisms: output.RecoveryMechanisms != null
|
|
9028
8806
|
? deserializeAws_json1_1RecoveryMechanismsType(output.RecoveryMechanisms, context)
|
|
9029
8807
|
: undefined,
|
|
9030
8808
|
};
|
|
9031
8809
|
};
|
|
9032
8810
|
const deserializeAws_json1_1AccountTakeoverActionsType = (output, context) => {
|
|
9033
8811
|
return {
|
|
9034
|
-
HighAction: output.HighAction
|
|
8812
|
+
HighAction: output.HighAction != null
|
|
9035
8813
|
? deserializeAws_json1_1AccountTakeoverActionType(output.HighAction, context)
|
|
9036
8814
|
: undefined,
|
|
9037
|
-
LowAction: output.LowAction
|
|
9038
|
-
|
|
9039
|
-
: undefined,
|
|
9040
|
-
MediumAction: output.MediumAction !== undefined && output.MediumAction !== null
|
|
8815
|
+
LowAction: output.LowAction != null ? deserializeAws_json1_1AccountTakeoverActionType(output.LowAction, context) : undefined,
|
|
8816
|
+
MediumAction: output.MediumAction != null
|
|
9041
8817
|
? deserializeAws_json1_1AccountTakeoverActionType(output.MediumAction, context)
|
|
9042
8818
|
: undefined,
|
|
9043
8819
|
};
|
|
@@ -9050,10 +8826,8 @@ const deserializeAws_json1_1AccountTakeoverActionType = (output, context) => {
|
|
|
9050
8826
|
};
|
|
9051
8827
|
const deserializeAws_json1_1AccountTakeoverRiskConfigurationType = (output, context) => {
|
|
9052
8828
|
return {
|
|
9053
|
-
Actions: output.Actions
|
|
9054
|
-
|
|
9055
|
-
: undefined,
|
|
9056
|
-
NotifyConfiguration: output.NotifyConfiguration !== undefined && output.NotifyConfiguration !== null
|
|
8829
|
+
Actions: output.Actions != null ? deserializeAws_json1_1AccountTakeoverActionsType(output.Actions, context) : undefined,
|
|
8830
|
+
NotifyConfiguration: output.NotifyConfiguration != null
|
|
9057
8831
|
? deserializeAws_json1_1NotifyConfigurationType(output.NotifyConfiguration, context)
|
|
9058
8832
|
: undefined,
|
|
9059
8833
|
};
|
|
@@ -9067,7 +8841,7 @@ const deserializeAws_json1_1AdminConfirmSignUpResponse = (output, context) => {
|
|
|
9067
8841
|
const deserializeAws_json1_1AdminCreateUserConfigType = (output, context) => {
|
|
9068
8842
|
return {
|
|
9069
8843
|
AllowAdminCreateUserOnly: (0, smithy_client_1.expectBoolean)(output.AllowAdminCreateUserOnly),
|
|
9070
|
-
InviteMessageTemplate: output.InviteMessageTemplate
|
|
8844
|
+
InviteMessageTemplate: output.InviteMessageTemplate != null
|
|
9071
8845
|
? deserializeAws_json1_1MessageTemplateType(output.InviteMessageTemplate, context)
|
|
9072
8846
|
: undefined,
|
|
9073
8847
|
UnusedAccountValidityDays: (0, smithy_client_1.expectInt32)(output.UnusedAccountValidityDays),
|
|
@@ -9075,9 +8849,7 @@ const deserializeAws_json1_1AdminCreateUserConfigType = (output, context) => {
|
|
|
9075
8849
|
};
|
|
9076
8850
|
const deserializeAws_json1_1AdminCreateUserResponse = (output, context) => {
|
|
9077
8851
|
return {
|
|
9078
|
-
User: output.User
|
|
9079
|
-
? deserializeAws_json1_1UserType(output.User, context)
|
|
9080
|
-
: undefined,
|
|
8852
|
+
User: output.User != null ? deserializeAws_json1_1UserType(output.User, context) : undefined,
|
|
9081
8853
|
};
|
|
9082
8854
|
};
|
|
9083
8855
|
const deserializeAws_json1_1AdminDeleteUserAttributesResponse = (output, context) => {
|
|
@@ -9094,28 +8866,24 @@ const deserializeAws_json1_1AdminEnableUserResponse = (output, context) => {
|
|
|
9094
8866
|
};
|
|
9095
8867
|
const deserializeAws_json1_1AdminGetDeviceResponse = (output, context) => {
|
|
9096
8868
|
return {
|
|
9097
|
-
Device: output.Device
|
|
9098
|
-
? deserializeAws_json1_1DeviceType(output.Device, context)
|
|
9099
|
-
: undefined,
|
|
8869
|
+
Device: output.Device != null ? deserializeAws_json1_1DeviceType(output.Device, context) : undefined,
|
|
9100
8870
|
};
|
|
9101
8871
|
};
|
|
9102
8872
|
const deserializeAws_json1_1AdminGetUserResponse = (output, context) => {
|
|
9103
8873
|
return {
|
|
9104
8874
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
9105
|
-
MFAOptions: output.MFAOptions
|
|
9106
|
-
? deserializeAws_json1_1MFAOptionListType(output.MFAOptions, context)
|
|
9107
|
-
: undefined,
|
|
8875
|
+
MFAOptions: output.MFAOptions != null ? deserializeAws_json1_1MFAOptionListType(output.MFAOptions, context) : undefined,
|
|
9108
8876
|
PreferredMfaSetting: (0, smithy_client_1.expectString)(output.PreferredMfaSetting),
|
|
9109
|
-
UserAttributes: output.UserAttributes
|
|
8877
|
+
UserAttributes: output.UserAttributes != null
|
|
9110
8878
|
? deserializeAws_json1_1AttributeListType(output.UserAttributes, context)
|
|
9111
8879
|
: undefined,
|
|
9112
|
-
UserCreateDate: output.UserCreateDate
|
|
8880
|
+
UserCreateDate: output.UserCreateDate != null
|
|
9113
8881
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UserCreateDate)))
|
|
9114
8882
|
: undefined,
|
|
9115
|
-
UserLastModifiedDate: output.UserLastModifiedDate
|
|
8883
|
+
UserLastModifiedDate: output.UserLastModifiedDate != null
|
|
9116
8884
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UserLastModifiedDate)))
|
|
9117
8885
|
: undefined,
|
|
9118
|
-
UserMFASettingList: output.UserMFASettingList
|
|
8886
|
+
UserMFASettingList: output.UserMFASettingList != null
|
|
9119
8887
|
? deserializeAws_json1_1UserMFASettingListType(output.UserMFASettingList, context)
|
|
9120
8888
|
: undefined,
|
|
9121
8889
|
UserStatus: (0, smithy_client_1.expectString)(output.UserStatus),
|
|
@@ -9124,11 +8892,11 @@ const deserializeAws_json1_1AdminGetUserResponse = (output, context) => {
|
|
|
9124
8892
|
};
|
|
9125
8893
|
const deserializeAws_json1_1AdminInitiateAuthResponse = (output, context) => {
|
|
9126
8894
|
return {
|
|
9127
|
-
AuthenticationResult: output.AuthenticationResult
|
|
8895
|
+
AuthenticationResult: output.AuthenticationResult != null
|
|
9128
8896
|
? deserializeAws_json1_1AuthenticationResultType(output.AuthenticationResult, context)
|
|
9129
8897
|
: undefined,
|
|
9130
8898
|
ChallengeName: (0, smithy_client_1.expectString)(output.ChallengeName),
|
|
9131
|
-
ChallengeParameters: output.ChallengeParameters
|
|
8899
|
+
ChallengeParameters: output.ChallengeParameters != null
|
|
9132
8900
|
? deserializeAws_json1_1ChallengeParametersType(output.ChallengeParameters, context)
|
|
9133
8901
|
: undefined,
|
|
9134
8902
|
Session: (0, smithy_client_1.expectString)(output.Session),
|
|
@@ -9139,25 +8907,19 @@ const deserializeAws_json1_1AdminLinkProviderForUserResponse = (output, context)
|
|
|
9139
8907
|
};
|
|
9140
8908
|
const deserializeAws_json1_1AdminListDevicesResponse = (output, context) => {
|
|
9141
8909
|
return {
|
|
9142
|
-
Devices: output.Devices
|
|
9143
|
-
? deserializeAws_json1_1DeviceListType(output.Devices, context)
|
|
9144
|
-
: undefined,
|
|
8910
|
+
Devices: output.Devices != null ? deserializeAws_json1_1DeviceListType(output.Devices, context) : undefined,
|
|
9145
8911
|
PaginationToken: (0, smithy_client_1.expectString)(output.PaginationToken),
|
|
9146
8912
|
};
|
|
9147
8913
|
};
|
|
9148
8914
|
const deserializeAws_json1_1AdminListGroupsForUserResponse = (output, context) => {
|
|
9149
8915
|
return {
|
|
9150
|
-
Groups: output.Groups
|
|
9151
|
-
? deserializeAws_json1_1GroupListType(output.Groups, context)
|
|
9152
|
-
: undefined,
|
|
8916
|
+
Groups: output.Groups != null ? deserializeAws_json1_1GroupListType(output.Groups, context) : undefined,
|
|
9153
8917
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
9154
8918
|
};
|
|
9155
8919
|
};
|
|
9156
8920
|
const deserializeAws_json1_1AdminListUserAuthEventsResponse = (output, context) => {
|
|
9157
8921
|
return {
|
|
9158
|
-
AuthEvents: output.AuthEvents
|
|
9159
|
-
? deserializeAws_json1_1AuthEventsType(output.AuthEvents, context)
|
|
9160
|
-
: undefined,
|
|
8922
|
+
AuthEvents: output.AuthEvents != null ? deserializeAws_json1_1AuthEventsType(output.AuthEvents, context) : undefined,
|
|
9161
8923
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
9162
8924
|
};
|
|
9163
8925
|
};
|
|
@@ -9166,11 +8928,11 @@ const deserializeAws_json1_1AdminResetUserPasswordResponse = (output, context) =
|
|
|
9166
8928
|
};
|
|
9167
8929
|
const deserializeAws_json1_1AdminRespondToAuthChallengeResponse = (output, context) => {
|
|
9168
8930
|
return {
|
|
9169
|
-
AuthenticationResult: output.AuthenticationResult
|
|
8931
|
+
AuthenticationResult: output.AuthenticationResult != null
|
|
9170
8932
|
? deserializeAws_json1_1AuthenticationResultType(output.AuthenticationResult, context)
|
|
9171
8933
|
: undefined,
|
|
9172
8934
|
ChallengeName: (0, smithy_client_1.expectString)(output.ChallengeName),
|
|
9173
|
-
ChallengeParameters: output.ChallengeParameters
|
|
8935
|
+
ChallengeParameters: output.ChallengeParameters != null
|
|
9174
8936
|
? deserializeAws_json1_1ChallengeParametersType(output.ChallengeParameters, context)
|
|
9175
8937
|
: undefined,
|
|
9176
8938
|
Session: (0, smithy_client_1.expectString)(output.Session),
|
|
@@ -9272,7 +9034,7 @@ const deserializeAws_json1_1AuthenticationResultType = (output, context) => {
|
|
|
9272
9034
|
AccessToken: (0, smithy_client_1.expectString)(output.AccessToken),
|
|
9273
9035
|
ExpiresIn: (0, smithy_client_1.expectInt32)(output.ExpiresIn),
|
|
9274
9036
|
IdToken: (0, smithy_client_1.expectString)(output.IdToken),
|
|
9275
|
-
NewDeviceMetadata: output.NewDeviceMetadata
|
|
9037
|
+
NewDeviceMetadata: output.NewDeviceMetadata != null
|
|
9276
9038
|
? deserializeAws_json1_1NewDeviceMetadataType(output.NewDeviceMetadata, context)
|
|
9277
9039
|
: undefined,
|
|
9278
9040
|
RefreshToken: (0, smithy_client_1.expectString)(output.RefreshToken),
|
|
@@ -9292,23 +9054,19 @@ const deserializeAws_json1_1AuthEventsType = (output, context) => {
|
|
|
9292
9054
|
};
|
|
9293
9055
|
const deserializeAws_json1_1AuthEventType = (output, context) => {
|
|
9294
9056
|
return {
|
|
9295
|
-
ChallengeResponses: output.ChallengeResponses
|
|
9057
|
+
ChallengeResponses: output.ChallengeResponses != null
|
|
9296
9058
|
? deserializeAws_json1_1ChallengeResponseListType(output.ChallengeResponses, context)
|
|
9297
9059
|
: undefined,
|
|
9298
|
-
CreationDate: output.CreationDate
|
|
9060
|
+
CreationDate: output.CreationDate != null
|
|
9299
9061
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
9300
9062
|
: undefined,
|
|
9301
|
-
EventContextData: output.EventContextData
|
|
9063
|
+
EventContextData: output.EventContextData != null
|
|
9302
9064
|
? deserializeAws_json1_1EventContextDataType(output.EventContextData, context)
|
|
9303
9065
|
: undefined,
|
|
9304
|
-
EventFeedback: output.EventFeedback
|
|
9305
|
-
? deserializeAws_json1_1EventFeedbackType(output.EventFeedback, context)
|
|
9306
|
-
: undefined,
|
|
9066
|
+
EventFeedback: output.EventFeedback != null ? deserializeAws_json1_1EventFeedbackType(output.EventFeedback, context) : undefined,
|
|
9307
9067
|
EventId: (0, smithy_client_1.expectString)(output.EventId),
|
|
9308
9068
|
EventResponse: (0, smithy_client_1.expectString)(output.EventResponse),
|
|
9309
|
-
EventRisk: output.EventRisk
|
|
9310
|
-
? deserializeAws_json1_1EventRiskType(output.EventRisk, context)
|
|
9311
|
-
: undefined,
|
|
9069
|
+
EventRisk: output.EventRisk != null ? deserializeAws_json1_1EventRiskType(output.EventRisk, context) : undefined,
|
|
9312
9070
|
EventType: (0, smithy_client_1.expectString)(output.EventType),
|
|
9313
9071
|
};
|
|
9314
9072
|
};
|
|
@@ -9411,12 +9169,10 @@ const deserializeAws_json1_1CompromisedCredentialsActionsType = (output, context
|
|
|
9411
9169
|
};
|
|
9412
9170
|
const deserializeAws_json1_1CompromisedCredentialsRiskConfigurationType = (output, context) => {
|
|
9413
9171
|
return {
|
|
9414
|
-
Actions: output.Actions
|
|
9172
|
+
Actions: output.Actions != null
|
|
9415
9173
|
? deserializeAws_json1_1CompromisedCredentialsActionsType(output.Actions, context)
|
|
9416
9174
|
: undefined,
|
|
9417
|
-
EventFilter: output.EventFilter
|
|
9418
|
-
? deserializeAws_json1_1EventFiltersType(output.EventFilter, context)
|
|
9419
|
-
: undefined,
|
|
9175
|
+
EventFilter: output.EventFilter != null ? deserializeAws_json1_1EventFiltersType(output.EventFilter, context) : undefined,
|
|
9420
9176
|
};
|
|
9421
9177
|
};
|
|
9422
9178
|
const deserializeAws_json1_1ConcurrentModificationException = (output, context) => {
|
|
@@ -9437,35 +9193,31 @@ const deserializeAws_json1_1ConfirmSignUpResponse = (output, context) => {
|
|
|
9437
9193
|
};
|
|
9438
9194
|
const deserializeAws_json1_1CreateGroupResponse = (output, context) => {
|
|
9439
9195
|
return {
|
|
9440
|
-
Group: output.Group
|
|
9441
|
-
? deserializeAws_json1_1GroupType(output.Group, context)
|
|
9442
|
-
: undefined,
|
|
9196
|
+
Group: output.Group != null ? deserializeAws_json1_1GroupType(output.Group, context) : undefined,
|
|
9443
9197
|
};
|
|
9444
9198
|
};
|
|
9445
9199
|
const deserializeAws_json1_1CreateIdentityProviderResponse = (output, context) => {
|
|
9446
9200
|
return {
|
|
9447
|
-
IdentityProvider: output.IdentityProvider
|
|
9201
|
+
IdentityProvider: output.IdentityProvider != null
|
|
9448
9202
|
? deserializeAws_json1_1IdentityProviderType(output.IdentityProvider, context)
|
|
9449
9203
|
: undefined,
|
|
9450
9204
|
};
|
|
9451
9205
|
};
|
|
9452
9206
|
const deserializeAws_json1_1CreateResourceServerResponse = (output, context) => {
|
|
9453
9207
|
return {
|
|
9454
|
-
ResourceServer: output.ResourceServer
|
|
9208
|
+
ResourceServer: output.ResourceServer != null
|
|
9455
9209
|
? deserializeAws_json1_1ResourceServerType(output.ResourceServer, context)
|
|
9456
9210
|
: undefined,
|
|
9457
9211
|
};
|
|
9458
9212
|
};
|
|
9459
9213
|
const deserializeAws_json1_1CreateUserImportJobResponse = (output, context) => {
|
|
9460
9214
|
return {
|
|
9461
|
-
UserImportJob: output.UserImportJob
|
|
9462
|
-
? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context)
|
|
9463
|
-
: undefined,
|
|
9215
|
+
UserImportJob: output.UserImportJob != null ? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context) : undefined,
|
|
9464
9216
|
};
|
|
9465
9217
|
};
|
|
9466
9218
|
const deserializeAws_json1_1CreateUserPoolClientResponse = (output, context) => {
|
|
9467
9219
|
return {
|
|
9468
|
-
UserPoolClient: output.UserPoolClient
|
|
9220
|
+
UserPoolClient: output.UserPoolClient != null
|
|
9469
9221
|
? deserializeAws_json1_1UserPoolClientType(output.UserPoolClient, context)
|
|
9470
9222
|
: undefined,
|
|
9471
9223
|
};
|
|
@@ -9477,9 +9229,7 @@ const deserializeAws_json1_1CreateUserPoolDomainResponse = (output, context) =>
|
|
|
9477
9229
|
};
|
|
9478
9230
|
const deserializeAws_json1_1CreateUserPoolResponse = (output, context) => {
|
|
9479
9231
|
return {
|
|
9480
|
-
UserPool: output.UserPool
|
|
9481
|
-
? deserializeAws_json1_1UserPoolType(output.UserPool, context)
|
|
9482
|
-
: undefined,
|
|
9232
|
+
UserPool: output.UserPool != null ? deserializeAws_json1_1UserPoolType(output.UserPool, context) : undefined,
|
|
9483
9233
|
};
|
|
9484
9234
|
};
|
|
9485
9235
|
const deserializeAws_json1_1CustomDomainConfigType = (output, context) => {
|
|
@@ -9507,51 +9257,47 @@ const deserializeAws_json1_1DeleteUserPoolDomainResponse = (output, context) =>
|
|
|
9507
9257
|
};
|
|
9508
9258
|
const deserializeAws_json1_1DescribeIdentityProviderResponse = (output, context) => {
|
|
9509
9259
|
return {
|
|
9510
|
-
IdentityProvider: output.IdentityProvider
|
|
9260
|
+
IdentityProvider: output.IdentityProvider != null
|
|
9511
9261
|
? deserializeAws_json1_1IdentityProviderType(output.IdentityProvider, context)
|
|
9512
9262
|
: undefined,
|
|
9513
9263
|
};
|
|
9514
9264
|
};
|
|
9515
9265
|
const deserializeAws_json1_1DescribeResourceServerResponse = (output, context) => {
|
|
9516
9266
|
return {
|
|
9517
|
-
ResourceServer: output.ResourceServer
|
|
9267
|
+
ResourceServer: output.ResourceServer != null
|
|
9518
9268
|
? deserializeAws_json1_1ResourceServerType(output.ResourceServer, context)
|
|
9519
9269
|
: undefined,
|
|
9520
9270
|
};
|
|
9521
9271
|
};
|
|
9522
9272
|
const deserializeAws_json1_1DescribeRiskConfigurationResponse = (output, context) => {
|
|
9523
9273
|
return {
|
|
9524
|
-
RiskConfiguration: output.RiskConfiguration
|
|
9274
|
+
RiskConfiguration: output.RiskConfiguration != null
|
|
9525
9275
|
? deserializeAws_json1_1RiskConfigurationType(output.RiskConfiguration, context)
|
|
9526
9276
|
: undefined,
|
|
9527
9277
|
};
|
|
9528
9278
|
};
|
|
9529
9279
|
const deserializeAws_json1_1DescribeUserImportJobResponse = (output, context) => {
|
|
9530
9280
|
return {
|
|
9531
|
-
UserImportJob: output.UserImportJob
|
|
9532
|
-
? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context)
|
|
9533
|
-
: undefined,
|
|
9281
|
+
UserImportJob: output.UserImportJob != null ? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context) : undefined,
|
|
9534
9282
|
};
|
|
9535
9283
|
};
|
|
9536
9284
|
const deserializeAws_json1_1DescribeUserPoolClientResponse = (output, context) => {
|
|
9537
9285
|
return {
|
|
9538
|
-
UserPoolClient: output.UserPoolClient
|
|
9286
|
+
UserPoolClient: output.UserPoolClient != null
|
|
9539
9287
|
? deserializeAws_json1_1UserPoolClientType(output.UserPoolClient, context)
|
|
9540
9288
|
: undefined,
|
|
9541
9289
|
};
|
|
9542
9290
|
};
|
|
9543
9291
|
const deserializeAws_json1_1DescribeUserPoolDomainResponse = (output, context) => {
|
|
9544
9292
|
return {
|
|
9545
|
-
DomainDescription: output.DomainDescription
|
|
9293
|
+
DomainDescription: output.DomainDescription != null
|
|
9546
9294
|
? deserializeAws_json1_1DomainDescriptionType(output.DomainDescription, context)
|
|
9547
9295
|
: undefined,
|
|
9548
9296
|
};
|
|
9549
9297
|
};
|
|
9550
9298
|
const deserializeAws_json1_1DescribeUserPoolResponse = (output, context) => {
|
|
9551
9299
|
return {
|
|
9552
|
-
UserPool: output.UserPool
|
|
9553
|
-
? deserializeAws_json1_1UserPoolType(output.UserPool, context)
|
|
9554
|
-
: undefined,
|
|
9300
|
+
UserPool: output.UserPool != null ? deserializeAws_json1_1UserPoolType(output.UserPool, context) : undefined,
|
|
9555
9301
|
};
|
|
9556
9302
|
};
|
|
9557
9303
|
const deserializeAws_json1_1DeviceConfigurationType = (output, context) => {
|
|
@@ -9573,17 +9319,17 @@ const deserializeAws_json1_1DeviceListType = (output, context) => {
|
|
|
9573
9319
|
};
|
|
9574
9320
|
const deserializeAws_json1_1DeviceType = (output, context) => {
|
|
9575
9321
|
return {
|
|
9576
|
-
DeviceAttributes: output.DeviceAttributes
|
|
9322
|
+
DeviceAttributes: output.DeviceAttributes != null
|
|
9577
9323
|
? deserializeAws_json1_1AttributeListType(output.DeviceAttributes, context)
|
|
9578
9324
|
: undefined,
|
|
9579
|
-
DeviceCreateDate: output.DeviceCreateDate
|
|
9325
|
+
DeviceCreateDate: output.DeviceCreateDate != null
|
|
9580
9326
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeviceCreateDate)))
|
|
9581
9327
|
: undefined,
|
|
9582
9328
|
DeviceKey: (0, smithy_client_1.expectString)(output.DeviceKey),
|
|
9583
|
-
DeviceLastAuthenticatedDate: output.DeviceLastAuthenticatedDate
|
|
9329
|
+
DeviceLastAuthenticatedDate: output.DeviceLastAuthenticatedDate != null
|
|
9584
9330
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeviceLastAuthenticatedDate)))
|
|
9585
9331
|
: undefined,
|
|
9586
|
-
DeviceLastModifiedDate: output.DeviceLastModifiedDate
|
|
9332
|
+
DeviceLastModifiedDate: output.DeviceLastModifiedDate != null
|
|
9587
9333
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.DeviceLastModifiedDate)))
|
|
9588
9334
|
: undefined,
|
|
9589
9335
|
};
|
|
@@ -9592,7 +9338,7 @@ const deserializeAws_json1_1DomainDescriptionType = (output, context) => {
|
|
|
9592
9338
|
return {
|
|
9593
9339
|
AWSAccountId: (0, smithy_client_1.expectString)(output.AWSAccountId),
|
|
9594
9340
|
CloudFrontDistribution: (0, smithy_client_1.expectString)(output.CloudFrontDistribution),
|
|
9595
|
-
CustomDomainConfig: output.CustomDomainConfig
|
|
9341
|
+
CustomDomainConfig: output.CustomDomainConfig != null
|
|
9596
9342
|
? deserializeAws_json1_1CustomDomainConfigType(output.CustomDomainConfig, context)
|
|
9597
9343
|
: undefined,
|
|
9598
9344
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
@@ -9632,7 +9378,7 @@ const deserializeAws_json1_1EventContextDataType = (output, context) => {
|
|
|
9632
9378
|
};
|
|
9633
9379
|
const deserializeAws_json1_1EventFeedbackType = (output, context) => {
|
|
9634
9380
|
return {
|
|
9635
|
-
FeedbackDate: output.FeedbackDate
|
|
9381
|
+
FeedbackDate: output.FeedbackDate != null
|
|
9636
9382
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.FeedbackDate)))
|
|
9637
9383
|
: undefined,
|
|
9638
9384
|
FeedbackValue: (0, smithy_client_1.expectString)(output.FeedbackValue),
|
|
@@ -9675,36 +9421,30 @@ const deserializeAws_json1_1ExplicitAuthFlowsListType = (output, context) => {
|
|
|
9675
9421
|
};
|
|
9676
9422
|
const deserializeAws_json1_1ForgotPasswordResponse = (output, context) => {
|
|
9677
9423
|
return {
|
|
9678
|
-
CodeDeliveryDetails: output.CodeDeliveryDetails
|
|
9424
|
+
CodeDeliveryDetails: output.CodeDeliveryDetails != null
|
|
9679
9425
|
? deserializeAws_json1_1CodeDeliveryDetailsType(output.CodeDeliveryDetails, context)
|
|
9680
9426
|
: undefined,
|
|
9681
9427
|
};
|
|
9682
9428
|
};
|
|
9683
9429
|
const deserializeAws_json1_1GetCSVHeaderResponse = (output, context) => {
|
|
9684
9430
|
return {
|
|
9685
|
-
CSVHeader: output.CSVHeader
|
|
9686
|
-
? deserializeAws_json1_1ListOfStringTypes(output.CSVHeader, context)
|
|
9687
|
-
: undefined,
|
|
9431
|
+
CSVHeader: output.CSVHeader != null ? deserializeAws_json1_1ListOfStringTypes(output.CSVHeader, context) : undefined,
|
|
9688
9432
|
UserPoolId: (0, smithy_client_1.expectString)(output.UserPoolId),
|
|
9689
9433
|
};
|
|
9690
9434
|
};
|
|
9691
9435
|
const deserializeAws_json1_1GetDeviceResponse = (output, context) => {
|
|
9692
9436
|
return {
|
|
9693
|
-
Device: output.Device
|
|
9694
|
-
? deserializeAws_json1_1DeviceType(output.Device, context)
|
|
9695
|
-
: undefined,
|
|
9437
|
+
Device: output.Device != null ? deserializeAws_json1_1DeviceType(output.Device, context) : undefined,
|
|
9696
9438
|
};
|
|
9697
9439
|
};
|
|
9698
9440
|
const deserializeAws_json1_1GetGroupResponse = (output, context) => {
|
|
9699
9441
|
return {
|
|
9700
|
-
Group: output.Group
|
|
9701
|
-
? deserializeAws_json1_1GroupType(output.Group, context)
|
|
9702
|
-
: undefined,
|
|
9442
|
+
Group: output.Group != null ? deserializeAws_json1_1GroupType(output.Group, context) : undefined,
|
|
9703
9443
|
};
|
|
9704
9444
|
};
|
|
9705
9445
|
const deserializeAws_json1_1GetIdentityProviderByIdentifierResponse = (output, context) => {
|
|
9706
9446
|
return {
|
|
9707
|
-
IdentityProvider: output.IdentityProvider
|
|
9447
|
+
IdentityProvider: output.IdentityProvider != null
|
|
9708
9448
|
? deserializeAws_json1_1IdentityProviderType(output.IdentityProvider, context)
|
|
9709
9449
|
: undefined,
|
|
9710
9450
|
};
|
|
@@ -9716,14 +9456,14 @@ const deserializeAws_json1_1GetSigningCertificateResponse = (output, context) =>
|
|
|
9716
9456
|
};
|
|
9717
9457
|
const deserializeAws_json1_1GetUICustomizationResponse = (output, context) => {
|
|
9718
9458
|
return {
|
|
9719
|
-
UICustomization: output.UICustomization
|
|
9459
|
+
UICustomization: output.UICustomization != null
|
|
9720
9460
|
? deserializeAws_json1_1UICustomizationType(output.UICustomization, context)
|
|
9721
9461
|
: undefined,
|
|
9722
9462
|
};
|
|
9723
9463
|
};
|
|
9724
9464
|
const deserializeAws_json1_1GetUserAttributeVerificationCodeResponse = (output, context) => {
|
|
9725
9465
|
return {
|
|
9726
|
-
CodeDeliveryDetails: output.CodeDeliveryDetails
|
|
9466
|
+
CodeDeliveryDetails: output.CodeDeliveryDetails != null
|
|
9727
9467
|
? deserializeAws_json1_1CodeDeliveryDetailsType(output.CodeDeliveryDetails, context)
|
|
9728
9468
|
: undefined,
|
|
9729
9469
|
};
|
|
@@ -9731,24 +9471,22 @@ const deserializeAws_json1_1GetUserAttributeVerificationCodeResponse = (output,
|
|
|
9731
9471
|
const deserializeAws_json1_1GetUserPoolMfaConfigResponse = (output, context) => {
|
|
9732
9472
|
return {
|
|
9733
9473
|
MfaConfiguration: (0, smithy_client_1.expectString)(output.MfaConfiguration),
|
|
9734
|
-
SmsMfaConfiguration: output.SmsMfaConfiguration
|
|
9474
|
+
SmsMfaConfiguration: output.SmsMfaConfiguration != null
|
|
9735
9475
|
? deserializeAws_json1_1SmsMfaConfigType(output.SmsMfaConfiguration, context)
|
|
9736
9476
|
: undefined,
|
|
9737
|
-
SoftwareTokenMfaConfiguration: output.SoftwareTokenMfaConfiguration
|
|
9477
|
+
SoftwareTokenMfaConfiguration: output.SoftwareTokenMfaConfiguration != null
|
|
9738
9478
|
? deserializeAws_json1_1SoftwareTokenMfaConfigType(output.SoftwareTokenMfaConfiguration, context)
|
|
9739
9479
|
: undefined,
|
|
9740
9480
|
};
|
|
9741
9481
|
};
|
|
9742
9482
|
const deserializeAws_json1_1GetUserResponse = (output, context) => {
|
|
9743
9483
|
return {
|
|
9744
|
-
MFAOptions: output.MFAOptions
|
|
9745
|
-
? deserializeAws_json1_1MFAOptionListType(output.MFAOptions, context)
|
|
9746
|
-
: undefined,
|
|
9484
|
+
MFAOptions: output.MFAOptions != null ? deserializeAws_json1_1MFAOptionListType(output.MFAOptions, context) : undefined,
|
|
9747
9485
|
PreferredMfaSetting: (0, smithy_client_1.expectString)(output.PreferredMfaSetting),
|
|
9748
|
-
UserAttributes: output.UserAttributes
|
|
9486
|
+
UserAttributes: output.UserAttributes != null
|
|
9749
9487
|
? deserializeAws_json1_1AttributeListType(output.UserAttributes, context)
|
|
9750
9488
|
: undefined,
|
|
9751
|
-
UserMFASettingList: output.UserMFASettingList
|
|
9489
|
+
UserMFASettingList: output.UserMFASettingList != null
|
|
9752
9490
|
? deserializeAws_json1_1UserMFASettingListType(output.UserMFASettingList, context)
|
|
9753
9491
|
: undefined,
|
|
9754
9492
|
Username: (0, smithy_client_1.expectString)(output.Username),
|
|
@@ -9775,12 +9513,12 @@ const deserializeAws_json1_1GroupListType = (output, context) => {
|
|
|
9775
9513
|
};
|
|
9776
9514
|
const deserializeAws_json1_1GroupType = (output, context) => {
|
|
9777
9515
|
return {
|
|
9778
|
-
CreationDate: output.CreationDate
|
|
9516
|
+
CreationDate: output.CreationDate != null
|
|
9779
9517
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
9780
9518
|
: undefined,
|
|
9781
9519
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
9782
9520
|
GroupName: (0, smithy_client_1.expectString)(output.GroupName),
|
|
9783
|
-
LastModifiedDate: output.LastModifiedDate
|
|
9521
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
9784
9522
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
9785
9523
|
: undefined,
|
|
9786
9524
|
Precedence: (0, smithy_client_1.expectInt32)(output.Precedence),
|
|
@@ -9790,19 +9528,19 @@ const deserializeAws_json1_1GroupType = (output, context) => {
|
|
|
9790
9528
|
};
|
|
9791
9529
|
const deserializeAws_json1_1IdentityProviderType = (output, context) => {
|
|
9792
9530
|
return {
|
|
9793
|
-
AttributeMapping: output.AttributeMapping
|
|
9531
|
+
AttributeMapping: output.AttributeMapping != null
|
|
9794
9532
|
? deserializeAws_json1_1AttributeMappingType(output.AttributeMapping, context)
|
|
9795
9533
|
: undefined,
|
|
9796
|
-
CreationDate: output.CreationDate
|
|
9534
|
+
CreationDate: output.CreationDate != null
|
|
9797
9535
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
9798
9536
|
: undefined,
|
|
9799
|
-
IdpIdentifiers: output.IdpIdentifiers
|
|
9537
|
+
IdpIdentifiers: output.IdpIdentifiers != null
|
|
9800
9538
|
? deserializeAws_json1_1IdpIdentifiersListType(output.IdpIdentifiers, context)
|
|
9801
9539
|
: undefined,
|
|
9802
|
-
LastModifiedDate: output.LastModifiedDate
|
|
9540
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
9803
9541
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
9804
9542
|
: undefined,
|
|
9805
|
-
ProviderDetails: output.ProviderDetails
|
|
9543
|
+
ProviderDetails: output.ProviderDetails != null
|
|
9806
9544
|
? deserializeAws_json1_1ProviderDetailsType(output.ProviderDetails, context)
|
|
9807
9545
|
: undefined,
|
|
9808
9546
|
ProviderName: (0, smithy_client_1.expectString)(output.ProviderName),
|
|
@@ -9823,11 +9561,11 @@ const deserializeAws_json1_1IdpIdentifiersListType = (output, context) => {
|
|
|
9823
9561
|
};
|
|
9824
9562
|
const deserializeAws_json1_1InitiateAuthResponse = (output, context) => {
|
|
9825
9563
|
return {
|
|
9826
|
-
AuthenticationResult: output.AuthenticationResult
|
|
9564
|
+
AuthenticationResult: output.AuthenticationResult != null
|
|
9827
9565
|
? deserializeAws_json1_1AuthenticationResultType(output.AuthenticationResult, context)
|
|
9828
9566
|
: undefined,
|
|
9829
9567
|
ChallengeName: (0, smithy_client_1.expectString)(output.ChallengeName),
|
|
9830
|
-
ChallengeParameters: output.ChallengeParameters
|
|
9568
|
+
ChallengeParameters: output.ChallengeParameters != null
|
|
9831
9569
|
? deserializeAws_json1_1ChallengeParametersType(output.ChallengeParameters, context)
|
|
9832
9570
|
: undefined,
|
|
9833
9571
|
Session: (0, smithy_client_1.expectString)(output.Session),
|
|
@@ -9881,11 +9619,11 @@ const deserializeAws_json1_1InvalidUserPoolConfigurationException = (output, con
|
|
|
9881
9619
|
const deserializeAws_json1_1LambdaConfigType = (output, context) => {
|
|
9882
9620
|
return {
|
|
9883
9621
|
CreateAuthChallenge: (0, smithy_client_1.expectString)(output.CreateAuthChallenge),
|
|
9884
|
-
CustomEmailSender: output.CustomEmailSender
|
|
9622
|
+
CustomEmailSender: output.CustomEmailSender != null
|
|
9885
9623
|
? deserializeAws_json1_1CustomEmailLambdaVersionConfigType(output.CustomEmailSender, context)
|
|
9886
9624
|
: undefined,
|
|
9887
9625
|
CustomMessage: (0, smithy_client_1.expectString)(output.CustomMessage),
|
|
9888
|
-
CustomSMSSender: output.CustomSMSSender
|
|
9626
|
+
CustomSMSSender: output.CustomSMSSender != null
|
|
9889
9627
|
? deserializeAws_json1_1CustomSMSLambdaVersionConfigType(output.CustomSMSSender, context)
|
|
9890
9628
|
: undefined,
|
|
9891
9629
|
DefineAuthChallenge: (0, smithy_client_1.expectString)(output.DefineAuthChallenge),
|
|
@@ -9906,26 +9644,20 @@ const deserializeAws_json1_1LimitExceededException = (output, context) => {
|
|
|
9906
9644
|
};
|
|
9907
9645
|
const deserializeAws_json1_1ListDevicesResponse = (output, context) => {
|
|
9908
9646
|
return {
|
|
9909
|
-
Devices: output.Devices
|
|
9910
|
-
? deserializeAws_json1_1DeviceListType(output.Devices, context)
|
|
9911
|
-
: undefined,
|
|
9647
|
+
Devices: output.Devices != null ? deserializeAws_json1_1DeviceListType(output.Devices, context) : undefined,
|
|
9912
9648
|
PaginationToken: (0, smithy_client_1.expectString)(output.PaginationToken),
|
|
9913
9649
|
};
|
|
9914
9650
|
};
|
|
9915
9651
|
const deserializeAws_json1_1ListGroupsResponse = (output, context) => {
|
|
9916
9652
|
return {
|
|
9917
|
-
Groups: output.Groups
|
|
9918
|
-
? deserializeAws_json1_1GroupListType(output.Groups, context)
|
|
9919
|
-
: undefined,
|
|
9653
|
+
Groups: output.Groups != null ? deserializeAws_json1_1GroupListType(output.Groups, context) : undefined,
|
|
9920
9654
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
9921
9655
|
};
|
|
9922
9656
|
};
|
|
9923
9657
|
const deserializeAws_json1_1ListIdentityProvidersResponse = (output, context) => {
|
|
9924
9658
|
return {
|
|
9925
9659
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
9926
|
-
Providers: output.Providers
|
|
9927
|
-
? deserializeAws_json1_1ProvidersListType(output.Providers, context)
|
|
9928
|
-
: undefined,
|
|
9660
|
+
Providers: output.Providers != null ? deserializeAws_json1_1ProvidersListType(output.Providers, context) : undefined,
|
|
9929
9661
|
};
|
|
9930
9662
|
};
|
|
9931
9663
|
const deserializeAws_json1_1ListOfStringTypes = (output, context) => {
|
|
@@ -9942,22 +9674,20 @@ const deserializeAws_json1_1ListOfStringTypes = (output, context) => {
|
|
|
9942
9674
|
const deserializeAws_json1_1ListResourceServersResponse = (output, context) => {
|
|
9943
9675
|
return {
|
|
9944
9676
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
9945
|
-
ResourceServers: output.ResourceServers
|
|
9677
|
+
ResourceServers: output.ResourceServers != null
|
|
9946
9678
|
? deserializeAws_json1_1ResourceServersListType(output.ResourceServers, context)
|
|
9947
9679
|
: undefined,
|
|
9948
9680
|
};
|
|
9949
9681
|
};
|
|
9950
9682
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
9951
9683
|
return {
|
|
9952
|
-
Tags: output.Tags
|
|
9953
|
-
? deserializeAws_json1_1UserPoolTagsType(output.Tags, context)
|
|
9954
|
-
: undefined,
|
|
9684
|
+
Tags: output.Tags != null ? deserializeAws_json1_1UserPoolTagsType(output.Tags, context) : undefined,
|
|
9955
9685
|
};
|
|
9956
9686
|
};
|
|
9957
9687
|
const deserializeAws_json1_1ListUserImportJobsResponse = (output, context) => {
|
|
9958
9688
|
return {
|
|
9959
9689
|
PaginationToken: (0, smithy_client_1.expectString)(output.PaginationToken),
|
|
9960
|
-
UserImportJobs: output.UserImportJobs
|
|
9690
|
+
UserImportJobs: output.UserImportJobs != null
|
|
9961
9691
|
? deserializeAws_json1_1UserImportJobsListType(output.UserImportJobs, context)
|
|
9962
9692
|
: undefined,
|
|
9963
9693
|
};
|
|
@@ -9965,7 +9695,7 @@ const deserializeAws_json1_1ListUserImportJobsResponse = (output, context) => {
|
|
|
9965
9695
|
const deserializeAws_json1_1ListUserPoolClientsResponse = (output, context) => {
|
|
9966
9696
|
return {
|
|
9967
9697
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
9968
|
-
UserPoolClients: output.UserPoolClients
|
|
9698
|
+
UserPoolClients: output.UserPoolClients != null
|
|
9969
9699
|
? deserializeAws_json1_1UserPoolClientListType(output.UserPoolClients, context)
|
|
9970
9700
|
: undefined,
|
|
9971
9701
|
};
|
|
@@ -9973,25 +9703,19 @@ const deserializeAws_json1_1ListUserPoolClientsResponse = (output, context) => {
|
|
|
9973
9703
|
const deserializeAws_json1_1ListUserPoolsResponse = (output, context) => {
|
|
9974
9704
|
return {
|
|
9975
9705
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
9976
|
-
UserPools: output.UserPools
|
|
9977
|
-
? deserializeAws_json1_1UserPoolListType(output.UserPools, context)
|
|
9978
|
-
: undefined,
|
|
9706
|
+
UserPools: output.UserPools != null ? deserializeAws_json1_1UserPoolListType(output.UserPools, context) : undefined,
|
|
9979
9707
|
};
|
|
9980
9708
|
};
|
|
9981
9709
|
const deserializeAws_json1_1ListUsersInGroupResponse = (output, context) => {
|
|
9982
9710
|
return {
|
|
9983
9711
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
9984
|
-
Users: output.Users
|
|
9985
|
-
? deserializeAws_json1_1UsersListType(output.Users, context)
|
|
9986
|
-
: undefined,
|
|
9712
|
+
Users: output.Users != null ? deserializeAws_json1_1UsersListType(output.Users, context) : undefined,
|
|
9987
9713
|
};
|
|
9988
9714
|
};
|
|
9989
9715
|
const deserializeAws_json1_1ListUsersResponse = (output, context) => {
|
|
9990
9716
|
return {
|
|
9991
9717
|
PaginationToken: (0, smithy_client_1.expectString)(output.PaginationToken),
|
|
9992
|
-
Users: output.Users
|
|
9993
|
-
? deserializeAws_json1_1UsersListType(output.Users, context)
|
|
9994
|
-
: undefined,
|
|
9718
|
+
Users: output.Users != null ? deserializeAws_json1_1UsersListType(output.Users, context) : undefined,
|
|
9995
9719
|
};
|
|
9996
9720
|
};
|
|
9997
9721
|
const deserializeAws_json1_1LogoutURLsListType = (output, context) => {
|
|
@@ -10047,16 +9771,10 @@ const deserializeAws_json1_1NotAuthorizedException = (output, context) => {
|
|
|
10047
9771
|
};
|
|
10048
9772
|
const deserializeAws_json1_1NotifyConfigurationType = (output, context) => {
|
|
10049
9773
|
return {
|
|
10050
|
-
BlockEmail: output.BlockEmail
|
|
10051
|
-
? deserializeAws_json1_1NotifyEmailType(output.BlockEmail, context)
|
|
10052
|
-
: undefined,
|
|
9774
|
+
BlockEmail: output.BlockEmail != null ? deserializeAws_json1_1NotifyEmailType(output.BlockEmail, context) : undefined,
|
|
10053
9775
|
From: (0, smithy_client_1.expectString)(output.From),
|
|
10054
|
-
MfaEmail: output.MfaEmail
|
|
10055
|
-
|
|
10056
|
-
: undefined,
|
|
10057
|
-
NoActionEmail: output.NoActionEmail !== undefined && output.NoActionEmail !== null
|
|
10058
|
-
? deserializeAws_json1_1NotifyEmailType(output.NoActionEmail, context)
|
|
10059
|
-
: undefined,
|
|
9776
|
+
MfaEmail: output.MfaEmail != null ? deserializeAws_json1_1NotifyEmailType(output.MfaEmail, context) : undefined,
|
|
9777
|
+
NoActionEmail: output.NoActionEmail != null ? deserializeAws_json1_1NotifyEmailType(output.NoActionEmail, context) : undefined,
|
|
10060
9778
|
ReplyTo: (0, smithy_client_1.expectString)(output.ReplyTo),
|
|
10061
9779
|
SourceArn: (0, smithy_client_1.expectString)(output.SourceArn),
|
|
10062
9780
|
};
|
|
@@ -10107,10 +9825,10 @@ const deserializeAws_json1_1PreconditionNotMetException = (output, context) => {
|
|
|
10107
9825
|
};
|
|
10108
9826
|
const deserializeAws_json1_1ProviderDescription = (output, context) => {
|
|
10109
9827
|
return {
|
|
10110
|
-
CreationDate: output.CreationDate
|
|
9828
|
+
CreationDate: output.CreationDate != null
|
|
10111
9829
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
10112
9830
|
: undefined,
|
|
10113
|
-
LastModifiedDate: output.LastModifiedDate
|
|
9831
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
10114
9832
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
10115
9833
|
: undefined,
|
|
10116
9834
|
ProviderName: (0, smithy_client_1.expectString)(output.ProviderName),
|
|
@@ -10158,7 +9876,7 @@ const deserializeAws_json1_1RecoveryOptionType = (output, context) => {
|
|
|
10158
9876
|
};
|
|
10159
9877
|
const deserializeAws_json1_1ResendConfirmationCodeResponse = (output, context) => {
|
|
10160
9878
|
return {
|
|
10161
|
-
CodeDeliveryDetails: output.CodeDeliveryDetails
|
|
9879
|
+
CodeDeliveryDetails: output.CodeDeliveryDetails != null
|
|
10162
9880
|
? deserializeAws_json1_1CodeDeliveryDetailsType(output.CodeDeliveryDetails, context)
|
|
10163
9881
|
: undefined,
|
|
10164
9882
|
};
|
|
@@ -10200,19 +9918,17 @@ const deserializeAws_json1_1ResourceServerType = (output, context) => {
|
|
|
10200
9918
|
return {
|
|
10201
9919
|
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
10202
9920
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
10203
|
-
Scopes: output.Scopes
|
|
10204
|
-
? deserializeAws_json1_1ResourceServerScopeListType(output.Scopes, context)
|
|
10205
|
-
: undefined,
|
|
9921
|
+
Scopes: output.Scopes != null ? deserializeAws_json1_1ResourceServerScopeListType(output.Scopes, context) : undefined,
|
|
10206
9922
|
UserPoolId: (0, smithy_client_1.expectString)(output.UserPoolId),
|
|
10207
9923
|
};
|
|
10208
9924
|
};
|
|
10209
9925
|
const deserializeAws_json1_1RespondToAuthChallengeResponse = (output, context) => {
|
|
10210
9926
|
return {
|
|
10211
|
-
AuthenticationResult: output.AuthenticationResult
|
|
9927
|
+
AuthenticationResult: output.AuthenticationResult != null
|
|
10212
9928
|
? deserializeAws_json1_1AuthenticationResultType(output.AuthenticationResult, context)
|
|
10213
9929
|
: undefined,
|
|
10214
9930
|
ChallengeName: (0, smithy_client_1.expectString)(output.ChallengeName),
|
|
10215
|
-
ChallengeParameters: output.ChallengeParameters
|
|
9931
|
+
ChallengeParameters: output.ChallengeParameters != null
|
|
10216
9932
|
? deserializeAws_json1_1ChallengeParametersType(output.ChallengeParameters, context)
|
|
10217
9933
|
: undefined,
|
|
10218
9934
|
Session: (0, smithy_client_1.expectString)(output.Session),
|
|
@@ -10223,18 +9939,17 @@ const deserializeAws_json1_1RevokeTokenResponse = (output, context) => {
|
|
|
10223
9939
|
};
|
|
10224
9940
|
const deserializeAws_json1_1RiskConfigurationType = (output, context) => {
|
|
10225
9941
|
return {
|
|
10226
|
-
AccountTakeoverRiskConfiguration: output.AccountTakeoverRiskConfiguration
|
|
9942
|
+
AccountTakeoverRiskConfiguration: output.AccountTakeoverRiskConfiguration != null
|
|
10227
9943
|
? deserializeAws_json1_1AccountTakeoverRiskConfigurationType(output.AccountTakeoverRiskConfiguration, context)
|
|
10228
9944
|
: undefined,
|
|
10229
9945
|
ClientId: (0, smithy_client_1.expectString)(output.ClientId),
|
|
10230
|
-
CompromisedCredentialsRiskConfiguration: output.CompromisedCredentialsRiskConfiguration
|
|
10231
|
-
output.CompromisedCredentialsRiskConfiguration !== null
|
|
9946
|
+
CompromisedCredentialsRiskConfiguration: output.CompromisedCredentialsRiskConfiguration != null
|
|
10232
9947
|
? deserializeAws_json1_1CompromisedCredentialsRiskConfigurationType(output.CompromisedCredentialsRiskConfiguration, context)
|
|
10233
9948
|
: undefined,
|
|
10234
|
-
LastModifiedDate: output.LastModifiedDate
|
|
9949
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
10235
9950
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
10236
9951
|
: undefined,
|
|
10237
|
-
RiskExceptionConfiguration: output.RiskExceptionConfiguration
|
|
9952
|
+
RiskExceptionConfiguration: output.RiskExceptionConfiguration != null
|
|
10238
9953
|
? deserializeAws_json1_1RiskExceptionConfigurationType(output.RiskExceptionConfiguration, context)
|
|
10239
9954
|
: undefined,
|
|
10240
9955
|
UserPoolId: (0, smithy_client_1.expectString)(output.UserPoolId),
|
|
@@ -10242,10 +9957,10 @@ const deserializeAws_json1_1RiskConfigurationType = (output, context) => {
|
|
|
10242
9957
|
};
|
|
10243
9958
|
const deserializeAws_json1_1RiskExceptionConfigurationType = (output, context) => {
|
|
10244
9959
|
return {
|
|
10245
|
-
BlockedIPRangeList: output.BlockedIPRangeList
|
|
9960
|
+
BlockedIPRangeList: output.BlockedIPRangeList != null
|
|
10246
9961
|
? deserializeAws_json1_1BlockedIPRangeListType(output.BlockedIPRangeList, context)
|
|
10247
9962
|
: undefined,
|
|
10248
|
-
SkippedIPRangeList: output.SkippedIPRangeList
|
|
9963
|
+
SkippedIPRangeList: output.SkippedIPRangeList != null
|
|
10249
9964
|
? deserializeAws_json1_1SkippedIPRangeListType(output.SkippedIPRangeList, context)
|
|
10250
9965
|
: undefined,
|
|
10251
9966
|
};
|
|
@@ -10267,11 +9982,11 @@ const deserializeAws_json1_1SchemaAttributeType = (output, context) => {
|
|
|
10267
9982
|
DeveloperOnlyAttribute: (0, smithy_client_1.expectBoolean)(output.DeveloperOnlyAttribute),
|
|
10268
9983
|
Mutable: (0, smithy_client_1.expectBoolean)(output.Mutable),
|
|
10269
9984
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
10270
|
-
NumberAttributeConstraints: output.NumberAttributeConstraints
|
|
9985
|
+
NumberAttributeConstraints: output.NumberAttributeConstraints != null
|
|
10271
9986
|
? deserializeAws_json1_1NumberAttributeConstraintsType(output.NumberAttributeConstraints, context)
|
|
10272
9987
|
: undefined,
|
|
10273
9988
|
Required: (0, smithy_client_1.expectBoolean)(output.Required),
|
|
10274
|
-
StringAttributeConstraints: output.StringAttributeConstraints
|
|
9989
|
+
StringAttributeConstraints: output.StringAttributeConstraints != null
|
|
10275
9990
|
? deserializeAws_json1_1StringAttributeConstraintsType(output.StringAttributeConstraints, context)
|
|
10276
9991
|
: undefined,
|
|
10277
9992
|
};
|
|
@@ -10294,14 +10009,14 @@ const deserializeAws_json1_1ScopeListType = (output, context) => {
|
|
|
10294
10009
|
};
|
|
10295
10010
|
const deserializeAws_json1_1SetRiskConfigurationResponse = (output, context) => {
|
|
10296
10011
|
return {
|
|
10297
|
-
RiskConfiguration: output.RiskConfiguration
|
|
10012
|
+
RiskConfiguration: output.RiskConfiguration != null
|
|
10298
10013
|
? deserializeAws_json1_1RiskConfigurationType(output.RiskConfiguration, context)
|
|
10299
10014
|
: undefined,
|
|
10300
10015
|
};
|
|
10301
10016
|
};
|
|
10302
10017
|
const deserializeAws_json1_1SetUICustomizationResponse = (output, context) => {
|
|
10303
10018
|
return {
|
|
10304
|
-
UICustomization: output.UICustomization
|
|
10019
|
+
UICustomization: output.UICustomization != null
|
|
10305
10020
|
? deserializeAws_json1_1UICustomizationType(output.UICustomization, context)
|
|
10306
10021
|
: undefined,
|
|
10307
10022
|
};
|
|
@@ -10312,10 +10027,10 @@ const deserializeAws_json1_1SetUserMFAPreferenceResponse = (output, context) =>
|
|
|
10312
10027
|
const deserializeAws_json1_1SetUserPoolMfaConfigResponse = (output, context) => {
|
|
10313
10028
|
return {
|
|
10314
10029
|
MfaConfiguration: (0, smithy_client_1.expectString)(output.MfaConfiguration),
|
|
10315
|
-
SmsMfaConfiguration: output.SmsMfaConfiguration
|
|
10030
|
+
SmsMfaConfiguration: output.SmsMfaConfiguration != null
|
|
10316
10031
|
? deserializeAws_json1_1SmsMfaConfigType(output.SmsMfaConfiguration, context)
|
|
10317
10032
|
: undefined,
|
|
10318
|
-
SoftwareTokenMfaConfiguration: output.SoftwareTokenMfaConfiguration
|
|
10033
|
+
SoftwareTokenMfaConfiguration: output.SoftwareTokenMfaConfiguration != null
|
|
10319
10034
|
? deserializeAws_json1_1SoftwareTokenMfaConfigType(output.SoftwareTokenMfaConfiguration, context)
|
|
10320
10035
|
: undefined,
|
|
10321
10036
|
};
|
|
@@ -10325,7 +10040,7 @@ const deserializeAws_json1_1SetUserSettingsResponse = (output, context) => {
|
|
|
10325
10040
|
};
|
|
10326
10041
|
const deserializeAws_json1_1SignUpResponse = (output, context) => {
|
|
10327
10042
|
return {
|
|
10328
|
-
CodeDeliveryDetails: output.CodeDeliveryDetails
|
|
10043
|
+
CodeDeliveryDetails: output.CodeDeliveryDetails != null
|
|
10329
10044
|
? deserializeAws_json1_1CodeDeliveryDetailsType(output.CodeDeliveryDetails, context)
|
|
10330
10045
|
: undefined,
|
|
10331
10046
|
UserConfirmed: (0, smithy_client_1.expectBoolean)(output.UserConfirmed),
|
|
@@ -10353,7 +10068,7 @@ const deserializeAws_json1_1SmsConfigurationType = (output, context) => {
|
|
|
10353
10068
|
const deserializeAws_json1_1SmsMfaConfigType = (output, context) => {
|
|
10354
10069
|
return {
|
|
10355
10070
|
SmsAuthenticationMessage: (0, smithy_client_1.expectString)(output.SmsAuthenticationMessage),
|
|
10356
|
-
SmsConfiguration: output.SmsConfiguration
|
|
10071
|
+
SmsConfiguration: output.SmsConfiguration != null
|
|
10357
10072
|
? deserializeAws_json1_1SmsConfigurationType(output.SmsConfiguration, context)
|
|
10358
10073
|
: undefined,
|
|
10359
10074
|
};
|
|
@@ -10370,16 +10085,12 @@ const deserializeAws_json1_1SoftwareTokenMFANotFoundException = (output, context
|
|
|
10370
10085
|
};
|
|
10371
10086
|
const deserializeAws_json1_1StartUserImportJobResponse = (output, context) => {
|
|
10372
10087
|
return {
|
|
10373
|
-
UserImportJob: output.UserImportJob
|
|
10374
|
-
? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context)
|
|
10375
|
-
: undefined,
|
|
10088
|
+
UserImportJob: output.UserImportJob != null ? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context) : undefined,
|
|
10376
10089
|
};
|
|
10377
10090
|
};
|
|
10378
10091
|
const deserializeAws_json1_1StopUserImportJobResponse = (output, context) => {
|
|
10379
10092
|
return {
|
|
10380
|
-
UserImportJob: output.UserImportJob
|
|
10381
|
-
? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context)
|
|
10382
|
-
: undefined,
|
|
10093
|
+
UserImportJob: output.UserImportJob != null ? deserializeAws_json1_1UserImportJobType(output.UserImportJob, context) : undefined,
|
|
10383
10094
|
};
|
|
10384
10095
|
};
|
|
10385
10096
|
const deserializeAws_json1_1StringAttributeConstraintsType = (output, context) => {
|
|
@@ -10424,11 +10135,11 @@ const deserializeAws_json1_1UICustomizationType = (output, context) => {
|
|
|
10424
10135
|
CSS: (0, smithy_client_1.expectString)(output.CSS),
|
|
10425
10136
|
CSSVersion: (0, smithy_client_1.expectString)(output.CSSVersion),
|
|
10426
10137
|
ClientId: (0, smithy_client_1.expectString)(output.ClientId),
|
|
10427
|
-
CreationDate: output.CreationDate
|
|
10138
|
+
CreationDate: output.CreationDate != null
|
|
10428
10139
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
10429
10140
|
: undefined,
|
|
10430
10141
|
ImageUrl: (0, smithy_client_1.expectString)(output.ImageUrl),
|
|
10431
|
-
LastModifiedDate: output.LastModifiedDate
|
|
10142
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
10432
10143
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
10433
10144
|
: undefined,
|
|
10434
10145
|
UserPoolId: (0, smithy_client_1.expectString)(output.UserPoolId),
|
|
@@ -10475,35 +10186,33 @@ const deserializeAws_json1_1UpdateDeviceStatusResponse = (output, context) => {
|
|
|
10475
10186
|
};
|
|
10476
10187
|
const deserializeAws_json1_1UpdateGroupResponse = (output, context) => {
|
|
10477
10188
|
return {
|
|
10478
|
-
Group: output.Group
|
|
10479
|
-
? deserializeAws_json1_1GroupType(output.Group, context)
|
|
10480
|
-
: undefined,
|
|
10189
|
+
Group: output.Group != null ? deserializeAws_json1_1GroupType(output.Group, context) : undefined,
|
|
10481
10190
|
};
|
|
10482
10191
|
};
|
|
10483
10192
|
const deserializeAws_json1_1UpdateIdentityProviderResponse = (output, context) => {
|
|
10484
10193
|
return {
|
|
10485
|
-
IdentityProvider: output.IdentityProvider
|
|
10194
|
+
IdentityProvider: output.IdentityProvider != null
|
|
10486
10195
|
? deserializeAws_json1_1IdentityProviderType(output.IdentityProvider, context)
|
|
10487
10196
|
: undefined,
|
|
10488
10197
|
};
|
|
10489
10198
|
};
|
|
10490
10199
|
const deserializeAws_json1_1UpdateResourceServerResponse = (output, context) => {
|
|
10491
10200
|
return {
|
|
10492
|
-
ResourceServer: output.ResourceServer
|
|
10201
|
+
ResourceServer: output.ResourceServer != null
|
|
10493
10202
|
? deserializeAws_json1_1ResourceServerType(output.ResourceServer, context)
|
|
10494
10203
|
: undefined,
|
|
10495
10204
|
};
|
|
10496
10205
|
};
|
|
10497
10206
|
const deserializeAws_json1_1UpdateUserAttributesResponse = (output, context) => {
|
|
10498
10207
|
return {
|
|
10499
|
-
CodeDeliveryDetailsList: output.CodeDeliveryDetailsList
|
|
10208
|
+
CodeDeliveryDetailsList: output.CodeDeliveryDetailsList != null
|
|
10500
10209
|
? deserializeAws_json1_1CodeDeliveryDetailsListType(output.CodeDeliveryDetailsList, context)
|
|
10501
10210
|
: undefined,
|
|
10502
10211
|
};
|
|
10503
10212
|
};
|
|
10504
10213
|
const deserializeAws_json1_1UpdateUserPoolClientResponse = (output, context) => {
|
|
10505
10214
|
return {
|
|
10506
|
-
UserPoolClient: output.UserPoolClient
|
|
10215
|
+
UserPoolClient: output.UserPoolClient != null
|
|
10507
10216
|
? deserializeAws_json1_1UserPoolClientType(output.UserPoolClient, context)
|
|
10508
10217
|
: undefined,
|
|
10509
10218
|
};
|
|
@@ -10518,8 +10227,7 @@ const deserializeAws_json1_1UpdateUserPoolResponse = (output, context) => {
|
|
|
10518
10227
|
};
|
|
10519
10228
|
const deserializeAws_json1_1UserAttributeUpdateSettingsType = (output, context) => {
|
|
10520
10229
|
return {
|
|
10521
|
-
AttributesRequireVerificationBeforeUpdate: output.AttributesRequireVerificationBeforeUpdate
|
|
10522
|
-
output.AttributesRequireVerificationBeforeUpdate !== null
|
|
10230
|
+
AttributesRequireVerificationBeforeUpdate: output.AttributesRequireVerificationBeforeUpdate != null
|
|
10523
10231
|
? deserializeAws_json1_1AttributesRequireVerificationBeforeUpdateType(output.AttributesRequireVerificationBeforeUpdate, context)
|
|
10524
10232
|
: undefined,
|
|
10525
10233
|
};
|
|
@@ -10543,11 +10251,11 @@ const deserializeAws_json1_1UserImportJobsListType = (output, context) => {
|
|
|
10543
10251
|
const deserializeAws_json1_1UserImportJobType = (output, context) => {
|
|
10544
10252
|
return {
|
|
10545
10253
|
CloudWatchLogsRoleArn: (0, smithy_client_1.expectString)(output.CloudWatchLogsRoleArn),
|
|
10546
|
-
CompletionDate: output.CompletionDate
|
|
10254
|
+
CompletionDate: output.CompletionDate != null
|
|
10547
10255
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CompletionDate)))
|
|
10548
10256
|
: undefined,
|
|
10549
10257
|
CompletionMessage: (0, smithy_client_1.expectString)(output.CompletionMessage),
|
|
10550
|
-
CreationDate: output.CreationDate
|
|
10258
|
+
CreationDate: output.CreationDate != null
|
|
10551
10259
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
10552
10260
|
: undefined,
|
|
10553
10261
|
FailedUsers: (0, smithy_client_1.expectLong)(output.FailedUsers),
|
|
@@ -10556,9 +10264,7 @@ const deserializeAws_json1_1UserImportJobType = (output, context) => {
|
|
|
10556
10264
|
JobName: (0, smithy_client_1.expectString)(output.JobName),
|
|
10557
10265
|
PreSignedUrl: (0, smithy_client_1.expectString)(output.PreSignedUrl),
|
|
10558
10266
|
SkippedUsers: (0, smithy_client_1.expectLong)(output.SkippedUsers),
|
|
10559
|
-
StartDate: output.StartDate
|
|
10560
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDate)))
|
|
10561
|
-
: undefined,
|
|
10267
|
+
StartDate: output.StartDate != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartDate))) : undefined,
|
|
10562
10268
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
10563
10269
|
UserPoolId: (0, smithy_client_1.expectString)(output.UserPoolId),
|
|
10564
10270
|
};
|
|
@@ -10641,65 +10347,61 @@ const deserializeAws_json1_1UserPoolClientListType = (output, context) => {
|
|
|
10641
10347
|
const deserializeAws_json1_1UserPoolClientType = (output, context) => {
|
|
10642
10348
|
return {
|
|
10643
10349
|
AccessTokenValidity: (0, smithy_client_1.expectInt32)(output.AccessTokenValidity),
|
|
10644
|
-
AllowedOAuthFlows: output.AllowedOAuthFlows
|
|
10350
|
+
AllowedOAuthFlows: output.AllowedOAuthFlows != null
|
|
10645
10351
|
? deserializeAws_json1_1OAuthFlowsType(output.AllowedOAuthFlows, context)
|
|
10646
10352
|
: undefined,
|
|
10647
10353
|
AllowedOAuthFlowsUserPoolClient: (0, smithy_client_1.expectBoolean)(output.AllowedOAuthFlowsUserPoolClient),
|
|
10648
|
-
AllowedOAuthScopes: output.AllowedOAuthScopes
|
|
10354
|
+
AllowedOAuthScopes: output.AllowedOAuthScopes != null
|
|
10649
10355
|
? deserializeAws_json1_1ScopeListType(output.AllowedOAuthScopes, context)
|
|
10650
10356
|
: undefined,
|
|
10651
|
-
AnalyticsConfiguration: output.AnalyticsConfiguration
|
|
10357
|
+
AnalyticsConfiguration: output.AnalyticsConfiguration != null
|
|
10652
10358
|
? deserializeAws_json1_1AnalyticsConfigurationType(output.AnalyticsConfiguration, context)
|
|
10653
10359
|
: undefined,
|
|
10654
|
-
CallbackURLs: output.CallbackURLs
|
|
10360
|
+
CallbackURLs: output.CallbackURLs != null
|
|
10655
10361
|
? deserializeAws_json1_1CallbackURLsListType(output.CallbackURLs, context)
|
|
10656
10362
|
: undefined,
|
|
10657
10363
|
ClientId: (0, smithy_client_1.expectString)(output.ClientId),
|
|
10658
10364
|
ClientName: (0, smithy_client_1.expectString)(output.ClientName),
|
|
10659
10365
|
ClientSecret: (0, smithy_client_1.expectString)(output.ClientSecret),
|
|
10660
|
-
CreationDate: output.CreationDate
|
|
10366
|
+
CreationDate: output.CreationDate != null
|
|
10661
10367
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
10662
10368
|
: undefined,
|
|
10663
10369
|
DefaultRedirectURI: (0, smithy_client_1.expectString)(output.DefaultRedirectURI),
|
|
10664
10370
|
EnablePropagateAdditionalUserContextData: (0, smithy_client_1.expectBoolean)(output.EnablePropagateAdditionalUserContextData),
|
|
10665
10371
|
EnableTokenRevocation: (0, smithy_client_1.expectBoolean)(output.EnableTokenRevocation),
|
|
10666
|
-
ExplicitAuthFlows: output.ExplicitAuthFlows
|
|
10372
|
+
ExplicitAuthFlows: output.ExplicitAuthFlows != null
|
|
10667
10373
|
? deserializeAws_json1_1ExplicitAuthFlowsListType(output.ExplicitAuthFlows, context)
|
|
10668
10374
|
: undefined,
|
|
10669
10375
|
IdTokenValidity: (0, smithy_client_1.expectInt32)(output.IdTokenValidity),
|
|
10670
|
-
LastModifiedDate: output.LastModifiedDate
|
|
10376
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
10671
10377
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
10672
10378
|
: undefined,
|
|
10673
|
-
LogoutURLs: output.LogoutURLs
|
|
10674
|
-
? deserializeAws_json1_1LogoutURLsListType(output.LogoutURLs, context)
|
|
10675
|
-
: undefined,
|
|
10379
|
+
LogoutURLs: output.LogoutURLs != null ? deserializeAws_json1_1LogoutURLsListType(output.LogoutURLs, context) : undefined,
|
|
10676
10380
|
PreventUserExistenceErrors: (0, smithy_client_1.expectString)(output.PreventUserExistenceErrors),
|
|
10677
|
-
ReadAttributes: output.ReadAttributes
|
|
10381
|
+
ReadAttributes: output.ReadAttributes != null
|
|
10678
10382
|
? deserializeAws_json1_1ClientPermissionListType(output.ReadAttributes, context)
|
|
10679
10383
|
: undefined,
|
|
10680
10384
|
RefreshTokenValidity: (0, smithy_client_1.expectInt32)(output.RefreshTokenValidity),
|
|
10681
|
-
SupportedIdentityProviders: output.SupportedIdentityProviders
|
|
10385
|
+
SupportedIdentityProviders: output.SupportedIdentityProviders != null
|
|
10682
10386
|
? deserializeAws_json1_1SupportedIdentityProvidersListType(output.SupportedIdentityProviders, context)
|
|
10683
10387
|
: undefined,
|
|
10684
|
-
TokenValidityUnits: output.TokenValidityUnits
|
|
10388
|
+
TokenValidityUnits: output.TokenValidityUnits != null
|
|
10685
10389
|
? deserializeAws_json1_1TokenValidityUnitsType(output.TokenValidityUnits, context)
|
|
10686
10390
|
: undefined,
|
|
10687
10391
|
UserPoolId: (0, smithy_client_1.expectString)(output.UserPoolId),
|
|
10688
|
-
WriteAttributes: output.WriteAttributes
|
|
10392
|
+
WriteAttributes: output.WriteAttributes != null
|
|
10689
10393
|
? deserializeAws_json1_1ClientPermissionListType(output.WriteAttributes, context)
|
|
10690
10394
|
: undefined,
|
|
10691
10395
|
};
|
|
10692
10396
|
};
|
|
10693
10397
|
const deserializeAws_json1_1UserPoolDescriptionType = (output, context) => {
|
|
10694
10398
|
return {
|
|
10695
|
-
CreationDate: output.CreationDate
|
|
10399
|
+
CreationDate: output.CreationDate != null
|
|
10696
10400
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
10697
10401
|
: undefined,
|
|
10698
10402
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
10699
|
-
LambdaConfig: output.LambdaConfig
|
|
10700
|
-
|
|
10701
|
-
: undefined,
|
|
10702
|
-
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
10403
|
+
LambdaConfig: output.LambdaConfig != null ? deserializeAws_json1_1LambdaConfigType(output.LambdaConfig, context) : undefined,
|
|
10404
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
10703
10405
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
10704
10406
|
: undefined,
|
|
10705
10407
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
@@ -10719,7 +10421,7 @@ const deserializeAws_json1_1UserPoolListType = (output, context) => {
|
|
|
10719
10421
|
};
|
|
10720
10422
|
const deserializeAws_json1_1UserPoolPolicyType = (output, context) => {
|
|
10721
10423
|
return {
|
|
10722
|
-
PasswordPolicy: output.PasswordPolicy
|
|
10424
|
+
PasswordPolicy: output.PasswordPolicy != null
|
|
10723
10425
|
? deserializeAws_json1_1PasswordPolicyType(output.PasswordPolicy, context)
|
|
10724
10426
|
: undefined,
|
|
10725
10427
|
};
|
|
@@ -10742,28 +10444,28 @@ const deserializeAws_json1_1UserPoolTagsType = (output, context) => {
|
|
|
10742
10444
|
};
|
|
10743
10445
|
const deserializeAws_json1_1UserPoolType = (output, context) => {
|
|
10744
10446
|
return {
|
|
10745
|
-
AccountRecoverySetting: output.AccountRecoverySetting
|
|
10447
|
+
AccountRecoverySetting: output.AccountRecoverySetting != null
|
|
10746
10448
|
? deserializeAws_json1_1AccountRecoverySettingType(output.AccountRecoverySetting, context)
|
|
10747
10449
|
: undefined,
|
|
10748
|
-
AdminCreateUserConfig: output.AdminCreateUserConfig
|
|
10450
|
+
AdminCreateUserConfig: output.AdminCreateUserConfig != null
|
|
10749
10451
|
? deserializeAws_json1_1AdminCreateUserConfigType(output.AdminCreateUserConfig, context)
|
|
10750
10452
|
: undefined,
|
|
10751
|
-
AliasAttributes: output.AliasAttributes
|
|
10453
|
+
AliasAttributes: output.AliasAttributes != null
|
|
10752
10454
|
? deserializeAws_json1_1AliasAttributesListType(output.AliasAttributes, context)
|
|
10753
10455
|
: undefined,
|
|
10754
10456
|
Arn: (0, smithy_client_1.expectString)(output.Arn),
|
|
10755
|
-
AutoVerifiedAttributes: output.AutoVerifiedAttributes
|
|
10457
|
+
AutoVerifiedAttributes: output.AutoVerifiedAttributes != null
|
|
10756
10458
|
? deserializeAws_json1_1VerifiedAttributesListType(output.AutoVerifiedAttributes, context)
|
|
10757
10459
|
: undefined,
|
|
10758
|
-
CreationDate: output.CreationDate
|
|
10460
|
+
CreationDate: output.CreationDate != null
|
|
10759
10461
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreationDate)))
|
|
10760
10462
|
: undefined,
|
|
10761
10463
|
CustomDomain: (0, smithy_client_1.expectString)(output.CustomDomain),
|
|
10762
|
-
DeviceConfiguration: output.DeviceConfiguration
|
|
10464
|
+
DeviceConfiguration: output.DeviceConfiguration != null
|
|
10763
10465
|
? deserializeAws_json1_1DeviceConfigurationType(output.DeviceConfiguration, context)
|
|
10764
10466
|
: undefined,
|
|
10765
10467
|
Domain: (0, smithy_client_1.expectString)(output.Domain),
|
|
10766
|
-
EmailConfiguration: output.EmailConfiguration
|
|
10468
|
+
EmailConfiguration: output.EmailConfiguration != null
|
|
10767
10469
|
? deserializeAws_json1_1EmailConfigurationType(output.EmailConfiguration, context)
|
|
10768
10470
|
: undefined,
|
|
10769
10471
|
EmailConfigurationFailure: (0, smithy_client_1.expectString)(output.EmailConfigurationFailure),
|
|
@@ -10771,43 +10473,37 @@ const deserializeAws_json1_1UserPoolType = (output, context) => {
|
|
|
10771
10473
|
EmailVerificationSubject: (0, smithy_client_1.expectString)(output.EmailVerificationSubject),
|
|
10772
10474
|
EstimatedNumberOfUsers: (0, smithy_client_1.expectInt32)(output.EstimatedNumberOfUsers),
|
|
10773
10475
|
Id: (0, smithy_client_1.expectString)(output.Id),
|
|
10774
|
-
LambdaConfig: output.LambdaConfig
|
|
10775
|
-
|
|
10776
|
-
: undefined,
|
|
10777
|
-
LastModifiedDate: output.LastModifiedDate !== undefined && output.LastModifiedDate !== null
|
|
10476
|
+
LambdaConfig: output.LambdaConfig != null ? deserializeAws_json1_1LambdaConfigType(output.LambdaConfig, context) : undefined,
|
|
10477
|
+
LastModifiedDate: output.LastModifiedDate != null
|
|
10778
10478
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastModifiedDate)))
|
|
10779
10479
|
: undefined,
|
|
10780
10480
|
MfaConfiguration: (0, smithy_client_1.expectString)(output.MfaConfiguration),
|
|
10781
10481
|
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
10782
|
-
Policies: output.Policies
|
|
10783
|
-
|
|
10784
|
-
: undefined,
|
|
10785
|
-
SchemaAttributes: output.SchemaAttributes !== undefined && output.SchemaAttributes !== null
|
|
10482
|
+
Policies: output.Policies != null ? deserializeAws_json1_1UserPoolPolicyType(output.Policies, context) : undefined,
|
|
10483
|
+
SchemaAttributes: output.SchemaAttributes != null
|
|
10786
10484
|
? deserializeAws_json1_1SchemaAttributesListType(output.SchemaAttributes, context)
|
|
10787
10485
|
: undefined,
|
|
10788
10486
|
SmsAuthenticationMessage: (0, smithy_client_1.expectString)(output.SmsAuthenticationMessage),
|
|
10789
|
-
SmsConfiguration: output.SmsConfiguration
|
|
10487
|
+
SmsConfiguration: output.SmsConfiguration != null
|
|
10790
10488
|
? deserializeAws_json1_1SmsConfigurationType(output.SmsConfiguration, context)
|
|
10791
10489
|
: undefined,
|
|
10792
10490
|
SmsConfigurationFailure: (0, smithy_client_1.expectString)(output.SmsConfigurationFailure),
|
|
10793
10491
|
SmsVerificationMessage: (0, smithy_client_1.expectString)(output.SmsVerificationMessage),
|
|
10794
10492
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
10795
|
-
UserAttributeUpdateSettings: output.UserAttributeUpdateSettings
|
|
10493
|
+
UserAttributeUpdateSettings: output.UserAttributeUpdateSettings != null
|
|
10796
10494
|
? deserializeAws_json1_1UserAttributeUpdateSettingsType(output.UserAttributeUpdateSettings, context)
|
|
10797
10495
|
: undefined,
|
|
10798
|
-
UserPoolAddOns: output.UserPoolAddOns
|
|
10496
|
+
UserPoolAddOns: output.UserPoolAddOns != null
|
|
10799
10497
|
? deserializeAws_json1_1UserPoolAddOnsType(output.UserPoolAddOns, context)
|
|
10800
10498
|
: undefined,
|
|
10801
|
-
UserPoolTags: output.UserPoolTags
|
|
10802
|
-
|
|
10803
|
-
: undefined,
|
|
10804
|
-
UsernameAttributes: output.UsernameAttributes !== undefined && output.UsernameAttributes !== null
|
|
10499
|
+
UserPoolTags: output.UserPoolTags != null ? deserializeAws_json1_1UserPoolTagsType(output.UserPoolTags, context) : undefined,
|
|
10500
|
+
UsernameAttributes: output.UsernameAttributes != null
|
|
10805
10501
|
? deserializeAws_json1_1UsernameAttributesListType(output.UsernameAttributes, context)
|
|
10806
10502
|
: undefined,
|
|
10807
|
-
UsernameConfiguration: output.UsernameConfiguration
|
|
10503
|
+
UsernameConfiguration: output.UsernameConfiguration != null
|
|
10808
10504
|
? deserializeAws_json1_1UsernameConfigurationType(output.UsernameConfiguration, context)
|
|
10809
10505
|
: undefined,
|
|
10810
|
-
VerificationMessageTemplate: output.VerificationMessageTemplate
|
|
10506
|
+
VerificationMessageTemplate: output.VerificationMessageTemplate != null
|
|
10811
10507
|
? deserializeAws_json1_1VerificationMessageTemplateType(output.VerificationMessageTemplate, context)
|
|
10812
10508
|
: undefined,
|
|
10813
10509
|
};
|
|
@@ -10825,17 +10521,13 @@ const deserializeAws_json1_1UsersListType = (output, context) => {
|
|
|
10825
10521
|
};
|
|
10826
10522
|
const deserializeAws_json1_1UserType = (output, context) => {
|
|
10827
10523
|
return {
|
|
10828
|
-
Attributes: output.Attributes
|
|
10829
|
-
? deserializeAws_json1_1AttributeListType(output.Attributes, context)
|
|
10830
|
-
: undefined,
|
|
10524
|
+
Attributes: output.Attributes != null ? deserializeAws_json1_1AttributeListType(output.Attributes, context) : undefined,
|
|
10831
10525
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
10832
|
-
MFAOptions: output.MFAOptions
|
|
10833
|
-
|
|
10834
|
-
: undefined,
|
|
10835
|
-
UserCreateDate: output.UserCreateDate !== undefined && output.UserCreateDate !== null
|
|
10526
|
+
MFAOptions: output.MFAOptions != null ? deserializeAws_json1_1MFAOptionListType(output.MFAOptions, context) : undefined,
|
|
10527
|
+
UserCreateDate: output.UserCreateDate != null
|
|
10836
10528
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UserCreateDate)))
|
|
10837
10529
|
: undefined,
|
|
10838
|
-
UserLastModifiedDate: output.UserLastModifiedDate
|
|
10530
|
+
UserLastModifiedDate: output.UserLastModifiedDate != null
|
|
10839
10531
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UserLastModifiedDate)))
|
|
10840
10532
|
: undefined,
|
|
10841
10533
|
UserStatus: (0, smithy_client_1.expectString)(output.UserStatus),
|
|
@@ -10916,6 +10608,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
10916
10608
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
10917
10609
|
const sanitizeErrorCode = (rawValue) => {
|
|
10918
10610
|
let cleanValue = rawValue;
|
|
10611
|
+
if (typeof cleanValue === "number") {
|
|
10612
|
+
cleanValue = cleanValue.toString();
|
|
10613
|
+
}
|
|
10919
10614
|
if (cleanValue.indexOf(":") >= 0) {
|
|
10920
10615
|
cleanValue = cleanValue.split(":")[0];
|
|
10921
10616
|
}
|