@aws-sdk/client-cognito-identity-provider 3.185.0 → 3.188.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.
Files changed (123) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist-es/CognitoIdentityProvider.js +406 -413
  3. package/dist-es/CognitoIdentityProviderClient.js +21 -27
  4. package/dist-es/commands/AddCustomAttributesCommand.js +21 -28
  5. package/dist-es/commands/AdminAddUserToGroupCommand.js +22 -29
  6. package/dist-es/commands/AdminConfirmSignUpCommand.js +21 -28
  7. package/dist-es/commands/AdminCreateUserCommand.js +21 -28
  8. package/dist-es/commands/AdminDeleteUserAttributesCommand.js +21 -28
  9. package/dist-es/commands/AdminDeleteUserCommand.js +22 -29
  10. package/dist-es/commands/AdminDisableProviderForUserCommand.js +21 -28
  11. package/dist-es/commands/AdminDisableUserCommand.js +21 -28
  12. package/dist-es/commands/AdminEnableUserCommand.js +21 -28
  13. package/dist-es/commands/AdminForgetDeviceCommand.js +22 -29
  14. package/dist-es/commands/AdminGetDeviceCommand.js +21 -28
  15. package/dist-es/commands/AdminGetUserCommand.js +21 -28
  16. package/dist-es/commands/AdminInitiateAuthCommand.js +21 -28
  17. package/dist-es/commands/AdminLinkProviderForUserCommand.js +21 -28
  18. package/dist-es/commands/AdminListDevicesCommand.js +21 -28
  19. package/dist-es/commands/AdminListGroupsForUserCommand.js +21 -28
  20. package/dist-es/commands/AdminListUserAuthEventsCommand.js +21 -28
  21. package/dist-es/commands/AdminRemoveUserFromGroupCommand.js +22 -29
  22. package/dist-es/commands/AdminResetUserPasswordCommand.js +21 -28
  23. package/dist-es/commands/AdminRespondToAuthChallengeCommand.js +21 -28
  24. package/dist-es/commands/AdminSetUserMFAPreferenceCommand.js +21 -28
  25. package/dist-es/commands/AdminSetUserPasswordCommand.js +21 -28
  26. package/dist-es/commands/AdminSetUserSettingsCommand.js +21 -28
  27. package/dist-es/commands/AdminUpdateAuthEventFeedbackCommand.js +21 -28
  28. package/dist-es/commands/AdminUpdateDeviceStatusCommand.js +21 -28
  29. package/dist-es/commands/AdminUpdateUserAttributesCommand.js +21 -28
  30. package/dist-es/commands/AdminUserGlobalSignOutCommand.js +21 -28
  31. package/dist-es/commands/AssociateSoftwareTokenCommand.js +21 -28
  32. package/dist-es/commands/ChangePasswordCommand.js +21 -28
  33. package/dist-es/commands/ConfirmDeviceCommand.js +21 -28
  34. package/dist-es/commands/ConfirmForgotPasswordCommand.js +21 -28
  35. package/dist-es/commands/ConfirmSignUpCommand.js +21 -28
  36. package/dist-es/commands/CreateGroupCommand.js +21 -28
  37. package/dist-es/commands/CreateIdentityProviderCommand.js +21 -28
  38. package/dist-es/commands/CreateResourceServerCommand.js +21 -28
  39. package/dist-es/commands/CreateUserImportJobCommand.js +21 -28
  40. package/dist-es/commands/CreateUserPoolClientCommand.js +21 -28
  41. package/dist-es/commands/CreateUserPoolCommand.js +21 -28
  42. package/dist-es/commands/CreateUserPoolDomainCommand.js +21 -28
  43. package/dist-es/commands/DeleteGroupCommand.js +22 -29
  44. package/dist-es/commands/DeleteIdentityProviderCommand.js +22 -29
  45. package/dist-es/commands/DeleteResourceServerCommand.js +22 -29
  46. package/dist-es/commands/DeleteUserAttributesCommand.js +21 -28
  47. package/dist-es/commands/DeleteUserCommand.js +22 -29
  48. package/dist-es/commands/DeleteUserPoolClientCommand.js +22 -29
  49. package/dist-es/commands/DeleteUserPoolCommand.js +22 -29
  50. package/dist-es/commands/DeleteUserPoolDomainCommand.js +21 -28
  51. package/dist-es/commands/DescribeIdentityProviderCommand.js +21 -28
  52. package/dist-es/commands/DescribeResourceServerCommand.js +21 -28
  53. package/dist-es/commands/DescribeRiskConfigurationCommand.js +21 -28
  54. package/dist-es/commands/DescribeUserImportJobCommand.js +21 -28
  55. package/dist-es/commands/DescribeUserPoolClientCommand.js +21 -28
  56. package/dist-es/commands/DescribeUserPoolCommand.js +21 -28
  57. package/dist-es/commands/DescribeUserPoolDomainCommand.js +21 -28
  58. package/dist-es/commands/ForgetDeviceCommand.js +22 -29
  59. package/dist-es/commands/ForgotPasswordCommand.js +21 -28
  60. package/dist-es/commands/GetCSVHeaderCommand.js +21 -28
  61. package/dist-es/commands/GetDeviceCommand.js +21 -28
  62. package/dist-es/commands/GetGroupCommand.js +21 -28
  63. package/dist-es/commands/GetIdentityProviderByIdentifierCommand.js +21 -28
  64. package/dist-es/commands/GetSigningCertificateCommand.js +21 -28
  65. package/dist-es/commands/GetUICustomizationCommand.js +21 -28
  66. package/dist-es/commands/GetUserAttributeVerificationCodeCommand.js +21 -28
  67. package/dist-es/commands/GetUserCommand.js +21 -28
  68. package/dist-es/commands/GetUserPoolMfaConfigCommand.js +21 -28
  69. package/dist-es/commands/GlobalSignOutCommand.js +21 -28
  70. package/dist-es/commands/InitiateAuthCommand.js +21 -28
  71. package/dist-es/commands/ListDevicesCommand.js +21 -28
  72. package/dist-es/commands/ListGroupsCommand.js +21 -28
  73. package/dist-es/commands/ListIdentityProvidersCommand.js +21 -28
  74. package/dist-es/commands/ListResourceServersCommand.js +21 -28
  75. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  76. package/dist-es/commands/ListUserImportJobsCommand.js +21 -28
  77. package/dist-es/commands/ListUserPoolClientsCommand.js +21 -28
  78. package/dist-es/commands/ListUserPoolsCommand.js +21 -28
  79. package/dist-es/commands/ListUsersCommand.js +21 -28
  80. package/dist-es/commands/ListUsersInGroupCommand.js +21 -28
  81. package/dist-es/commands/ResendConfirmationCodeCommand.js +21 -28
  82. package/dist-es/commands/RespondToAuthChallengeCommand.js +21 -28
  83. package/dist-es/commands/RevokeTokenCommand.js +21 -28
  84. package/dist-es/commands/SetRiskConfigurationCommand.js +21 -28
  85. package/dist-es/commands/SetUICustomizationCommand.js +21 -28
  86. package/dist-es/commands/SetUserMFAPreferenceCommand.js +21 -28
  87. package/dist-es/commands/SetUserPoolMfaConfigCommand.js +21 -28
  88. package/dist-es/commands/SetUserSettingsCommand.js +21 -28
  89. package/dist-es/commands/SignUpCommand.js +21 -28
  90. package/dist-es/commands/StartUserImportJobCommand.js +21 -28
  91. package/dist-es/commands/StopUserImportJobCommand.js +21 -28
  92. package/dist-es/commands/TagResourceCommand.js +21 -28
  93. package/dist-es/commands/UntagResourceCommand.js +21 -28
  94. package/dist-es/commands/UpdateAuthEventFeedbackCommand.js +21 -28
  95. package/dist-es/commands/UpdateDeviceStatusCommand.js +21 -28
  96. package/dist-es/commands/UpdateGroupCommand.js +21 -28
  97. package/dist-es/commands/UpdateIdentityProviderCommand.js +21 -28
  98. package/dist-es/commands/UpdateResourceServerCommand.js +21 -28
  99. package/dist-es/commands/UpdateUserAttributesCommand.js +21 -28
  100. package/dist-es/commands/UpdateUserPoolClientCommand.js +21 -28
  101. package/dist-es/commands/UpdateUserPoolCommand.js +21 -28
  102. package/dist-es/commands/UpdateUserPoolDomainCommand.js +21 -28
  103. package/dist-es/commands/VerifySoftwareTokenCommand.js +21 -28
  104. package/dist-es/commands/VerifyUserAttributeCommand.js +21 -28
  105. package/dist-es/endpoints.js +8 -8
  106. package/dist-es/models/CognitoIdentityProviderServiceException.js +5 -10
  107. package/dist-es/models/models_0.js +1290 -732
  108. package/dist-es/models/models_1.js +115 -45
  109. package/dist-es/pagination/AdminListGroupsForUserPaginator.js +25 -68
  110. package/dist-es/pagination/AdminListUserAuthEventsPaginator.js +25 -68
  111. package/dist-es/pagination/ListGroupsPaginator.js +25 -68
  112. package/dist-es/pagination/ListIdentityProvidersPaginator.js +25 -68
  113. package/dist-es/pagination/ListResourceServersPaginator.js +25 -68
  114. package/dist-es/pagination/ListUserPoolClientsPaginator.js +25 -68
  115. package/dist-es/pagination/ListUserPoolsPaginator.js +25 -68
  116. package/dist-es/pagination/ListUsersInGroupPaginator.js +25 -68
  117. package/dist-es/pagination/ListUsersPaginator.js +25 -68
  118. package/dist-es/protocols/Aws_json1_1.js +8461 -10565
  119. package/dist-es/runtimeConfig.browser.js +26 -12
  120. package/dist-es/runtimeConfig.js +30 -12
  121. package/dist-es/runtimeConfig.native.js +8 -5
  122. package/dist-es/runtimeConfig.shared.js +8 -11
  123. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { CognitoIdentityProviderClient } from "./CognitoIdentityProviderClient";
3
2
  import { AddCustomAttributesCommand, } from "./commands/AddCustomAttributesCommand";
4
3
  import { AdminAddUserToGroupCommand, } from "./commands/AdminAddUserToGroupCommand";
@@ -101,1425 +100,1419 @@ import { UpdateUserPoolCommand, } from "./commands/UpdateUserPoolCommand";
101
100
  import { UpdateUserPoolDomainCommand, } from "./commands/UpdateUserPoolDomainCommand";
102
101
  import { VerifySoftwareTokenCommand, } from "./commands/VerifySoftwareTokenCommand";
103
102
  import { VerifyUserAttributeCommand, } from "./commands/VerifyUserAttributeCommand";
