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