104
- var CognitoIdentityProvider = (function (_super) {
105
- __extends(CognitoIdentityProvider, _super);
106
- function CognitoIdentityProvider() {
107
- return _super !== null && _super.apply(this, arguments) || this;
108
- }
109
- CognitoIdentityProvider.prototype.addCustomAttributes = function (args, optionsOrCb, cb) {
110
- var command = new AddCustomAttributesCommand(args);
103
+ export class CognitoIdentityProvider extends CognitoIdentityProviderClient {
104
+ addCustomAttributes(args, optionsOrCb, cb) {
105
+ const command = new AddCustomAttributesCommand(args);
111
106
  if (typeof optionsOrCb === "function") {
112
107
  this.send(command, optionsOrCb);
113
108
  }
114
109
  else if (typeof cb === "function") {
115
110
  if (typeof optionsOrCb !== "object")
116
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
111
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
117
112
  this.send(command, optionsOrCb || {}, cb);
118
113
  }
119
114
  else {
120
115
  return this.send(command, optionsOrCb);
121
116
  }
122
- };
123
- CognitoIdentityProvider.prototype.adminAddUserToGroup = function (args, optionsOrCb, cb) {
124
- var command = new AdminAddUserToGroupCommand(args);
117
+ }
118
+ adminAddUserToGroup(args, optionsOrCb, cb) {
119
+ const command = new AdminAddUserToGroupCommand(args);
125
120
  if (typeof optionsOrCb === "function") {
126
121
  this.send(command, optionsOrCb);
127
122
  }
128
123
  else if (typeof cb === "function") {
129
124
  if (typeof optionsOrCb !== "object")
130
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
125
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
131
126
  this.send(command, optionsOrCb || {}, cb);
132
127
  }
133
128
  else {
134
129
  return this.send(command, optionsOrCb);
135
130
  }
136
- };
137
- CognitoIdentityProvider.prototype.adminConfirmSignUp = function (args, optionsOrCb, cb) {
138
- var command = new AdminConfirmSignUpCommand(args);
131
+ }
132
+ adminConfirmSignUp(args, optionsOrCb, cb) {
133
+ const command = new AdminConfirmSignUpCommand(args);
139
134
  if (typeof optionsOrCb === "function") {
140
135
  this.send(command, optionsOrCb);
141
136
  }
142
137
  else if (typeof cb === "function") {
143
138
  if (typeof optionsOrCb !== "object")
144
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
139
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
145
140
  this.send(command, optionsOrCb || {}, cb);
146
141
  }
147
142
  else {
148
143
  return this.send(command, optionsOrCb);
149
144
  }
150
- };
151
- CognitoIdentityProvider.prototype.adminCreateUser = function (args, optionsOrCb, cb) {
152
- var command = new AdminCreateUserCommand(args);
145
+ }
146
+ adminCreateUser(args, optionsOrCb, cb) {
147
+ const command = new AdminCreateUserCommand(args);
153
148
  if (typeof optionsOrCb === "function") {
154
149
  this.send(command, optionsOrCb);
155
150
  }
156
151
  else if (typeof cb === "function") {
157
152
  if (typeof optionsOrCb !== "object")
158
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
153
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
159
154
  this.send(command, optionsOrCb || {}, cb);
160
155
  }
161
156
  else {
162
157
  return this.send(command, optionsOrCb);
163
158
  }
164
- };
165
- CognitoIdentityProvider.prototype.adminDeleteUser = function (args, optionsOrCb, cb) {
166
- var command = new AdminDeleteUserCommand(args);
159
+ }
160
+ adminDeleteUser(args, optionsOrCb, cb) {
161
+ const command = new AdminDeleteUserCommand(args);
167
162
  if (typeof optionsOrCb === "function") {
168
163
  this.send(command, optionsOrCb);
169
164
  }
170
165
  else if (typeof cb === "function") {
171
166
  if (typeof optionsOrCb !== "object")
172
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
167
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
173
168
  this.send(command, optionsOrCb || {}, cb);
174
169
  }
175
170
  else {
176
171
  return this.send(command, optionsOrCb);
177
172
  }
178
- };
179
- CognitoIdentityProvider.prototype.adminDeleteUserAttributes = function (args, optionsOrCb, cb) {
180
- var command = new AdminDeleteUserAttributesCommand(args);
173
+ }
174
+ adminDeleteUserAttributes(args, optionsOrCb, cb) {
175
+ const command = new AdminDeleteUserAttributesCommand(args);
181
176
  if (typeof optionsOrCb === "function") {
182
177
  this.send(command, optionsOrCb);
183
178
  }
184
179
  else if (typeof cb === "function") {
185
180
  if (typeof optionsOrCb !== "object")
186
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
181
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
187
182
  this.send(command, optionsOrCb || {}, cb);
188
183
  }
189
184
  else {
190
185
  return this.send(command, optionsOrCb);
191
186
  }
192
- };
193
- CognitoIdentityProvider.prototype.adminDisableProviderForUser = function (args, optionsOrCb, cb) {
194
- var command = new AdminDisableProviderForUserCommand(args);
187
+ }
188
+ adminDisableProviderForUser(args, optionsOrCb, cb) {
189
+ const command = new AdminDisableProviderForUserCommand(args);
195
190
  if (typeof optionsOrCb === "function") {
196
191
  this.send(command, optionsOrCb);
197
192
  }
198
193
  else if (typeof cb === "function") {
199
194
  if (typeof optionsOrCb !== "object")
200
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
195
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
201
196
  this.send(command, optionsOrCb || {}, cb);
202
197
  }
203
198
  else {
204
199
  return this.send(command, optionsOrCb);
205
200
  }
206
- };
207
- CognitoIdentityProvider.prototype.adminDisableUser = function (args, optionsOrCb, cb) {
208
- var command = new AdminDisableUserCommand(args);
201
+ }
202
+ adminDisableUser(args, optionsOrCb, cb) {
203
+ const command = new AdminDisableUserCommand(args);
209
204
  if (typeof optionsOrCb === "function") {
210
205
  this.send(command, optionsOrCb);
211
206
  }
212
207
  else if (typeof cb === "function") {
213
208
  if (typeof optionsOrCb !== "object")
214
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
209
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
215
210
  this.send(command, optionsOrCb || {}, cb);
216
211
  }
217
212
  else {
218
213
  return this.send(command, optionsOrCb);
219
214
  }
220
- };
221
- CognitoIdentityProvider.prototype.adminEnableUser = function (args, optionsOrCb, cb) {
222
- var command = new AdminEnableUserCommand(args);
215
+ }
216
+ adminEnableUser(args, optionsOrCb, cb) {
217
+ const command = new AdminEnableUserCommand(args);
223
218
  if (typeof optionsOrCb === "function") {
224
219
  this.send(command, optionsOrCb);
225
220
  }
226
221
  else if (typeof cb === "function") {
227
222
  if (typeof optionsOrCb !== "object")
228
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
223
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
229
224
  this.send(command, optionsOrCb || {}, cb);
230
225
  }
231
226
  else {
232
227
  return this.send(command, optionsOrCb);
233
228
  }
234
- };
235
- CognitoIdentityProvider.prototype.adminForgetDevice = function (args, optionsOrCb, cb) {
236
- var command = new AdminForgetDeviceCommand(args);
229
+ }
230
+ adminForgetDevice(args, optionsOrCb, cb) {
231
+ const command = new AdminForgetDeviceCommand(args);
237
232
  if (typeof optionsOrCb === "function") {
238
233
  this.send(command, optionsOrCb);
239
234
  }
240
235
  else if (typeof cb === "function") {
241
236
  if (typeof optionsOrCb !== "object")
242
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
237
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
243
238
  this.send(command, optionsOrCb || {}, cb);
244
239
  }
245
240
  else {
246
241
  return this.send(command, optionsOrCb);
247
242
  }
248
- };
249
- CognitoIdentityProvider.prototype.adminGetDevice = function (args, optionsOrCb, cb) {
250
- var command = new AdminGetDeviceCommand(args);
243
+ }
244
+ adminGetDevice(args, optionsOrCb, cb) {
245
+ const command = new AdminGetDeviceCommand(args);
251
246
  if (typeof optionsOrCb === "function") {
252
247
  this.send(command, optionsOrCb);
253
248
  }
254
249
  else if (typeof cb === "function") {
255
250
  if (typeof optionsOrCb !== "object")
256
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
251
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
257
252
  this.send(command, optionsOrCb || {}, cb);
258
253
  }
259
254
  else {
260
255
  return this.send(command, optionsOrCb);
261
256
  }
262
- };
263
- CognitoIdentityProvider.prototype.adminGetUser = function (args, optionsOrCb, cb) {
264
- var command = new AdminGetUserCommand(args);
257
+ }
258
+ adminGetUser(args, optionsOrCb, cb) {
259
+ const command = new AdminGetUserCommand(args);
265
260
  if (typeof optionsOrCb === "function") {
266
261
  this.send(command, optionsOrCb);
267
262
  }
268
263
  else if (typeof cb === "function") {
269
264
  if (typeof optionsOrCb !== "object")
270
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
265
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
271
266
  this.send(command, optionsOrCb || {}, cb);
272
267
  }
273
268
  else {
274
269
  return this.send(command, optionsOrCb);
275
270
  }
276
- };
277
- CognitoIdentityProvider.prototype.adminInitiateAuth = function (args, optionsOrCb, cb) {
278
- var command = new AdminInitiateAuthCommand(args);
271
+ }
272
+ adminInitiateAuth(args, optionsOrCb, cb) {
273
+ const command = new AdminInitiateAuthCommand(args);
279
274
  if (typeof optionsOrCb === "function") {
280
275
  this.send(command, optionsOrCb);
281
276
  }
282
277
  else if (typeof cb === "function") {
283
278
  if (typeof optionsOrCb !== "object")
284
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
279
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
285
280
  this.send(command, optionsOrCb || {}, cb);
286
281
  }
287
282
  else {
288
283
  return this.send(command, optionsOrCb);
289
284
  }
290
- };
291
- CognitoIdentityProvider.prototype.adminLinkProviderForUser = function (args, optionsOrCb, cb) {
292
- var command = new AdminLinkProviderForUserCommand(args);
285
+ }
286
+ adminLinkProviderForUser(args, optionsOrCb, cb) {
287
+ const command = new AdminLinkProviderForUserCommand(args);
293
288
  if (typeof optionsOrCb === "function") {
294
289
  this.send(command, optionsOrCb);
295
290
  }
296
291
  else if (typeof cb === "function") {
297
292
  if (typeof optionsOrCb !== "object")
298
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
293
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
299
294
  this.send(command, optionsOrCb || {}, cb);
300
295
  }
301
296
  else {
302
297
  return this.send(command, optionsOrCb);
303
298
  }
304
- };
305
- CognitoIdentityProvider.prototype.adminListDevices = function (args, optionsOrCb, cb) {
306
- var command = new AdminListDevicesCommand(args);
299
+ }
300
+ adminListDevices(args, optionsOrCb, cb) {
301
+ const command = new AdminListDevicesCommand(args);
307
302
  if (typeof optionsOrCb === "function") {
308
303
  this.send(command, optionsOrCb);
309
304
  }
310
305
  else if (typeof cb === "function") {
311
306
  if (typeof optionsOrCb !== "object")
312
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
307
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
313
308
  this.send(command, optionsOrCb || {}, cb);
314
309
  }
315
310
  else {
316
311
  return this.send(command, optionsOrCb);
317
312
  }
318
- };
319
- CognitoIdentityProvider.prototype.adminListGroupsForUser = function (args, optionsOrCb, cb) {
320
- var command = new AdminListGroupsForUserCommand(args);
313
+ }
314
+ adminListGroupsForUser(args, optionsOrCb, cb) {
315
+ const command = new AdminListGroupsForUserCommand(args);
321
316
  if (typeof optionsOrCb === "function") {
322
317
  this.send(command, optionsOrCb);
323
318
  }
324
319
  else if (typeof cb === "function") {
325
320
  if (typeof optionsOrCb !== "object")
326
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
321
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
327
322
  this.send(command, optionsOrCb || {}, cb);
328
323
  }
329
324
  else {
330
325
  return this.send(command, optionsOrCb);
331
326
  }
332
- };
333
- CognitoIdentityProvider.prototype.adminListUserAuthEvents = function (args, optionsOrCb, cb) {
334
- var command = new AdminListUserAuthEventsCommand(args);
327
+ }
328
+ adminListUserAuthEvents(args, optionsOrCb, cb) {
329
+ const command = new AdminListUserAuthEventsCommand(args);
335
330
  if (typeof optionsOrCb === "function") {
336
331
  this.send(command, optionsOrCb);
337
332
  }
338
333
  else if (typeof cb === "function") {
339
334
  if (typeof optionsOrCb !== "object")
340
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
335
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
341
336
  this.send(command, optionsOrCb || {}, cb);
342
337
  }
343
338
  else {
344
339
  return this.send(command, optionsOrCb);
345
340
  }
346
- };
347
- CognitoIdentityProvider.prototype.adminRemoveUserFromGroup = function (args, optionsOrCb, cb) {
348
- var command = new AdminRemoveUserFromGroupCommand(args);
341
+ }
342
+ adminRemoveUserFromGroup(args, optionsOrCb, cb) {
343
+ const command = new AdminRemoveUserFromGroupCommand(args);
349
344
  if (typeof optionsOrCb === "function") {
350
345
  this.send(command, optionsOrCb);
351
346
  }
352
347
  else if (typeof cb === "function") {
353
348
  if (typeof optionsOrCb !== "object")
354
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
349
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
355
350
  this.send(command, optionsOrCb || {}, cb);
356
351
  }
357
352
  else {
358
353
  return this.send(command, optionsOrCb);
359
354
  }
360
- };
361
- CognitoIdentityProvider.prototype.adminResetUserPassword = function (args, optionsOrCb, cb) {
362
- var command = new AdminResetUserPasswordCommand(args);
355
+ }
356
+ adminResetUserPassword(args, optionsOrCb, cb) {
357
+ const command = new AdminResetUserPasswordCommand(args);
363
358
  if (typeof optionsOrCb === "function") {
364
359
  this.send(command, optionsOrCb);
365
360
  }
366
361
  else if (typeof cb === "function") {
367
362
  if (typeof optionsOrCb !== "object")
368
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
363
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
369
364
  this.send(command, optionsOrCb || {}, cb);
370
365
  }
371
366
  else {
372
367
  return this.send(command, optionsOrCb);
373
368
  }
374
- };
375
- CognitoIdentityProvider.prototype.adminRespondToAuthChallenge = function (args, optionsOrCb, cb) {
376
- var command = new AdminRespondToAuthChallengeCommand(args);
369
+ }
370
+ adminRespondToAuthChallenge(args, optionsOrCb, cb) {
371
+ const command = new AdminRespondToAuthChallengeCommand(args);
377
372
  if (typeof optionsOrCb === "function") {
378
373
  this.send(command, optionsOrCb);
379
374
  }
380
375
  else if (typeof cb === "function") {
381
376
  if (typeof optionsOrCb !== "object")
382
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
377
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
383
378
  this.send(command, optionsOrCb || {}, cb);
384
379
  }
385
380
  else {
386
381
  return this.send(command, optionsOrCb);
387
382
  }
388
- };
389
- CognitoIdentityProvider.prototype.adminSetUserMFAPreference = function (args, optionsOrCb, cb) {
390
- var command = new AdminSetUserMFAPreferenceCommand(args);
383
+ }
384
+ adminSetUserMFAPreference(args, optionsOrCb, cb) {
385
+ const command = new AdminSetUserMFAPreferenceCommand(args);
391
386
  if (typeof optionsOrCb === "function") {
392
387
  this.send(command, optionsOrCb);
393
388
  }
394
389
  else if (typeof cb === "function") {
395
390
  if (typeof optionsOrCb !== "object")
396
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
391
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
397
392
  this.send(command, optionsOrCb || {}, cb);
398
393
  }
399
394
  else {
400
395
  return this.send(command, optionsOrCb);
401
396
  }
402
- };
403
- CognitoIdentityProvider.prototype.adminSetUserPassword = function (args, optionsOrCb, cb) {
404
- var command = new AdminSetUserPasswordCommand(args);
397
+ }
398
+ adminSetUserPassword(args, optionsOrCb, cb) {
399
+ const command = new AdminSetUserPasswordCommand(args);
405
400
  if (typeof optionsOrCb === "function") {
406
401
  this.send(command, optionsOrCb);
407
402
  }
408
403
  else if (typeof cb === "function") {
409
404
  if (typeof optionsOrCb !== "object")
410
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
405
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
411
406
  this.send(command, optionsOrCb || {}, cb);
412
407
  }
413
408
  else {
414
409
  return this.send(command, optionsOrCb);
415
410
  }
416
- };
417
- CognitoIdentityProvider.prototype.adminSetUserSettings = function (args, optionsOrCb, cb) {
418
- var command = new AdminSetUserSettingsCommand(args);
411
+ }
412
+ adminSetUserSettings(args, optionsOrCb, cb) {
413
+ const command = new AdminSetUserSettingsCommand(args);
419
414
  if (typeof optionsOrCb === "function") {
420
415
  this.send(command, optionsOrCb);
421
416
  }
422
417
  else if (typeof cb === "function") {
423
418
  if (typeof optionsOrCb !== "object")
424
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
419
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
425
420
  this.send(command, optionsOrCb || {}, cb);
426
421
  }
427
422
  else {
428
423
  return this.send(command, optionsOrCb);
429
424
  }
430
- };
431
- CognitoIdentityProvider.prototype.adminUpdateAuthEventFeedback = function (args, optionsOrCb, cb) {
432
- var command = new AdminUpdateAuthEventFeedbackCommand(args);
425
+ }
426
+ adminUpdateAuthEventFeedback(args, optionsOrCb, cb) {
427
+ const command = new AdminUpdateAuthEventFeedbackCommand(args);
433
428
  if (typeof optionsOrCb === "function") {
434
429
  this.send(command, optionsOrCb);
435
430
  }
436
431
  else if (typeof cb === "function") {
437
432
  if (typeof optionsOrCb !== "object")
438
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
433
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
439
434
  this.send(command, optionsOrCb || {}, cb);
440
435
  }
441
436
  else {
442
437
  return this.send(command, optionsOrCb);
443
438
  }
444
- };
445
- CognitoIdentityProvider.prototype.adminUpdateDeviceStatus = function (args, optionsOrCb, cb) {
446
- var command = new AdminUpdateDeviceStatusCommand(args);
439
+ }
440
+ adminUpdateDeviceStatus(args, optionsOrCb, cb) {
441
+ const command = new AdminUpdateDeviceStatusCommand(args);
447
442
  if (typeof optionsOrCb === "function") {
448
443
  this.send(command, optionsOrCb);
449
444
  }
450
445
  else if (typeof cb === "function") {
451
446
  if (typeof optionsOrCb !== "object")
452
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
447
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
453
448
  this.send(command, optionsOrCb || {}, cb);
454
449
  }
455
450
  else {
456
451
  return this.send(command, optionsOrCb);
457
452
  }
458
- };
459
- CognitoIdentityProvider.prototype.adminUpdateUserAttributes = function (args, optionsOrCb, cb) {
460
- var command = new AdminUpdateUserAttributesCommand(args);
453
+ }
454
+ adminUpdateUserAttributes(args, optionsOrCb, cb) {
455
+ const command = new AdminUpdateUserAttributesCommand(args);
461
456
  if (typeof optionsOrCb === "function") {
462
457
  this.send(command, optionsOrCb);
463
458
  }
464
459
  else if (typeof cb === "function") {
465
460
  if (typeof optionsOrCb !== "object")
466
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
461
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
467
462
  this.send(command, optionsOrCb || {}, cb);
468
463
  }
469
464
  else {
470
465
  return this.send(command, optionsOrCb);
471
466
  }
472
- };
473
- CognitoIdentityProvider.prototype.adminUserGlobalSignOut = function (args, optionsOrCb, cb) {
474
- var command = new AdminUserGlobalSignOutCommand(args);
467
+ }
468
+ adminUserGlobalSignOut(args, optionsOrCb, cb) {
469
+ const command = new AdminUserGlobalSignOutCommand(args);
475
470
  if (typeof optionsOrCb === "function") {
476
471
  this.send(command, optionsOrCb);
477
472
  }
478
473
  else if (typeof cb === "function") {
479
474
  if (typeof optionsOrCb !== "object")
480
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
475
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
481
476
  this.send(command, optionsOrCb || {}, cb);
482
477
  }
483
478
  else {
484
479
  return this.send(command, optionsOrCb);
485
480
  }
486
- };
487
- CognitoIdentityProvider.prototype.associateSoftwareToken = function (args, optionsOrCb, cb) {
488
- var command = new AssociateSoftwareTokenCommand(args);
481
+ }
482
+ associateSoftwareToken(args, optionsOrCb, cb) {
483
+ const command = new AssociateSoftwareTokenCommand(args);
489
484
  if (typeof optionsOrCb === "function") {
490
485
  this.send(command, optionsOrCb);
491
486
  }
492
487
  else if (typeof cb === "function") {
493
488
  if (typeof optionsOrCb !== "object")
494
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
489
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
495
490
  this.send(command, optionsOrCb || {}, cb);
496
491
  }
497
492
  else {
498
493
  return this.send(command, optionsOrCb);
499
494
  }
500
- };
501
- CognitoIdentityProvider.prototype.changePassword = function (args, optionsOrCb, cb) {
502
- var command = new ChangePasswordCommand(args);
495
+ }
496
+ changePassword(args, optionsOrCb, cb) {
497
+ const command = new ChangePasswordCommand(args);
503
498
  if (typeof optionsOrCb === "function") {
504
499
  this.send(command, optionsOrCb);
505
500
  }
506
501
  else if (typeof cb === "function") {
507
502
  if (typeof optionsOrCb !== "object")
508
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
503
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
509
504
  this.send(command, optionsOrCb || {}, cb);
510
505
  }
511
506
  else {
512
507
  return this.send(command, optionsOrCb);
513
508
  }
514
- };
515
- CognitoIdentityProvider.prototype.confirmDevice = function (args, optionsOrCb, cb) {
516
- var command = new ConfirmDeviceCommand(args);
509
+ }
510
+ confirmDevice(args, optionsOrCb, cb) {
511
+ const command = new ConfirmDeviceCommand(args);
517
512
  if (typeof optionsOrCb === "function") {
518
513
  this.send(command, optionsOrCb);
519
514
  }
520
515
  else if (typeof cb === "function") {
521
516
  if (typeof optionsOrCb !== "object")
522
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
517
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
523
518
  this.send(command, optionsOrCb || {}, cb);
524
519
  }
525
520
  else {
526
521
  return this.send(command, optionsOrCb);
527
522
  }
528
- };
529
- CognitoIdentityProvider.prototype.confirmForgotPassword = function (args, optionsOrCb, cb) {
530
- var command = new ConfirmForgotPasswordCommand(args);
523
+ }
524
+ confirmForgotPassword(args, optionsOrCb, cb) {
525
+ const command = new ConfirmForgotPasswordCommand(args);
531
526
  if (typeof optionsOrCb === "function") {
532
527
  this.send(command, optionsOrCb);
533
528
  }
534
529
  else if (typeof cb === "function") {
535
530
  if (typeof optionsOrCb !== "object")
536
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
531
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
537
532
  this.send(command, optionsOrCb || {}, cb);
538
533
  }
539
534
  else {
540
535
  return this.send(command, optionsOrCb);
541
536
  }
542
- };
543
- CognitoIdentityProvider.prototype.confirmSignUp = function (args, optionsOrCb, cb) {
544
- var command = new ConfirmSignUpCommand(args);
537
+ }
538
+ confirmSignUp(args, optionsOrCb, cb) {
539
+ const command = new ConfirmSignUpCommand(args);
545
540
  if (typeof optionsOrCb === "function") {
546
541
  this.send(command, optionsOrCb);
547
542
  }
548
543
  else if (typeof cb === "function") {
549
544
  if (typeof optionsOrCb !== "object")
550
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
545
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
551
546
  this.send(command, optionsOrCb || {}, cb);
552
547
  }
553
548
  else {
554
549
  return this.send(command, optionsOrCb);
555
550
  }
556
- };
557
- CognitoIdentityProvider.prototype.createGroup = function (args, optionsOrCb, cb) {
558
- var command = new CreateGroupCommand(args);
551
+ }
552
+ createGroup(args, optionsOrCb, cb) {
553
+ const command = new CreateGroupCommand(args);
559
554
  if (typeof optionsOrCb === "function") {
560
555
  this.send(command, optionsOrCb);
561
556
  }
562
557
  else if (typeof cb === "function") {
563
558
  if (typeof optionsOrCb !== "object")
564
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
559
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
565
560
  this.send(command, optionsOrCb || {}, cb);
566
561
  }
567
562
  else {
568
563
  return this.send(command, optionsOrCb);
569
564
  }
570
- };
571
- CognitoIdentityProvider.prototype.createIdentityProvider = function (args, optionsOrCb, cb) {
572
- var command = new CreateIdentityProviderCommand(args);
565
+ }
566
+ createIdentityProvider(args, optionsOrCb, cb) {
567
+ const command = new CreateIdentityProviderCommand(args);
573
568
  if (typeof optionsOrCb === "function") {
574
569
  this.send(command, optionsOrCb);
575
570
  }
576
571
  else if (typeof cb === "function") {
577
572
  if (typeof optionsOrCb !== "object")
578
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
573
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
579
574
  this.send(command, optionsOrCb || {}, cb);
580
575
  }
581
576
  else {
582
577
  return this.send(command, optionsOrCb);
583
578
  }
584
- };
585
- CognitoIdentityProvider.prototype.createResourceServer = function (args, optionsOrCb, cb) {
586
- var command = new CreateResourceServerCommand(args);
579
+ }
580
+ createResourceServer(args, optionsOrCb, cb) {
581
+ const command = new CreateResourceServerCommand(args);
587
582
  if (typeof optionsOrCb === "function") {
588
583
  this.send(command, optionsOrCb);
589
584
  }
590
585
  else if (typeof cb === "function") {
591
586
  if (typeof optionsOrCb !== "object")
592
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
587
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
593
588
  this.send(command, optionsOrCb || {}, cb);
594
589
  }
595
590
  else {
596
591
  return this.send(command, optionsOrCb);
597
592
  }
598
- };
599
- CognitoIdentityProvider.prototype.createUserImportJob = function (args, optionsOrCb, cb) {
600
- var command = new CreateUserImportJobCommand(args);
593
+ }
594
+ createUserImportJob(args, optionsOrCb, cb) {
595
+ const command = new CreateUserImportJobCommand(args);
601
596
  if (typeof optionsOrCb === "function") {
602
597
  this.send(command, optionsOrCb);
603
598
  }
604
599
  else if (typeof cb === "function") {
605
600
  if (typeof optionsOrCb !== "object")
606
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
601
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
607
602
  this.send(command, optionsOrCb || {}, cb);
608
603
  }
609
604
  else {
610
605
  return this.send(command, optionsOrCb);
611
606
  }
612
- };
613
- CognitoIdentityProvider.prototype.createUserPool = function (args, optionsOrCb, cb) {
614
- var command = new CreateUserPoolCommand(args);
607
+ }
608
+ createUserPool(args, optionsOrCb, cb) {
609
+ const command = new CreateUserPoolCommand(args);
615
610
  if (typeof optionsOrCb === "function") {
616
611
  this.send(command, optionsOrCb);
617
612
  }
618
613
  else if (typeof cb === "function") {
619
614
  if (typeof optionsOrCb !== "object")
620
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
615
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
621
616
  this.send(command, optionsOrCb || {}, cb);
622
617
  }
623
618
  else {
624
619
  return this.send(command, optionsOrCb);
625
620
  }
626
- };
627
- CognitoIdentityProvider.prototype.createUserPoolClient = function (args, optionsOrCb, cb) {
628
- var command = new CreateUserPoolClientCommand(args);
621
+ }
622
+ createUserPoolClient(args, optionsOrCb, cb) {
623
+ const command = new CreateUserPoolClientCommand(args);
629
624
  if (typeof optionsOrCb === "function") {
630
625
  this.send(command, optionsOrCb);
631
626
  }
632
627
  else if (typeof cb === "function") {
633
628
  if (typeof optionsOrCb !== "object")
634
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
629
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
635
630
  this.send(command, optionsOrCb || {}, cb);
636
631
  }
637
632
  else {
638
633
  return this.send(command, optionsOrCb);
639
634
  }
640
- };
641
- CognitoIdentityProvider.prototype.createUserPoolDomain = function (args, optionsOrCb, cb) {
642
- var command = new CreateUserPoolDomainCommand(args);
635
+ }
636
+ createUserPoolDomain(args, optionsOrCb, cb) {
637
+ const command = new CreateUserPoolDomainCommand(args);
643
638
  if (typeof optionsOrCb === "function") {
644
639
  this.send(command, optionsOrCb);
645
640
  }
646
641
  else if (typeof cb === "function") {
647
642
  if (typeof optionsOrCb !== "object")
648
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
643
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
649
644
  this.send(command, optionsOrCb || {}, cb);
650
645
  }
651
646
  else {
652
647
  return this.send(command, optionsOrCb);
653
648
  }
654
- };
655
- CognitoIdentityProvider.prototype.deleteGroup = function (args, optionsOrCb, cb) {
656
- var command = new DeleteGroupCommand(args);
649
+ }
650
+ deleteGroup(args, optionsOrCb, cb) {
651
+ const command = new DeleteGroupCommand(args);
657
652
  if (typeof optionsOrCb === "function") {
658
653
  this.send(command, optionsOrCb);
659
654
  }
660
655
  else if (typeof cb === "function") {
661
656
  if (typeof optionsOrCb !== "object")
662
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
657
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
663
658
  this.send(command, optionsOrCb || {}, cb);
664
659
  }
665
660
  else {
666
661
  return this.send(command, optionsOrCb);
667
662
  }
668
- };
669
- CognitoIdentityProvider.prototype.deleteIdentityProvider = function (args, optionsOrCb, cb) {
670
- var command = new DeleteIdentityProviderCommand(args);
663
+ }
664
+ deleteIdentityProvider(args, optionsOrCb, cb) {
665
+ const command = new DeleteIdentityProviderCommand(args);
671
666
  if (typeof optionsOrCb === "function") {
672
667
  this.send(command, optionsOrCb);
673
668
  }
674
669
  else if (typeof cb === "function") {
675
670
  if (typeof optionsOrCb !== "object")
676
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
671
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
677
672
  this.send(command, optionsOrCb || {}, cb);
678
673
  }
679
674
  else {
680
675
  return this.send(command, optionsOrCb);
681
676
  }
682
- };
683
- CognitoIdentityProvider.prototype.deleteResourceServer = function (args, optionsOrCb, cb) {
684
- var command = new DeleteResourceServerCommand(args);
677
+ }
678
+ deleteResourceServer(args, optionsOrCb, cb) {
679
+ const command = new DeleteResourceServerCommand(args);
685
680
  if (typeof optionsOrCb === "function") {
686
681
  this.send(command, optionsOrCb);
687
682
  }
688
683
  else if (typeof cb === "function") {
689
684
  if (typeof optionsOrCb !== "object")
690
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
685
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
691
686
  this.send(command, optionsOrCb || {}, cb);
692
687
  }
693
688
  else {
694
689
  return this.send(command, optionsOrCb);
695
690
  }
696
- };
697
- CognitoIdentityProvider.prototype.deleteUser = function (args, optionsOrCb, cb) {
698
- var command = new DeleteUserCommand(args);
691
+ }
692
+ deleteUser(args, optionsOrCb, cb) {
693
+ const command = new DeleteUserCommand(args);
699
694
  if (typeof optionsOrCb === "function") {
700
695
  this.send(command, optionsOrCb);
701
696
  }
702
697
  else if (typeof cb === "function") {
703
698
  if (typeof optionsOrCb !== "object")
704
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
699
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
705
700
  this.send(command, optionsOrCb || {}, cb);
706
701
  }
707
702
  else {
708
703
  return this.send(command, optionsOrCb);
709
704
  }
710
- };
711
- CognitoIdentityProvider.prototype.deleteUserAttributes = function (args, optionsOrCb, cb) {
712
- var command = new DeleteUserAttributesCommand(args);
705
+ }
706
+ deleteUserAttributes(args, optionsOrCb, cb) {
707
+ const command = new DeleteUserAttributesCommand(args);
713
708
  if (typeof optionsOrCb === "function") {
714
709
  this.send(command, optionsOrCb);
715
710
  }
716
711
  else if (typeof cb === "function") {
717
712
  if (typeof optionsOrCb !== "object")
718
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
713
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
719
714
  this.send(command, optionsOrCb || {}, cb);
720
715
  }
721
716
  else {
722
717
  return this.send(command, optionsOrCb);
723
718
  }
724
- };
725
- CognitoIdentityProvider.prototype.deleteUserPool = function (args, optionsOrCb, cb) {
726
- var command = new DeleteUserPoolCommand(args);
719
+ }
720
+ deleteUserPool(args, optionsOrCb, cb) {
721
+ const command = new DeleteUserPoolCommand(args);
727
722
  if (typeof optionsOrCb === "function") {
728
723
  this.send(command, optionsOrCb);
729
724
  }
730
725
  else if (typeof cb === "function") {
731
726
  if (typeof optionsOrCb !== "object")
732
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
727
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
733
728
  this.send(command, optionsOrCb || {}, cb);
734
729
  }
735
730
  else {
736
731
  return this.send(command, optionsOrCb);
737
732
  }
738
- };
739
- CognitoIdentityProvider.prototype.deleteUserPoolClient = function (args, optionsOrCb, cb) {
740
- var command = new DeleteUserPoolClientCommand(args);
733
+ }
734
+ deleteUserPoolClient(args, optionsOrCb, cb) {
735
+ const command = new DeleteUserPoolClientCommand(args);
741
736
  if (typeof optionsOrCb === "function") {
742
737
  this.send(command, optionsOrCb);
743
738
  }
744
739
  else if (typeof cb === "function") {
745
740
  if (typeof optionsOrCb !== "object")
746
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
741
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
747
742
  this.send(command, optionsOrCb || {}, cb);
748
743
  }
749
744
  else {
750
745
  return this.send(command, optionsOrCb);
751
746
  }
752
- };
753
- CognitoIdentityProvider.prototype.deleteUserPoolDomain = function (args, optionsOrCb, cb) {
754
- var command = new DeleteUserPoolDomainCommand(args);
747
+ }
748
+ deleteUserPoolDomain(args, optionsOrCb, cb) {
749
+ const command = new DeleteUserPoolDomainCommand(args);
755
750
  if (typeof optionsOrCb === "function") {
756
751
  this.send(command, optionsOrCb);
757
752
  }
758
753
  else if (typeof cb === "function") {
759
754
  if (typeof optionsOrCb !== "object")
760
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
755
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
761
756
  this.send(command, optionsOrCb || {}, cb);
762
757
  }
763
758
  else {
764
759
  return this.send(command, optionsOrCb);
765
760
  }
766
- };
767
- CognitoIdentityProvider.prototype.describeIdentityProvider = function (args, optionsOrCb, cb) {
768
- var command = new DescribeIdentityProviderCommand(args);
761
+ }
762
+ describeIdentityProvider(args, optionsOrCb, cb) {
763
+ const command = new DescribeIdentityProviderCommand(args);
769
764
  if (typeof optionsOrCb === "function") {
770
765
  this.send(command, optionsOrCb);
771
766
  }
772
767
  else if (typeof cb === "function") {
773
768
  if (typeof optionsOrCb !== "object")
774
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
769
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
775
770
  this.send(command, optionsOrCb || {}, cb);
776
771
  }
777
772
  else {
778
773
  return this.send(command, optionsOrCb);
779
774
  }
780
- };
781
- CognitoIdentityProvider.prototype.describeResourceServer = function (args, optionsOrCb, cb) {
782
- var command = new DescribeResourceServerCommand(args);
775
+ }
776
+ describeResourceServer(args, optionsOrCb, cb) {
777
+ const command = new DescribeResourceServerCommand(args);
783
778
  if (typeof optionsOrCb === "function") {
784
779
  this.send(command, optionsOrCb);
785
780
  }
786
781
  else if (typeof cb === "function") {
787
782
  if (typeof optionsOrCb !== "object")
788
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
783
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
789
784
  this.send(command, optionsOrCb || {}, cb);
790
785
  }
791
786
  else {
792
787
  return this.send(command, optionsOrCb);
793
788
  }
794
- };
795
- CognitoIdentityProvider.prototype.describeRiskConfiguration = function (args, optionsOrCb, cb) {
796
- var command = new DescribeRiskConfigurationCommand(args);
789
+ }
790
+ describeRiskConfiguration(args, optionsOrCb, cb) {
791
+ const command = new DescribeRiskConfigurationCommand(args);
797
792
  if (typeof optionsOrCb === "function") {
798
793
  this.send(command, optionsOrCb);
799
794
  }
800
795
  else if (typeof cb === "function") {
801
796
  if (typeof optionsOrCb !== "object")
802
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
797
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
803
798
  this.send(command, optionsOrCb || {}, cb);
804
799
  }
805
800
  else {
806
801
  return this.send(command, optionsOrCb);
807
802
  }
808
- };
809
- CognitoIdentityProvider.prototype.describeUserImportJob = function (args, optionsOrCb, cb) {
810
- var command = new DescribeUserImportJobCommand(args);
803
+ }
804
+ describeUserImportJob(args, optionsOrCb, cb) {
805
+ const command = new DescribeUserImportJobCommand(args);
811
806
  if (typeof optionsOrCb === "function") {
812
807
  this.send(command, optionsOrCb);
813
808
  }
814
809
  else if (typeof cb === "function") {
815
810
  if (typeof optionsOrCb !== "object")
816
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
811
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
817
812
  this.send(command, optionsOrCb || {}, cb);
818
813
  }
819
814
  else {
820
815
  return this.send(command, optionsOrCb);
821
816
  }
822
- };
823
- CognitoIdentityProvider.prototype.describeUserPool = function (args, optionsOrCb, cb) {
824
- var command = new DescribeUserPoolCommand(args);
817
+ }
818
+ describeUserPool(args, optionsOrCb, cb) {
819
+ const command = new DescribeUserPoolCommand(args);
825
820
  if (typeof optionsOrCb === "function") {
826
821
  this.send(command, optionsOrCb);
827
822
  }
828
823
  else if (typeof cb === "function") {
829
824
  if (typeof optionsOrCb !== "object")
830
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
825
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
831
826
  this.send(command, optionsOrCb || {}, cb);
832
827
  }
833
828
  else {
834
829
  return this.send(command, optionsOrCb);
835
830
  }
836
- };
837
- CognitoIdentityProvider.prototype.describeUserPoolClient = function (args, optionsOrCb, cb) {
838
- var command = new DescribeUserPoolClientCommand(args);
831
+ }
832
+ describeUserPoolClient(args, optionsOrCb, cb) {
833
+ const command = new DescribeUserPoolClientCommand(args);
839
834
  if (typeof optionsOrCb === "function") {
840
835
  this.send(command, optionsOrCb);
841
836
  }
842
837
  else if (typeof cb === "function") {
843
838
  if (typeof optionsOrCb !== "object")
844
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
839
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
845
840
  this.send(command, optionsOrCb || {}, cb);
846
841
  }
847
842
  else {
848
843
  return this.send(command, optionsOrCb);
849
844
  }
850
- };
851
- CognitoIdentityProvider.prototype.describeUserPoolDomain = function (args, optionsOrCb, cb) {
852
- var command = new DescribeUserPoolDomainCommand(args);
845
+ }
846
+ describeUserPoolDomain(args, optionsOrCb, cb) {
847
+ const command = new DescribeUserPoolDomainCommand(args);
853
848
  if (typeof optionsOrCb === "function") {
854
849
  this.send(command, optionsOrCb);
855
850
  }
856
851
  else if (typeof cb === "function") {
857
852
  if (typeof optionsOrCb !== "object")
858
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
853
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
859
854
  this.send(command, optionsOrCb || {}, cb);
860
855
  }
861
856
  else {
862
857
  return this.send(command, optionsOrCb);
863
858
  }
864
- };
865
- CognitoIdentityProvider.prototype.forgetDevice = function (args, optionsOrCb, cb) {
866
- var command = new ForgetDeviceCommand(args);
859
+ }
860
+ forgetDevice(args, optionsOrCb, cb) {
861
+ const command = new ForgetDeviceCommand(args);
867
862
  if (typeof optionsOrCb === "function") {
868
863
  this.send(command, optionsOrCb);
869
864
  }
870
865
  else if (typeof cb === "function") {
871
866
  if (typeof optionsOrCb !== "object")
872
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
867
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
873
868
  this.send(command, optionsOrCb || {}, cb);
874
869
  }
875
870
  else {
876
871
  return this.send(command, optionsOrCb);
877
872
  }
878
- };
879
- CognitoIdentityProvider.prototype.forgotPassword = function (args, optionsOrCb, cb) {
880
- var command = new ForgotPasswordCommand(args);
873
+ }
874
+ forgotPassword(args, optionsOrCb, cb) {
875
+ const command = new ForgotPasswordCommand(args);
881
876
  if (typeof optionsOrCb === "function") {
882
877
  this.send(command, optionsOrCb);
883
878
  }
884
879
  else if (typeof cb === "function") {
885
880
  if (typeof optionsOrCb !== "object")
886
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
881
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
887
882
  this.send(command, optionsOrCb || {}, cb);
888
883
  }
889
884
  else {
890
885
  return this.send(command, optionsOrCb);
891
886
  }
892
- };
893
- CognitoIdentityProvider.prototype.getCSVHeader = function (args, optionsOrCb, cb) {
894
- var command = new GetCSVHeaderCommand(args);
887
+ }
888
+ getCSVHeader(args, optionsOrCb, cb) {
889
+ const command = new GetCSVHeaderCommand(args);
895
890
  if (typeof optionsOrCb === "function") {
896
891
  this.send(command, optionsOrCb);
897
892
  }
898
893
  else if (typeof cb === "function") {
899
894
  if (typeof optionsOrCb !== "object")
900
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
895
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
901
896
  this.send(command, optionsOrCb || {}, cb);
902
897
  }
903
898
  else {
904
899
  return this.send(command, optionsOrCb);
905
900
  }
906
- };
907
- CognitoIdentityProvider.prototype.getDevice = function (args, optionsOrCb, cb) {
908
- var command = new GetDeviceCommand(args);
901
+ }
902
+ getDevice(args, optionsOrCb, cb) {
903
+ const command = new GetDeviceCommand(args);
909
904
  if (typeof optionsOrCb === "function") {
910
905
  this.send(command, optionsOrCb);
911
906
  }
912
907
  else if (typeof cb === "function") {
913
908
  if (typeof optionsOrCb !== "object")
914
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
909
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
915
910
  this.send(command, optionsOrCb || {}, cb);
916
911
  }
917
912
  else {
918
913
  return this.send(command, optionsOrCb);
919
914
  }
920
- };
921
- CognitoIdentityProvider.prototype.getGroup = function (args, optionsOrCb, cb) {
922
- var command = new GetGroupCommand(args);
915
+ }
916
+ getGroup(args, optionsOrCb, cb) {
917
+ const command = new GetGroupCommand(args);
923
918
  if (typeof optionsOrCb === "function") {
924
919
  this.send(command, optionsOrCb);
925
920
  }
926
921
  else if (typeof cb === "function") {
927
922
  if (typeof optionsOrCb !== "object")
928
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
923
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
929
924
  this.send(command, optionsOrCb || {}, cb);
930
925
  }
931
926
  else {
932
927
  return this.send(command, optionsOrCb);
933
928
  }
934
- };
935
- CognitoIdentityProvider.prototype.getIdentityProviderByIdentifier = function (args, optionsOrCb, cb) {
936
- var command = new GetIdentityProviderByIdentifierCommand(args);
929
+ }
930
+ getIdentityProviderByIdentifier(args, optionsOrCb, cb) {
931
+ const command = new GetIdentityProviderByIdentifierCommand(args);
937
932
  if (typeof optionsOrCb === "function") {
938
933
  this.send(command, optionsOrCb);
939
934
  }
940
935
  else if (typeof cb === "function") {
941
936
  if (typeof optionsOrCb !== "object")
942
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
937
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
943
938
  this.send(command, optionsOrCb || {}, cb);
944
939
  }
945
940
  else {
946
941
  return this.send(command, optionsOrCb);
947
942
  }
948
- };
949
- CognitoIdentityProvider.prototype.getSigningCertificate = function (args, optionsOrCb, cb) {
950
- var command = new GetSigningCertificateCommand(args);
943
+ }
944
+ getSigningCertificate(args, optionsOrCb, cb) {
945
+ const command = new GetSigningCertificateCommand(args);
951
946
  if (typeof optionsOrCb === "function") {
952
947
  this.send(command, optionsOrCb);
953
948
  }
954
949
  else if (typeof cb === "function") {
955
950
  if (typeof optionsOrCb !== "object")
956
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
951
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
957
952
  this.send(command, optionsOrCb || {}, cb);
958
953
  }
959
954
  else {
960
955
  return this.send(command, optionsOrCb);
961
956
  }
962
- };
963
- CognitoIdentityProvider.prototype.getUICustomization = function (args, optionsOrCb, cb) {
964
- var command = new GetUICustomizationCommand(args);
957
+ }
958
+ getUICustomization(args, optionsOrCb, cb) {
959
+ const command = new GetUICustomizationCommand(args);
965
960
  if (typeof optionsOrCb === "function") {
966
961
  this.send(command, optionsOrCb);
967
962
  }
968
963
  else if (typeof cb === "function") {
969
964
  if (typeof optionsOrCb !== "object")
970
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
965
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
971
966
  this.send(command, optionsOrCb || {}, cb);
972
967
  }
973
968
  else {
974
969
  return this.send(command, optionsOrCb);
975
970
  }
976
- };
977
- CognitoIdentityProvider.prototype.getUser = function (args, optionsOrCb, cb) {
978
- var command = new GetUserCommand(args);
971
+ }
972
+ getUser(args, optionsOrCb, cb) {
973
+ const command = new GetUserCommand(args);
979
974
  if (typeof optionsOrCb === "function") {
980
975
  this.send(command, optionsOrCb);
981
976
  }
982
977
  else if (typeof cb === "function") {
983
978
  if (typeof optionsOrCb !== "object")
984
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
979
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
985
980
  this.send(command, optionsOrCb || {}, cb);
986
981
  }
987
982
  else {
988
983
  return this.send(command, optionsOrCb);
989
984
  }
990
- };
991
- CognitoIdentityProvider.prototype.getUserAttributeVerificationCode = function (args, optionsOrCb, cb) {
992
- var command = new GetUserAttributeVerificationCodeCommand(args);
985
+ }
986
+ getUserAttributeVerificationCode(args, optionsOrCb, cb) {
987
+ const command = new GetUserAttributeVerificationCodeCommand(args);
993
988
  if (typeof optionsOrCb === "function") {
994
989
  this.send(command, optionsOrCb);
995
990
  }
996
991
  else if (typeof cb === "function") {
997
992
  if (typeof optionsOrCb !== "object")
998
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
993
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
999
994
  this.send(command, optionsOrCb || {}, cb);
1000
995
  }
1001
996
  else {
1002
997
  return this.send(command, optionsOrCb);
1003
998
  }
1004
- };
1005
- CognitoIdentityProvider.prototype.getUserPoolMfaConfig = function (args, optionsOrCb, cb) {
1006
- var command = new GetUserPoolMfaConfigCommand(args);
999
+ }
1000
+ getUserPoolMfaConfig(args, optionsOrCb, cb) {
1001
+ const command = new GetUserPoolMfaConfigCommand(args);
1007
1002
  if (typeof optionsOrCb === "function") {
1008
1003
  this.send(command, optionsOrCb);
1009
1004
  }
1010
1005
  else if (typeof cb === "function") {
1011
1006
  if (typeof optionsOrCb !== "object")
1012
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1007
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1013
1008
  this.send(command, optionsOrCb || {}, cb);
1014
1009
  }
1015
1010
  else {
1016
1011
  return this.send(command, optionsOrCb);
1017
1012
  }
1018
- };
1019
- CognitoIdentityProvider.prototype.globalSignOut = function (args, optionsOrCb, cb) {
1020
- var command = new GlobalSignOutCommand(args);
1013
+ }
1014
+ globalSignOut(args, optionsOrCb, cb) {
1015
+ const command = new GlobalSignOutCommand(args);
1021
1016
  if (typeof optionsOrCb === "function") {
1022
1017
  this.send(command, optionsOrCb);
1023
1018
  }
1024
1019
  else if (typeof cb === "function") {
1025
1020
  if (typeof optionsOrCb !== "object")
1026
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1021
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1027
1022
  this.send(command, optionsOrCb || {}, cb);
1028
1023
  }
1029
1024
  else {
1030
1025
  return this.send(command, optionsOrCb);
1031
1026
  }
1032
- };
1033
- CognitoIdentityProvider.prototype.initiateAuth = function (args, optionsOrCb, cb) {
1034
- var command = new InitiateAuthCommand(args);
1027
+ }
1028
+ initiateAuth(args, optionsOrCb, cb) {
1029
+ const command = new InitiateAuthCommand(args);
1035
1030
  if (typeof optionsOrCb === "function") {
1036
1031
  this.send(command, optionsOrCb);
1037
1032
  }
1038
1033
  else if (typeof cb === "function") {
1039
1034
  if (typeof optionsOrCb !== "object")
1040
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1035
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1041
1036
  this.send(command, optionsOrCb || {}, cb);
1042
1037
  }
1043
1038
  else {
1044
1039
  return this.send(command, optionsOrCb);
1045
1040
  }
1046
- };
1047
- CognitoIdentityProvider.prototype.listDevices = function (args, optionsOrCb, cb) {
1048
- var command = new ListDevicesCommand(args);
1041
+ }
1042
+ listDevices(args, optionsOrCb, cb) {
1043
+ const command = new ListDevicesCommand(args);
1049
1044
  if (typeof optionsOrCb === "function") {
1050
1045
  this.send(command, optionsOrCb);
1051
1046
  }
1052
1047
  else if (typeof cb === "function") {
1053
1048
  if (typeof optionsOrCb !== "object")
1054
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1049
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1055
1050
  this.send(command, optionsOrCb || {}, cb);
1056
1051
  }
1057
1052
  else {
1058
1053
  return this.send(command, optionsOrCb);
1059
1054
  }
1060
- };
1061
- CognitoIdentityProvider.prototype.listGroups = function (args, optionsOrCb, cb) {
1062
- var command = new ListGroupsCommand(args);
1055
+ }
1056
+ listGroups(args, optionsOrCb, cb) {
1057
+ const command = new ListGroupsCommand(args);
1063
1058
  if (typeof optionsOrCb === "function") {
1064
1059
  this.send(command, optionsOrCb);
1065
1060
  }
1066
1061
  else if (typeof cb === "function") {
1067
1062
  if (typeof optionsOrCb !== "object")
1068
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1063
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1069
1064
  this.send(command, optionsOrCb || {}, cb);
1070
1065
  }
1071
1066
  else {
1072
1067
  return this.send(command, optionsOrCb);
1073
1068
  }
1074
- };
1075
- CognitoIdentityProvider.prototype.listIdentityProviders = function (args, optionsOrCb, cb) {
1076
- var command = new ListIdentityProvidersCommand(args);
1069
+ }
1070
+ listIdentityProviders(args, optionsOrCb, cb) {
1071
+ const command = new ListIdentityProvidersCommand(args);
1077
1072
  if (typeof optionsOrCb === "function") {
1078
1073
  this.send(command, optionsOrCb);
1079
1074
  }
1080
1075
  else if (typeof cb === "function") {
1081
1076
  if (typeof optionsOrCb !== "object")
1082
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1077
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1083
1078
  this.send(command, optionsOrCb || {}, cb);
1084
1079
  }
1085
1080
  else {
1086
1081
  return this.send(command, optionsOrCb);
1087
1082
  }
1088
- };
1089
- CognitoIdentityProvider.prototype.listResourceServers = function (args, optionsOrCb, cb) {
1090
- var command = new ListResourceServersCommand(args);
1083
+ }
1084
+ listResourceServers(args, optionsOrCb, cb) {
1085
+ const command = new ListResourceServersCommand(args);
1091
1086
  if (typeof optionsOrCb === "function") {
1092
1087
  this.send(command, optionsOrCb);
1093
1088
  }
1094
1089
  else if (typeof cb === "function") {
1095
1090
  if (typeof optionsOrCb !== "object")
1096
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1091
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1097
1092
  this.send(command, optionsOrCb || {}, cb);
1098
1093
  }
1099
1094
  else {
1100
1095
  return this.send(command, optionsOrCb);
1101
1096
  }
1102
- };
1103
- CognitoIdentityProvider.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
1104
- var command = new ListTagsForResourceCommand(args);
1097
+ }
1098
+ listTagsForResource(args, optionsOrCb, cb) {
1099
+ const command = new ListTagsForResourceCommand(args);
1105
1100
  if (typeof optionsOrCb === "function") {
1106
1101
  this.send(command, optionsOrCb);
1107
1102
  }
1108
1103
  else if (typeof cb === "function") {
1109
1104
  if (typeof optionsOrCb !== "object")
1110
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1105
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1111
1106
  this.send(command, optionsOrCb || {}, cb);
1112
1107
  }
1113
1108
  else {
1114
1109
  return this.send(command, optionsOrCb);
1115
1110
  }
1116
- };
1117
- CognitoIdentityProvider.prototype.listUserImportJobs = function (args, optionsOrCb, cb) {
1118
- var command = new ListUserImportJobsCommand(args);
1111
+ }
1112
+ listUserImportJobs(args, optionsOrCb, cb) {
1113
+ const command = new ListUserImportJobsCommand(args);
1119
1114
  if (typeof optionsOrCb === "function") {
1120
1115
  this.send(command, optionsOrCb);
1121
1116
  }
1122
1117
  else if (typeof cb === "function") {
1123
1118
  if (typeof optionsOrCb !== "object")
1124
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1119
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1125
1120
  this.send(command, optionsOrCb || {}, cb);
1126
1121
  }
1127
1122
  else {
1128
1123
  return this.send(command, optionsOrCb);
1129
1124
  }
1130
- };
1131
- CognitoIdentityProvider.prototype.listUserPoolClients = function (args, optionsOrCb, cb) {
1132
- var command = new ListUserPoolClientsCommand(args);
1125
+ }
1126
+ listUserPoolClients(args, optionsOrCb, cb) {
1127
+ const command = new ListUserPoolClientsCommand(args);
1133
1128
  if (typeof optionsOrCb === "function") {
1134
1129
  this.send(command, optionsOrCb);
1135
1130
  }
1136
1131
  else if (typeof cb === "function") {
1137
1132
  if (typeof optionsOrCb !== "object")
1138
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1133
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1139
1134
  this.send(command, optionsOrCb || {}, cb);
1140
1135
  }
1141
1136
  else {
1142
1137
  return this.send(command, optionsOrCb);
1143
1138
  }
1144
- };
1145
- CognitoIdentityProvider.prototype.listUserPools = function (args, optionsOrCb, cb) {
1146
- var command = new ListUserPoolsCommand(args);
1139
+ }
1140
+ listUserPools(args, optionsOrCb, cb) {
1141
+ const command = new ListUserPoolsCommand(args);
1147
1142
  if (typeof optionsOrCb === "function") {
1148
1143
  this.send(command, optionsOrCb);
1149
1144
  }
1150
1145
  else if (typeof cb === "function") {
1151
1146
  if (typeof optionsOrCb !== "object")
1152
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1147
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1153
1148
  this.send(command, optionsOrCb || {}, cb);
1154
1149
  }
1155
1150
  else {
1156
1151
  return this.send(command, optionsOrCb);
1157
1152
  }
1158
- };
1159
- CognitoIdentityProvider.prototype.listUsers = function (args, optionsOrCb, cb) {
1160
- var command = new ListUsersCommand(args);
1153
+ }
1154
+ listUsers(args, optionsOrCb, cb) {
1155
+ const command = new ListUsersCommand(args);
1161
1156
  if (typeof optionsOrCb === "function") {
1162
1157
  this.send(command, optionsOrCb);
1163
1158
  }
1164
1159
  else if (typeof cb === "function") {
1165
1160
  if (typeof optionsOrCb !== "object")
1166
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1161
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1167
1162
  this.send(command, optionsOrCb || {}, cb);
1168
1163
  }
1169
1164
  else {
1170
1165
  return this.send(command, optionsOrCb);
1171
1166
  }
1172
- };
1173
- CognitoIdentityProvider.prototype.listUsersInGroup = function (args, optionsOrCb, cb) {
1174
- var command = new ListUsersInGroupCommand(args);
1167
+ }
1168
+ listUsersInGroup(args, optionsOrCb, cb) {
1169
+ const command = new ListUsersInGroupCommand(args);
1175
1170
  if (typeof optionsOrCb === "function") {
1176
1171
  this.send(command, optionsOrCb);
1177
1172
  }
1178
1173
  else if (typeof cb === "function") {
1179
1174
  if (typeof optionsOrCb !== "object")
1180
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1175
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1181
1176
  this.send(command, optionsOrCb || {}, cb);
1182
1177
  }
1183
1178
  else {
1184
1179
  return this.send(command, optionsOrCb);
1185
1180
  }
1186
- };
1187
- CognitoIdentityProvider.prototype.resendConfirmationCode = function (args, optionsOrCb, cb) {
1188
- var command = new ResendConfirmationCodeCommand(args);
1181
+ }
1182
+ resendConfirmationCode(args, optionsOrCb, cb) {
1183
+ const command = new ResendConfirmationCodeCommand(args);
1189
1184
  if (typeof optionsOrCb === "function") {
1190
1185
  this.send(command, optionsOrCb);
1191
1186
  }
1192
1187
  else if (typeof cb === "function") {
1193
1188
  if (typeof optionsOrCb !== "object")
1194
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1189
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1195
1190
  this.send(command, optionsOrCb || {}, cb);
1196
1191
  }
1197
1192
  else {
1198
1193
  return this.send(command, optionsOrCb);
1199
1194
  }
1200
- };
1201
- CognitoIdentityProvider.prototype.respondToAuthChallenge = function (args, optionsOrCb, cb) {
1202
- var command = new RespondToAuthChallengeCommand(args);
1195
+ }
1196
+ respondToAuthChallenge(args, optionsOrCb, cb) {
1197
+ const command = new RespondToAuthChallengeCommand(args);
1203
1198
  if (typeof optionsOrCb === "function") {
1204
1199
  this.send(command, optionsOrCb);
1205
1200
  }
1206
1201
  else if (typeof cb === "function") {
1207
1202
  if (typeof optionsOrCb !== "object")
1208
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1203
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1209
1204
  this.send(command, optionsOrCb || {}, cb);
1210
1205
  }
1211
1206
  else {
1212
1207
  return this.send(command, optionsOrCb);
1213
1208
  }
1214
- };
1215
- CognitoIdentityProvider.prototype.revokeToken = function (args, optionsOrCb, cb) {
1216
- var command = new RevokeTokenCommand(args);
1209
+ }
1210
+ revokeToken(args, optionsOrCb, cb) {
1211
+ const command = new RevokeTokenCommand(args);
1217
1212
  if (typeof optionsOrCb === "function") {
1218
1213
  this.send(command, optionsOrCb);
1219
1214
  }
1220
1215
  else if (typeof cb === "function") {
1221
1216
  if (typeof optionsOrCb !== "object")
1222
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1217
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1223
1218
  this.send(command, optionsOrCb || {}, cb);
1224
1219
  }
1225
1220
  else {
1226
1221
  return this.send(command, optionsOrCb);
1227
1222
  }
1228
- };
1229
- CognitoIdentityProvider.prototype.setRiskConfiguration = function (args, optionsOrCb, cb) {
1230
- var command = new SetRiskConfigurationCommand(args);
1223
+ }
1224
+ setRiskConfiguration(args, optionsOrCb, cb) {
1225
+ const command = new SetRiskConfigurationCommand(args);
1231
1226
  if (typeof optionsOrCb === "function") {
1232
1227
  this.send(command, optionsOrCb);
1233
1228
  }
1234
1229
  else if (typeof cb === "function") {
1235
1230
  if (typeof optionsOrCb !== "object")
1236
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1231
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1237
1232
  this.send(command, optionsOrCb || {}, cb);
1238
1233
  }
1239
1234
  else {
1240
1235
  return this.send(command, optionsOrCb);
1241
1236
  }
1242
- };
1243
- CognitoIdentityProvider.prototype.setUICustomization = function (args, optionsOrCb, cb) {
1244
- var command = new SetUICustomizationCommand(args);
1237
+ }
1238
+ setUICustomization(args, optionsOrCb, cb) {
1239
+ const command = new SetUICustomizationCommand(args);
1245
1240
  if (typeof optionsOrCb === "function") {
1246
1241
  this.send(command, optionsOrCb);
1247
1242
  }
1248
1243
  else if (typeof cb === "function") {
1249
1244
  if (typeof optionsOrCb !== "object")
1250
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1245
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1251
1246
  this.send(command, optionsOrCb || {}, cb);
1252
1247
  }
1253
1248
  else {
1254
1249
  return this.send(command, optionsOrCb);
1255
1250
  }
1256
- };
1257
- CognitoIdentityProvider.prototype.setUserMFAPreference = function (args, optionsOrCb, cb) {
1258
- var command = new SetUserMFAPreferenceCommand(args);
1251
+ }
1252
+ setUserMFAPreference(args, optionsOrCb, cb) {
1253
+ const command = new SetUserMFAPreferenceCommand(args);
1259
1254
  if (typeof optionsOrCb === "function") {
1260
1255
  this.send(command, optionsOrCb);
1261
1256
  }
1262
1257
  else if (typeof cb === "function") {
1263
1258
  if (typeof optionsOrCb !== "object")
1264
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1259
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1265
1260
  this.send(command, optionsOrCb || {}, cb);
1266
1261
  }
1267
1262
  else {
1268
1263
  return this.send(command, optionsOrCb);
1269
1264
  }
1270
- };
1271
- CognitoIdentityProvider.prototype.setUserPoolMfaConfig = function (args, optionsOrCb, cb) {
1272
- var command = new SetUserPoolMfaConfigCommand(args);
1265
+ }
1266
+ setUserPoolMfaConfig(args, optionsOrCb, cb) {
1267
+ const command = new SetUserPoolMfaConfigCommand(args);
1273
1268
  if (typeof optionsOrCb === "function") {
1274
1269
  this.send(command, optionsOrCb);
1275
1270
  }
1276
1271
  else if (typeof cb === "function") {
1277
1272
  if (typeof optionsOrCb !== "object")
1278
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1273
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1279
1274
  this.send(command, optionsOrCb || {}, cb);
1280
1275
  }
1281
1276
  else {
1282
1277
  return this.send(command, optionsOrCb);
1283
1278
  }
1284
- };
1285
- CognitoIdentityProvider.prototype.setUserSettings = function (args, optionsOrCb, cb) {
1286
- var command = new SetUserSettingsCommand(args);
1279
+ }
1280
+ setUserSettings(args, optionsOrCb, cb) {
1281
+ const command = new SetUserSettingsCommand(args);
1287
1282
  if (typeof optionsOrCb === "function") {
1288
1283
  this.send(command, optionsOrCb);
1289
1284
  }
1290
1285
  else if (typeof cb === "function") {
1291
1286
  if (typeof optionsOrCb !== "object")
1292
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1287
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1293
1288
  this.send(command, optionsOrCb || {}, cb);
1294
1289
  }
1295
1290
  else {
1296
1291
  return this.send(command, optionsOrCb);
1297
1292
  }
1298
- };
1299
- CognitoIdentityProvider.prototype.signUp = function (args, optionsOrCb, cb) {
1300
- var command = new SignUpCommand(args);
1293
+ }
1294
+ signUp(args, optionsOrCb, cb) {
1295
+ const command = new SignUpCommand(args);
1301
1296
  if (typeof optionsOrCb === "function") {
1302
1297
  this.send(command, optionsOrCb);
1303
1298
  }
1304
1299
  else if (typeof cb === "function") {
1305
1300
  if (typeof optionsOrCb !== "object")
1306
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1301
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1307
1302
  this.send(command, optionsOrCb || {}, cb);
1308
1303
  }
1309
1304
  else {
1310
1305
  return this.send(command, optionsOrCb);
1311
1306
  }
1312
- };
1313
- CognitoIdentityProvider.prototype.startUserImportJob = function (args, optionsOrCb, cb) {
1314
- var command = new StartUserImportJobCommand(args);
1307
+ }
1308
+ startUserImportJob(args, optionsOrCb, cb) {
1309
+ const command = new StartUserImportJobCommand(args);
1315
1310
  if (typeof optionsOrCb === "function") {
1316
1311
  this.send(command, optionsOrCb);
1317
1312
  }
1318
1313
  else if (typeof cb === "function") {
1319
1314
  if (typeof optionsOrCb !== "object")
1320
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1315
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1321
1316
  this.send(command, optionsOrCb || {}, cb);
1322
1317
  }
1323
1318
  else {
1324
1319
  return this.send(command, optionsOrCb);
1325
1320
  }
1326
- };
1327
- CognitoIdentityProvider.prototype.stopUserImportJob = function (args, optionsOrCb, cb) {
1328
- var command = new StopUserImportJobCommand(args);
1321
+ }
1322
+ stopUserImportJob(args, optionsOrCb, cb) {
1323
+ const command = new StopUserImportJobCommand(args);
1329
1324
  if (typeof optionsOrCb === "function") {
1330
1325
  this.send(command, optionsOrCb);
1331
1326
  }
1332
1327
  else if (typeof cb === "function") {
1333
1328
  if (typeof optionsOrCb !== "object")
1334
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1329
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1335
1330
  this.send(command, optionsOrCb || {}, cb);
1336
1331
  }
1337
1332
  else {
1338
1333
  return this.send(command, optionsOrCb);
1339
1334
  }
1340
- };
1341
- CognitoIdentityProvider.prototype.tagResource = function (args, optionsOrCb, cb) {
1342
- var command = new TagResourceCommand(args);
1335
+ }
1336
+ tagResource(args, optionsOrCb, cb) {
1337
+ const command = new TagResourceCommand(args);
1343
1338
  if (typeof optionsOrCb === "function") {
1344
1339
  this.send(command, optionsOrCb);
1345
1340
  }
1346
1341
  else if (typeof cb === "function") {
1347
1342
  if (typeof optionsOrCb !== "object")
1348
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1343
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1349
1344
  this.send(command, optionsOrCb || {}, cb);
1350
1345
  }
1351
1346
  else {
1352
1347
  return this.send(command, optionsOrCb);
1353
1348
  }
1354
- };
1355
- CognitoIdentityProvider.prototype.untagResource = function (args, optionsOrCb, cb) {
1356
- var command = new UntagResourceCommand(args);
1349
+ }
1350
+ untagResource(args, optionsOrCb, cb) {
1351
+ const command = new UntagResourceCommand(args);
1357
1352
  if (typeof optionsOrCb === "function") {
1358
1353
  this.send(command, optionsOrCb);
1359
1354
  }
1360
1355
  else if (typeof cb === "function") {
1361
1356
  if (typeof optionsOrCb !== "object")
1362
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1357
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1363
1358
  this.send(command, optionsOrCb || {}, cb);
1364
1359
  }
1365
1360
  else {
1366
1361
  return this.send(command, optionsOrCb);
1367
1362
  }
1368
- };
1369
- CognitoIdentityProvider.prototype.updateAuthEventFeedback = function (args, optionsOrCb, cb) {
1370
- var command = new UpdateAuthEventFeedbackCommand(args);
1363
+ }
1364
+ updateAuthEventFeedback(args, optionsOrCb, cb) {
1365
+ const command = new UpdateAuthEventFeedbackCommand(args);
1371
1366
  if (typeof optionsOrCb === "function") {
1372
1367
  this.send(command, optionsOrCb);
1373
1368
  }
1374
1369
  else if (typeof cb === "function") {
1375
1370
  if (typeof optionsOrCb !== "object")
1376
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1371
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1377
1372
  this.send(command, optionsOrCb || {}, cb);
1378
1373
  }
1379
1374
  else {
1380
1375
  return this.send(command, optionsOrCb);
1381
1376
  }
1382
- };
1383
- CognitoIdentityProvider.prototype.updateDeviceStatus = function (args, optionsOrCb, cb) {
1384
- var command = new UpdateDeviceStatusCommand(args);
1377
+ }
1378
+ updateDeviceStatus(args, optionsOrCb, cb) {
1379
+ const command = new UpdateDeviceStatusCommand(args);
1385
1380
  if (typeof optionsOrCb === "function") {
1386
1381
  this.send(command, optionsOrCb);
1387
1382
  }
1388
1383
  else if (typeof cb === "function") {
1389
1384
  if (typeof optionsOrCb !== "object")
1390
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1385
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1391
1386
  this.send(command, optionsOrCb || {}, cb);
1392
1387
  }
1393
1388
  else {
1394
1389
  return this.send(command, optionsOrCb);
1395
1390
  }
1396
- };
1397
- CognitoIdentityProvider.prototype.updateGroup = function (args, optionsOrCb, cb) {
1398
- var command = new UpdateGroupCommand(args);
1391
+ }
1392
+ updateGroup(args, optionsOrCb, cb) {
1393
+ const command = new UpdateGroupCommand(args);
1399
1394
  if (typeof optionsOrCb === "function") {
1400
1395
  this.send(command, optionsOrCb);
1401
1396
  }
1402
1397
  else if (typeof cb === "function") {
1403
1398
  if (typeof optionsOrCb !== "object")
1404
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1399
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1405
1400
  this.send(command, optionsOrCb || {}, cb);
1406
1401
  }
1407
1402
  else {
1408
1403
  return this.send(command, optionsOrCb);
1409
1404
  }
1410
- };
1411
- CognitoIdentityProvider.prototype.updateIdentityProvider = function (args, optionsOrCb, cb) {
1412
- var command = new UpdateIdentityProviderCommand(args);
1405
+ }
1406
+ updateIdentityProvider(args, optionsOrCb, cb) {
1407
+ const command = new UpdateIdentityProviderCommand(args);
1413
1408
  if (typeof optionsOrCb === "function") {
1414
1409
  this.send(command, optionsOrCb);
1415
1410
  }
1416
1411
  else if (typeof cb === "function") {
1417
1412
  if (typeof optionsOrCb !== "object")
1418
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1413
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1419
1414
  this.send(command, optionsOrCb || {}, cb);
1420
1415
  }
1421
1416
  else {
1422
1417
  return this.send(command, optionsOrCb);
1423
1418
  }
1424
- };
1425
- CognitoIdentityProvider.prototype.updateResourceServer = function (args, optionsOrCb, cb) {
1426
- var command = new UpdateResourceServerCommand(args);
1419
+ }
1420
+ updateResourceServer(args, optionsOrCb, cb) {
1421
+ const command = new UpdateResourceServerCommand(args);
1427
1422
  if (typeof optionsOrCb === "function") {
1428
1423
  this.send(command, optionsOrCb);
1429
1424
  }
1430
1425
  else if (typeof cb === "function") {
1431
1426
  if (typeof optionsOrCb !== "object")
1432
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1427
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1433
1428
  this.send(command, optionsOrCb || {}, cb);
1434
1429
  }
1435
1430
  else {
1436
1431
  return this.send(command, optionsOrCb);
1437
1432
  }
1438
- };
1439
- CognitoIdentityProvider.prototype.updateUserAttributes = function (args, optionsOrCb, cb) {
1440
- var command = new UpdateUserAttributesCommand(args);
1433
+ }
1434
+ updateUserAttributes(args, optionsOrCb, cb) {
1435
+ const command = new UpdateUserAttributesCommand(args);
1441
1436
  if (typeof optionsOrCb === "function") {
1442
1437
  this.send(command, optionsOrCb);
1443
1438
  }
1444
1439
  else if (typeof cb === "function") {
1445
1440
  if (typeof optionsOrCb !== "object")
1446
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1441
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1447
1442
  this.send(command, optionsOrCb || {}, cb);
1448
1443
  }
1449
1444
  else {
1450
1445
  return this.send(command, optionsOrCb);
1451
1446
  }
1452
- };
1453
- CognitoIdentityProvider.prototype.updateUserPool = function (args, optionsOrCb, cb) {
1454
- var command = new UpdateUserPoolCommand(args);
1447
+ }
1448
+ updateUserPool(args, optionsOrCb, cb) {
1449
+ const command = new UpdateUserPoolCommand(args);
1455
1450
  if (typeof optionsOrCb === "function") {
1456
1451
  this.send(command, optionsOrCb);
1457
1452
  }
1458
1453
  else if (typeof cb === "function") {
1459
1454
  if (typeof optionsOrCb !== "object")
1460
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1455
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1461
1456
  this.send(command, optionsOrCb || {}, cb);
1462
1457
  }
1463
1458
  else {
1464
1459
  return this.send(command, optionsOrCb);
1465
1460
  }
1466
- };
1467
- CognitoIdentityProvider.prototype.updateUserPoolClient = function (args, optionsOrCb, cb) {
1468
- var command = new UpdateUserPoolClientCommand(args);
1461
+ }
1462
+ updateUserPoolClient(args, optionsOrCb, cb) {
1463
+ const command = new UpdateUserPoolClientCommand(args);
1469
1464
  if (typeof optionsOrCb === "function") {
1470
1465
  this.send(command, optionsOrCb);
1471
1466
  }
1472
1467
  else if (typeof cb === "function") {
1473
1468
  if (typeof optionsOrCb !== "object")
1474
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1469
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1475
1470
  this.send(command, optionsOrCb || {}, cb);
1476
1471
  }
1477
1472
  else {
1478
1473
  return this.send(command, optionsOrCb);
1479
1474
  }
1480
- };
1481
- CognitoIdentityProvider.prototype.updateUserPoolDomain = function (args, optionsOrCb, cb) {
1482
- var command = new UpdateUserPoolDomainCommand(args);
1475
+ }
1476
+ updateUserPoolDomain(args, optionsOrCb, cb) {
1477
+ const command = new UpdateUserPoolDomainCommand(args);
1483
1478
  if (typeof optionsOrCb === "function") {
1484
1479
  this.send(command, optionsOrCb);
1485
1480
  }
1486
1481
  else if (typeof cb === "function") {
1487
1482
  if (typeof optionsOrCb !== "object")
1488
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1483
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1489
1484
  this.send(command, optionsOrCb || {}, cb);
1490
1485
  }
1491
1486
  else {
1492
1487
  return this.send(command, optionsOrCb);
1493
1488
  }
1494
- };
1495
- CognitoIdentityProvider.prototype.verifySoftwareToken = function (args, optionsOrCb, cb) {
1496
- var command = new VerifySoftwareTokenCommand(args);
1489
+ }
1490
+ verifySoftwareToken(args, optionsOrCb, cb) {
1491
+ const command = new VerifySoftwareTokenCommand(args);
1497
1492
  if (typeof optionsOrCb === "function") {
1498
1493
  this.send(command, optionsOrCb);
1499
1494
  }
1500
1495
  else if (typeof cb === "function") {
1501
1496
  if (typeof optionsOrCb !== "object")
1502
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1497
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1503
1498
  this.send(command, optionsOrCb || {}, cb);
1504
1499
  }
1505
1500
  else {
1506
1501
  return this.send(command, optionsOrCb);
1507
1502
  }
1508
- };
1509
- CognitoIdentityProvider.prototype.verifyUserAttribute = function (args, optionsOrCb, cb) {
1510
- var command = new VerifyUserAttributeCommand(args);
1503
+ }
1504
+ verifyUserAttribute(args, optionsOrCb, cb) {
1505
+ const command = new VerifyUserAttributeCommand(args);
1511
1506
  if (typeof optionsOrCb === "function") {
1512
1507
  this.send(command, optionsOrCb);
1513
1508
  }
1514
1509
  else if (typeof cb === "function") {
1515
1510
  if (typeof optionsOrCb !== "object")
1516
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1511
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1517
1512
  this.send(command, optionsOrCb || {}, cb);
1518
1513
  }
1519
1514
  else {
1520
1515
  return this.send(command, optionsOrCb);
1521
1516
  }
1522
- };
1523
- return CognitoIdentityProvider;
1524
- }(CognitoIdentityProviderClient));
1525
- export { CognitoIdentityProvider };
1517
+ }
1518
+ }