@aws-sdk/client-cognito-identity-provider 3.35.0 → 3.38.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 (741) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/CognitoIdentityProvider.js +0 -10
  3. package/dist-cjs/CognitoIdentityProviderClient.js +0 -15
  4. package/dist-cjs/commands/AddCustomAttributesCommand.js +0 -25
  5. package/dist-cjs/commands/AdminAddUserToGroupCommand.js +0 -26
  6. package/dist-cjs/commands/AdminConfirmSignUpCommand.js +0 -27
  7. package/dist-cjs/commands/AdminCreateUserCommand.js +0 -54
  8. package/dist-cjs/commands/AdminDeleteUserAttributesCommand.js +0 -27
  9. package/dist-cjs/commands/AdminDeleteUserCommand.js +0 -26
  10. package/dist-cjs/commands/AdminDisableProviderForUserCommand.js +0 -52
  11. package/dist-cjs/commands/AdminDisableUserCommand.js +0 -26
  12. package/dist-cjs/commands/AdminEnableUserCommand.js +0 -26
  13. package/dist-cjs/commands/AdminForgetDeviceCommand.js +0 -26
  14. package/dist-cjs/commands/AdminGetDeviceCommand.js +0 -26
  15. package/dist-cjs/commands/AdminGetUserCommand.js +0 -27
  16. package/dist-cjs/commands/AdminInitiateAuthCommand.js +0 -45
  17. package/dist-cjs/commands/AdminLinkProviderForUserCommand.js +0 -45
  18. package/dist-cjs/commands/AdminListDevicesCommand.js +0 -26
  19. package/dist-cjs/commands/AdminListGroupsForUserCommand.js +0 -26
  20. package/dist-cjs/commands/AdminListUserAuthEventsCommand.js +0 -26
  21. package/dist-cjs/commands/AdminRemoveUserFromGroupCommand.js +0 -26
  22. package/dist-cjs/commands/AdminResetUserPasswordCommand.js +0 -54
  23. package/dist-cjs/commands/AdminRespondToAuthChallengeCommand.js +0 -44
  24. package/dist-cjs/commands/AdminSetUserMFAPreferenceCommand.js +0 -29
  25. package/dist-cjs/commands/AdminSetUserPasswordCommand.js +0 -34
  26. package/dist-cjs/commands/AdminSetUserSettingsCommand.js +0 -28
  27. package/dist-cjs/commands/AdminUpdateAuthEventFeedbackCommand.js +0 -27
  28. package/dist-cjs/commands/AdminUpdateDeviceStatusCommand.js +0 -26
  29. package/dist-cjs/commands/AdminUpdateUserAttributesCommand.js +0 -49
  30. package/dist-cjs/commands/AdminUserGlobalSignOutCommand.js +0 -28
  31. package/dist-cjs/commands/AssociateSoftwareTokenCommand.js +0 -34
  32. package/dist-cjs/commands/ChangePasswordCommand.js +0 -25
  33. package/dist-cjs/commands/ConfirmDeviceCommand.js +0 -26
  34. package/dist-cjs/commands/ConfirmForgotPasswordCommand.js +0 -25
  35. package/dist-cjs/commands/ConfirmSignUpCommand.js +0 -26
  36. package/dist-cjs/commands/CreateGroupCommand.js +0 -26
  37. package/dist-cjs/commands/CreateIdentityProviderCommand.js +0 -25
  38. package/dist-cjs/commands/CreateResourceServerCommand.js +0 -25
  39. package/dist-cjs/commands/CreateUserImportJobCommand.js +0 -25
  40. package/dist-cjs/commands/CreateUserPoolClientCommand.js +0 -27
  41. package/dist-cjs/commands/CreateUserPoolCommand.js +0 -43
  42. package/dist-cjs/commands/CreateUserPoolDomainCommand.js +0 -25
  43. package/dist-cjs/commands/DeleteGroupCommand.js +0 -26
  44. package/dist-cjs/commands/DeleteIdentityProviderCommand.js +0 -25
  45. package/dist-cjs/commands/DeleteResourceServerCommand.js +0 -25
  46. package/dist-cjs/commands/DeleteUserAttributesCommand.js +0 -25
  47. package/dist-cjs/commands/DeleteUserCommand.js +0 -25
  48. package/dist-cjs/commands/DeleteUserPoolClientCommand.js +0 -25
  49. package/dist-cjs/commands/DeleteUserPoolCommand.js +0 -25
  50. package/dist-cjs/commands/DeleteUserPoolDomainCommand.js +0 -25
  51. package/dist-cjs/commands/DescribeIdentityProviderCommand.js +0 -25
  52. package/dist-cjs/commands/DescribeResourceServerCommand.js +0 -25
  53. package/dist-cjs/commands/DescribeRiskConfigurationCommand.js +0 -25
  54. package/dist-cjs/commands/DescribeUserImportJobCommand.js +0 -25
  55. package/dist-cjs/commands/DescribeUserPoolClientCommand.js +0 -26
  56. package/dist-cjs/commands/DescribeUserPoolCommand.js +0 -25
  57. package/dist-cjs/commands/DescribeUserPoolDomainCommand.js +0 -25
  58. package/dist-cjs/commands/ForgetDeviceCommand.js +0 -25
  59. package/dist-cjs/commands/ForgotPasswordCommand.js +0 -49
  60. package/dist-cjs/commands/GetCSVHeaderCommand.js +0 -26
  61. package/dist-cjs/commands/GetDeviceCommand.js +0 -25
  62. package/dist-cjs/commands/GetGroupCommand.js +0 -26
  63. package/dist-cjs/commands/GetIdentityProviderByIdentifierCommand.js +0 -25
  64. package/dist-cjs/commands/GetSigningCertificateCommand.js +0 -25
  65. package/dist-cjs/commands/GetUICustomizationCommand.js +0 -28
  66. package/dist-cjs/commands/GetUserAttributeVerificationCodeCommand.js +0 -42
  67. package/dist-cjs/commands/GetUserCommand.js +0 -25
  68. package/dist-cjs/commands/GetUserPoolMfaConfigCommand.js +0 -25
  69. package/dist-cjs/commands/GlobalSignOutCommand.js +0 -27
  70. package/dist-cjs/commands/InitiateAuthCommand.js +0 -42
  71. package/dist-cjs/commands/ListDevicesCommand.js +0 -25
  72. package/dist-cjs/commands/ListGroupsCommand.js +0 -26
  73. package/dist-cjs/commands/ListIdentityProvidersCommand.js +0 -25
  74. package/dist-cjs/commands/ListResourceServersCommand.js +0 -25
  75. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -28
  76. package/dist-cjs/commands/ListUserImportJobsCommand.js +0 -25
  77. package/dist-cjs/commands/ListUserPoolClientsCommand.js +0 -25
  78. package/dist-cjs/commands/ListUserPoolsCommand.js +0 -25
  79. package/dist-cjs/commands/ListUsersCommand.js +0 -25
  80. package/dist-cjs/commands/ListUsersInGroupCommand.js +0 -26
  81. package/dist-cjs/commands/ResendConfirmationCodeCommand.js +0 -43
  82. package/dist-cjs/commands/RespondToAuthChallengeCommand.js +0 -42
  83. package/dist-cjs/commands/RevokeTokenCommand.js +0 -26
  84. package/dist-cjs/commands/SetRiskConfigurationCommand.js +0 -29
  85. package/dist-cjs/commands/SetUICustomizationCommand.js +0 -36
  86. package/dist-cjs/commands/SetUserMFAPreferenceCommand.js +0 -33
  87. package/dist-cjs/commands/SetUserPoolMfaConfigCommand.js +0 -42
  88. package/dist-cjs/commands/SetUserSettingsCommand.js +0 -28
  89. package/dist-cjs/commands/SignUpCommand.js +0 -43
  90. package/dist-cjs/commands/StartUserImportJobCommand.js +0 -25
  91. package/dist-cjs/commands/StopUserImportJobCommand.js +0 -25
  92. package/dist-cjs/commands/TagResourceCommand.js +0 -38
  93. package/dist-cjs/commands/UntagResourceCommand.js +0 -26
  94. package/dist-cjs/commands/UpdateAuthEventFeedbackCommand.js +0 -27
  95. package/dist-cjs/commands/UpdateDeviceStatusCommand.js +0 -25
  96. package/dist-cjs/commands/UpdateGroupCommand.js +0 -26
  97. package/dist-cjs/commands/UpdateIdentityProviderCommand.js +0 -25
  98. package/dist-cjs/commands/UpdateResourceServerCommand.js +0 -29
  99. package/dist-cjs/commands/UpdateUserAttributesCommand.js +0 -42
  100. package/dist-cjs/commands/UpdateUserPoolClientCommand.js +0 -32
  101. package/dist-cjs/commands/UpdateUserPoolCommand.js +0 -44
  102. package/dist-cjs/commands/UpdateUserPoolDomainCommand.js +0 -45
  103. package/dist-cjs/commands/VerifySoftwareTokenCommand.js +0 -27
  104. package/dist-cjs/commands/VerifyUserAttributeCommand.js +0 -25
  105. package/dist-cjs/commands/index.js +104 -0
  106. package/dist-cjs/endpoints.js +1 -2
  107. package/dist-cjs/index.js +4 -114
  108. package/dist-cjs/models/index.js +0 -1
  109. package/dist-cjs/models/models_0.js +0 -796
  110. package/dist-cjs/models/models_1.js +0 -91
  111. package/dist-cjs/pagination/AdminListGroupsForUserPaginator.js +0 -11
  112. package/dist-cjs/pagination/AdminListUserAuthEventsPaginator.js +0 -11
  113. package/dist-cjs/pagination/Interfaces.js +0 -1
  114. package/dist-cjs/pagination/ListGroupsPaginator.js +0 -11
  115. package/dist-cjs/pagination/ListIdentityProvidersPaginator.js +0 -11
  116. package/dist-cjs/pagination/ListResourceServersPaginator.js +0 -11
  117. package/dist-cjs/pagination/ListUserPoolClientsPaginator.js +0 -11
  118. package/dist-cjs/pagination/ListUserPoolsPaginator.js +0 -11
  119. package/dist-cjs/pagination/ListUsersInGroupPaginator.js +0 -11
  120. package/dist-cjs/pagination/ListUsersPaginator.js +0 -11
  121. package/dist-cjs/pagination/index.js +13 -0
  122. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  123. package/dist-cjs/runtimeConfig.browser.js +1 -6
  124. package/dist-cjs/runtimeConfig.js +2 -7
  125. package/dist-cjs/runtimeConfig.native.js +0 -4
  126. package/dist-cjs/runtimeConfig.shared.js +0 -4
  127. package/dist-es/CognitoIdentityProvider.js +0 -1
  128. package/dist-es/CognitoIdentityProviderClient.js +0 -1
  129. package/dist-es/commands/AddCustomAttributesCommand.js +0 -1
  130. package/dist-es/commands/AdminAddUserToGroupCommand.js +0 -1
  131. package/dist-es/commands/AdminConfirmSignUpCommand.js +0 -1
  132. package/dist-es/commands/AdminCreateUserCommand.js +0 -1
  133. package/dist-es/commands/AdminDeleteUserAttributesCommand.js +0 -1
  134. package/dist-es/commands/AdminDeleteUserCommand.js +0 -1
  135. package/dist-es/commands/AdminDisableProviderForUserCommand.js +0 -1
  136. package/dist-es/commands/AdminDisableUserCommand.js +0 -1
  137. package/dist-es/commands/AdminEnableUserCommand.js +0 -1
  138. package/dist-es/commands/AdminForgetDeviceCommand.js +0 -1
  139. package/dist-es/commands/AdminGetDeviceCommand.js +0 -1
  140. package/dist-es/commands/AdminGetUserCommand.js +0 -1
  141. package/dist-es/commands/AdminInitiateAuthCommand.js +0 -1
  142. package/dist-es/commands/AdminLinkProviderForUserCommand.js +0 -1
  143. package/dist-es/commands/AdminListDevicesCommand.js +0 -1
  144. package/dist-es/commands/AdminListGroupsForUserCommand.js +0 -1
  145. package/dist-es/commands/AdminListUserAuthEventsCommand.js +0 -1
  146. package/dist-es/commands/AdminRemoveUserFromGroupCommand.js +0 -1
  147. package/dist-es/commands/AdminResetUserPasswordCommand.js +0 -1
  148. package/dist-es/commands/AdminRespondToAuthChallengeCommand.js +0 -1
  149. package/dist-es/commands/AdminSetUserMFAPreferenceCommand.js +0 -1
  150. package/dist-es/commands/AdminSetUserPasswordCommand.js +0 -1
  151. package/dist-es/commands/AdminSetUserSettingsCommand.js +0 -1
  152. package/dist-es/commands/AdminUpdateAuthEventFeedbackCommand.js +0 -1
  153. package/dist-es/commands/AdminUpdateDeviceStatusCommand.js +0 -1
  154. package/dist-es/commands/AdminUpdateUserAttributesCommand.js +0 -1
  155. package/dist-es/commands/AdminUserGlobalSignOutCommand.js +0 -1
  156. package/dist-es/commands/AssociateSoftwareTokenCommand.js +0 -1
  157. package/dist-es/commands/ChangePasswordCommand.js +0 -1
  158. package/dist-es/commands/ConfirmDeviceCommand.js +0 -1
  159. package/dist-es/commands/ConfirmForgotPasswordCommand.js +0 -1
  160. package/dist-es/commands/ConfirmSignUpCommand.js +0 -1
  161. package/dist-es/commands/CreateGroupCommand.js +0 -1
  162. package/dist-es/commands/CreateIdentityProviderCommand.js +0 -1
  163. package/dist-es/commands/CreateResourceServerCommand.js +0 -1
  164. package/dist-es/commands/CreateUserImportJobCommand.js +0 -1
  165. package/dist-es/commands/CreateUserPoolClientCommand.js +0 -1
  166. package/dist-es/commands/CreateUserPoolCommand.js +0 -1
  167. package/dist-es/commands/CreateUserPoolDomainCommand.js +0 -1
  168. package/dist-es/commands/DeleteGroupCommand.js +0 -1
  169. package/dist-es/commands/DeleteIdentityProviderCommand.js +0 -1
  170. package/dist-es/commands/DeleteResourceServerCommand.js +0 -1
  171. package/dist-es/commands/DeleteUserAttributesCommand.js +0 -1
  172. package/dist-es/commands/DeleteUserCommand.js +0 -1
  173. package/dist-es/commands/DeleteUserPoolClientCommand.js +0 -1
  174. package/dist-es/commands/DeleteUserPoolCommand.js +0 -1
  175. package/dist-es/commands/DeleteUserPoolDomainCommand.js +0 -1
  176. package/dist-es/commands/DescribeIdentityProviderCommand.js +0 -1
  177. package/dist-es/commands/DescribeResourceServerCommand.js +0 -1
  178. package/dist-es/commands/DescribeRiskConfigurationCommand.js +0 -1
  179. package/dist-es/commands/DescribeUserImportJobCommand.js +0 -1
  180. package/dist-es/commands/DescribeUserPoolClientCommand.js +0 -1
  181. package/dist-es/commands/DescribeUserPoolCommand.js +0 -1
  182. package/dist-es/commands/DescribeUserPoolDomainCommand.js +0 -1
  183. package/dist-es/commands/ForgetDeviceCommand.js +0 -1
  184. package/dist-es/commands/ForgotPasswordCommand.js +0 -1
  185. package/dist-es/commands/GetCSVHeaderCommand.js +0 -1
  186. package/dist-es/commands/GetDeviceCommand.js +0 -1
  187. package/dist-es/commands/GetGroupCommand.js +0 -1
  188. package/dist-es/commands/GetIdentityProviderByIdentifierCommand.js +0 -1
  189. package/dist-es/commands/GetSigningCertificateCommand.js +0 -1
  190. package/dist-es/commands/GetUICustomizationCommand.js +0 -1
  191. package/dist-es/commands/GetUserAttributeVerificationCodeCommand.js +0 -1
  192. package/dist-es/commands/GetUserCommand.js +0 -1
  193. package/dist-es/commands/GetUserPoolMfaConfigCommand.js +0 -1
  194. package/dist-es/commands/GlobalSignOutCommand.js +0 -1
  195. package/dist-es/commands/InitiateAuthCommand.js +0 -1
  196. package/dist-es/commands/ListDevicesCommand.js +0 -1
  197. package/dist-es/commands/ListGroupsCommand.js +0 -1
  198. package/dist-es/commands/ListIdentityProvidersCommand.js +0 -1
  199. package/dist-es/commands/ListResourceServersCommand.js +0 -1
  200. package/dist-es/commands/ListTagsForResourceCommand.js +0 -1
  201. package/dist-es/commands/ListUserImportJobsCommand.js +0 -1
  202. package/dist-es/commands/ListUserPoolClientsCommand.js +0 -1
  203. package/dist-es/commands/ListUserPoolsCommand.js +0 -1
  204. package/dist-es/commands/ListUsersCommand.js +0 -1
  205. package/dist-es/commands/ListUsersInGroupCommand.js +0 -1
  206. package/dist-es/commands/ResendConfirmationCodeCommand.js +0 -1
  207. package/dist-es/commands/RespondToAuthChallengeCommand.js +0 -1
  208. package/dist-es/commands/RevokeTokenCommand.js +0 -1
  209. package/dist-es/commands/SetRiskConfigurationCommand.js +0 -1
  210. package/dist-es/commands/SetUICustomizationCommand.js +0 -1
  211. package/dist-es/commands/SetUserMFAPreferenceCommand.js +0 -1
  212. package/dist-es/commands/SetUserPoolMfaConfigCommand.js +0 -1
  213. package/dist-es/commands/SetUserSettingsCommand.js +0 -1
  214. package/dist-es/commands/SignUpCommand.js +0 -1
  215. package/dist-es/commands/StartUserImportJobCommand.js +0 -1
  216. package/dist-es/commands/StopUserImportJobCommand.js +0 -1
  217. package/dist-es/commands/TagResourceCommand.js +0 -1
  218. package/dist-es/commands/UntagResourceCommand.js +0 -1
  219. package/dist-es/commands/UpdateAuthEventFeedbackCommand.js +0 -1
  220. package/dist-es/commands/UpdateDeviceStatusCommand.js +0 -1
  221. package/dist-es/commands/UpdateGroupCommand.js +0 -1
  222. package/dist-es/commands/UpdateIdentityProviderCommand.js +0 -1
  223. package/dist-es/commands/UpdateResourceServerCommand.js +0 -1
  224. package/dist-es/commands/UpdateUserAttributesCommand.js +0 -1
  225. package/dist-es/commands/UpdateUserPoolClientCommand.js +0 -1
  226. package/dist-es/commands/UpdateUserPoolCommand.js +0 -1
  227. package/dist-es/commands/UpdateUserPoolDomainCommand.js +0 -1
  228. package/dist-es/commands/VerifySoftwareTokenCommand.js +0 -1
  229. package/dist-es/commands/VerifyUserAttributeCommand.js +0 -1
  230. package/dist-es/commands/index.js +101 -0
  231. package/dist-es/endpoints.js +1 -2
  232. package/dist-es/index.js +4 -114
  233. package/dist-es/models/index.js +0 -1
  234. package/dist-es/models/models_0.js +0 -1
  235. package/dist-es/models/models_1.js +0 -1
  236. package/dist-es/pagination/AdminListGroupsForUserPaginator.js +0 -1
  237. package/dist-es/pagination/AdminListUserAuthEventsPaginator.js +0 -1
  238. package/dist-es/pagination/Interfaces.js +0 -1
  239. package/dist-es/pagination/ListGroupsPaginator.js +0 -1
  240. package/dist-es/pagination/ListIdentityProvidersPaginator.js +0 -1
  241. package/dist-es/pagination/ListResourceServersPaginator.js +0 -1
  242. package/dist-es/pagination/ListUserPoolClientsPaginator.js +0 -1
  243. package/dist-es/pagination/ListUserPoolsPaginator.js +0 -1
  244. package/dist-es/pagination/ListUsersInGroupPaginator.js +0 -1
  245. package/dist-es/pagination/ListUsersPaginator.js +0 -1
  246. package/dist-es/pagination/index.js +10 -0
  247. package/dist-es/protocols/Aws_json1_1.js +0 -1
  248. package/dist-es/runtimeConfig.browser.js +1 -2
  249. package/dist-es/runtimeConfig.js +2 -3
  250. package/dist-es/runtimeConfig.native.js +0 -1
  251. package/dist-es/runtimeConfig.shared.js +0 -1
  252. package/dist-types/commands/index.d.ts +101 -0
  253. package/dist-types/index.d.ts +4 -113
  254. package/dist-types/pagination/index.d.ts +10 -0
  255. package/dist-types/runtimeConfig.browser.d.ts +3 -0
  256. package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +102 -805
  257. package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +24 -95
  258. package/dist-types/ts3.4/commands/AddCustomAttributesCommand.d.ts +2 -20
  259. package/dist-types/ts3.4/commands/AdminAddUserToGroupCommand.d.ts +2 -21
  260. package/dist-types/ts3.4/commands/AdminConfirmSignUpCommand.d.ts +2 -22
  261. package/dist-types/ts3.4/commands/AdminCreateUserCommand.d.ts +2 -49
  262. package/dist-types/ts3.4/commands/AdminDeleteUserAttributesCommand.d.ts +2 -22
  263. package/dist-types/ts3.4/commands/AdminDeleteUserCommand.d.ts +2 -21
  264. package/dist-types/ts3.4/commands/AdminDisableProviderForUserCommand.d.ts +2 -47
  265. package/dist-types/ts3.4/commands/AdminDisableUserCommand.d.ts +2 -21
  266. package/dist-types/ts3.4/commands/AdminEnableUserCommand.d.ts +2 -21
  267. package/dist-types/ts3.4/commands/AdminForgetDeviceCommand.d.ts +2 -21
  268. package/dist-types/ts3.4/commands/AdminGetDeviceCommand.d.ts +2 -21
  269. package/dist-types/ts3.4/commands/AdminGetUserCommand.d.ts +2 -22
  270. package/dist-types/ts3.4/commands/AdminInitiateAuthCommand.d.ts +2 -40
  271. package/dist-types/ts3.4/commands/AdminLinkProviderForUserCommand.d.ts +2 -40
  272. package/dist-types/ts3.4/commands/AdminListDevicesCommand.d.ts +2 -21
  273. package/dist-types/ts3.4/commands/AdminListGroupsForUserCommand.d.ts +2 -21
  274. package/dist-types/ts3.4/commands/AdminListUserAuthEventsCommand.d.ts +2 -21
  275. package/dist-types/ts3.4/commands/AdminRemoveUserFromGroupCommand.d.ts +2 -21
  276. package/dist-types/ts3.4/commands/AdminResetUserPasswordCommand.d.ts +2 -49
  277. package/dist-types/ts3.4/commands/AdminRespondToAuthChallengeCommand.d.ts +2 -39
  278. package/dist-types/ts3.4/commands/AdminSetUserMFAPreferenceCommand.d.ts +2 -24
  279. package/dist-types/ts3.4/commands/AdminSetUserPasswordCommand.d.ts +2 -29
  280. package/dist-types/ts3.4/commands/AdminSetUserSettingsCommand.d.ts +2 -23
  281. package/dist-types/ts3.4/commands/AdminUpdateAuthEventFeedbackCommand.d.ts +2 -22
  282. package/dist-types/ts3.4/commands/AdminUpdateDeviceStatusCommand.d.ts +2 -21
  283. package/dist-types/ts3.4/commands/AdminUpdateUserAttributesCommand.d.ts +2 -44
  284. package/dist-types/ts3.4/commands/AdminUserGlobalSignOutCommand.d.ts +2 -23
  285. package/dist-types/ts3.4/commands/AssociateSoftwareTokenCommand.d.ts +2 -29
  286. package/dist-types/ts3.4/commands/ChangePasswordCommand.d.ts +2 -20
  287. package/dist-types/ts3.4/commands/ConfirmDeviceCommand.d.ts +2 -21
  288. package/dist-types/ts3.4/commands/ConfirmForgotPasswordCommand.d.ts +2 -20
  289. package/dist-types/ts3.4/commands/ConfirmSignUpCommand.d.ts +2 -21
  290. package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +2 -21
  291. package/dist-types/ts3.4/commands/CreateIdentityProviderCommand.d.ts +2 -20
  292. package/dist-types/ts3.4/commands/CreateResourceServerCommand.d.ts +2 -20
  293. package/dist-types/ts3.4/commands/CreateUserImportJobCommand.d.ts +2 -20
  294. package/dist-types/ts3.4/commands/CreateUserPoolClientCommand.d.ts +2 -22
  295. package/dist-types/ts3.4/commands/CreateUserPoolCommand.d.ts +2 -38
  296. package/dist-types/ts3.4/commands/CreateUserPoolDomainCommand.d.ts +2 -20
  297. package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +2 -21
  298. package/dist-types/ts3.4/commands/DeleteIdentityProviderCommand.d.ts +2 -20
  299. package/dist-types/ts3.4/commands/DeleteResourceServerCommand.d.ts +2 -20
  300. package/dist-types/ts3.4/commands/DeleteUserAttributesCommand.d.ts +2 -20
  301. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +2 -20
  302. package/dist-types/ts3.4/commands/DeleteUserPoolClientCommand.d.ts +2 -20
  303. package/dist-types/ts3.4/commands/DeleteUserPoolCommand.d.ts +2 -20
  304. package/dist-types/ts3.4/commands/DeleteUserPoolDomainCommand.d.ts +2 -20
  305. package/dist-types/ts3.4/commands/DescribeIdentityProviderCommand.d.ts +2 -20
  306. package/dist-types/ts3.4/commands/DescribeResourceServerCommand.d.ts +2 -20
  307. package/dist-types/ts3.4/commands/DescribeRiskConfigurationCommand.d.ts +2 -20
  308. package/dist-types/ts3.4/commands/DescribeUserImportJobCommand.d.ts +2 -20
  309. package/dist-types/ts3.4/commands/DescribeUserPoolClientCommand.d.ts +2 -21
  310. package/dist-types/ts3.4/commands/DescribeUserPoolCommand.d.ts +2 -20
  311. package/dist-types/ts3.4/commands/DescribeUserPoolDomainCommand.d.ts +2 -20
  312. package/dist-types/ts3.4/commands/ForgetDeviceCommand.d.ts +2 -20
  313. package/dist-types/ts3.4/commands/ForgotPasswordCommand.d.ts +2 -44
  314. package/dist-types/ts3.4/commands/GetCSVHeaderCommand.d.ts +2 -21
  315. package/dist-types/ts3.4/commands/GetDeviceCommand.d.ts +2 -20
  316. package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +2 -21
  317. package/dist-types/ts3.4/commands/GetIdentityProviderByIdentifierCommand.d.ts +2 -20
  318. package/dist-types/ts3.4/commands/GetSigningCertificateCommand.d.ts +2 -20
  319. package/dist-types/ts3.4/commands/GetUICustomizationCommand.d.ts +2 -23
  320. package/dist-types/ts3.4/commands/GetUserAttributeVerificationCodeCommand.d.ts +2 -37
  321. package/dist-types/ts3.4/commands/GetUserCommand.d.ts +2 -20
  322. package/dist-types/ts3.4/commands/GetUserPoolMfaConfigCommand.d.ts +2 -20
  323. package/dist-types/ts3.4/commands/GlobalSignOutCommand.d.ts +2 -22
  324. package/dist-types/ts3.4/commands/InitiateAuthCommand.d.ts +2 -37
  325. package/dist-types/ts3.4/commands/ListDevicesCommand.d.ts +2 -20
  326. package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +2 -21
  327. package/dist-types/ts3.4/commands/ListIdentityProvidersCommand.d.ts +2 -20
  328. package/dist-types/ts3.4/commands/ListResourceServersCommand.d.ts +2 -20
  329. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -23
  330. package/dist-types/ts3.4/commands/ListUserImportJobsCommand.d.ts +2 -20
  331. package/dist-types/ts3.4/commands/ListUserPoolClientsCommand.d.ts +2 -20
  332. package/dist-types/ts3.4/commands/ListUserPoolsCommand.d.ts +2 -20
  333. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +2 -20
  334. package/dist-types/ts3.4/commands/ListUsersInGroupCommand.d.ts +2 -21
  335. package/dist-types/ts3.4/commands/ResendConfirmationCodeCommand.d.ts +2 -38
  336. package/dist-types/ts3.4/commands/RespondToAuthChallengeCommand.d.ts +2 -37
  337. package/dist-types/ts3.4/commands/RevokeTokenCommand.d.ts +2 -21
  338. package/dist-types/ts3.4/commands/SetRiskConfigurationCommand.d.ts +2 -24
  339. package/dist-types/ts3.4/commands/SetUICustomizationCommand.d.ts +2 -31
  340. package/dist-types/ts3.4/commands/SetUserMFAPreferenceCommand.d.ts +2 -28
  341. package/dist-types/ts3.4/commands/SetUserPoolMfaConfigCommand.d.ts +2 -37
  342. package/dist-types/ts3.4/commands/SetUserSettingsCommand.d.ts +2 -23
  343. package/dist-types/ts3.4/commands/SignUpCommand.d.ts +2 -38
  344. package/dist-types/ts3.4/commands/StartUserImportJobCommand.d.ts +2 -20
  345. package/dist-types/ts3.4/commands/StopUserImportJobCommand.d.ts +2 -20
  346. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -33
  347. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -21
  348. package/dist-types/ts3.4/commands/UpdateAuthEventFeedbackCommand.d.ts +2 -22
  349. package/dist-types/ts3.4/commands/UpdateDeviceStatusCommand.d.ts +2 -20
  350. package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +2 -21
  351. package/dist-types/ts3.4/commands/UpdateIdentityProviderCommand.d.ts +2 -20
  352. package/dist-types/ts3.4/commands/UpdateResourceServerCommand.d.ts +2 -24
  353. package/dist-types/ts3.4/commands/UpdateUserAttributesCommand.d.ts +2 -37
  354. package/dist-types/ts3.4/commands/UpdateUserPoolClientCommand.d.ts +2 -27
  355. package/dist-types/ts3.4/commands/UpdateUserPoolCommand.d.ts +2 -39
  356. package/dist-types/ts3.4/commands/UpdateUserPoolDomainCommand.d.ts +2 -40
  357. package/dist-types/ts3.4/commands/VerifySoftwareTokenCommand.d.ts +2 -22
  358. package/dist-types/ts3.4/commands/VerifyUserAttributeCommand.d.ts +2 -20
  359. package/dist-types/ts3.4/commands/index.d.ts +101 -0
  360. package/dist-types/ts3.4/index.d.ts +4 -113
  361. package/dist-types/ts3.4/models/models_0.d.ts +1183 -5804
  362. package/dist-types/ts3.4/models/models_1.d.ts +134 -604
  363. package/dist-types/ts3.4/pagination/index.d.ts +10 -0
  364. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -3
  365. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  366. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  367. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  368. package/package.json +33 -30
  369. package/dist-cjs/CognitoIdentityProvider.js.map +0 -1
  370. package/dist-cjs/CognitoIdentityProviderClient.js.map +0 -1
  371. package/dist-cjs/commands/AddCustomAttributesCommand.js.map +0 -1
  372. package/dist-cjs/commands/AdminAddUserToGroupCommand.js.map +0 -1
  373. package/dist-cjs/commands/AdminConfirmSignUpCommand.js.map +0 -1
  374. package/dist-cjs/commands/AdminCreateUserCommand.js.map +0 -1
  375. package/dist-cjs/commands/AdminDeleteUserAttributesCommand.js.map +0 -1
  376. package/dist-cjs/commands/AdminDeleteUserCommand.js.map +0 -1
  377. package/dist-cjs/commands/AdminDisableProviderForUserCommand.js.map +0 -1
  378. package/dist-cjs/commands/AdminDisableUserCommand.js.map +0 -1
  379. package/dist-cjs/commands/AdminEnableUserCommand.js.map +0 -1
  380. package/dist-cjs/commands/AdminForgetDeviceCommand.js.map +0 -1
  381. package/dist-cjs/commands/AdminGetDeviceCommand.js.map +0 -1
  382. package/dist-cjs/commands/AdminGetUserCommand.js.map +0 -1
  383. package/dist-cjs/commands/AdminInitiateAuthCommand.js.map +0 -1
  384. package/dist-cjs/commands/AdminLinkProviderForUserCommand.js.map +0 -1
  385. package/dist-cjs/commands/AdminListDevicesCommand.js.map +0 -1
  386. package/dist-cjs/commands/AdminListGroupsForUserCommand.js.map +0 -1
  387. package/dist-cjs/commands/AdminListUserAuthEventsCommand.js.map +0 -1
  388. package/dist-cjs/commands/AdminRemoveUserFromGroupCommand.js.map +0 -1
  389. package/dist-cjs/commands/AdminResetUserPasswordCommand.js.map +0 -1
  390. package/dist-cjs/commands/AdminRespondToAuthChallengeCommand.js.map +0 -1
  391. package/dist-cjs/commands/AdminSetUserMFAPreferenceCommand.js.map +0 -1
  392. package/dist-cjs/commands/AdminSetUserPasswordCommand.js.map +0 -1
  393. package/dist-cjs/commands/AdminSetUserSettingsCommand.js.map +0 -1
  394. package/dist-cjs/commands/AdminUpdateAuthEventFeedbackCommand.js.map +0 -1
  395. package/dist-cjs/commands/AdminUpdateDeviceStatusCommand.js.map +0 -1
  396. package/dist-cjs/commands/AdminUpdateUserAttributesCommand.js.map +0 -1
  397. package/dist-cjs/commands/AdminUserGlobalSignOutCommand.js.map +0 -1
  398. package/dist-cjs/commands/AssociateSoftwareTokenCommand.js.map +0 -1
  399. package/dist-cjs/commands/ChangePasswordCommand.js.map +0 -1
  400. package/dist-cjs/commands/ConfirmDeviceCommand.js.map +0 -1
  401. package/dist-cjs/commands/ConfirmForgotPasswordCommand.js.map +0 -1
  402. package/dist-cjs/commands/ConfirmSignUpCommand.js.map +0 -1
  403. package/dist-cjs/commands/CreateGroupCommand.js.map +0 -1
  404. package/dist-cjs/commands/CreateIdentityProviderCommand.js.map +0 -1
  405. package/dist-cjs/commands/CreateResourceServerCommand.js.map +0 -1
  406. package/dist-cjs/commands/CreateUserImportJobCommand.js.map +0 -1
  407. package/dist-cjs/commands/CreateUserPoolClientCommand.js.map +0 -1
  408. package/dist-cjs/commands/CreateUserPoolCommand.js.map +0 -1
  409. package/dist-cjs/commands/CreateUserPoolDomainCommand.js.map +0 -1
  410. package/dist-cjs/commands/DeleteGroupCommand.js.map +0 -1
  411. package/dist-cjs/commands/DeleteIdentityProviderCommand.js.map +0 -1
  412. package/dist-cjs/commands/DeleteResourceServerCommand.js.map +0 -1
  413. package/dist-cjs/commands/DeleteUserAttributesCommand.js.map +0 -1
  414. package/dist-cjs/commands/DeleteUserCommand.js.map +0 -1
  415. package/dist-cjs/commands/DeleteUserPoolClientCommand.js.map +0 -1
  416. package/dist-cjs/commands/DeleteUserPoolCommand.js.map +0 -1
  417. package/dist-cjs/commands/DeleteUserPoolDomainCommand.js.map +0 -1
  418. package/dist-cjs/commands/DescribeIdentityProviderCommand.js.map +0 -1
  419. package/dist-cjs/commands/DescribeResourceServerCommand.js.map +0 -1
  420. package/dist-cjs/commands/DescribeRiskConfigurationCommand.js.map +0 -1
  421. package/dist-cjs/commands/DescribeUserImportJobCommand.js.map +0 -1
  422. package/dist-cjs/commands/DescribeUserPoolClientCommand.js.map +0 -1
  423. package/dist-cjs/commands/DescribeUserPoolCommand.js.map +0 -1
  424. package/dist-cjs/commands/DescribeUserPoolDomainCommand.js.map +0 -1
  425. package/dist-cjs/commands/ForgetDeviceCommand.js.map +0 -1
  426. package/dist-cjs/commands/ForgotPasswordCommand.js.map +0 -1
  427. package/dist-cjs/commands/GetCSVHeaderCommand.js.map +0 -1
  428. package/dist-cjs/commands/GetDeviceCommand.js.map +0 -1
  429. package/dist-cjs/commands/GetGroupCommand.js.map +0 -1
  430. package/dist-cjs/commands/GetIdentityProviderByIdentifierCommand.js.map +0 -1
  431. package/dist-cjs/commands/GetSigningCertificateCommand.js.map +0 -1
  432. package/dist-cjs/commands/GetUICustomizationCommand.js.map +0 -1
  433. package/dist-cjs/commands/GetUserAttributeVerificationCodeCommand.js.map +0 -1
  434. package/dist-cjs/commands/GetUserCommand.js.map +0 -1
  435. package/dist-cjs/commands/GetUserPoolMfaConfigCommand.js.map +0 -1
  436. package/dist-cjs/commands/GlobalSignOutCommand.js.map +0 -1
  437. package/dist-cjs/commands/InitiateAuthCommand.js.map +0 -1
  438. package/dist-cjs/commands/ListDevicesCommand.js.map +0 -1
  439. package/dist-cjs/commands/ListGroupsCommand.js.map +0 -1
  440. package/dist-cjs/commands/ListIdentityProvidersCommand.js.map +0 -1
  441. package/dist-cjs/commands/ListResourceServersCommand.js.map +0 -1
  442. package/dist-cjs/commands/ListTagsForResourceCommand.js.map +0 -1
  443. package/dist-cjs/commands/ListUserImportJobsCommand.js.map +0 -1
  444. package/dist-cjs/commands/ListUserPoolClientsCommand.js.map +0 -1
  445. package/dist-cjs/commands/ListUserPoolsCommand.js.map +0 -1
  446. package/dist-cjs/commands/ListUsersCommand.js.map +0 -1
  447. package/dist-cjs/commands/ListUsersInGroupCommand.js.map +0 -1
  448. package/dist-cjs/commands/ResendConfirmationCodeCommand.js.map +0 -1
  449. package/dist-cjs/commands/RespondToAuthChallengeCommand.js.map +0 -1
  450. package/dist-cjs/commands/RevokeTokenCommand.js.map +0 -1
  451. package/dist-cjs/commands/SetRiskConfigurationCommand.js.map +0 -1
  452. package/dist-cjs/commands/SetUICustomizationCommand.js.map +0 -1
  453. package/dist-cjs/commands/SetUserMFAPreferenceCommand.js.map +0 -1
  454. package/dist-cjs/commands/SetUserPoolMfaConfigCommand.js.map +0 -1
  455. package/dist-cjs/commands/SetUserSettingsCommand.js.map +0 -1
  456. package/dist-cjs/commands/SignUpCommand.js.map +0 -1
  457. package/dist-cjs/commands/StartUserImportJobCommand.js.map +0 -1
  458. package/dist-cjs/commands/StopUserImportJobCommand.js.map +0 -1
  459. package/dist-cjs/commands/TagResourceCommand.js.map +0 -1
  460. package/dist-cjs/commands/UntagResourceCommand.js.map +0 -1
  461. package/dist-cjs/commands/UpdateAuthEventFeedbackCommand.js.map +0 -1
  462. package/dist-cjs/commands/UpdateDeviceStatusCommand.js.map +0 -1
  463. package/dist-cjs/commands/UpdateGroupCommand.js.map +0 -1
  464. package/dist-cjs/commands/UpdateIdentityProviderCommand.js.map +0 -1
  465. package/dist-cjs/commands/UpdateResourceServerCommand.js.map +0 -1
  466. package/dist-cjs/commands/UpdateUserAttributesCommand.js.map +0 -1
  467. package/dist-cjs/commands/UpdateUserPoolClientCommand.js.map +0 -1
  468. package/dist-cjs/commands/UpdateUserPoolCommand.js.map +0 -1
  469. package/dist-cjs/commands/UpdateUserPoolDomainCommand.js.map +0 -1
  470. package/dist-cjs/commands/VerifySoftwareTokenCommand.js.map +0 -1
  471. package/dist-cjs/commands/VerifyUserAttributeCommand.js.map +0 -1
  472. package/dist-cjs/endpoints.js.map +0 -1
  473. package/dist-cjs/index.js.map +0 -1
  474. package/dist-cjs/models/index.js.map +0 -1
  475. package/dist-cjs/models/models_0.js.map +0 -1
  476. package/dist-cjs/models/models_1.js.map +0 -1
  477. package/dist-cjs/pagination/AdminListGroupsForUserPaginator.js.map +0 -1
  478. package/dist-cjs/pagination/AdminListUserAuthEventsPaginator.js.map +0 -1
  479. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  480. package/dist-cjs/pagination/ListGroupsPaginator.js.map +0 -1
  481. package/dist-cjs/pagination/ListIdentityProvidersPaginator.js.map +0 -1
  482. package/dist-cjs/pagination/ListResourceServersPaginator.js.map +0 -1
  483. package/dist-cjs/pagination/ListUserPoolClientsPaginator.js.map +0 -1
  484. package/dist-cjs/pagination/ListUserPoolsPaginator.js.map +0 -1
  485. package/dist-cjs/pagination/ListUsersInGroupPaginator.js.map +0 -1
  486. package/dist-cjs/pagination/ListUsersPaginator.js.map +0 -1
  487. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  488. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  489. package/dist-cjs/runtimeConfig.js.map +0 -1
  490. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  491. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  492. package/dist-es/CognitoIdentityProvider.js.map +0 -1
  493. package/dist-es/CognitoIdentityProviderClient.js.map +0 -1
  494. package/dist-es/commands/AddCustomAttributesCommand.js.map +0 -1
  495. package/dist-es/commands/AdminAddUserToGroupCommand.js.map +0 -1
  496. package/dist-es/commands/AdminConfirmSignUpCommand.js.map +0 -1
  497. package/dist-es/commands/AdminCreateUserCommand.js.map +0 -1
  498. package/dist-es/commands/AdminDeleteUserAttributesCommand.js.map +0 -1
  499. package/dist-es/commands/AdminDeleteUserCommand.js.map +0 -1
  500. package/dist-es/commands/AdminDisableProviderForUserCommand.js.map +0 -1
  501. package/dist-es/commands/AdminDisableUserCommand.js.map +0 -1
  502. package/dist-es/commands/AdminEnableUserCommand.js.map +0 -1
  503. package/dist-es/commands/AdminForgetDeviceCommand.js.map +0 -1
  504. package/dist-es/commands/AdminGetDeviceCommand.js.map +0 -1
  505. package/dist-es/commands/AdminGetUserCommand.js.map +0 -1
  506. package/dist-es/commands/AdminInitiateAuthCommand.js.map +0 -1
  507. package/dist-es/commands/AdminLinkProviderForUserCommand.js.map +0 -1
  508. package/dist-es/commands/AdminListDevicesCommand.js.map +0 -1
  509. package/dist-es/commands/AdminListGroupsForUserCommand.js.map +0 -1
  510. package/dist-es/commands/AdminListUserAuthEventsCommand.js.map +0 -1
  511. package/dist-es/commands/AdminRemoveUserFromGroupCommand.js.map +0 -1
  512. package/dist-es/commands/AdminResetUserPasswordCommand.js.map +0 -1
  513. package/dist-es/commands/AdminRespondToAuthChallengeCommand.js.map +0 -1
  514. package/dist-es/commands/AdminSetUserMFAPreferenceCommand.js.map +0 -1
  515. package/dist-es/commands/AdminSetUserPasswordCommand.js.map +0 -1
  516. package/dist-es/commands/AdminSetUserSettingsCommand.js.map +0 -1
  517. package/dist-es/commands/AdminUpdateAuthEventFeedbackCommand.js.map +0 -1
  518. package/dist-es/commands/AdminUpdateDeviceStatusCommand.js.map +0 -1
  519. package/dist-es/commands/AdminUpdateUserAttributesCommand.js.map +0 -1
  520. package/dist-es/commands/AdminUserGlobalSignOutCommand.js.map +0 -1
  521. package/dist-es/commands/AssociateSoftwareTokenCommand.js.map +0 -1
  522. package/dist-es/commands/ChangePasswordCommand.js.map +0 -1
  523. package/dist-es/commands/ConfirmDeviceCommand.js.map +0 -1
  524. package/dist-es/commands/ConfirmForgotPasswordCommand.js.map +0 -1
  525. package/dist-es/commands/ConfirmSignUpCommand.js.map +0 -1
  526. package/dist-es/commands/CreateGroupCommand.js.map +0 -1
  527. package/dist-es/commands/CreateIdentityProviderCommand.js.map +0 -1
  528. package/dist-es/commands/CreateResourceServerCommand.js.map +0 -1
  529. package/dist-es/commands/CreateUserImportJobCommand.js.map +0 -1
  530. package/dist-es/commands/CreateUserPoolClientCommand.js.map +0 -1
  531. package/dist-es/commands/CreateUserPoolCommand.js.map +0 -1
  532. package/dist-es/commands/CreateUserPoolDomainCommand.js.map +0 -1
  533. package/dist-es/commands/DeleteGroupCommand.js.map +0 -1
  534. package/dist-es/commands/DeleteIdentityProviderCommand.js.map +0 -1
  535. package/dist-es/commands/DeleteResourceServerCommand.js.map +0 -1
  536. package/dist-es/commands/DeleteUserAttributesCommand.js.map +0 -1
  537. package/dist-es/commands/DeleteUserCommand.js.map +0 -1
  538. package/dist-es/commands/DeleteUserPoolClientCommand.js.map +0 -1
  539. package/dist-es/commands/DeleteUserPoolCommand.js.map +0 -1
  540. package/dist-es/commands/DeleteUserPoolDomainCommand.js.map +0 -1
  541. package/dist-es/commands/DescribeIdentityProviderCommand.js.map +0 -1
  542. package/dist-es/commands/DescribeResourceServerCommand.js.map +0 -1
  543. package/dist-es/commands/DescribeRiskConfigurationCommand.js.map +0 -1
  544. package/dist-es/commands/DescribeUserImportJobCommand.js.map +0 -1
  545. package/dist-es/commands/DescribeUserPoolClientCommand.js.map +0 -1
  546. package/dist-es/commands/DescribeUserPoolCommand.js.map +0 -1
  547. package/dist-es/commands/DescribeUserPoolDomainCommand.js.map +0 -1
  548. package/dist-es/commands/ForgetDeviceCommand.js.map +0 -1
  549. package/dist-es/commands/ForgotPasswordCommand.js.map +0 -1
  550. package/dist-es/commands/GetCSVHeaderCommand.js.map +0 -1
  551. package/dist-es/commands/GetDeviceCommand.js.map +0 -1
  552. package/dist-es/commands/GetGroupCommand.js.map +0 -1
  553. package/dist-es/commands/GetIdentityProviderByIdentifierCommand.js.map +0 -1
  554. package/dist-es/commands/GetSigningCertificateCommand.js.map +0 -1
  555. package/dist-es/commands/GetUICustomizationCommand.js.map +0 -1
  556. package/dist-es/commands/GetUserAttributeVerificationCodeCommand.js.map +0 -1
  557. package/dist-es/commands/GetUserCommand.js.map +0 -1
  558. package/dist-es/commands/GetUserPoolMfaConfigCommand.js.map +0 -1
  559. package/dist-es/commands/GlobalSignOutCommand.js.map +0 -1
  560. package/dist-es/commands/InitiateAuthCommand.js.map +0 -1
  561. package/dist-es/commands/ListDevicesCommand.js.map +0 -1
  562. package/dist-es/commands/ListGroupsCommand.js.map +0 -1
  563. package/dist-es/commands/ListIdentityProvidersCommand.js.map +0 -1
  564. package/dist-es/commands/ListResourceServersCommand.js.map +0 -1
  565. package/dist-es/commands/ListTagsForResourceCommand.js.map +0 -1
  566. package/dist-es/commands/ListUserImportJobsCommand.js.map +0 -1
  567. package/dist-es/commands/ListUserPoolClientsCommand.js.map +0 -1
  568. package/dist-es/commands/ListUserPoolsCommand.js.map +0 -1
  569. package/dist-es/commands/ListUsersCommand.js.map +0 -1
  570. package/dist-es/commands/ListUsersInGroupCommand.js.map +0 -1
  571. package/dist-es/commands/ResendConfirmationCodeCommand.js.map +0 -1
  572. package/dist-es/commands/RespondToAuthChallengeCommand.js.map +0 -1
  573. package/dist-es/commands/RevokeTokenCommand.js.map +0 -1
  574. package/dist-es/commands/SetRiskConfigurationCommand.js.map +0 -1
  575. package/dist-es/commands/SetUICustomizationCommand.js.map +0 -1
  576. package/dist-es/commands/SetUserMFAPreferenceCommand.js.map +0 -1
  577. package/dist-es/commands/SetUserPoolMfaConfigCommand.js.map +0 -1
  578. package/dist-es/commands/SetUserSettingsCommand.js.map +0 -1
  579. package/dist-es/commands/SignUpCommand.js.map +0 -1
  580. package/dist-es/commands/StartUserImportJobCommand.js.map +0 -1
  581. package/dist-es/commands/StopUserImportJobCommand.js.map +0 -1
  582. package/dist-es/commands/TagResourceCommand.js.map +0 -1
  583. package/dist-es/commands/UntagResourceCommand.js.map +0 -1
  584. package/dist-es/commands/UpdateAuthEventFeedbackCommand.js.map +0 -1
  585. package/dist-es/commands/UpdateDeviceStatusCommand.js.map +0 -1
  586. package/dist-es/commands/UpdateGroupCommand.js.map +0 -1
  587. package/dist-es/commands/UpdateIdentityProviderCommand.js.map +0 -1
  588. package/dist-es/commands/UpdateResourceServerCommand.js.map +0 -1
  589. package/dist-es/commands/UpdateUserAttributesCommand.js.map +0 -1
  590. package/dist-es/commands/UpdateUserPoolClientCommand.js.map +0 -1
  591. package/dist-es/commands/UpdateUserPoolCommand.js.map +0 -1
  592. package/dist-es/commands/UpdateUserPoolDomainCommand.js.map +0 -1
  593. package/dist-es/commands/VerifySoftwareTokenCommand.js.map +0 -1
  594. package/dist-es/commands/VerifyUserAttributeCommand.js.map +0 -1
  595. package/dist-es/endpoints.js.map +0 -1
  596. package/dist-es/index.js.map +0 -1
  597. package/dist-es/models/index.js.map +0 -1
  598. package/dist-es/models/models_0.js.map +0 -1
  599. package/dist-es/models/models_1.js.map +0 -1
  600. package/dist-es/pagination/AdminListGroupsForUserPaginator.js.map +0 -1
  601. package/dist-es/pagination/AdminListUserAuthEventsPaginator.js.map +0 -1
  602. package/dist-es/pagination/Interfaces.js.map +0 -1
  603. package/dist-es/pagination/ListGroupsPaginator.js.map +0 -1
  604. package/dist-es/pagination/ListIdentityProvidersPaginator.js.map +0 -1
  605. package/dist-es/pagination/ListResourceServersPaginator.js.map +0 -1
  606. package/dist-es/pagination/ListUserPoolClientsPaginator.js.map +0 -1
  607. package/dist-es/pagination/ListUserPoolsPaginator.js.map +0 -1
  608. package/dist-es/pagination/ListUsersInGroupPaginator.js.map +0 -1
  609. package/dist-es/pagination/ListUsersPaginator.js.map +0 -1
  610. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  611. package/dist-es/runtimeConfig.browser.js.map +0 -1
  612. package/dist-es/runtimeConfig.js.map +0 -1
  613. package/dist-es/runtimeConfig.native.js.map +0 -1
  614. package/dist-es/runtimeConfig.shared.js.map +0 -1
  615. package/jest.config.js +0 -4
  616. package/src/CognitoIdentityProvider.ts +0 -4102
  617. package/src/CognitoIdentityProviderClient.ts +0 -707
  618. package/src/commands/AddCustomAttributesCommand.ts +0 -101
  619. package/src/commands/AdminAddUserToGroupCommand.ts +0 -102
  620. package/src/commands/AdminConfirmSignUpCommand.ts +0 -103
  621. package/src/commands/AdminCreateUserCommand.ts +0 -130
  622. package/src/commands/AdminDeleteUserAttributesCommand.ts +0 -106
  623. package/src/commands/AdminDeleteUserCommand.ts +0 -102
  624. package/src/commands/AdminDisableProviderForUserCommand.ts +0 -133
  625. package/src/commands/AdminDisableUserCommand.ts +0 -102
  626. package/src/commands/AdminEnableUserCommand.ts +0 -102
  627. package/src/commands/AdminForgetDeviceCommand.ts +0 -102
  628. package/src/commands/AdminGetDeviceCommand.ts +0 -102
  629. package/src/commands/AdminGetUserCommand.ts +0 -103
  630. package/src/commands/AdminInitiateAuthCommand.ts +0 -121
  631. package/src/commands/AdminLinkProviderForUserCommand.ts +0 -121
  632. package/src/commands/AdminListDevicesCommand.ts +0 -102
  633. package/src/commands/AdminListGroupsForUserCommand.ts +0 -102
  634. package/src/commands/AdminListUserAuthEventsCommand.ts +0 -102
  635. package/src/commands/AdminRemoveUserFromGroupCommand.ts +0 -102
  636. package/src/commands/AdminResetUserPasswordCommand.ts +0 -130
  637. package/src/commands/AdminRespondToAuthChallengeCommand.ts +0 -125
  638. package/src/commands/AdminSetUserMFAPreferenceCommand.ts +0 -108
  639. package/src/commands/AdminSetUserPasswordCommand.ts +0 -110
  640. package/src/commands/AdminSetUserSettingsCommand.ts +0 -104
  641. package/src/commands/AdminUpdateAuthEventFeedbackCommand.ts +0 -108
  642. package/src/commands/AdminUpdateDeviceStatusCommand.ts +0 -102
  643. package/src/commands/AdminUpdateUserAttributesCommand.ts +0 -128
  644. package/src/commands/AdminUserGlobalSignOutCommand.ts +0 -104
  645. package/src/commands/AssociateSoftwareTokenCommand.ts +0 -110
  646. package/src/commands/ChangePasswordCommand.ts +0 -99
  647. package/src/commands/ConfirmDeviceCommand.ts +0 -102
  648. package/src/commands/ConfirmForgotPasswordCommand.ts +0 -99
  649. package/src/commands/ConfirmSignUpCommand.ts +0 -100
  650. package/src/commands/CreateGroupCommand.ts +0 -102
  651. package/src/commands/CreateIdentityProviderCommand.ts +0 -101
  652. package/src/commands/CreateResourceServerCommand.ts +0 -101
  653. package/src/commands/CreateUserImportJobCommand.ts +0 -101
  654. package/src/commands/CreateUserPoolClientCommand.ts +0 -103
  655. package/src/commands/CreateUserPoolCommand.ts +0 -119
  656. package/src/commands/CreateUserPoolDomainCommand.ts +0 -101
  657. package/src/commands/DeleteGroupCommand.ts +0 -102
  658. package/src/commands/DeleteIdentityProviderCommand.ts +0 -101
  659. package/src/commands/DeleteResourceServerCommand.ts +0 -101
  660. package/src/commands/DeleteUserAttributesCommand.ts +0 -99
  661. package/src/commands/DeleteUserCommand.ts +0 -99
  662. package/src/commands/DeleteUserPoolClientCommand.ts +0 -101
  663. package/src/commands/DeleteUserPoolCommand.ts +0 -101
  664. package/src/commands/DeleteUserPoolDomainCommand.ts +0 -101
  665. package/src/commands/DescribeIdentityProviderCommand.ts +0 -101
  666. package/src/commands/DescribeResourceServerCommand.ts +0 -101
  667. package/src/commands/DescribeRiskConfigurationCommand.ts +0 -104
  668. package/src/commands/DescribeUserImportJobCommand.ts +0 -101
  669. package/src/commands/DescribeUserPoolClientCommand.ts +0 -102
  670. package/src/commands/DescribeUserPoolCommand.ts +0 -101
  671. package/src/commands/DescribeUserPoolDomainCommand.ts +0 -101
  672. package/src/commands/ForgetDeviceCommand.ts +0 -101
  673. package/src/commands/ForgotPasswordCommand.ts +0 -123
  674. package/src/commands/GetCSVHeaderCommand.ts +0 -102
  675. package/src/commands/GetDeviceCommand.ts +0 -98
  676. package/src/commands/GetGroupCommand.ts +0 -99
  677. package/src/commands/GetIdentityProviderByIdentifierCommand.ts +0 -109
  678. package/src/commands/GetSigningCertificateCommand.ts +0 -101
  679. package/src/commands/GetUICustomizationCommand.ts +0 -104
  680. package/src/commands/GetUserAttributeVerificationCodeCommand.ts +0 -124
  681. package/src/commands/GetUserCommand.ts +0 -96
  682. package/src/commands/GetUserPoolMfaConfigCommand.ts +0 -101
  683. package/src/commands/GlobalSignOutCommand.ts +0 -103
  684. package/src/commands/InitiateAuthCommand.ts +0 -116
  685. package/src/commands/ListDevicesCommand.ts +0 -101
  686. package/src/commands/ListGroupsCommand.ts +0 -102
  687. package/src/commands/ListIdentityProvidersCommand.ts +0 -101
  688. package/src/commands/ListResourceServersCommand.ts +0 -101
  689. package/src/commands/ListTagsForResourceCommand.ts +0 -104
  690. package/src/commands/ListUserImportJobsCommand.ts +0 -101
  691. package/src/commands/ListUserPoolClientsCommand.ts +0 -101
  692. package/src/commands/ListUserPoolsCommand.ts +0 -101
  693. package/src/commands/ListUsersCommand.ts +0 -98
  694. package/src/commands/ListUsersInGroupCommand.ts +0 -102
  695. package/src/commands/ResendConfirmationCodeCommand.ts +0 -117
  696. package/src/commands/RespondToAuthChallengeCommand.ts +0 -116
  697. package/src/commands/RevokeTokenCommand.ts +0 -102
  698. package/src/commands/SetRiskConfigurationCommand.ts +0 -105
  699. package/src/commands/SetUICustomizationCommand.ts +0 -112
  700. package/src/commands/SetUserMFAPreferenceCommand.ts +0 -109
  701. package/src/commands/SetUserPoolMfaConfigCommand.ts +0 -118
  702. package/src/commands/SetUserSettingsCommand.ts +0 -102
  703. package/src/commands/SignUpCommand.ts +0 -114
  704. package/src/commands/StartUserImportJobCommand.ts +0 -102
  705. package/src/commands/StopUserImportJobCommand.ts +0 -101
  706. package/src/commands/TagResourceCommand.ts +0 -114
  707. package/src/commands/UntagResourceCommand.ts +0 -102
  708. package/src/commands/UpdateAuthEventFeedbackCommand.ts +0 -103
  709. package/src/commands/UpdateDeviceStatusCommand.ts +0 -101
  710. package/src/commands/UpdateGroupCommand.ts +0 -102
  711. package/src/commands/UpdateIdentityProviderCommand.ts +0 -101
  712. package/src/commands/UpdateResourceServerCommand.ts +0 -105
  713. package/src/commands/UpdateUserAttributesCommand.ts +0 -116
  714. package/src/commands/UpdateUserPoolClientCommand.ts +0 -108
  715. package/src/commands/UpdateUserPoolCommand.ts +0 -120
  716. package/src/commands/UpdateUserPoolDomainCommand.ts +0 -121
  717. package/src/commands/VerifySoftwareTokenCommand.ts +0 -103
  718. package/src/commands/VerifyUserAttributeCommand.ts +0 -99
  719. package/src/endpoints.ts +0 -82
  720. package/src/index.ts +0 -114
  721. package/src/models/index.ts +0 -2
  722. package/src/models/models_0.ts +0 -9830
  723. package/src/models/models_1.ts +0 -1072
  724. package/src/pagination/AdminListGroupsForUserPaginator.ts +0 -59
  725. package/src/pagination/AdminListUserAuthEventsPaginator.ts +0 -59
  726. package/src/pagination/Interfaces.ts +0 -8
  727. package/src/pagination/ListGroupsPaginator.ts +0 -55
  728. package/src/pagination/ListIdentityProvidersPaginator.ts +0 -59
  729. package/src/pagination/ListResourceServersPaginator.ts +0 -59
  730. package/src/pagination/ListUserPoolClientsPaginator.ts +0 -59
  731. package/src/pagination/ListUserPoolsPaginator.ts +0 -59
  732. package/src/pagination/ListUsersInGroupPaginator.ts +0 -59
  733. package/src/pagination/ListUsersPaginator.ts +0 -55
  734. package/src/protocols/Aws_json1_1.ts +0 -18343
  735. package/src/runtimeConfig.browser.ts +0 -41
  736. package/src/runtimeConfig.native.ts +0 -17
  737. package/src/runtimeConfig.shared.ts +0 -17
  738. package/src/runtimeConfig.ts +0 -46
  739. package/tsconfig.es.json +0 -10
  740. package/tsconfig.json +0 -33
  741. package/tsconfig.types.json +0 -9
@@ -1,4102 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import { CognitoIdentityProviderClient } from "./CognitoIdentityProviderClient";
4
- import {
5
- AddCustomAttributesCommand,
6
- AddCustomAttributesCommandInput,
7
- AddCustomAttributesCommandOutput,
8
- } from "./commands/AddCustomAttributesCommand";
9
- import {
10
- AdminAddUserToGroupCommand,
11
- AdminAddUserToGroupCommandInput,
12
- AdminAddUserToGroupCommandOutput,
13
- } from "./commands/AdminAddUserToGroupCommand";
14
- import {
15
- AdminConfirmSignUpCommand,
16
- AdminConfirmSignUpCommandInput,
17
- AdminConfirmSignUpCommandOutput,
18
- } from "./commands/AdminConfirmSignUpCommand";
19
- import {
20
- AdminCreateUserCommand,
21
- AdminCreateUserCommandInput,
22
- AdminCreateUserCommandOutput,
23
- } from "./commands/AdminCreateUserCommand";
24
- import {
25
- AdminDeleteUserAttributesCommand,
26
- AdminDeleteUserAttributesCommandInput,
27
- AdminDeleteUserAttributesCommandOutput,
28
- } from "./commands/AdminDeleteUserAttributesCommand";
29
- import {
30
- AdminDeleteUserCommand,
31
- AdminDeleteUserCommandInput,
32
- AdminDeleteUserCommandOutput,
33
- } from "./commands/AdminDeleteUserCommand";
34
- import {
35
- AdminDisableProviderForUserCommand,
36
- AdminDisableProviderForUserCommandInput,
37
- AdminDisableProviderForUserCommandOutput,
38
- } from "./commands/AdminDisableProviderForUserCommand";
39
- import {
40
- AdminDisableUserCommand,
41
- AdminDisableUserCommandInput,
42
- AdminDisableUserCommandOutput,
43
- } from "./commands/AdminDisableUserCommand";
44
- import {
45
- AdminEnableUserCommand,
46
- AdminEnableUserCommandInput,
47
- AdminEnableUserCommandOutput,
48
- } from "./commands/AdminEnableUserCommand";
49
- import {
50
- AdminForgetDeviceCommand,
51
- AdminForgetDeviceCommandInput,
52
- AdminForgetDeviceCommandOutput,
53
- } from "./commands/AdminForgetDeviceCommand";
54
- import {
55
- AdminGetDeviceCommand,
56
- AdminGetDeviceCommandInput,
57
- AdminGetDeviceCommandOutput,
58
- } from "./commands/AdminGetDeviceCommand";
59
- import {
60
- AdminGetUserCommand,
61
- AdminGetUserCommandInput,
62
- AdminGetUserCommandOutput,
63
- } from "./commands/AdminGetUserCommand";
64
- import {
65
- AdminInitiateAuthCommand,
66
- AdminInitiateAuthCommandInput,
67
- AdminInitiateAuthCommandOutput,
68
- } from "./commands/AdminInitiateAuthCommand";
69
- import {
70
- AdminLinkProviderForUserCommand,
71
- AdminLinkProviderForUserCommandInput,
72
- AdminLinkProviderForUserCommandOutput,
73
- } from "./commands/AdminLinkProviderForUserCommand";
74
- import {
75
- AdminListDevicesCommand,
76
- AdminListDevicesCommandInput,
77
- AdminListDevicesCommandOutput,
78
- } from "./commands/AdminListDevicesCommand";
79
- import {
80
- AdminListGroupsForUserCommand,
81
- AdminListGroupsForUserCommandInput,
82
- AdminListGroupsForUserCommandOutput,
83
- } from "./commands/AdminListGroupsForUserCommand";
84
- import {
85
- AdminListUserAuthEventsCommand,
86
- AdminListUserAuthEventsCommandInput,
87
- AdminListUserAuthEventsCommandOutput,
88
- } from "./commands/AdminListUserAuthEventsCommand";
89
- import {
90
- AdminRemoveUserFromGroupCommand,
91
- AdminRemoveUserFromGroupCommandInput,
92
- AdminRemoveUserFromGroupCommandOutput,
93
- } from "./commands/AdminRemoveUserFromGroupCommand";
94
- import {
95
- AdminResetUserPasswordCommand,
96
- AdminResetUserPasswordCommandInput,
97
- AdminResetUserPasswordCommandOutput,
98
- } from "./commands/AdminResetUserPasswordCommand";
99
- import {
100
- AdminRespondToAuthChallengeCommand,
101
- AdminRespondToAuthChallengeCommandInput,
102
- AdminRespondToAuthChallengeCommandOutput,
103
- } from "./commands/AdminRespondToAuthChallengeCommand";
104
- import {
105
- AdminSetUserMFAPreferenceCommand,
106
- AdminSetUserMFAPreferenceCommandInput,
107
- AdminSetUserMFAPreferenceCommandOutput,
108
- } from "./commands/AdminSetUserMFAPreferenceCommand";
109
- import {
110
- AdminSetUserPasswordCommand,
111
- AdminSetUserPasswordCommandInput,
112
- AdminSetUserPasswordCommandOutput,
113
- } from "./commands/AdminSetUserPasswordCommand";
114
- import {
115
- AdminSetUserSettingsCommand,
116
- AdminSetUserSettingsCommandInput,
117
- AdminSetUserSettingsCommandOutput,
118
- } from "./commands/AdminSetUserSettingsCommand";
119
- import {
120
- AdminUpdateAuthEventFeedbackCommand,
121
- AdminUpdateAuthEventFeedbackCommandInput,
122
- AdminUpdateAuthEventFeedbackCommandOutput,
123
- } from "./commands/AdminUpdateAuthEventFeedbackCommand";
124
- import {
125
- AdminUpdateDeviceStatusCommand,
126
- AdminUpdateDeviceStatusCommandInput,
127
- AdminUpdateDeviceStatusCommandOutput,
128
- } from "./commands/AdminUpdateDeviceStatusCommand";
129
- import {
130
- AdminUpdateUserAttributesCommand,
131
- AdminUpdateUserAttributesCommandInput,
132
- AdminUpdateUserAttributesCommandOutput,
133
- } from "./commands/AdminUpdateUserAttributesCommand";
134
- import {
135
- AdminUserGlobalSignOutCommand,
136
- AdminUserGlobalSignOutCommandInput,
137
- AdminUserGlobalSignOutCommandOutput,
138
- } from "./commands/AdminUserGlobalSignOutCommand";
139
- import {
140
- AssociateSoftwareTokenCommand,
141
- AssociateSoftwareTokenCommandInput,
142
- AssociateSoftwareTokenCommandOutput,
143
- } from "./commands/AssociateSoftwareTokenCommand";
144
- import {
145
- ChangePasswordCommand,
146
- ChangePasswordCommandInput,
147
- ChangePasswordCommandOutput,
148
- } from "./commands/ChangePasswordCommand";
149
- import {
150
- ConfirmDeviceCommand,
151
- ConfirmDeviceCommandInput,
152
- ConfirmDeviceCommandOutput,
153
- } from "./commands/ConfirmDeviceCommand";
154
- import {
155
- ConfirmForgotPasswordCommand,
156
- ConfirmForgotPasswordCommandInput,
157
- ConfirmForgotPasswordCommandOutput,
158
- } from "./commands/ConfirmForgotPasswordCommand";
159
- import {
160
- ConfirmSignUpCommand,
161
- ConfirmSignUpCommandInput,
162
- ConfirmSignUpCommandOutput,
163
- } from "./commands/ConfirmSignUpCommand";
164
- import { CreateGroupCommand, CreateGroupCommandInput, CreateGroupCommandOutput } from "./commands/CreateGroupCommand";
165
- import {
166
- CreateIdentityProviderCommand,
167
- CreateIdentityProviderCommandInput,
168
- CreateIdentityProviderCommandOutput,
169
- } from "./commands/CreateIdentityProviderCommand";
170
- import {
171
- CreateResourceServerCommand,
172
- CreateResourceServerCommandInput,
173
- CreateResourceServerCommandOutput,
174
- } from "./commands/CreateResourceServerCommand";
175
- import {
176
- CreateUserImportJobCommand,
177
- CreateUserImportJobCommandInput,
178
- CreateUserImportJobCommandOutput,
179
- } from "./commands/CreateUserImportJobCommand";
180
- import {
181
- CreateUserPoolClientCommand,
182
- CreateUserPoolClientCommandInput,
183
- CreateUserPoolClientCommandOutput,
184
- } from "./commands/CreateUserPoolClientCommand";
185
- import {
186
- CreateUserPoolCommand,
187
- CreateUserPoolCommandInput,
188
- CreateUserPoolCommandOutput,
189
- } from "./commands/CreateUserPoolCommand";
190
- import {
191
- CreateUserPoolDomainCommand,
192
- CreateUserPoolDomainCommandInput,
193
- CreateUserPoolDomainCommandOutput,
194
- } from "./commands/CreateUserPoolDomainCommand";
195
- import { DeleteGroupCommand, DeleteGroupCommandInput, DeleteGroupCommandOutput } from "./commands/DeleteGroupCommand";
196
- import {
197
- DeleteIdentityProviderCommand,
198
- DeleteIdentityProviderCommandInput,
199
- DeleteIdentityProviderCommandOutput,
200
- } from "./commands/DeleteIdentityProviderCommand";
201
- import {
202
- DeleteResourceServerCommand,
203
- DeleteResourceServerCommandInput,
204
- DeleteResourceServerCommandOutput,
205
- } from "./commands/DeleteResourceServerCommand";
206
- import {
207
- DeleteUserAttributesCommand,
208
- DeleteUserAttributesCommandInput,
209
- DeleteUserAttributesCommandOutput,
210
- } from "./commands/DeleteUserAttributesCommand";
211
- import { DeleteUserCommand, DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
212
- import {
213
- DeleteUserPoolClientCommand,
214
- DeleteUserPoolClientCommandInput,
215
- DeleteUserPoolClientCommandOutput,
216
- } from "./commands/DeleteUserPoolClientCommand";
217
- import {
218
- DeleteUserPoolCommand,
219
- DeleteUserPoolCommandInput,
220
- DeleteUserPoolCommandOutput,
221
- } from "./commands/DeleteUserPoolCommand";
222
- import {
223
- DeleteUserPoolDomainCommand,
224
- DeleteUserPoolDomainCommandInput,
225
- DeleteUserPoolDomainCommandOutput,
226
- } from "./commands/DeleteUserPoolDomainCommand";
227
- import {
228
- DescribeIdentityProviderCommand,
229
- DescribeIdentityProviderCommandInput,
230
- DescribeIdentityProviderCommandOutput,
231
- } from "./commands/DescribeIdentityProviderCommand";
232
- import {
233
- DescribeResourceServerCommand,
234
- DescribeResourceServerCommandInput,
235
- DescribeResourceServerCommandOutput,
236
- } from "./commands/DescribeResourceServerCommand";
237
- import {
238
- DescribeRiskConfigurationCommand,
239
- DescribeRiskConfigurationCommandInput,
240
- DescribeRiskConfigurationCommandOutput,
241
- } from "./commands/DescribeRiskConfigurationCommand";
242
- import {
243
- DescribeUserImportJobCommand,
244
- DescribeUserImportJobCommandInput,
245
- DescribeUserImportJobCommandOutput,
246
- } from "./commands/DescribeUserImportJobCommand";
247
- import {
248
- DescribeUserPoolClientCommand,
249
- DescribeUserPoolClientCommandInput,
250
- DescribeUserPoolClientCommandOutput,
251
- } from "./commands/DescribeUserPoolClientCommand";
252
- import {
253
- DescribeUserPoolCommand,
254
- DescribeUserPoolCommandInput,
255
- DescribeUserPoolCommandOutput,
256
- } from "./commands/DescribeUserPoolCommand";
257
- import {
258
- DescribeUserPoolDomainCommand,
259
- DescribeUserPoolDomainCommandInput,
260
- DescribeUserPoolDomainCommandOutput,
261
- } from "./commands/DescribeUserPoolDomainCommand";
262
- import {
263
- ForgetDeviceCommand,
264
- ForgetDeviceCommandInput,
265
- ForgetDeviceCommandOutput,
266
- } from "./commands/ForgetDeviceCommand";
267
- import {
268
- ForgotPasswordCommand,
269
- ForgotPasswordCommandInput,
270
- ForgotPasswordCommandOutput,
271
- } from "./commands/ForgotPasswordCommand";
272
- import {
273
- GetCSVHeaderCommand,
274
- GetCSVHeaderCommandInput,
275
- GetCSVHeaderCommandOutput,
276
- } from "./commands/GetCSVHeaderCommand";
277
- import { GetDeviceCommand, GetDeviceCommandInput, GetDeviceCommandOutput } from "./commands/GetDeviceCommand";
278
- import { GetGroupCommand, GetGroupCommandInput, GetGroupCommandOutput } from "./commands/GetGroupCommand";
279
- import {
280
- GetIdentityProviderByIdentifierCommand,
281
- GetIdentityProviderByIdentifierCommandInput,
282
- GetIdentityProviderByIdentifierCommandOutput,
283
- } from "./commands/GetIdentityProviderByIdentifierCommand";
284
- import {
285
- GetSigningCertificateCommand,
286
- GetSigningCertificateCommandInput,
287
- GetSigningCertificateCommandOutput,
288
- } from "./commands/GetSigningCertificateCommand";
289
- import {
290
- GetUICustomizationCommand,
291
- GetUICustomizationCommandInput,
292
- GetUICustomizationCommandOutput,
293
- } from "./commands/GetUICustomizationCommand";
294
- import {
295
- GetUserAttributeVerificationCodeCommand,
296
- GetUserAttributeVerificationCodeCommandInput,
297
- GetUserAttributeVerificationCodeCommandOutput,
298
- } from "./commands/GetUserAttributeVerificationCodeCommand";
299
- import { GetUserCommand, GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
300
- import {
301
- GetUserPoolMfaConfigCommand,
302
- GetUserPoolMfaConfigCommandInput,
303
- GetUserPoolMfaConfigCommandOutput,
304
- } from "./commands/GetUserPoolMfaConfigCommand";
305
- import {
306
- GlobalSignOutCommand,
307
- GlobalSignOutCommandInput,
308
- GlobalSignOutCommandOutput,
309
- } from "./commands/GlobalSignOutCommand";
310
- import {
311
- InitiateAuthCommand,
312
- InitiateAuthCommandInput,
313
- InitiateAuthCommandOutput,
314
- } from "./commands/InitiateAuthCommand";
315
- import { ListDevicesCommand, ListDevicesCommandInput, ListDevicesCommandOutput } from "./commands/ListDevicesCommand";
316
- import { ListGroupsCommand, ListGroupsCommandInput, ListGroupsCommandOutput } from "./commands/ListGroupsCommand";
317
- import {
318
- ListIdentityProvidersCommand,
319
- ListIdentityProvidersCommandInput,
320
- ListIdentityProvidersCommandOutput,
321
- } from "./commands/ListIdentityProvidersCommand";
322
- import {
323
- ListResourceServersCommand,
324
- ListResourceServersCommandInput,
325
- ListResourceServersCommandOutput,
326
- } from "./commands/ListResourceServersCommand";
327
- import {
328
- ListTagsForResourceCommand,
329
- ListTagsForResourceCommandInput,
330
- ListTagsForResourceCommandOutput,
331
- } from "./commands/ListTagsForResourceCommand";
332
- import {
333
- ListUserImportJobsCommand,
334
- ListUserImportJobsCommandInput,
335
- ListUserImportJobsCommandOutput,
336
- } from "./commands/ListUserImportJobsCommand";
337
- import {
338
- ListUserPoolClientsCommand,
339
- ListUserPoolClientsCommandInput,
340
- ListUserPoolClientsCommandOutput,
341
- } from "./commands/ListUserPoolClientsCommand";
342
- import {
343
- ListUserPoolsCommand,
344
- ListUserPoolsCommandInput,
345
- ListUserPoolsCommandOutput,
346
- } from "./commands/ListUserPoolsCommand";
347
- import { ListUsersCommand, ListUsersCommandInput, ListUsersCommandOutput } from "./commands/ListUsersCommand";
348
- import {
349
- ListUsersInGroupCommand,
350
- ListUsersInGroupCommandInput,
351
- ListUsersInGroupCommandOutput,
352
- } from "./commands/ListUsersInGroupCommand";
353
- import {
354
- ResendConfirmationCodeCommand,
355
- ResendConfirmationCodeCommandInput,
356
- ResendConfirmationCodeCommandOutput,
357
- } from "./commands/ResendConfirmationCodeCommand";
358
- import {
359
- RespondToAuthChallengeCommand,
360
- RespondToAuthChallengeCommandInput,
361
- RespondToAuthChallengeCommandOutput,
362
- } from "./commands/RespondToAuthChallengeCommand";
363
- import { RevokeTokenCommand, RevokeTokenCommandInput, RevokeTokenCommandOutput } from "./commands/RevokeTokenCommand";
364
- import {
365
- SetRiskConfigurationCommand,
366
- SetRiskConfigurationCommandInput,
367
- SetRiskConfigurationCommandOutput,
368
- } from "./commands/SetRiskConfigurationCommand";
369
- import {
370
- SetUICustomizationCommand,
371
- SetUICustomizationCommandInput,
372
- SetUICustomizationCommandOutput,
373
- } from "./commands/SetUICustomizationCommand";
374
- import {
375
- SetUserMFAPreferenceCommand,
376
- SetUserMFAPreferenceCommandInput,
377
- SetUserMFAPreferenceCommandOutput,
378
- } from "./commands/SetUserMFAPreferenceCommand";
379
- import {
380
- SetUserPoolMfaConfigCommand,
381
- SetUserPoolMfaConfigCommandInput,
382
- SetUserPoolMfaConfigCommandOutput,
383
- } from "./commands/SetUserPoolMfaConfigCommand";
384
- import {
385
- SetUserSettingsCommand,
386
- SetUserSettingsCommandInput,
387
- SetUserSettingsCommandOutput,
388
- } from "./commands/SetUserSettingsCommand";
389
- import { SignUpCommand, SignUpCommandInput, SignUpCommandOutput } from "./commands/SignUpCommand";
390
- import {
391
- StartUserImportJobCommand,
392
- StartUserImportJobCommandInput,
393
- StartUserImportJobCommandOutput,
394
- } from "./commands/StartUserImportJobCommand";
395
- import {
396
- StopUserImportJobCommand,
397
- StopUserImportJobCommandInput,
398
- StopUserImportJobCommandOutput,
399
- } from "./commands/StopUserImportJobCommand";
400
- import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
401
- import {
402
- UntagResourceCommand,
403
- UntagResourceCommandInput,
404
- UntagResourceCommandOutput,
405
- } from "./commands/UntagResourceCommand";
406
- import {
407
- UpdateAuthEventFeedbackCommand,
408
- UpdateAuthEventFeedbackCommandInput,
409
- UpdateAuthEventFeedbackCommandOutput,
410
- } from "./commands/UpdateAuthEventFeedbackCommand";
411
- import {
412
- UpdateDeviceStatusCommand,
413
- UpdateDeviceStatusCommandInput,
414
- UpdateDeviceStatusCommandOutput,
415
- } from "./commands/UpdateDeviceStatusCommand";
416
- import { UpdateGroupCommand, UpdateGroupCommandInput, UpdateGroupCommandOutput } from "./commands/UpdateGroupCommand";
417
- import {
418
- UpdateIdentityProviderCommand,
419
- UpdateIdentityProviderCommandInput,
420
- UpdateIdentityProviderCommandOutput,
421
- } from "./commands/UpdateIdentityProviderCommand";
422
- import {
423
- UpdateResourceServerCommand,
424
- UpdateResourceServerCommandInput,
425
- UpdateResourceServerCommandOutput,
426
- } from "./commands/UpdateResourceServerCommand";
427
- import {
428
- UpdateUserAttributesCommand,
429
- UpdateUserAttributesCommandInput,
430
- UpdateUserAttributesCommandOutput,
431
- } from "./commands/UpdateUserAttributesCommand";
432
- import {
433
- UpdateUserPoolClientCommand,
434
- UpdateUserPoolClientCommandInput,
435
- UpdateUserPoolClientCommandOutput,
436
- } from "./commands/UpdateUserPoolClientCommand";
437
- import {
438
- UpdateUserPoolCommand,
439
- UpdateUserPoolCommandInput,
440
- UpdateUserPoolCommandOutput,
441
- } from "./commands/UpdateUserPoolCommand";
442
- import {
443
- UpdateUserPoolDomainCommand,
444
- UpdateUserPoolDomainCommandInput,
445
- UpdateUserPoolDomainCommandOutput,
446
- } from "./commands/UpdateUserPoolDomainCommand";
447
- import {
448
- VerifySoftwareTokenCommand,
449
- VerifySoftwareTokenCommandInput,
450
- VerifySoftwareTokenCommandOutput,
451
- } from "./commands/VerifySoftwareTokenCommand";
452
- import {
453
- VerifyUserAttributeCommand,
454
- VerifyUserAttributeCommandInput,
455
- VerifyUserAttributeCommandOutput,
456
- } from "./commands/VerifyUserAttributeCommand";
457
-
458
- /**
459
- * <p>Using the Amazon Cognito User Pools API, you can create a user pool to manage
460
- * directories and users. You can authenticate a user to obtain tokens related to user
461
- * identity and access policies.</p>
462
- * <p>This API reference provides information about user pools in Amazon Cognito User
463
- * Pools.</p>
464
- * <p>For more information, see the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/what-is-amazon-cognito.html">Amazon Cognito
465
- * Documentation</a>.</p>
466
- */
467
- export class CognitoIdentityProvider extends CognitoIdentityProviderClient {
468
- /**
469
- * <p>Adds additional user attributes to the user pool schema.</p>
470
- */
471
- public addCustomAttributes(
472
- args: AddCustomAttributesCommandInput,
473
- options?: __HttpHandlerOptions
474
- ): Promise<AddCustomAttributesCommandOutput>;
475
- public addCustomAttributes(
476
- args: AddCustomAttributesCommandInput,
477
- cb: (err: any, data?: AddCustomAttributesCommandOutput) => void
478
- ): void;
479
- public addCustomAttributes(
480
- args: AddCustomAttributesCommandInput,
481
- options: __HttpHandlerOptions,
482
- cb: (err: any, data?: AddCustomAttributesCommandOutput) => void
483
- ): void;
484
- public addCustomAttributes(
485
- args: AddCustomAttributesCommandInput,
486
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AddCustomAttributesCommandOutput) => void),
487
- cb?: (err: any, data?: AddCustomAttributesCommandOutput) => void
488
- ): Promise<AddCustomAttributesCommandOutput> | void {
489
- const command = new AddCustomAttributesCommand(args);
490
- if (typeof optionsOrCb === "function") {
491
- this.send(command, optionsOrCb);
492
- } else if (typeof cb === "function") {
493
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
494
- this.send(command, optionsOrCb || {}, cb);
495
- } else {
496
- return this.send(command, optionsOrCb);
497
- }
498
- }
499
-
500
- /**
501
- * <p>Adds the specified user to the specified group.</p>
502
- * <p>Calling this action requires developer credentials.</p>
503
- */
504
- public adminAddUserToGroup(
505
- args: AdminAddUserToGroupCommandInput,
506
- options?: __HttpHandlerOptions
507
- ): Promise<AdminAddUserToGroupCommandOutput>;
508
- public adminAddUserToGroup(
509
- args: AdminAddUserToGroupCommandInput,
510
- cb: (err: any, data?: AdminAddUserToGroupCommandOutput) => void
511
- ): void;
512
- public adminAddUserToGroup(
513
- args: AdminAddUserToGroupCommandInput,
514
- options: __HttpHandlerOptions,
515
- cb: (err: any, data?: AdminAddUserToGroupCommandOutput) => void
516
- ): void;
517
- public adminAddUserToGroup(
518
- args: AdminAddUserToGroupCommandInput,
519
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminAddUserToGroupCommandOutput) => void),
520
- cb?: (err: any, data?: AdminAddUserToGroupCommandOutput) => void
521
- ): Promise<AdminAddUserToGroupCommandOutput> | void {
522
- const command = new AdminAddUserToGroupCommand(args);
523
- if (typeof optionsOrCb === "function") {
524
- this.send(command, optionsOrCb);
525
- } else if (typeof cb === "function") {
526
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
527
- this.send(command, optionsOrCb || {}, cb);
528
- } else {
529
- return this.send(command, optionsOrCb);
530
- }
531
- }
532
-
533
- /**
534
- * <p>Confirms user registration as an admin without using a confirmation code. Works on any
535
- * user.</p>
536
- * <p>Calling this action requires developer credentials.</p>
537
- */
538
- public adminConfirmSignUp(
539
- args: AdminConfirmSignUpCommandInput,
540
- options?: __HttpHandlerOptions
541
- ): Promise<AdminConfirmSignUpCommandOutput>;
542
- public adminConfirmSignUp(
543
- args: AdminConfirmSignUpCommandInput,
544
- cb: (err: any, data?: AdminConfirmSignUpCommandOutput) => void
545
- ): void;
546
- public adminConfirmSignUp(
547
- args: AdminConfirmSignUpCommandInput,
548
- options: __HttpHandlerOptions,
549
- cb: (err: any, data?: AdminConfirmSignUpCommandOutput) => void
550
- ): void;
551
- public adminConfirmSignUp(
552
- args: AdminConfirmSignUpCommandInput,
553
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminConfirmSignUpCommandOutput) => void),
554
- cb?: (err: any, data?: AdminConfirmSignUpCommandOutput) => void
555
- ): Promise<AdminConfirmSignUpCommandOutput> | void {
556
- const command = new AdminConfirmSignUpCommand(args);
557
- if (typeof optionsOrCb === "function") {
558
- this.send(command, optionsOrCb);
559
- } else if (typeof cb === "function") {
560
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
561
- this.send(command, optionsOrCb || {}, cb);
562
- } else {
563
- return this.send(command, optionsOrCb);
564
- }
565
- }
566
-
567
- /**
568
- * <p>Creates a new user in the specified user pool.</p>
569
- * <p>If <code>MessageAction</code> is not set, the default is to send a welcome message via
570
- * email or phone (SMS).</p>
571
- *
572
- * <note>
573
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
574
- * telecom carriers require that you register an origination phone number before you can
575
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
576
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
577
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
578
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
579
- * in.</p>
580
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
581
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
582
- * mode</a>
583
- * </i>, you’ll have limitations, such as sending messages
584
- * to only verified phone numbers. After testing in the sandbox environment, you can
585
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
586
- * Cognito Developer Guide</i>. </p>
587
- * </note>
588
- *
589
- * <p>This message is based on a template that you configured in your call to create or
590
- * update a user pool. This template includes your custom sign-up instructions and
591
- * placeholders for user name and temporary password.</p>
592
- * <p>Alternatively, you can call <code>AdminCreateUser</code> with “SUPPRESS” for the
593
- * <code>MessageAction</code> parameter, and Amazon Cognito will not send any email. </p>
594
- * <p>In either case, the user will be in the <code>FORCE_CHANGE_PASSWORD</code> state until
595
- * they sign in and change their password.</p>
596
- * <p>
597
- * <code>AdminCreateUser</code> requires developer credentials.</p>
598
- */
599
- public adminCreateUser(
600
- args: AdminCreateUserCommandInput,
601
- options?: __HttpHandlerOptions
602
- ): Promise<AdminCreateUserCommandOutput>;
603
- public adminCreateUser(
604
- args: AdminCreateUserCommandInput,
605
- cb: (err: any, data?: AdminCreateUserCommandOutput) => void
606
- ): void;
607
- public adminCreateUser(
608
- args: AdminCreateUserCommandInput,
609
- options: __HttpHandlerOptions,
610
- cb: (err: any, data?: AdminCreateUserCommandOutput) => void
611
- ): void;
612
- public adminCreateUser(
613
- args: AdminCreateUserCommandInput,
614
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminCreateUserCommandOutput) => void),
615
- cb?: (err: any, data?: AdminCreateUserCommandOutput) => void
616
- ): Promise<AdminCreateUserCommandOutput> | void {
617
- const command = new AdminCreateUserCommand(args);
618
- if (typeof optionsOrCb === "function") {
619
- this.send(command, optionsOrCb);
620
- } else if (typeof cb === "function") {
621
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
622
- this.send(command, optionsOrCb || {}, cb);
623
- } else {
624
- return this.send(command, optionsOrCb);
625
- }
626
- }
627
-
628
- /**
629
- * <p>Deletes a user as an administrator. Works on any user.</p>
630
- * <p>Calling this action requires developer credentials.</p>
631
- */
632
- public adminDeleteUser(
633
- args: AdminDeleteUserCommandInput,
634
- options?: __HttpHandlerOptions
635
- ): Promise<AdminDeleteUserCommandOutput>;
636
- public adminDeleteUser(
637
- args: AdminDeleteUserCommandInput,
638
- cb: (err: any, data?: AdminDeleteUserCommandOutput) => void
639
- ): void;
640
- public adminDeleteUser(
641
- args: AdminDeleteUserCommandInput,
642
- options: __HttpHandlerOptions,
643
- cb: (err: any, data?: AdminDeleteUserCommandOutput) => void
644
- ): void;
645
- public adminDeleteUser(
646
- args: AdminDeleteUserCommandInput,
647
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminDeleteUserCommandOutput) => void),
648
- cb?: (err: any, data?: AdminDeleteUserCommandOutput) => void
649
- ): Promise<AdminDeleteUserCommandOutput> | void {
650
- const command = new AdminDeleteUserCommand(args);
651
- if (typeof optionsOrCb === "function") {
652
- this.send(command, optionsOrCb);
653
- } else if (typeof cb === "function") {
654
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
655
- this.send(command, optionsOrCb || {}, cb);
656
- } else {
657
- return this.send(command, optionsOrCb);
658
- }
659
- }
660
-
661
- /**
662
- * <p>Deletes the user attributes in a user pool as an administrator. Works on any
663
- * user.</p>
664
- * <p>Calling this action requires developer credentials.</p>
665
- */
666
- public adminDeleteUserAttributes(
667
- args: AdminDeleteUserAttributesCommandInput,
668
- options?: __HttpHandlerOptions
669
- ): Promise<AdminDeleteUserAttributesCommandOutput>;
670
- public adminDeleteUserAttributes(
671
- args: AdminDeleteUserAttributesCommandInput,
672
- cb: (err: any, data?: AdminDeleteUserAttributesCommandOutput) => void
673
- ): void;
674
- public adminDeleteUserAttributes(
675
- args: AdminDeleteUserAttributesCommandInput,
676
- options: __HttpHandlerOptions,
677
- cb: (err: any, data?: AdminDeleteUserAttributesCommandOutput) => void
678
- ): void;
679
- public adminDeleteUserAttributes(
680
- args: AdminDeleteUserAttributesCommandInput,
681
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminDeleteUserAttributesCommandOutput) => void),
682
- cb?: (err: any, data?: AdminDeleteUserAttributesCommandOutput) => void
683
- ): Promise<AdminDeleteUserAttributesCommandOutput> | void {
684
- const command = new AdminDeleteUserAttributesCommand(args);
685
- if (typeof optionsOrCb === "function") {
686
- this.send(command, optionsOrCb);
687
- } else if (typeof cb === "function") {
688
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
689
- this.send(command, optionsOrCb || {}, cb);
690
- } else {
691
- return this.send(command, optionsOrCb);
692
- }
693
- }
694
-
695
- /**
696
- * <p>Disables the user from signing in with the specified external (SAML or social)
697
- * identity provider. If the user to disable is a Cognito User Pools native username +
698
- * password user, they are not permitted to use their password to sign-in. If the user to
699
- * disable is a linked external IdP user, any link between that user and an existing user
700
- * is removed. The next time the external user (no longer attached to the previously linked
701
- * <code>DestinationUser</code>) signs in, they must create a new user account. See
702
- * <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminLinkProviderForUser.html">AdminLinkProviderForUser</a>.</p>
703
- * <p>This action is enabled only for admin access and requires developer
704
- * credentials.</p>
705
- * <p>The <code>ProviderName</code> must match the value specified when creating an IdP for
706
- * the pool. </p>
707
- * <p>To disable a native username + password user, the <code>ProviderName</code> value must
708
- * be <code>Cognito</code> and the <code>ProviderAttributeName</code> must be
709
- * <code>Cognito_Subject</code>, with the <code>ProviderAttributeValue</code> being the
710
- * name that is used in the user pool for the user.</p>
711
- * <p>The <code>ProviderAttributeName</code> must always be <code>Cognito_Subject</code> for
712
- * social identity providers. The <code>ProviderAttributeValue</code> must always be the
713
- * exact subject that was used when the user was originally linked as a source user.</p>
714
- * <p>For de-linking a SAML identity, there are two scenarios. If the linked identity has
715
- * not yet been used to sign-in, the <code>ProviderAttributeName</code> and
716
- * <code>ProviderAttributeValue</code> must be the same values that were used for the
717
- * <code>SourceUser</code> when the identities were originally linked using <code>
718
- * AdminLinkProviderForUser</code> call. (If the linking was done with
719
- * <code>ProviderAttributeName</code> set to <code>Cognito_Subject</code>, the same
720
- * applies here). However, if the user has already signed in, the
721
- * <code>ProviderAttributeName</code> must be <code>Cognito_Subject</code> and
722
- * <code>ProviderAttributeValue</code> must be the subject of the SAML
723
- * assertion.</p>
724
- */
725
- public adminDisableProviderForUser(
726
- args: AdminDisableProviderForUserCommandInput,
727
- options?: __HttpHandlerOptions
728
- ): Promise<AdminDisableProviderForUserCommandOutput>;
729
- public adminDisableProviderForUser(
730
- args: AdminDisableProviderForUserCommandInput,
731
- cb: (err: any, data?: AdminDisableProviderForUserCommandOutput) => void
732
- ): void;
733
- public adminDisableProviderForUser(
734
- args: AdminDisableProviderForUserCommandInput,
735
- options: __HttpHandlerOptions,
736
- cb: (err: any, data?: AdminDisableProviderForUserCommandOutput) => void
737
- ): void;
738
- public adminDisableProviderForUser(
739
- args: AdminDisableProviderForUserCommandInput,
740
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminDisableProviderForUserCommandOutput) => void),
741
- cb?: (err: any, data?: AdminDisableProviderForUserCommandOutput) => void
742
- ): Promise<AdminDisableProviderForUserCommandOutput> | void {
743
- const command = new AdminDisableProviderForUserCommand(args);
744
- if (typeof optionsOrCb === "function") {
745
- this.send(command, optionsOrCb);
746
- } else if (typeof cb === "function") {
747
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
748
- this.send(command, optionsOrCb || {}, cb);
749
- } else {
750
- return this.send(command, optionsOrCb);
751
- }
752
- }
753
-
754
- /**
755
- * <p>Disables the specified user.</p>
756
- * <p>Calling this action requires developer credentials.</p>
757
- */
758
- public adminDisableUser(
759
- args: AdminDisableUserCommandInput,
760
- options?: __HttpHandlerOptions
761
- ): Promise<AdminDisableUserCommandOutput>;
762
- public adminDisableUser(
763
- args: AdminDisableUserCommandInput,
764
- cb: (err: any, data?: AdminDisableUserCommandOutput) => void
765
- ): void;
766
- public adminDisableUser(
767
- args: AdminDisableUserCommandInput,
768
- options: __HttpHandlerOptions,
769
- cb: (err: any, data?: AdminDisableUserCommandOutput) => void
770
- ): void;
771
- public adminDisableUser(
772
- args: AdminDisableUserCommandInput,
773
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminDisableUserCommandOutput) => void),
774
- cb?: (err: any, data?: AdminDisableUserCommandOutput) => void
775
- ): Promise<AdminDisableUserCommandOutput> | void {
776
- const command = new AdminDisableUserCommand(args);
777
- if (typeof optionsOrCb === "function") {
778
- this.send(command, optionsOrCb);
779
- } else if (typeof cb === "function") {
780
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
781
- this.send(command, optionsOrCb || {}, cb);
782
- } else {
783
- return this.send(command, optionsOrCb);
784
- }
785
- }
786
-
787
- /**
788
- * <p>Enables the specified user as an administrator. Works on any user.</p>
789
- * <p>Calling this action requires developer credentials.</p>
790
- */
791
- public adminEnableUser(
792
- args: AdminEnableUserCommandInput,
793
- options?: __HttpHandlerOptions
794
- ): Promise<AdminEnableUserCommandOutput>;
795
- public adminEnableUser(
796
- args: AdminEnableUserCommandInput,
797
- cb: (err: any, data?: AdminEnableUserCommandOutput) => void
798
- ): void;
799
- public adminEnableUser(
800
- args: AdminEnableUserCommandInput,
801
- options: __HttpHandlerOptions,
802
- cb: (err: any, data?: AdminEnableUserCommandOutput) => void
803
- ): void;
804
- public adminEnableUser(
805
- args: AdminEnableUserCommandInput,
806
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminEnableUserCommandOutput) => void),
807
- cb?: (err: any, data?: AdminEnableUserCommandOutput) => void
808
- ): Promise<AdminEnableUserCommandOutput> | void {
809
- const command = new AdminEnableUserCommand(args);
810
- if (typeof optionsOrCb === "function") {
811
- this.send(command, optionsOrCb);
812
- } else if (typeof cb === "function") {
813
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
814
- this.send(command, optionsOrCb || {}, cb);
815
- } else {
816
- return this.send(command, optionsOrCb);
817
- }
818
- }
819
-
820
- /**
821
- * <p>Forgets the device, as an administrator.</p>
822
- * <p>Calling this action requires developer credentials.</p>
823
- */
824
- public adminForgetDevice(
825
- args: AdminForgetDeviceCommandInput,
826
- options?: __HttpHandlerOptions
827
- ): Promise<AdminForgetDeviceCommandOutput>;
828
- public adminForgetDevice(
829
- args: AdminForgetDeviceCommandInput,
830
- cb: (err: any, data?: AdminForgetDeviceCommandOutput) => void
831
- ): void;
832
- public adminForgetDevice(
833
- args: AdminForgetDeviceCommandInput,
834
- options: __HttpHandlerOptions,
835
- cb: (err: any, data?: AdminForgetDeviceCommandOutput) => void
836
- ): void;
837
- public adminForgetDevice(
838
- args: AdminForgetDeviceCommandInput,
839
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminForgetDeviceCommandOutput) => void),
840
- cb?: (err: any, data?: AdminForgetDeviceCommandOutput) => void
841
- ): Promise<AdminForgetDeviceCommandOutput> | void {
842
- const command = new AdminForgetDeviceCommand(args);
843
- if (typeof optionsOrCb === "function") {
844
- this.send(command, optionsOrCb);
845
- } else if (typeof cb === "function") {
846
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
847
- this.send(command, optionsOrCb || {}, cb);
848
- } else {
849
- return this.send(command, optionsOrCb);
850
- }
851
- }
852
-
853
- /**
854
- * <p>Gets the device, as an administrator.</p>
855
- * <p>Calling this action requires developer credentials.</p>
856
- */
857
- public adminGetDevice(
858
- args: AdminGetDeviceCommandInput,
859
- options?: __HttpHandlerOptions
860
- ): Promise<AdminGetDeviceCommandOutput>;
861
- public adminGetDevice(
862
- args: AdminGetDeviceCommandInput,
863
- cb: (err: any, data?: AdminGetDeviceCommandOutput) => void
864
- ): void;
865
- public adminGetDevice(
866
- args: AdminGetDeviceCommandInput,
867
- options: __HttpHandlerOptions,
868
- cb: (err: any, data?: AdminGetDeviceCommandOutput) => void
869
- ): void;
870
- public adminGetDevice(
871
- args: AdminGetDeviceCommandInput,
872
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminGetDeviceCommandOutput) => void),
873
- cb?: (err: any, data?: AdminGetDeviceCommandOutput) => void
874
- ): Promise<AdminGetDeviceCommandOutput> | void {
875
- const command = new AdminGetDeviceCommand(args);
876
- if (typeof optionsOrCb === "function") {
877
- this.send(command, optionsOrCb);
878
- } else if (typeof cb === "function") {
879
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
880
- this.send(command, optionsOrCb || {}, cb);
881
- } else {
882
- return this.send(command, optionsOrCb);
883
- }
884
- }
885
-
886
- /**
887
- * <p>Gets the specified user by user name in a user pool as an administrator. Works on any
888
- * user.</p>
889
- * <p>Calling this action requires developer credentials.</p>
890
- */
891
- public adminGetUser(
892
- args: AdminGetUserCommandInput,
893
- options?: __HttpHandlerOptions
894
- ): Promise<AdminGetUserCommandOutput>;
895
- public adminGetUser(args: AdminGetUserCommandInput, cb: (err: any, data?: AdminGetUserCommandOutput) => void): void;
896
- public adminGetUser(
897
- args: AdminGetUserCommandInput,
898
- options: __HttpHandlerOptions,
899
- cb: (err: any, data?: AdminGetUserCommandOutput) => void
900
- ): void;
901
- public adminGetUser(
902
- args: AdminGetUserCommandInput,
903
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminGetUserCommandOutput) => void),
904
- cb?: (err: any, data?: AdminGetUserCommandOutput) => void
905
- ): Promise<AdminGetUserCommandOutput> | void {
906
- const command = new AdminGetUserCommand(args);
907
- if (typeof optionsOrCb === "function") {
908
- this.send(command, optionsOrCb);
909
- } else if (typeof cb === "function") {
910
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
911
- this.send(command, optionsOrCb || {}, cb);
912
- } else {
913
- return this.send(command, optionsOrCb);
914
- }
915
- }
916
-
917
- /**
918
- * <p>Initiates the authentication flow, as an administrator.</p>
919
- *
920
- *
921
- * <note>
922
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
923
- * telecom carriers require that you register an origination phone number before you can
924
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
925
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
926
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
927
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
928
- * in.</p>
929
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
930
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
931
- * mode</a>
932
- * </i>, you’ll have limitations, such as sending messages
933
- * to only verified phone numbers. After testing in the sandbox environment, you can
934
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
935
- * Cognito Developer Guide</i>. </p>
936
- * </note>
937
- *
938
- * <p>Calling this action requires developer credentials.</p>
939
- */
940
- public adminInitiateAuth(
941
- args: AdminInitiateAuthCommandInput,
942
- options?: __HttpHandlerOptions
943
- ): Promise<AdminInitiateAuthCommandOutput>;
944
- public adminInitiateAuth(
945
- args: AdminInitiateAuthCommandInput,
946
- cb: (err: any, data?: AdminInitiateAuthCommandOutput) => void
947
- ): void;
948
- public adminInitiateAuth(
949
- args: AdminInitiateAuthCommandInput,
950
- options: __HttpHandlerOptions,
951
- cb: (err: any, data?: AdminInitiateAuthCommandOutput) => void
952
- ): void;
953
- public adminInitiateAuth(
954
- args: AdminInitiateAuthCommandInput,
955
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminInitiateAuthCommandOutput) => void),
956
- cb?: (err: any, data?: AdminInitiateAuthCommandOutput) => void
957
- ): Promise<AdminInitiateAuthCommandOutput> | void {
958
- const command = new AdminInitiateAuthCommand(args);
959
- if (typeof optionsOrCb === "function") {
960
- this.send(command, optionsOrCb);
961
- } else if (typeof cb === "function") {
962
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
963
- this.send(command, optionsOrCb || {}, cb);
964
- } else {
965
- return this.send(command, optionsOrCb);
966
- }
967
- }
968
-
969
- /**
970
- * <p>Links an existing user account in a user pool (<code>DestinationUser</code>) to an
971
- * identity from an external identity provider (<code>SourceUser</code>) based on a
972
- * specified attribute name and value from the external identity provider. This allows you
973
- * to create a link from the existing user account to an external federated user identity
974
- * that has not yet been used to sign in, so that the federated user identity can be used
975
- * to sign in as the existing user account. </p>
976
- * <p> For example, if there is an existing user with a username and password, this API
977
- * links that user to a federated user identity, so that when the federated user identity
978
- * is used, the user signs in as the existing user account. </p>
979
- * <note>
980
- * <p>The maximum number of federated identities linked to a user is 5.</p>
981
- * </note>
982
- * <important>
983
- * <p>Because this API allows a user with an external federated identity to sign in as
984
- * an existing user in the user pool, it is critical that it only be used with external
985
- * identity providers and provider attributes that have been trusted by the application
986
- * owner.</p>
987
- * </important>
988
- *
989
- * <p>This action is enabled only for admin access and requires developer
990
- * credentials.</p>
991
- */
992
- public adminLinkProviderForUser(
993
- args: AdminLinkProviderForUserCommandInput,
994
- options?: __HttpHandlerOptions
995
- ): Promise<AdminLinkProviderForUserCommandOutput>;
996
- public adminLinkProviderForUser(
997
- args: AdminLinkProviderForUserCommandInput,
998
- cb: (err: any, data?: AdminLinkProviderForUserCommandOutput) => void
999
- ): void;
1000
- public adminLinkProviderForUser(
1001
- args: AdminLinkProviderForUserCommandInput,
1002
- options: __HttpHandlerOptions,
1003
- cb: (err: any, data?: AdminLinkProviderForUserCommandOutput) => void
1004
- ): void;
1005
- public adminLinkProviderForUser(
1006
- args: AdminLinkProviderForUserCommandInput,
1007
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminLinkProviderForUserCommandOutput) => void),
1008
- cb?: (err: any, data?: AdminLinkProviderForUserCommandOutput) => void
1009
- ): Promise<AdminLinkProviderForUserCommandOutput> | void {
1010
- const command = new AdminLinkProviderForUserCommand(args);
1011
- if (typeof optionsOrCb === "function") {
1012
- this.send(command, optionsOrCb);
1013
- } else if (typeof cb === "function") {
1014
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1015
- this.send(command, optionsOrCb || {}, cb);
1016
- } else {
1017
- return this.send(command, optionsOrCb);
1018
- }
1019
- }
1020
-
1021
- /**
1022
- * <p>Lists devices, as an administrator.</p>
1023
- * <p>Calling this action requires developer credentials.</p>
1024
- */
1025
- public adminListDevices(
1026
- args: AdminListDevicesCommandInput,
1027
- options?: __HttpHandlerOptions
1028
- ): Promise<AdminListDevicesCommandOutput>;
1029
- public adminListDevices(
1030
- args: AdminListDevicesCommandInput,
1031
- cb: (err: any, data?: AdminListDevicesCommandOutput) => void
1032
- ): void;
1033
- public adminListDevices(
1034
- args: AdminListDevicesCommandInput,
1035
- options: __HttpHandlerOptions,
1036
- cb: (err: any, data?: AdminListDevicesCommandOutput) => void
1037
- ): void;
1038
- public adminListDevices(
1039
- args: AdminListDevicesCommandInput,
1040
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminListDevicesCommandOutput) => void),
1041
- cb?: (err: any, data?: AdminListDevicesCommandOutput) => void
1042
- ): Promise<AdminListDevicesCommandOutput> | void {
1043
- const command = new AdminListDevicesCommand(args);
1044
- if (typeof optionsOrCb === "function") {
1045
- this.send(command, optionsOrCb);
1046
- } else if (typeof cb === "function") {
1047
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1048
- this.send(command, optionsOrCb || {}, cb);
1049
- } else {
1050
- return this.send(command, optionsOrCb);
1051
- }
1052
- }
1053
-
1054
- /**
1055
- * <p>Lists the groups that the user belongs to.</p>
1056
- * <p>Calling this action requires developer credentials.</p>
1057
- */
1058
- public adminListGroupsForUser(
1059
- args: AdminListGroupsForUserCommandInput,
1060
- options?: __HttpHandlerOptions
1061
- ): Promise<AdminListGroupsForUserCommandOutput>;
1062
- public adminListGroupsForUser(
1063
- args: AdminListGroupsForUserCommandInput,
1064
- cb: (err: any, data?: AdminListGroupsForUserCommandOutput) => void
1065
- ): void;
1066
- public adminListGroupsForUser(
1067
- args: AdminListGroupsForUserCommandInput,
1068
- options: __HttpHandlerOptions,
1069
- cb: (err: any, data?: AdminListGroupsForUserCommandOutput) => void
1070
- ): void;
1071
- public adminListGroupsForUser(
1072
- args: AdminListGroupsForUserCommandInput,
1073
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminListGroupsForUserCommandOutput) => void),
1074
- cb?: (err: any, data?: AdminListGroupsForUserCommandOutput) => void
1075
- ): Promise<AdminListGroupsForUserCommandOutput> | void {
1076
- const command = new AdminListGroupsForUserCommand(args);
1077
- if (typeof optionsOrCb === "function") {
1078
- this.send(command, optionsOrCb);
1079
- } else if (typeof cb === "function") {
1080
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1081
- this.send(command, optionsOrCb || {}, cb);
1082
- } else {
1083
- return this.send(command, optionsOrCb);
1084
- }
1085
- }
1086
-
1087
- /**
1088
- * <p>Lists a history of user activity and any risks detected as part of Amazon Cognito
1089
- * advanced security.</p>
1090
- */
1091
- public adminListUserAuthEvents(
1092
- args: AdminListUserAuthEventsCommandInput,
1093
- options?: __HttpHandlerOptions
1094
- ): Promise<AdminListUserAuthEventsCommandOutput>;
1095
- public adminListUserAuthEvents(
1096
- args: AdminListUserAuthEventsCommandInput,
1097
- cb: (err: any, data?: AdminListUserAuthEventsCommandOutput) => void
1098
- ): void;
1099
- public adminListUserAuthEvents(
1100
- args: AdminListUserAuthEventsCommandInput,
1101
- options: __HttpHandlerOptions,
1102
- cb: (err: any, data?: AdminListUserAuthEventsCommandOutput) => void
1103
- ): void;
1104
- public adminListUserAuthEvents(
1105
- args: AdminListUserAuthEventsCommandInput,
1106
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminListUserAuthEventsCommandOutput) => void),
1107
- cb?: (err: any, data?: AdminListUserAuthEventsCommandOutput) => void
1108
- ): Promise<AdminListUserAuthEventsCommandOutput> | void {
1109
- const command = new AdminListUserAuthEventsCommand(args);
1110
- if (typeof optionsOrCb === "function") {
1111
- this.send(command, optionsOrCb);
1112
- } else if (typeof cb === "function") {
1113
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1114
- this.send(command, optionsOrCb || {}, cb);
1115
- } else {
1116
- return this.send(command, optionsOrCb);
1117
- }
1118
- }
1119
-
1120
- /**
1121
- * <p>Removes the specified user from the specified group.</p>
1122
- * <p>Calling this action requires developer credentials.</p>
1123
- */
1124
- public adminRemoveUserFromGroup(
1125
- args: AdminRemoveUserFromGroupCommandInput,
1126
- options?: __HttpHandlerOptions
1127
- ): Promise<AdminRemoveUserFromGroupCommandOutput>;
1128
- public adminRemoveUserFromGroup(
1129
- args: AdminRemoveUserFromGroupCommandInput,
1130
- cb: (err: any, data?: AdminRemoveUserFromGroupCommandOutput) => void
1131
- ): void;
1132
- public adminRemoveUserFromGroup(
1133
- args: AdminRemoveUserFromGroupCommandInput,
1134
- options: __HttpHandlerOptions,
1135
- cb: (err: any, data?: AdminRemoveUserFromGroupCommandOutput) => void
1136
- ): void;
1137
- public adminRemoveUserFromGroup(
1138
- args: AdminRemoveUserFromGroupCommandInput,
1139
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminRemoveUserFromGroupCommandOutput) => void),
1140
- cb?: (err: any, data?: AdminRemoveUserFromGroupCommandOutput) => void
1141
- ): Promise<AdminRemoveUserFromGroupCommandOutput> | void {
1142
- const command = new AdminRemoveUserFromGroupCommand(args);
1143
- if (typeof optionsOrCb === "function") {
1144
- this.send(command, optionsOrCb);
1145
- } else if (typeof cb === "function") {
1146
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1147
- this.send(command, optionsOrCb || {}, cb);
1148
- } else {
1149
- return this.send(command, optionsOrCb);
1150
- }
1151
- }
1152
-
1153
- /**
1154
- * <p>Resets the specified user's password in a user pool as an administrator. Works on any
1155
- * user.</p>
1156
- * <p>When a developer calls this API, the current password is invalidated, so it must be
1157
- * changed. If a user tries to sign in after the API is called, the app will get a
1158
- * PasswordResetRequiredException exception back and should direct the user down the flow
1159
- * to reset the password, which is the same as the forgot password flow. In addition, if
1160
- * the user pool has phone verification selected and a verified phone number exists for the
1161
- * user, or if email verification is selected and a verified email exists for the user,
1162
- * calling this API will also result in sending a message to the end user with the code to
1163
- * change their password.</p>
1164
- *
1165
- *
1166
- * <note>
1167
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
1168
- * telecom carriers require that you register an origination phone number before you can
1169
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
1170
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
1171
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
1172
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
1173
- * in.</p>
1174
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
1175
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
1176
- * mode</a>
1177
- * </i>, you’ll have limitations, such as sending messages
1178
- * to only verified phone numbers. After testing in the sandbox environment, you can
1179
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
1180
- * Cognito Developer Guide</i>. </p>
1181
- * </note>
1182
- *
1183
- * <p>Calling this action requires developer credentials.</p>
1184
- */
1185
- public adminResetUserPassword(
1186
- args: AdminResetUserPasswordCommandInput,
1187
- options?: __HttpHandlerOptions
1188
- ): Promise<AdminResetUserPasswordCommandOutput>;
1189
- public adminResetUserPassword(
1190
- args: AdminResetUserPasswordCommandInput,
1191
- cb: (err: any, data?: AdminResetUserPasswordCommandOutput) => void
1192
- ): void;
1193
- public adminResetUserPassword(
1194
- args: AdminResetUserPasswordCommandInput,
1195
- options: __HttpHandlerOptions,
1196
- cb: (err: any, data?: AdminResetUserPasswordCommandOutput) => void
1197
- ): void;
1198
- public adminResetUserPassword(
1199
- args: AdminResetUserPasswordCommandInput,
1200
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminResetUserPasswordCommandOutput) => void),
1201
- cb?: (err: any, data?: AdminResetUserPasswordCommandOutput) => void
1202
- ): Promise<AdminResetUserPasswordCommandOutput> | void {
1203
- const command = new AdminResetUserPasswordCommand(args);
1204
- if (typeof optionsOrCb === "function") {
1205
- this.send(command, optionsOrCb);
1206
- } else if (typeof cb === "function") {
1207
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1208
- this.send(command, optionsOrCb || {}, cb);
1209
- } else {
1210
- return this.send(command, optionsOrCb);
1211
- }
1212
- }
1213
-
1214
- /**
1215
- * <p>Responds to an authentication challenge, as an administrator.</p>
1216
- *
1217
- * <note>
1218
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
1219
- * telecom carriers require that you register an origination phone number before you can
1220
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
1221
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
1222
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
1223
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
1224
- * in.</p>
1225
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
1226
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
1227
- * mode</a>
1228
- * </i>, you’ll have limitations, such as sending messages
1229
- * to only verified phone numbers. After testing in the sandbox environment, you can
1230
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
1231
- * Cognito Developer Guide</i>. </p>
1232
- * </note>
1233
- *
1234
- * <p>Calling this action requires developer credentials.</p>
1235
- */
1236
- public adminRespondToAuthChallenge(
1237
- args: AdminRespondToAuthChallengeCommandInput,
1238
- options?: __HttpHandlerOptions
1239
- ): Promise<AdminRespondToAuthChallengeCommandOutput>;
1240
- public adminRespondToAuthChallenge(
1241
- args: AdminRespondToAuthChallengeCommandInput,
1242
- cb: (err: any, data?: AdminRespondToAuthChallengeCommandOutput) => void
1243
- ): void;
1244
- public adminRespondToAuthChallenge(
1245
- args: AdminRespondToAuthChallengeCommandInput,
1246
- options: __HttpHandlerOptions,
1247
- cb: (err: any, data?: AdminRespondToAuthChallengeCommandOutput) => void
1248
- ): void;
1249
- public adminRespondToAuthChallenge(
1250
- args: AdminRespondToAuthChallengeCommandInput,
1251
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminRespondToAuthChallengeCommandOutput) => void),
1252
- cb?: (err: any, data?: AdminRespondToAuthChallengeCommandOutput) => void
1253
- ): Promise<AdminRespondToAuthChallengeCommandOutput> | void {
1254
- const command = new AdminRespondToAuthChallengeCommand(args);
1255
- if (typeof optionsOrCb === "function") {
1256
- this.send(command, optionsOrCb);
1257
- } else if (typeof cb === "function") {
1258
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1259
- this.send(command, optionsOrCb || {}, cb);
1260
- } else {
1261
- return this.send(command, optionsOrCb);
1262
- }
1263
- }
1264
-
1265
- /**
1266
- * <p>Sets the user's multi-factor authentication (MFA) preference, including which MFA
1267
- * options are enabled and if any are preferred. Only one factor can be set as preferred.
1268
- * The preferred MFA factor will be used to authenticate a user if multiple factors are
1269
- * enabled. If multiple options are enabled and no preference is set, a challenge to choose
1270
- * an MFA option will be returned during sign in.</p>
1271
- */
1272
- public adminSetUserMFAPreference(
1273
- args: AdminSetUserMFAPreferenceCommandInput,
1274
- options?: __HttpHandlerOptions
1275
- ): Promise<AdminSetUserMFAPreferenceCommandOutput>;
1276
- public adminSetUserMFAPreference(
1277
- args: AdminSetUserMFAPreferenceCommandInput,
1278
- cb: (err: any, data?: AdminSetUserMFAPreferenceCommandOutput) => void
1279
- ): void;
1280
- public adminSetUserMFAPreference(
1281
- args: AdminSetUserMFAPreferenceCommandInput,
1282
- options: __HttpHandlerOptions,
1283
- cb: (err: any, data?: AdminSetUserMFAPreferenceCommandOutput) => void
1284
- ): void;
1285
- public adminSetUserMFAPreference(
1286
- args: AdminSetUserMFAPreferenceCommandInput,
1287
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminSetUserMFAPreferenceCommandOutput) => void),
1288
- cb?: (err: any, data?: AdminSetUserMFAPreferenceCommandOutput) => void
1289
- ): Promise<AdminSetUserMFAPreferenceCommandOutput> | void {
1290
- const command = new AdminSetUserMFAPreferenceCommand(args);
1291
- if (typeof optionsOrCb === "function") {
1292
- this.send(command, optionsOrCb);
1293
- } else if (typeof cb === "function") {
1294
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1295
- this.send(command, optionsOrCb || {}, cb);
1296
- } else {
1297
- return this.send(command, optionsOrCb);
1298
- }
1299
- }
1300
-
1301
- /**
1302
- * <p>Sets the specified user's password in a user pool as an administrator. Works on any
1303
- * user. </p>
1304
- * <p>The password can be temporary or permanent. If it is temporary, the user status will
1305
- * be placed into the <code>FORCE_CHANGE_PASSWORD</code> state. When the user next tries to
1306
- * sign in, the InitiateAuth/AdminInitiateAuth response will contain the
1307
- * <code>NEW_PASSWORD_REQUIRED</code> challenge. If the user does not sign in before it
1308
- * expires, the user will not be able to sign in and their password will need to be reset
1309
- * by an administrator. </p>
1310
- * <p>Once the user has set a new password, or the password is permanent, the user status
1311
- * will be set to <code>Confirmed</code>.</p>
1312
- */
1313
- public adminSetUserPassword(
1314
- args: AdminSetUserPasswordCommandInput,
1315
- options?: __HttpHandlerOptions
1316
- ): Promise<AdminSetUserPasswordCommandOutput>;
1317
- public adminSetUserPassword(
1318
- args: AdminSetUserPasswordCommandInput,
1319
- cb: (err: any, data?: AdminSetUserPasswordCommandOutput) => void
1320
- ): void;
1321
- public adminSetUserPassword(
1322
- args: AdminSetUserPasswordCommandInput,
1323
- options: __HttpHandlerOptions,
1324
- cb: (err: any, data?: AdminSetUserPasswordCommandOutput) => void
1325
- ): void;
1326
- public adminSetUserPassword(
1327
- args: AdminSetUserPasswordCommandInput,
1328
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminSetUserPasswordCommandOutput) => void),
1329
- cb?: (err: any, data?: AdminSetUserPasswordCommandOutput) => void
1330
- ): Promise<AdminSetUserPasswordCommandOutput> | void {
1331
- const command = new AdminSetUserPasswordCommand(args);
1332
- if (typeof optionsOrCb === "function") {
1333
- this.send(command, optionsOrCb);
1334
- } else if (typeof cb === "function") {
1335
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1336
- this.send(command, optionsOrCb || {}, cb);
1337
- } else {
1338
- return this.send(command, optionsOrCb);
1339
- }
1340
- }
1341
-
1342
- /**
1343
- * <p>
1344
- * <i>This action is no longer supported.</i> You can use it to configure
1345
- * only SMS MFA. You can't use it to configure TOTP software token MFA. To configure either
1346
- * type of MFA, use <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminSetUserMFAPreference.html">AdminSetUserMFAPreference</a> instead.</p>
1347
- */
1348
- public adminSetUserSettings(
1349
- args: AdminSetUserSettingsCommandInput,
1350
- options?: __HttpHandlerOptions
1351
- ): Promise<AdminSetUserSettingsCommandOutput>;
1352
- public adminSetUserSettings(
1353
- args: AdminSetUserSettingsCommandInput,
1354
- cb: (err: any, data?: AdminSetUserSettingsCommandOutput) => void
1355
- ): void;
1356
- public adminSetUserSettings(
1357
- args: AdminSetUserSettingsCommandInput,
1358
- options: __HttpHandlerOptions,
1359
- cb: (err: any, data?: AdminSetUserSettingsCommandOutput) => void
1360
- ): void;
1361
- public adminSetUserSettings(
1362
- args: AdminSetUserSettingsCommandInput,
1363
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminSetUserSettingsCommandOutput) => void),
1364
- cb?: (err: any, data?: AdminSetUserSettingsCommandOutput) => void
1365
- ): Promise<AdminSetUserSettingsCommandOutput> | void {
1366
- const command = new AdminSetUserSettingsCommand(args);
1367
- if (typeof optionsOrCb === "function") {
1368
- this.send(command, optionsOrCb);
1369
- } else if (typeof cb === "function") {
1370
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1371
- this.send(command, optionsOrCb || {}, cb);
1372
- } else {
1373
- return this.send(command, optionsOrCb);
1374
- }
1375
- }
1376
-
1377
- /**
1378
- * <p>Provides feedback for an authentication event as to whether it was from a valid user.
1379
- * This feedback is used for improving the risk evaluation decision for the user pool as
1380
- * part of Amazon Cognito advanced security.</p>
1381
- */
1382
- public adminUpdateAuthEventFeedback(
1383
- args: AdminUpdateAuthEventFeedbackCommandInput,
1384
- options?: __HttpHandlerOptions
1385
- ): Promise<AdminUpdateAuthEventFeedbackCommandOutput>;
1386
- public adminUpdateAuthEventFeedback(
1387
- args: AdminUpdateAuthEventFeedbackCommandInput,
1388
- cb: (err: any, data?: AdminUpdateAuthEventFeedbackCommandOutput) => void
1389
- ): void;
1390
- public adminUpdateAuthEventFeedback(
1391
- args: AdminUpdateAuthEventFeedbackCommandInput,
1392
- options: __HttpHandlerOptions,
1393
- cb: (err: any, data?: AdminUpdateAuthEventFeedbackCommandOutput) => void
1394
- ): void;
1395
- public adminUpdateAuthEventFeedback(
1396
- args: AdminUpdateAuthEventFeedbackCommandInput,
1397
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminUpdateAuthEventFeedbackCommandOutput) => void),
1398
- cb?: (err: any, data?: AdminUpdateAuthEventFeedbackCommandOutput) => void
1399
- ): Promise<AdminUpdateAuthEventFeedbackCommandOutput> | void {
1400
- const command = new AdminUpdateAuthEventFeedbackCommand(args);
1401
- if (typeof optionsOrCb === "function") {
1402
- this.send(command, optionsOrCb);
1403
- } else if (typeof cb === "function") {
1404
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1405
- this.send(command, optionsOrCb || {}, cb);
1406
- } else {
1407
- return this.send(command, optionsOrCb);
1408
- }
1409
- }
1410
-
1411
- /**
1412
- * <p>Updates the device status as an administrator.</p>
1413
- * <p>Calling this action requires developer credentials.</p>
1414
- */
1415
- public adminUpdateDeviceStatus(
1416
- args: AdminUpdateDeviceStatusCommandInput,
1417
- options?: __HttpHandlerOptions
1418
- ): Promise<AdminUpdateDeviceStatusCommandOutput>;
1419
- public adminUpdateDeviceStatus(
1420
- args: AdminUpdateDeviceStatusCommandInput,
1421
- cb: (err: any, data?: AdminUpdateDeviceStatusCommandOutput) => void
1422
- ): void;
1423
- public adminUpdateDeviceStatus(
1424
- args: AdminUpdateDeviceStatusCommandInput,
1425
- options: __HttpHandlerOptions,
1426
- cb: (err: any, data?: AdminUpdateDeviceStatusCommandOutput) => void
1427
- ): void;
1428
- public adminUpdateDeviceStatus(
1429
- args: AdminUpdateDeviceStatusCommandInput,
1430
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminUpdateDeviceStatusCommandOutput) => void),
1431
- cb?: (err: any, data?: AdminUpdateDeviceStatusCommandOutput) => void
1432
- ): Promise<AdminUpdateDeviceStatusCommandOutput> | void {
1433
- const command = new AdminUpdateDeviceStatusCommand(args);
1434
- if (typeof optionsOrCb === "function") {
1435
- this.send(command, optionsOrCb);
1436
- } else if (typeof cb === "function") {
1437
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1438
- this.send(command, optionsOrCb || {}, cb);
1439
- } else {
1440
- return this.send(command, optionsOrCb);
1441
- }
1442
- }
1443
-
1444
- /**
1445
- * <p>Updates the specified user's attributes, including developer attributes, as an
1446
- * administrator. Works on any user.</p>
1447
- * <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the
1448
- * attribute name.</p>
1449
- * <p>In addition to updating user attributes, this API can also be used to mark phone and
1450
- * email as verified.</p>
1451
- *
1452
- * <note>
1453
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
1454
- * telecom carriers require that you register an origination phone number before you can
1455
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
1456
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
1457
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
1458
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
1459
- * in.</p>
1460
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
1461
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
1462
- * mode</a>
1463
- * </i>, you’ll have limitations, such as sending messages
1464
- * to only verified phone numbers. After testing in the sandbox environment, you can
1465
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
1466
- * Cognito Developer Guide</i>. </p>
1467
- * </note>
1468
- *
1469
- * <p>Calling this action requires developer credentials.</p>
1470
- */
1471
- public adminUpdateUserAttributes(
1472
- args: AdminUpdateUserAttributesCommandInput,
1473
- options?: __HttpHandlerOptions
1474
- ): Promise<AdminUpdateUserAttributesCommandOutput>;
1475
- public adminUpdateUserAttributes(
1476
- args: AdminUpdateUserAttributesCommandInput,
1477
- cb: (err: any, data?: AdminUpdateUserAttributesCommandOutput) => void
1478
- ): void;
1479
- public adminUpdateUserAttributes(
1480
- args: AdminUpdateUserAttributesCommandInput,
1481
- options: __HttpHandlerOptions,
1482
- cb: (err: any, data?: AdminUpdateUserAttributesCommandOutput) => void
1483
- ): void;
1484
- public adminUpdateUserAttributes(
1485
- args: AdminUpdateUserAttributesCommandInput,
1486
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminUpdateUserAttributesCommandOutput) => void),
1487
- cb?: (err: any, data?: AdminUpdateUserAttributesCommandOutput) => void
1488
- ): Promise<AdminUpdateUserAttributesCommandOutput> | void {
1489
- const command = new AdminUpdateUserAttributesCommand(args);
1490
- if (typeof optionsOrCb === "function") {
1491
- this.send(command, optionsOrCb);
1492
- } else if (typeof cb === "function") {
1493
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1494
- this.send(command, optionsOrCb || {}, cb);
1495
- } else {
1496
- return this.send(command, optionsOrCb);
1497
- }
1498
- }
1499
-
1500
- /**
1501
- * <p>Signs out users from all devices, as an administrator. It also invalidates all refresh
1502
- * tokens issued to a user. The user's current access and Id tokens remain valid until
1503
- * their expiry. Access and Id tokens expire one hour after they are issued.</p>
1504
- * <p>Calling this action requires developer credentials.</p>
1505
- */
1506
- public adminUserGlobalSignOut(
1507
- args: AdminUserGlobalSignOutCommandInput,
1508
- options?: __HttpHandlerOptions
1509
- ): Promise<AdminUserGlobalSignOutCommandOutput>;
1510
- public adminUserGlobalSignOut(
1511
- args: AdminUserGlobalSignOutCommandInput,
1512
- cb: (err: any, data?: AdminUserGlobalSignOutCommandOutput) => void
1513
- ): void;
1514
- public adminUserGlobalSignOut(
1515
- args: AdminUserGlobalSignOutCommandInput,
1516
- options: __HttpHandlerOptions,
1517
- cb: (err: any, data?: AdminUserGlobalSignOutCommandOutput) => void
1518
- ): void;
1519
- public adminUserGlobalSignOut(
1520
- args: AdminUserGlobalSignOutCommandInput,
1521
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AdminUserGlobalSignOutCommandOutput) => void),
1522
- cb?: (err: any, data?: AdminUserGlobalSignOutCommandOutput) => void
1523
- ): Promise<AdminUserGlobalSignOutCommandOutput> | void {
1524
- const command = new AdminUserGlobalSignOutCommand(args);
1525
- if (typeof optionsOrCb === "function") {
1526
- this.send(command, optionsOrCb);
1527
- } else if (typeof cb === "function") {
1528
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1529
- this.send(command, optionsOrCb || {}, cb);
1530
- } else {
1531
- return this.send(command, optionsOrCb);
1532
- }
1533
- }
1534
-
1535
- /**
1536
- * <p>Returns a unique generated shared secret key code for the user account. The request
1537
- * takes an access token or a session string, but not both.</p>
1538
- * <note>
1539
- * <p>Calling AssociateSoftwareToken immediately disassociates the existing software
1540
- * token from the user account. If the user doesn't subsequently verify the software
1541
- * token, their account is essentially set up to authenticate without MFA. If MFA
1542
- * config is set to Optional at the user pool level, the user can then login without
1543
- * MFA. However, if MFA is set to Required for the user pool, the user will be asked to
1544
- * setup a new software token MFA during sign in.</p>
1545
- * </note>
1546
- */
1547
- public associateSoftwareToken(
1548
- args: AssociateSoftwareTokenCommandInput,
1549
- options?: __HttpHandlerOptions
1550
- ): Promise<AssociateSoftwareTokenCommandOutput>;
1551
- public associateSoftwareToken(
1552
- args: AssociateSoftwareTokenCommandInput,
1553
- cb: (err: any, data?: AssociateSoftwareTokenCommandOutput) => void
1554
- ): void;
1555
- public associateSoftwareToken(
1556
- args: AssociateSoftwareTokenCommandInput,
1557
- options: __HttpHandlerOptions,
1558
- cb: (err: any, data?: AssociateSoftwareTokenCommandOutput) => void
1559
- ): void;
1560
- public associateSoftwareToken(
1561
- args: AssociateSoftwareTokenCommandInput,
1562
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: AssociateSoftwareTokenCommandOutput) => void),
1563
- cb?: (err: any, data?: AssociateSoftwareTokenCommandOutput) => void
1564
- ): Promise<AssociateSoftwareTokenCommandOutput> | void {
1565
- const command = new AssociateSoftwareTokenCommand(args);
1566
- if (typeof optionsOrCb === "function") {
1567
- this.send(command, optionsOrCb);
1568
- } else if (typeof cb === "function") {
1569
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1570
- this.send(command, optionsOrCb || {}, cb);
1571
- } else {
1572
- return this.send(command, optionsOrCb);
1573
- }
1574
- }
1575
-
1576
- /**
1577
- * <p>Changes the password for a specified user in a user pool.</p>
1578
- */
1579
- public changePassword(
1580
- args: ChangePasswordCommandInput,
1581
- options?: __HttpHandlerOptions
1582
- ): Promise<ChangePasswordCommandOutput>;
1583
- public changePassword(
1584
- args: ChangePasswordCommandInput,
1585
- cb: (err: any, data?: ChangePasswordCommandOutput) => void
1586
- ): void;
1587
- public changePassword(
1588
- args: ChangePasswordCommandInput,
1589
- options: __HttpHandlerOptions,
1590
- cb: (err: any, data?: ChangePasswordCommandOutput) => void
1591
- ): void;
1592
- public changePassword(
1593
- args: ChangePasswordCommandInput,
1594
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ChangePasswordCommandOutput) => void),
1595
- cb?: (err: any, data?: ChangePasswordCommandOutput) => void
1596
- ): Promise<ChangePasswordCommandOutput> | void {
1597
- const command = new ChangePasswordCommand(args);
1598
- if (typeof optionsOrCb === "function") {
1599
- this.send(command, optionsOrCb);
1600
- } else if (typeof cb === "function") {
1601
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1602
- this.send(command, optionsOrCb || {}, cb);
1603
- } else {
1604
- return this.send(command, optionsOrCb);
1605
- }
1606
- }
1607
-
1608
- /**
1609
- * <p>Confirms tracking of the device. This API call is the call that begins device
1610
- * tracking.</p>
1611
- */
1612
- public confirmDevice(
1613
- args: ConfirmDeviceCommandInput,
1614
- options?: __HttpHandlerOptions
1615
- ): Promise<ConfirmDeviceCommandOutput>;
1616
- public confirmDevice(
1617
- args: ConfirmDeviceCommandInput,
1618
- cb: (err: any, data?: ConfirmDeviceCommandOutput) => void
1619
- ): void;
1620
- public confirmDevice(
1621
- args: ConfirmDeviceCommandInput,
1622
- options: __HttpHandlerOptions,
1623
- cb: (err: any, data?: ConfirmDeviceCommandOutput) => void
1624
- ): void;
1625
- public confirmDevice(
1626
- args: ConfirmDeviceCommandInput,
1627
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ConfirmDeviceCommandOutput) => void),
1628
- cb?: (err: any, data?: ConfirmDeviceCommandOutput) => void
1629
- ): Promise<ConfirmDeviceCommandOutput> | void {
1630
- const command = new ConfirmDeviceCommand(args);
1631
- if (typeof optionsOrCb === "function") {
1632
- this.send(command, optionsOrCb);
1633
- } else if (typeof cb === "function") {
1634
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1635
- this.send(command, optionsOrCb || {}, cb);
1636
- } else {
1637
- return this.send(command, optionsOrCb);
1638
- }
1639
- }
1640
-
1641
- /**
1642
- * <p>Allows a user to enter a confirmation code to reset a forgotten password.</p>
1643
- */
1644
- public confirmForgotPassword(
1645
- args: ConfirmForgotPasswordCommandInput,
1646
- options?: __HttpHandlerOptions
1647
- ): Promise<ConfirmForgotPasswordCommandOutput>;
1648
- public confirmForgotPassword(
1649
- args: ConfirmForgotPasswordCommandInput,
1650
- cb: (err: any, data?: ConfirmForgotPasswordCommandOutput) => void
1651
- ): void;
1652
- public confirmForgotPassword(
1653
- args: ConfirmForgotPasswordCommandInput,
1654
- options: __HttpHandlerOptions,
1655
- cb: (err: any, data?: ConfirmForgotPasswordCommandOutput) => void
1656
- ): void;
1657
- public confirmForgotPassword(
1658
- args: ConfirmForgotPasswordCommandInput,
1659
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ConfirmForgotPasswordCommandOutput) => void),
1660
- cb?: (err: any, data?: ConfirmForgotPasswordCommandOutput) => void
1661
- ): Promise<ConfirmForgotPasswordCommandOutput> | void {
1662
- const command = new ConfirmForgotPasswordCommand(args);
1663
- if (typeof optionsOrCb === "function") {
1664
- this.send(command, optionsOrCb);
1665
- } else if (typeof cb === "function") {
1666
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1667
- this.send(command, optionsOrCb || {}, cb);
1668
- } else {
1669
- return this.send(command, optionsOrCb);
1670
- }
1671
- }
1672
-
1673
- /**
1674
- * <p>Confirms registration of a user and handles the existing alias from a previous
1675
- * user.</p>
1676
- */
1677
- public confirmSignUp(
1678
- args: ConfirmSignUpCommandInput,
1679
- options?: __HttpHandlerOptions
1680
- ): Promise<ConfirmSignUpCommandOutput>;
1681
- public confirmSignUp(
1682
- args: ConfirmSignUpCommandInput,
1683
- cb: (err: any, data?: ConfirmSignUpCommandOutput) => void
1684
- ): void;
1685
- public confirmSignUp(
1686
- args: ConfirmSignUpCommandInput,
1687
- options: __HttpHandlerOptions,
1688
- cb: (err: any, data?: ConfirmSignUpCommandOutput) => void
1689
- ): void;
1690
- public confirmSignUp(
1691
- args: ConfirmSignUpCommandInput,
1692
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ConfirmSignUpCommandOutput) => void),
1693
- cb?: (err: any, data?: ConfirmSignUpCommandOutput) => void
1694
- ): Promise<ConfirmSignUpCommandOutput> | void {
1695
- const command = new ConfirmSignUpCommand(args);
1696
- if (typeof optionsOrCb === "function") {
1697
- this.send(command, optionsOrCb);
1698
- } else if (typeof cb === "function") {
1699
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1700
- this.send(command, optionsOrCb || {}, cb);
1701
- } else {
1702
- return this.send(command, optionsOrCb);
1703
- }
1704
- }
1705
-
1706
- /**
1707
- * <p>Creates a new group in the specified user pool.</p>
1708
- * <p>Calling this action requires developer credentials.</p>
1709
- */
1710
- public createGroup(args: CreateGroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateGroupCommandOutput>;
1711
- public createGroup(args: CreateGroupCommandInput, cb: (err: any, data?: CreateGroupCommandOutput) => void): void;
1712
- public createGroup(
1713
- args: CreateGroupCommandInput,
1714
- options: __HttpHandlerOptions,
1715
- cb: (err: any, data?: CreateGroupCommandOutput) => void
1716
- ): void;
1717
- public createGroup(
1718
- args: CreateGroupCommandInput,
1719
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateGroupCommandOutput) => void),
1720
- cb?: (err: any, data?: CreateGroupCommandOutput) => void
1721
- ): Promise<CreateGroupCommandOutput> | void {
1722
- const command = new CreateGroupCommand(args);
1723
- if (typeof optionsOrCb === "function") {
1724
- this.send(command, optionsOrCb);
1725
- } else if (typeof cb === "function") {
1726
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1727
- this.send(command, optionsOrCb || {}, cb);
1728
- } else {
1729
- return this.send(command, optionsOrCb);
1730
- }
1731
- }
1732
-
1733
- /**
1734
- * <p>Creates an identity provider for a user pool.</p>
1735
- */
1736
- public createIdentityProvider(
1737
- args: CreateIdentityProviderCommandInput,
1738
- options?: __HttpHandlerOptions
1739
- ): Promise<CreateIdentityProviderCommandOutput>;
1740
- public createIdentityProvider(
1741
- args: CreateIdentityProviderCommandInput,
1742
- cb: (err: any, data?: CreateIdentityProviderCommandOutput) => void
1743
- ): void;
1744
- public createIdentityProvider(
1745
- args: CreateIdentityProviderCommandInput,
1746
- options: __HttpHandlerOptions,
1747
- cb: (err: any, data?: CreateIdentityProviderCommandOutput) => void
1748
- ): void;
1749
- public createIdentityProvider(
1750
- args: CreateIdentityProviderCommandInput,
1751
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateIdentityProviderCommandOutput) => void),
1752
- cb?: (err: any, data?: CreateIdentityProviderCommandOutput) => void
1753
- ): Promise<CreateIdentityProviderCommandOutput> | void {
1754
- const command = new CreateIdentityProviderCommand(args);
1755
- if (typeof optionsOrCb === "function") {
1756
- this.send(command, optionsOrCb);
1757
- } else if (typeof cb === "function") {
1758
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1759
- this.send(command, optionsOrCb || {}, cb);
1760
- } else {
1761
- return this.send(command, optionsOrCb);
1762
- }
1763
- }
1764
-
1765
- /**
1766
- * <p>Creates a new OAuth2.0 resource server and defines custom scopes in it.</p>
1767
- */
1768
- public createResourceServer(
1769
- args: CreateResourceServerCommandInput,
1770
- options?: __HttpHandlerOptions
1771
- ): Promise<CreateResourceServerCommandOutput>;
1772
- public createResourceServer(
1773
- args: CreateResourceServerCommandInput,
1774
- cb: (err: any, data?: CreateResourceServerCommandOutput) => void
1775
- ): void;
1776
- public createResourceServer(
1777
- args: CreateResourceServerCommandInput,
1778
- options: __HttpHandlerOptions,
1779
- cb: (err: any, data?: CreateResourceServerCommandOutput) => void
1780
- ): void;
1781
- public createResourceServer(
1782
- args: CreateResourceServerCommandInput,
1783
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateResourceServerCommandOutput) => void),
1784
- cb?: (err: any, data?: CreateResourceServerCommandOutput) => void
1785
- ): Promise<CreateResourceServerCommandOutput> | void {
1786
- const command = new CreateResourceServerCommand(args);
1787
- if (typeof optionsOrCb === "function") {
1788
- this.send(command, optionsOrCb);
1789
- } else if (typeof cb === "function") {
1790
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1791
- this.send(command, optionsOrCb || {}, cb);
1792
- } else {
1793
- return this.send(command, optionsOrCb);
1794
- }
1795
- }
1796
-
1797
- /**
1798
- * <p>Creates the user import job.</p>
1799
- */
1800
- public createUserImportJob(
1801
- args: CreateUserImportJobCommandInput,
1802
- options?: __HttpHandlerOptions
1803
- ): Promise<CreateUserImportJobCommandOutput>;
1804
- public createUserImportJob(
1805
- args: CreateUserImportJobCommandInput,
1806
- cb: (err: any, data?: CreateUserImportJobCommandOutput) => void
1807
- ): void;
1808
- public createUserImportJob(
1809
- args: CreateUserImportJobCommandInput,
1810
- options: __HttpHandlerOptions,
1811
- cb: (err: any, data?: CreateUserImportJobCommandOutput) => void
1812
- ): void;
1813
- public createUserImportJob(
1814
- args: CreateUserImportJobCommandInput,
1815
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateUserImportJobCommandOutput) => void),
1816
- cb?: (err: any, data?: CreateUserImportJobCommandOutput) => void
1817
- ): Promise<CreateUserImportJobCommandOutput> | void {
1818
- const command = new CreateUserImportJobCommand(args);
1819
- if (typeof optionsOrCb === "function") {
1820
- this.send(command, optionsOrCb);
1821
- } else if (typeof cb === "function") {
1822
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1823
- this.send(command, optionsOrCb || {}, cb);
1824
- } else {
1825
- return this.send(command, optionsOrCb);
1826
- }
1827
- }
1828
-
1829
- /**
1830
- * <p>Creates a new Amazon Cognito user pool and sets the password policy for the
1831
- * pool.</p>
1832
- *
1833
- * <note>
1834
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
1835
- * telecom carriers require that you register an origination phone number before you can
1836
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
1837
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
1838
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
1839
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
1840
- * in.</p>
1841
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
1842
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
1843
- * mode</a>
1844
- * </i>, you’ll have limitations, such as sending messages
1845
- * to only verified phone numbers. After testing in the sandbox environment, you can
1846
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
1847
- * Cognito Developer Guide</i>. </p>
1848
- * </note>
1849
- */
1850
- public createUserPool(
1851
- args: CreateUserPoolCommandInput,
1852
- options?: __HttpHandlerOptions
1853
- ): Promise<CreateUserPoolCommandOutput>;
1854
- public createUserPool(
1855
- args: CreateUserPoolCommandInput,
1856
- cb: (err: any, data?: CreateUserPoolCommandOutput) => void
1857
- ): void;
1858
- public createUserPool(
1859
- args: CreateUserPoolCommandInput,
1860
- options: __HttpHandlerOptions,
1861
- cb: (err: any, data?: CreateUserPoolCommandOutput) => void
1862
- ): void;
1863
- public createUserPool(
1864
- args: CreateUserPoolCommandInput,
1865
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateUserPoolCommandOutput) => void),
1866
- cb?: (err: any, data?: CreateUserPoolCommandOutput) => void
1867
- ): Promise<CreateUserPoolCommandOutput> | void {
1868
- const command = new CreateUserPoolCommand(args);
1869
- if (typeof optionsOrCb === "function") {
1870
- this.send(command, optionsOrCb);
1871
- } else if (typeof cb === "function") {
1872
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1873
- this.send(command, optionsOrCb || {}, cb);
1874
- } else {
1875
- return this.send(command, optionsOrCb);
1876
- }
1877
- }
1878
-
1879
- /**
1880
- * <p>Creates the user pool client.</p>
1881
- * <p>When you create a new user pool client, token revocation is automatically enabled. For more information
1882
- * about revoking tokens, see <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html">RevokeToken</a>.</p>
1883
- */
1884
- public createUserPoolClient(
1885
- args: CreateUserPoolClientCommandInput,
1886
- options?: __HttpHandlerOptions
1887
- ): Promise<CreateUserPoolClientCommandOutput>;
1888
- public createUserPoolClient(
1889
- args: CreateUserPoolClientCommandInput,
1890
- cb: (err: any, data?: CreateUserPoolClientCommandOutput) => void
1891
- ): void;
1892
- public createUserPoolClient(
1893
- args: CreateUserPoolClientCommandInput,
1894
- options: __HttpHandlerOptions,
1895
- cb: (err: any, data?: CreateUserPoolClientCommandOutput) => void
1896
- ): void;
1897
- public createUserPoolClient(
1898
- args: CreateUserPoolClientCommandInput,
1899
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateUserPoolClientCommandOutput) => void),
1900
- cb?: (err: any, data?: CreateUserPoolClientCommandOutput) => void
1901
- ): Promise<CreateUserPoolClientCommandOutput> | void {
1902
- const command = new CreateUserPoolClientCommand(args);
1903
- if (typeof optionsOrCb === "function") {
1904
- this.send(command, optionsOrCb);
1905
- } else if (typeof cb === "function") {
1906
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1907
- this.send(command, optionsOrCb || {}, cb);
1908
- } else {
1909
- return this.send(command, optionsOrCb);
1910
- }
1911
- }
1912
-
1913
- /**
1914
- * <p>Creates a new domain for a user pool.</p>
1915
- */
1916
- public createUserPoolDomain(
1917
- args: CreateUserPoolDomainCommandInput,
1918
- options?: __HttpHandlerOptions
1919
- ): Promise<CreateUserPoolDomainCommandOutput>;
1920
- public createUserPoolDomain(
1921
- args: CreateUserPoolDomainCommandInput,
1922
- cb: (err: any, data?: CreateUserPoolDomainCommandOutput) => void
1923
- ): void;
1924
- public createUserPoolDomain(
1925
- args: CreateUserPoolDomainCommandInput,
1926
- options: __HttpHandlerOptions,
1927
- cb: (err: any, data?: CreateUserPoolDomainCommandOutput) => void
1928
- ): void;
1929
- public createUserPoolDomain(
1930
- args: CreateUserPoolDomainCommandInput,
1931
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CreateUserPoolDomainCommandOutput) => void),
1932
- cb?: (err: any, data?: CreateUserPoolDomainCommandOutput) => void
1933
- ): Promise<CreateUserPoolDomainCommandOutput> | void {
1934
- const command = new CreateUserPoolDomainCommand(args);
1935
- if (typeof optionsOrCb === "function") {
1936
- this.send(command, optionsOrCb);
1937
- } else if (typeof cb === "function") {
1938
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1939
- this.send(command, optionsOrCb || {}, cb);
1940
- } else {
1941
- return this.send(command, optionsOrCb);
1942
- }
1943
- }
1944
-
1945
- /**
1946
- * <p>Deletes a group.</p>
1947
- * <p>Calling this action requires developer credentials.</p>
1948
- */
1949
- public deleteGroup(args: DeleteGroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteGroupCommandOutput>;
1950
- public deleteGroup(args: DeleteGroupCommandInput, cb: (err: any, data?: DeleteGroupCommandOutput) => void): void;
1951
- public deleteGroup(
1952
- args: DeleteGroupCommandInput,
1953
- options: __HttpHandlerOptions,
1954
- cb: (err: any, data?: DeleteGroupCommandOutput) => void
1955
- ): void;
1956
- public deleteGroup(
1957
- args: DeleteGroupCommandInput,
1958
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteGroupCommandOutput) => void),
1959
- cb?: (err: any, data?: DeleteGroupCommandOutput) => void
1960
- ): Promise<DeleteGroupCommandOutput> | void {
1961
- const command = new DeleteGroupCommand(args);
1962
- if (typeof optionsOrCb === "function") {
1963
- this.send(command, optionsOrCb);
1964
- } else if (typeof cb === "function") {
1965
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1966
- this.send(command, optionsOrCb || {}, cb);
1967
- } else {
1968
- return this.send(command, optionsOrCb);
1969
- }
1970
- }
1971
-
1972
- /**
1973
- * <p>Deletes an identity provider for a user pool.</p>
1974
- */
1975
- public deleteIdentityProvider(
1976
- args: DeleteIdentityProviderCommandInput,
1977
- options?: __HttpHandlerOptions
1978
- ): Promise<DeleteIdentityProviderCommandOutput>;
1979
- public deleteIdentityProvider(
1980
- args: DeleteIdentityProviderCommandInput,
1981
- cb: (err: any, data?: DeleteIdentityProviderCommandOutput) => void
1982
- ): void;
1983
- public deleteIdentityProvider(
1984
- args: DeleteIdentityProviderCommandInput,
1985
- options: __HttpHandlerOptions,
1986
- cb: (err: any, data?: DeleteIdentityProviderCommandOutput) => void
1987
- ): void;
1988
- public deleteIdentityProvider(
1989
- args: DeleteIdentityProviderCommandInput,
1990
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteIdentityProviderCommandOutput) => void),
1991
- cb?: (err: any, data?: DeleteIdentityProviderCommandOutput) => void
1992
- ): Promise<DeleteIdentityProviderCommandOutput> | void {
1993
- const command = new DeleteIdentityProviderCommand(args);
1994
- if (typeof optionsOrCb === "function") {
1995
- this.send(command, optionsOrCb);
1996
- } else if (typeof cb === "function") {
1997
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1998
- this.send(command, optionsOrCb || {}, cb);
1999
- } else {
2000
- return this.send(command, optionsOrCb);
2001
- }
2002
- }
2003
-
2004
- /**
2005
- * <p>Deletes a resource server.</p>
2006
- */
2007
- public deleteResourceServer(
2008
- args: DeleteResourceServerCommandInput,
2009
- options?: __HttpHandlerOptions
2010
- ): Promise<DeleteResourceServerCommandOutput>;
2011
- public deleteResourceServer(
2012
- args: DeleteResourceServerCommandInput,
2013
- cb: (err: any, data?: DeleteResourceServerCommandOutput) => void
2014
- ): void;
2015
- public deleteResourceServer(
2016
- args: DeleteResourceServerCommandInput,
2017
- options: __HttpHandlerOptions,
2018
- cb: (err: any, data?: DeleteResourceServerCommandOutput) => void
2019
- ): void;
2020
- public deleteResourceServer(
2021
- args: DeleteResourceServerCommandInput,
2022
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteResourceServerCommandOutput) => void),
2023
- cb?: (err: any, data?: DeleteResourceServerCommandOutput) => void
2024
- ): Promise<DeleteResourceServerCommandOutput> | void {
2025
- const command = new DeleteResourceServerCommand(args);
2026
- if (typeof optionsOrCb === "function") {
2027
- this.send(command, optionsOrCb);
2028
- } else if (typeof cb === "function") {
2029
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2030
- this.send(command, optionsOrCb || {}, cb);
2031
- } else {
2032
- return this.send(command, optionsOrCb);
2033
- }
2034
- }
2035
-
2036
- /**
2037
- * <p>Allows a user to delete himself or herself.</p>
2038
- */
2039
- public deleteUser(args: DeleteUserCommandInput, options?: __HttpHandlerOptions): Promise<DeleteUserCommandOutput>;
2040
- public deleteUser(args: DeleteUserCommandInput, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
2041
- public deleteUser(
2042
- args: DeleteUserCommandInput,
2043
- options: __HttpHandlerOptions,
2044
- cb: (err: any, data?: DeleteUserCommandOutput) => void
2045
- ): void;
2046
- public deleteUser(
2047
- args: DeleteUserCommandInput,
2048
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteUserCommandOutput) => void),
2049
- cb?: (err: any, data?: DeleteUserCommandOutput) => void
2050
- ): Promise<DeleteUserCommandOutput> | void {
2051
- const command = new DeleteUserCommand(args);
2052
- if (typeof optionsOrCb === "function") {
2053
- this.send(command, optionsOrCb);
2054
- } else if (typeof cb === "function") {
2055
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2056
- this.send(command, optionsOrCb || {}, cb);
2057
- } else {
2058
- return this.send(command, optionsOrCb);
2059
- }
2060
- }
2061
-
2062
- /**
2063
- * <p>Deletes the attributes for a user.</p>
2064
- */
2065
- public deleteUserAttributes(
2066
- args: DeleteUserAttributesCommandInput,
2067
- options?: __HttpHandlerOptions
2068
- ): Promise<DeleteUserAttributesCommandOutput>;
2069
- public deleteUserAttributes(
2070
- args: DeleteUserAttributesCommandInput,
2071
- cb: (err: any, data?: DeleteUserAttributesCommandOutput) => void
2072
- ): void;
2073
- public deleteUserAttributes(
2074
- args: DeleteUserAttributesCommandInput,
2075
- options: __HttpHandlerOptions,
2076
- cb: (err: any, data?: DeleteUserAttributesCommandOutput) => void
2077
- ): void;
2078
- public deleteUserAttributes(
2079
- args: DeleteUserAttributesCommandInput,
2080
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteUserAttributesCommandOutput) => void),
2081
- cb?: (err: any, data?: DeleteUserAttributesCommandOutput) => void
2082
- ): Promise<DeleteUserAttributesCommandOutput> | void {
2083
- const command = new DeleteUserAttributesCommand(args);
2084
- if (typeof optionsOrCb === "function") {
2085
- this.send(command, optionsOrCb);
2086
- } else if (typeof cb === "function") {
2087
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2088
- this.send(command, optionsOrCb || {}, cb);
2089
- } else {
2090
- return this.send(command, optionsOrCb);
2091
- }
2092
- }
2093
-
2094
- /**
2095
- * <p>Deletes the specified Amazon Cognito user pool.</p>
2096
- */
2097
- public deleteUserPool(
2098
- args: DeleteUserPoolCommandInput,
2099
- options?: __HttpHandlerOptions
2100
- ): Promise<DeleteUserPoolCommandOutput>;
2101
- public deleteUserPool(
2102
- args: DeleteUserPoolCommandInput,
2103
- cb: (err: any, data?: DeleteUserPoolCommandOutput) => void
2104
- ): void;
2105
- public deleteUserPool(
2106
- args: DeleteUserPoolCommandInput,
2107
- options: __HttpHandlerOptions,
2108
- cb: (err: any, data?: DeleteUserPoolCommandOutput) => void
2109
- ): void;
2110
- public deleteUserPool(
2111
- args: DeleteUserPoolCommandInput,
2112
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteUserPoolCommandOutput) => void),
2113
- cb?: (err: any, data?: DeleteUserPoolCommandOutput) => void
2114
- ): Promise<DeleteUserPoolCommandOutput> | void {
2115
- const command = new DeleteUserPoolCommand(args);
2116
- if (typeof optionsOrCb === "function") {
2117
- this.send(command, optionsOrCb);
2118
- } else if (typeof cb === "function") {
2119
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2120
- this.send(command, optionsOrCb || {}, cb);
2121
- } else {
2122
- return this.send(command, optionsOrCb);
2123
- }
2124
- }
2125
-
2126
- /**
2127
- * <p>Allows the developer to delete the user pool client.</p>
2128
- */
2129
- public deleteUserPoolClient(
2130
- args: DeleteUserPoolClientCommandInput,
2131
- options?: __HttpHandlerOptions
2132
- ): Promise<DeleteUserPoolClientCommandOutput>;
2133
- public deleteUserPoolClient(
2134
- args: DeleteUserPoolClientCommandInput,
2135
- cb: (err: any, data?: DeleteUserPoolClientCommandOutput) => void
2136
- ): void;
2137
- public deleteUserPoolClient(
2138
- args: DeleteUserPoolClientCommandInput,
2139
- options: __HttpHandlerOptions,
2140
- cb: (err: any, data?: DeleteUserPoolClientCommandOutput) => void
2141
- ): void;
2142
- public deleteUserPoolClient(
2143
- args: DeleteUserPoolClientCommandInput,
2144
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteUserPoolClientCommandOutput) => void),
2145
- cb?: (err: any, data?: DeleteUserPoolClientCommandOutput) => void
2146
- ): Promise<DeleteUserPoolClientCommandOutput> | void {
2147
- const command = new DeleteUserPoolClientCommand(args);
2148
- if (typeof optionsOrCb === "function") {
2149
- this.send(command, optionsOrCb);
2150
- } else if (typeof cb === "function") {
2151
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2152
- this.send(command, optionsOrCb || {}, cb);
2153
- } else {
2154
- return this.send(command, optionsOrCb);
2155
- }
2156
- }
2157
-
2158
- /**
2159
- * <p>Deletes a domain for a user pool.</p>
2160
- */
2161
- public deleteUserPoolDomain(
2162
- args: DeleteUserPoolDomainCommandInput,
2163
- options?: __HttpHandlerOptions
2164
- ): Promise<DeleteUserPoolDomainCommandOutput>;
2165
- public deleteUserPoolDomain(
2166
- args: DeleteUserPoolDomainCommandInput,
2167
- cb: (err: any, data?: DeleteUserPoolDomainCommandOutput) => void
2168
- ): void;
2169
- public deleteUserPoolDomain(
2170
- args: DeleteUserPoolDomainCommandInput,
2171
- options: __HttpHandlerOptions,
2172
- cb: (err: any, data?: DeleteUserPoolDomainCommandOutput) => void
2173
- ): void;
2174
- public deleteUserPoolDomain(
2175
- args: DeleteUserPoolDomainCommandInput,
2176
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DeleteUserPoolDomainCommandOutput) => void),
2177
- cb?: (err: any, data?: DeleteUserPoolDomainCommandOutput) => void
2178
- ): Promise<DeleteUserPoolDomainCommandOutput> | void {
2179
- const command = new DeleteUserPoolDomainCommand(args);
2180
- if (typeof optionsOrCb === "function") {
2181
- this.send(command, optionsOrCb);
2182
- } else if (typeof cb === "function") {
2183
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2184
- this.send(command, optionsOrCb || {}, cb);
2185
- } else {
2186
- return this.send(command, optionsOrCb);
2187
- }
2188
- }
2189
-
2190
- /**
2191
- * <p>Gets information about a specific identity provider.</p>
2192
- */
2193
- public describeIdentityProvider(
2194
- args: DescribeIdentityProviderCommandInput,
2195
- options?: __HttpHandlerOptions
2196
- ): Promise<DescribeIdentityProviderCommandOutput>;
2197
- public describeIdentityProvider(
2198
- args: DescribeIdentityProviderCommandInput,
2199
- cb: (err: any, data?: DescribeIdentityProviderCommandOutput) => void
2200
- ): void;
2201
- public describeIdentityProvider(
2202
- args: DescribeIdentityProviderCommandInput,
2203
- options: __HttpHandlerOptions,
2204
- cb: (err: any, data?: DescribeIdentityProviderCommandOutput) => void
2205
- ): void;
2206
- public describeIdentityProvider(
2207
- args: DescribeIdentityProviderCommandInput,
2208
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeIdentityProviderCommandOutput) => void),
2209
- cb?: (err: any, data?: DescribeIdentityProviderCommandOutput) => void
2210
- ): Promise<DescribeIdentityProviderCommandOutput> | void {
2211
- const command = new DescribeIdentityProviderCommand(args);
2212
- if (typeof optionsOrCb === "function") {
2213
- this.send(command, optionsOrCb);
2214
- } else if (typeof cb === "function") {
2215
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2216
- this.send(command, optionsOrCb || {}, cb);
2217
- } else {
2218
- return this.send(command, optionsOrCb);
2219
- }
2220
- }
2221
-
2222
- /**
2223
- * <p>Describes a resource server.</p>
2224
- */
2225
- public describeResourceServer(
2226
- args: DescribeResourceServerCommandInput,
2227
- options?: __HttpHandlerOptions
2228
- ): Promise<DescribeResourceServerCommandOutput>;
2229
- public describeResourceServer(
2230
- args: DescribeResourceServerCommandInput,
2231
- cb: (err: any, data?: DescribeResourceServerCommandOutput) => void
2232
- ): void;
2233
- public describeResourceServer(
2234
- args: DescribeResourceServerCommandInput,
2235
- options: __HttpHandlerOptions,
2236
- cb: (err: any, data?: DescribeResourceServerCommandOutput) => void
2237
- ): void;
2238
- public describeResourceServer(
2239
- args: DescribeResourceServerCommandInput,
2240
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeResourceServerCommandOutput) => void),
2241
- cb?: (err: any, data?: DescribeResourceServerCommandOutput) => void
2242
- ): Promise<DescribeResourceServerCommandOutput> | void {
2243
- const command = new DescribeResourceServerCommand(args);
2244
- if (typeof optionsOrCb === "function") {
2245
- this.send(command, optionsOrCb);
2246
- } else if (typeof cb === "function") {
2247
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2248
- this.send(command, optionsOrCb || {}, cb);
2249
- } else {
2250
- return this.send(command, optionsOrCb);
2251
- }
2252
- }
2253
-
2254
- /**
2255
- * <p>Describes the risk configuration.</p>
2256
- */
2257
- public describeRiskConfiguration(
2258
- args: DescribeRiskConfigurationCommandInput,
2259
- options?: __HttpHandlerOptions
2260
- ): Promise<DescribeRiskConfigurationCommandOutput>;
2261
- public describeRiskConfiguration(
2262
- args: DescribeRiskConfigurationCommandInput,
2263
- cb: (err: any, data?: DescribeRiskConfigurationCommandOutput) => void
2264
- ): void;
2265
- public describeRiskConfiguration(
2266
- args: DescribeRiskConfigurationCommandInput,
2267
- options: __HttpHandlerOptions,
2268
- cb: (err: any, data?: DescribeRiskConfigurationCommandOutput) => void
2269
- ): void;
2270
- public describeRiskConfiguration(
2271
- args: DescribeRiskConfigurationCommandInput,
2272
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeRiskConfigurationCommandOutput) => void),
2273
- cb?: (err: any, data?: DescribeRiskConfigurationCommandOutput) => void
2274
- ): Promise<DescribeRiskConfigurationCommandOutput> | void {
2275
- const command = new DescribeRiskConfigurationCommand(args);
2276
- if (typeof optionsOrCb === "function") {
2277
- this.send(command, optionsOrCb);
2278
- } else if (typeof cb === "function") {
2279
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2280
- this.send(command, optionsOrCb || {}, cb);
2281
- } else {
2282
- return this.send(command, optionsOrCb);
2283
- }
2284
- }
2285
-
2286
- /**
2287
- * <p>Describes the user import job.</p>
2288
- */
2289
- public describeUserImportJob(
2290
- args: DescribeUserImportJobCommandInput,
2291
- options?: __HttpHandlerOptions
2292
- ): Promise<DescribeUserImportJobCommandOutput>;
2293
- public describeUserImportJob(
2294
- args: DescribeUserImportJobCommandInput,
2295
- cb: (err: any, data?: DescribeUserImportJobCommandOutput) => void
2296
- ): void;
2297
- public describeUserImportJob(
2298
- args: DescribeUserImportJobCommandInput,
2299
- options: __HttpHandlerOptions,
2300
- cb: (err: any, data?: DescribeUserImportJobCommandOutput) => void
2301
- ): void;
2302
- public describeUserImportJob(
2303
- args: DescribeUserImportJobCommandInput,
2304
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeUserImportJobCommandOutput) => void),
2305
- cb?: (err: any, data?: DescribeUserImportJobCommandOutput) => void
2306
- ): Promise<DescribeUserImportJobCommandOutput> | void {
2307
- const command = new DescribeUserImportJobCommand(args);
2308
- if (typeof optionsOrCb === "function") {
2309
- this.send(command, optionsOrCb);
2310
- } else if (typeof cb === "function") {
2311
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2312
- this.send(command, optionsOrCb || {}, cb);
2313
- } else {
2314
- return this.send(command, optionsOrCb);
2315
- }
2316
- }
2317
-
2318
- /**
2319
- * <p>Returns the configuration information and metadata of the specified user pool.</p>
2320
- */
2321
- public describeUserPool(
2322
- args: DescribeUserPoolCommandInput,
2323
- options?: __HttpHandlerOptions
2324
- ): Promise<DescribeUserPoolCommandOutput>;
2325
- public describeUserPool(
2326
- args: DescribeUserPoolCommandInput,
2327
- cb: (err: any, data?: DescribeUserPoolCommandOutput) => void
2328
- ): void;
2329
- public describeUserPool(
2330
- args: DescribeUserPoolCommandInput,
2331
- options: __HttpHandlerOptions,
2332
- cb: (err: any, data?: DescribeUserPoolCommandOutput) => void
2333
- ): void;
2334
- public describeUserPool(
2335
- args: DescribeUserPoolCommandInput,
2336
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeUserPoolCommandOutput) => void),
2337
- cb?: (err: any, data?: DescribeUserPoolCommandOutput) => void
2338
- ): Promise<DescribeUserPoolCommandOutput> | void {
2339
- const command = new DescribeUserPoolCommand(args);
2340
- if (typeof optionsOrCb === "function") {
2341
- this.send(command, optionsOrCb);
2342
- } else if (typeof cb === "function") {
2343
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2344
- this.send(command, optionsOrCb || {}, cb);
2345
- } else {
2346
- return this.send(command, optionsOrCb);
2347
- }
2348
- }
2349
-
2350
- /**
2351
- * <p>Client method for returning the configuration information and metadata of the
2352
- * specified user pool app client.</p>
2353
- */
2354
- public describeUserPoolClient(
2355
- args: DescribeUserPoolClientCommandInput,
2356
- options?: __HttpHandlerOptions
2357
- ): Promise<DescribeUserPoolClientCommandOutput>;
2358
- public describeUserPoolClient(
2359
- args: DescribeUserPoolClientCommandInput,
2360
- cb: (err: any, data?: DescribeUserPoolClientCommandOutput) => void
2361
- ): void;
2362
- public describeUserPoolClient(
2363
- args: DescribeUserPoolClientCommandInput,
2364
- options: __HttpHandlerOptions,
2365
- cb: (err: any, data?: DescribeUserPoolClientCommandOutput) => void
2366
- ): void;
2367
- public describeUserPoolClient(
2368
- args: DescribeUserPoolClientCommandInput,
2369
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeUserPoolClientCommandOutput) => void),
2370
- cb?: (err: any, data?: DescribeUserPoolClientCommandOutput) => void
2371
- ): Promise<DescribeUserPoolClientCommandOutput> | void {
2372
- const command = new DescribeUserPoolClientCommand(args);
2373
- if (typeof optionsOrCb === "function") {
2374
- this.send(command, optionsOrCb);
2375
- } else if (typeof cb === "function") {
2376
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2377
- this.send(command, optionsOrCb || {}, cb);
2378
- } else {
2379
- return this.send(command, optionsOrCb);
2380
- }
2381
- }
2382
-
2383
- /**
2384
- * <p>Gets information about a domain.</p>
2385
- */
2386
- public describeUserPoolDomain(
2387
- args: DescribeUserPoolDomainCommandInput,
2388
- options?: __HttpHandlerOptions
2389
- ): Promise<DescribeUserPoolDomainCommandOutput>;
2390
- public describeUserPoolDomain(
2391
- args: DescribeUserPoolDomainCommandInput,
2392
- cb: (err: any, data?: DescribeUserPoolDomainCommandOutput) => void
2393
- ): void;
2394
- public describeUserPoolDomain(
2395
- args: DescribeUserPoolDomainCommandInput,
2396
- options: __HttpHandlerOptions,
2397
- cb: (err: any, data?: DescribeUserPoolDomainCommandOutput) => void
2398
- ): void;
2399
- public describeUserPoolDomain(
2400
- args: DescribeUserPoolDomainCommandInput,
2401
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeUserPoolDomainCommandOutput) => void),
2402
- cb?: (err: any, data?: DescribeUserPoolDomainCommandOutput) => void
2403
- ): Promise<DescribeUserPoolDomainCommandOutput> | void {
2404
- const command = new DescribeUserPoolDomainCommand(args);
2405
- if (typeof optionsOrCb === "function") {
2406
- this.send(command, optionsOrCb);
2407
- } else if (typeof cb === "function") {
2408
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2409
- this.send(command, optionsOrCb || {}, cb);
2410
- } else {
2411
- return this.send(command, optionsOrCb);
2412
- }
2413
- }
2414
-
2415
- /**
2416
- * <p>Forgets the specified device.</p>
2417
- */
2418
- public forgetDevice(
2419
- args: ForgetDeviceCommandInput,
2420
- options?: __HttpHandlerOptions
2421
- ): Promise<ForgetDeviceCommandOutput>;
2422
- public forgetDevice(args: ForgetDeviceCommandInput, cb: (err: any, data?: ForgetDeviceCommandOutput) => void): void;
2423
- public forgetDevice(
2424
- args: ForgetDeviceCommandInput,
2425
- options: __HttpHandlerOptions,
2426
- cb: (err: any, data?: ForgetDeviceCommandOutput) => void
2427
- ): void;
2428
- public forgetDevice(
2429
- args: ForgetDeviceCommandInput,
2430
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ForgetDeviceCommandOutput) => void),
2431
- cb?: (err: any, data?: ForgetDeviceCommandOutput) => void
2432
- ): Promise<ForgetDeviceCommandOutput> | void {
2433
- const command = new ForgetDeviceCommand(args);
2434
- if (typeof optionsOrCb === "function") {
2435
- this.send(command, optionsOrCb);
2436
- } else if (typeof cb === "function") {
2437
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2438
- this.send(command, optionsOrCb || {}, cb);
2439
- } else {
2440
- return this.send(command, optionsOrCb);
2441
- }
2442
- }
2443
-
2444
- /**
2445
- * <p>Calling this API causes a message to be sent to the end user with a confirmation code
2446
- * that is required to change the user's password. For the <code>Username</code> parameter,
2447
- * you can use the username or user alias. The method used to send the confirmation code is
2448
- * sent according to the specified AccountRecoverySetting. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/how-to-recover-a-user-account.html">Recovering
2449
- * User Accounts</a> in the <i>Amazon Cognito Developer Guide</i>. If
2450
- * neither a verified phone number nor a verified email exists, an
2451
- * <code>InvalidParameterException</code> is thrown. To use the confirmation code for
2452
- * resetting the password, call <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ConfirmForgotPassword.html">ConfirmForgotPassword</a>.</p>
2453
- *
2454
- * <note>
2455
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
2456
- * telecom carriers require that you register an origination phone number before you can
2457
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
2458
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
2459
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
2460
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
2461
- * in.</p>
2462
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
2463
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
2464
- * mode</a>
2465
- * </i>, you’ll have limitations, such as sending messages
2466
- * to only verified phone numbers. After testing in the sandbox environment, you can
2467
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
2468
- * Cognito Developer Guide</i>. </p>
2469
- * </note>
2470
- */
2471
- public forgotPassword(
2472
- args: ForgotPasswordCommandInput,
2473
- options?: __HttpHandlerOptions
2474
- ): Promise<ForgotPasswordCommandOutput>;
2475
- public forgotPassword(
2476
- args: ForgotPasswordCommandInput,
2477
- cb: (err: any, data?: ForgotPasswordCommandOutput) => void
2478
- ): void;
2479
- public forgotPassword(
2480
- args: ForgotPasswordCommandInput,
2481
- options: __HttpHandlerOptions,
2482
- cb: (err: any, data?: ForgotPasswordCommandOutput) => void
2483
- ): void;
2484
- public forgotPassword(
2485
- args: ForgotPasswordCommandInput,
2486
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ForgotPasswordCommandOutput) => void),
2487
- cb?: (err: any, data?: ForgotPasswordCommandOutput) => void
2488
- ): Promise<ForgotPasswordCommandOutput> | void {
2489
- const command = new ForgotPasswordCommand(args);
2490
- if (typeof optionsOrCb === "function") {
2491
- this.send(command, optionsOrCb);
2492
- } else if (typeof cb === "function") {
2493
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2494
- this.send(command, optionsOrCb || {}, cb);
2495
- } else {
2496
- return this.send(command, optionsOrCb);
2497
- }
2498
- }
2499
-
2500
- /**
2501
- * <p>Gets the header information for the .csv file to be used as input for the user import
2502
- * job.</p>
2503
- */
2504
- public getCSVHeader(
2505
- args: GetCSVHeaderCommandInput,
2506
- options?: __HttpHandlerOptions
2507
- ): Promise<GetCSVHeaderCommandOutput>;
2508
- public getCSVHeader(args: GetCSVHeaderCommandInput, cb: (err: any, data?: GetCSVHeaderCommandOutput) => void): void;
2509
- public getCSVHeader(
2510
- args: GetCSVHeaderCommandInput,
2511
- options: __HttpHandlerOptions,
2512
- cb: (err: any, data?: GetCSVHeaderCommandOutput) => void
2513
- ): void;
2514
- public getCSVHeader(
2515
- args: GetCSVHeaderCommandInput,
2516
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetCSVHeaderCommandOutput) => void),
2517
- cb?: (err: any, data?: GetCSVHeaderCommandOutput) => void
2518
- ): Promise<GetCSVHeaderCommandOutput> | void {
2519
- const command = new GetCSVHeaderCommand(args);
2520
- if (typeof optionsOrCb === "function") {
2521
- this.send(command, optionsOrCb);
2522
- } else if (typeof cb === "function") {
2523
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2524
- this.send(command, optionsOrCb || {}, cb);
2525
- } else {
2526
- return this.send(command, optionsOrCb);
2527
- }
2528
- }
2529
-
2530
- /**
2531
- * <p>Gets the device.</p>
2532
- */
2533
- public getDevice(args: GetDeviceCommandInput, options?: __HttpHandlerOptions): Promise<GetDeviceCommandOutput>;
2534
- public getDevice(args: GetDeviceCommandInput, cb: (err: any, data?: GetDeviceCommandOutput) => void): void;
2535
- public getDevice(
2536
- args: GetDeviceCommandInput,
2537
- options: __HttpHandlerOptions,
2538
- cb: (err: any, data?: GetDeviceCommandOutput) => void
2539
- ): void;
2540
- public getDevice(
2541
- args: GetDeviceCommandInput,
2542
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetDeviceCommandOutput) => void),
2543
- cb?: (err: any, data?: GetDeviceCommandOutput) => void
2544
- ): Promise<GetDeviceCommandOutput> | void {
2545
- const command = new GetDeviceCommand(args);
2546
- if (typeof optionsOrCb === "function") {
2547
- this.send(command, optionsOrCb);
2548
- } else if (typeof cb === "function") {
2549
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2550
- this.send(command, optionsOrCb || {}, cb);
2551
- } else {
2552
- return this.send(command, optionsOrCb);
2553
- }
2554
- }
2555
-
2556
- /**
2557
- * <p>Gets a group.</p>
2558
- * <p>Calling this action requires developer credentials.</p>
2559
- */
2560
- public getGroup(args: GetGroupCommandInput, options?: __HttpHandlerOptions): Promise<GetGroupCommandOutput>;
2561
- public getGroup(args: GetGroupCommandInput, cb: (err: any, data?: GetGroupCommandOutput) => void): void;
2562
- public getGroup(
2563
- args: GetGroupCommandInput,
2564
- options: __HttpHandlerOptions,
2565
- cb: (err: any, data?: GetGroupCommandOutput) => void
2566
- ): void;
2567
- public getGroup(
2568
- args: GetGroupCommandInput,
2569
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetGroupCommandOutput) => void),
2570
- cb?: (err: any, data?: GetGroupCommandOutput) => void
2571
- ): Promise<GetGroupCommandOutput> | void {
2572
- const command = new GetGroupCommand(args);
2573
- if (typeof optionsOrCb === "function") {
2574
- this.send(command, optionsOrCb);
2575
- } else if (typeof cb === "function") {
2576
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2577
- this.send(command, optionsOrCb || {}, cb);
2578
- } else {
2579
- return this.send(command, optionsOrCb);
2580
- }
2581
- }
2582
-
2583
- /**
2584
- * <p>Gets the specified identity provider.</p>
2585
- */
2586
- public getIdentityProviderByIdentifier(
2587
- args: GetIdentityProviderByIdentifierCommandInput,
2588
- options?: __HttpHandlerOptions
2589
- ): Promise<GetIdentityProviderByIdentifierCommandOutput>;
2590
- public getIdentityProviderByIdentifier(
2591
- args: GetIdentityProviderByIdentifierCommandInput,
2592
- cb: (err: any, data?: GetIdentityProviderByIdentifierCommandOutput) => void
2593
- ): void;
2594
- public getIdentityProviderByIdentifier(
2595
- args: GetIdentityProviderByIdentifierCommandInput,
2596
- options: __HttpHandlerOptions,
2597
- cb: (err: any, data?: GetIdentityProviderByIdentifierCommandOutput) => void
2598
- ): void;
2599
- public getIdentityProviderByIdentifier(
2600
- args: GetIdentityProviderByIdentifierCommandInput,
2601
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetIdentityProviderByIdentifierCommandOutput) => void),
2602
- cb?: (err: any, data?: GetIdentityProviderByIdentifierCommandOutput) => void
2603
- ): Promise<GetIdentityProviderByIdentifierCommandOutput> | void {
2604
- const command = new GetIdentityProviderByIdentifierCommand(args);
2605
- if (typeof optionsOrCb === "function") {
2606
- this.send(command, optionsOrCb);
2607
- } else if (typeof cb === "function") {
2608
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2609
- this.send(command, optionsOrCb || {}, cb);
2610
- } else {
2611
- return this.send(command, optionsOrCb);
2612
- }
2613
- }
2614
-
2615
- /**
2616
- * <p>This method takes a user pool ID, and returns the signing certificate.</p>
2617
- */
2618
- public getSigningCertificate(
2619
- args: GetSigningCertificateCommandInput,
2620
- options?: __HttpHandlerOptions
2621
- ): Promise<GetSigningCertificateCommandOutput>;
2622
- public getSigningCertificate(
2623
- args: GetSigningCertificateCommandInput,
2624
- cb: (err: any, data?: GetSigningCertificateCommandOutput) => void
2625
- ): void;
2626
- public getSigningCertificate(
2627
- args: GetSigningCertificateCommandInput,
2628
- options: __HttpHandlerOptions,
2629
- cb: (err: any, data?: GetSigningCertificateCommandOutput) => void
2630
- ): void;
2631
- public getSigningCertificate(
2632
- args: GetSigningCertificateCommandInput,
2633
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetSigningCertificateCommandOutput) => void),
2634
- cb?: (err: any, data?: GetSigningCertificateCommandOutput) => void
2635
- ): Promise<GetSigningCertificateCommandOutput> | void {
2636
- const command = new GetSigningCertificateCommand(args);
2637
- if (typeof optionsOrCb === "function") {
2638
- this.send(command, optionsOrCb);
2639
- } else if (typeof cb === "function") {
2640
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2641
- this.send(command, optionsOrCb || {}, cb);
2642
- } else {
2643
- return this.send(command, optionsOrCb);
2644
- }
2645
- }
2646
-
2647
- /**
2648
- * <p>Gets the UI Customization information for a particular app client's app UI, if there
2649
- * is something set. If nothing is set for the particular client, but there is an existing
2650
- * pool level customization (app <code>clientId</code> will be <code>ALL</code>), then that
2651
- * is returned. If nothing is present, then an empty shape is returned.</p>
2652
- */
2653
- public getUICustomization(
2654
- args: GetUICustomizationCommandInput,
2655
- options?: __HttpHandlerOptions
2656
- ): Promise<GetUICustomizationCommandOutput>;
2657
- public getUICustomization(
2658
- args: GetUICustomizationCommandInput,
2659
- cb: (err: any, data?: GetUICustomizationCommandOutput) => void
2660
- ): void;
2661
- public getUICustomization(
2662
- args: GetUICustomizationCommandInput,
2663
- options: __HttpHandlerOptions,
2664
- cb: (err: any, data?: GetUICustomizationCommandOutput) => void
2665
- ): void;
2666
- public getUICustomization(
2667
- args: GetUICustomizationCommandInput,
2668
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetUICustomizationCommandOutput) => void),
2669
- cb?: (err: any, data?: GetUICustomizationCommandOutput) => void
2670
- ): Promise<GetUICustomizationCommandOutput> | void {
2671
- const command = new GetUICustomizationCommand(args);
2672
- if (typeof optionsOrCb === "function") {
2673
- this.send(command, optionsOrCb);
2674
- } else if (typeof cb === "function") {
2675
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2676
- this.send(command, optionsOrCb || {}, cb);
2677
- } else {
2678
- return this.send(command, optionsOrCb);
2679
- }
2680
- }
2681
-
2682
- /**
2683
- * <p>Gets the user attributes and metadata for a user.</p>
2684
- */
2685
- public getUser(args: GetUserCommandInput, options?: __HttpHandlerOptions): Promise<GetUserCommandOutput>;
2686
- public getUser(args: GetUserCommandInput, cb: (err: any, data?: GetUserCommandOutput) => void): void;
2687
- public getUser(
2688
- args: GetUserCommandInput,
2689
- options: __HttpHandlerOptions,
2690
- cb: (err: any, data?: GetUserCommandOutput) => void
2691
- ): void;
2692
- public getUser(
2693
- args: GetUserCommandInput,
2694
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetUserCommandOutput) => void),
2695
- cb?: (err: any, data?: GetUserCommandOutput) => void
2696
- ): Promise<GetUserCommandOutput> | void {
2697
- const command = new GetUserCommand(args);
2698
- if (typeof optionsOrCb === "function") {
2699
- this.send(command, optionsOrCb);
2700
- } else if (typeof cb === "function") {
2701
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2702
- this.send(command, optionsOrCb || {}, cb);
2703
- } else {
2704
- return this.send(command, optionsOrCb);
2705
- }
2706
- }
2707
-
2708
- /**
2709
- * <p>Gets the user attribute verification code for the specified attribute name.</p>
2710
- *
2711
- * <note>
2712
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
2713
- * telecom carriers require that you register an origination phone number before you can
2714
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
2715
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
2716
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
2717
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
2718
- * in.</p>
2719
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
2720
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
2721
- * mode</a>
2722
- * </i>, you’ll have limitations, such as sending messages
2723
- * to only verified phone numbers. After testing in the sandbox environment, you can
2724
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
2725
- * Cognito Developer Guide</i>. </p>
2726
- * </note>
2727
- */
2728
- public getUserAttributeVerificationCode(
2729
- args: GetUserAttributeVerificationCodeCommandInput,
2730
- options?: __HttpHandlerOptions
2731
- ): Promise<GetUserAttributeVerificationCodeCommandOutput>;
2732
- public getUserAttributeVerificationCode(
2733
- args: GetUserAttributeVerificationCodeCommandInput,
2734
- cb: (err: any, data?: GetUserAttributeVerificationCodeCommandOutput) => void
2735
- ): void;
2736
- public getUserAttributeVerificationCode(
2737
- args: GetUserAttributeVerificationCodeCommandInput,
2738
- options: __HttpHandlerOptions,
2739
- cb: (err: any, data?: GetUserAttributeVerificationCodeCommandOutput) => void
2740
- ): void;
2741
- public getUserAttributeVerificationCode(
2742
- args: GetUserAttributeVerificationCodeCommandInput,
2743
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetUserAttributeVerificationCodeCommandOutput) => void),
2744
- cb?: (err: any, data?: GetUserAttributeVerificationCodeCommandOutput) => void
2745
- ): Promise<GetUserAttributeVerificationCodeCommandOutput> | void {
2746
- const command = new GetUserAttributeVerificationCodeCommand(args);
2747
- if (typeof optionsOrCb === "function") {
2748
- this.send(command, optionsOrCb);
2749
- } else if (typeof cb === "function") {
2750
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2751
- this.send(command, optionsOrCb || {}, cb);
2752
- } else {
2753
- return this.send(command, optionsOrCb);
2754
- }
2755
- }
2756
-
2757
- /**
2758
- * <p>Gets the user pool multi-factor authentication (MFA) configuration.</p>
2759
- */
2760
- public getUserPoolMfaConfig(
2761
- args: GetUserPoolMfaConfigCommandInput,
2762
- options?: __HttpHandlerOptions
2763
- ): Promise<GetUserPoolMfaConfigCommandOutput>;
2764
- public getUserPoolMfaConfig(
2765
- args: GetUserPoolMfaConfigCommandInput,
2766
- cb: (err: any, data?: GetUserPoolMfaConfigCommandOutput) => void
2767
- ): void;
2768
- public getUserPoolMfaConfig(
2769
- args: GetUserPoolMfaConfigCommandInput,
2770
- options: __HttpHandlerOptions,
2771
- cb: (err: any, data?: GetUserPoolMfaConfigCommandOutput) => void
2772
- ): void;
2773
- public getUserPoolMfaConfig(
2774
- args: GetUserPoolMfaConfigCommandInput,
2775
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetUserPoolMfaConfigCommandOutput) => void),
2776
- cb?: (err: any, data?: GetUserPoolMfaConfigCommandOutput) => void
2777
- ): Promise<GetUserPoolMfaConfigCommandOutput> | void {
2778
- const command = new GetUserPoolMfaConfigCommand(args);
2779
- if (typeof optionsOrCb === "function") {
2780
- this.send(command, optionsOrCb);
2781
- } else if (typeof cb === "function") {
2782
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2783
- this.send(command, optionsOrCb || {}, cb);
2784
- } else {
2785
- return this.send(command, optionsOrCb);
2786
- }
2787
- }
2788
-
2789
- /**
2790
- * <p>Signs out users from all devices. It also invalidates all refresh tokens issued to a
2791
- * user. The user's current access and Id tokens remain valid until their expiry. Access
2792
- * and Id tokens expire one hour after they are issued.</p>
2793
- */
2794
- public globalSignOut(
2795
- args: GlobalSignOutCommandInput,
2796
- options?: __HttpHandlerOptions
2797
- ): Promise<GlobalSignOutCommandOutput>;
2798
- public globalSignOut(
2799
- args: GlobalSignOutCommandInput,
2800
- cb: (err: any, data?: GlobalSignOutCommandOutput) => void
2801
- ): void;
2802
- public globalSignOut(
2803
- args: GlobalSignOutCommandInput,
2804
- options: __HttpHandlerOptions,
2805
- cb: (err: any, data?: GlobalSignOutCommandOutput) => void
2806
- ): void;
2807
- public globalSignOut(
2808
- args: GlobalSignOutCommandInput,
2809
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GlobalSignOutCommandOutput) => void),
2810
- cb?: (err: any, data?: GlobalSignOutCommandOutput) => void
2811
- ): Promise<GlobalSignOutCommandOutput> | void {
2812
- const command = new GlobalSignOutCommand(args);
2813
- if (typeof optionsOrCb === "function") {
2814
- this.send(command, optionsOrCb);
2815
- } else if (typeof cb === "function") {
2816
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2817
- this.send(command, optionsOrCb || {}, cb);
2818
- } else {
2819
- return this.send(command, optionsOrCb);
2820
- }
2821
- }
2822
-
2823
- /**
2824
- * <p>Initiates the authentication flow.</p>
2825
- *
2826
- * <note>
2827
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
2828
- * telecom carriers require that you register an origination phone number before you can
2829
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
2830
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
2831
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
2832
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
2833
- * in.</p>
2834
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
2835
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
2836
- * mode</a>
2837
- * </i>, you’ll have limitations, such as sending messages
2838
- * to only verified phone numbers. After testing in the sandbox environment, you can
2839
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
2840
- * Cognito Developer Guide</i>. </p>
2841
- * </note>
2842
- */
2843
- public initiateAuth(
2844
- args: InitiateAuthCommandInput,
2845
- options?: __HttpHandlerOptions
2846
- ): Promise<InitiateAuthCommandOutput>;
2847
- public initiateAuth(args: InitiateAuthCommandInput, cb: (err: any, data?: InitiateAuthCommandOutput) => void): void;
2848
- public initiateAuth(
2849
- args: InitiateAuthCommandInput,
2850
- options: __HttpHandlerOptions,
2851
- cb: (err: any, data?: InitiateAuthCommandOutput) => void
2852
- ): void;
2853
- public initiateAuth(
2854
- args: InitiateAuthCommandInput,
2855
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: InitiateAuthCommandOutput) => void),
2856
- cb?: (err: any, data?: InitiateAuthCommandOutput) => void
2857
- ): Promise<InitiateAuthCommandOutput> | void {
2858
- const command = new InitiateAuthCommand(args);
2859
- if (typeof optionsOrCb === "function") {
2860
- this.send(command, optionsOrCb);
2861
- } else if (typeof cb === "function") {
2862
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2863
- this.send(command, optionsOrCb || {}, cb);
2864
- } else {
2865
- return this.send(command, optionsOrCb);
2866
- }
2867
- }
2868
-
2869
- /**
2870
- * <p>Lists the devices.</p>
2871
- */
2872
- public listDevices(args: ListDevicesCommandInput, options?: __HttpHandlerOptions): Promise<ListDevicesCommandOutput>;
2873
- public listDevices(args: ListDevicesCommandInput, cb: (err: any, data?: ListDevicesCommandOutput) => void): void;
2874
- public listDevices(
2875
- args: ListDevicesCommandInput,
2876
- options: __HttpHandlerOptions,
2877
- cb: (err: any, data?: ListDevicesCommandOutput) => void
2878
- ): void;
2879
- public listDevices(
2880
- args: ListDevicesCommandInput,
2881
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDevicesCommandOutput) => void),
2882
- cb?: (err: any, data?: ListDevicesCommandOutput) => void
2883
- ): Promise<ListDevicesCommandOutput> | void {
2884
- const command = new ListDevicesCommand(args);
2885
- if (typeof optionsOrCb === "function") {
2886
- this.send(command, optionsOrCb);
2887
- } else if (typeof cb === "function") {
2888
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2889
- this.send(command, optionsOrCb || {}, cb);
2890
- } else {
2891
- return this.send(command, optionsOrCb);
2892
- }
2893
- }
2894
-
2895
- /**
2896
- * <p>Lists the groups associated with a user pool.</p>
2897
- * <p>Calling this action requires developer credentials.</p>
2898
- */
2899
- public listGroups(args: ListGroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListGroupsCommandOutput>;
2900
- public listGroups(args: ListGroupsCommandInput, cb: (err: any, data?: ListGroupsCommandOutput) => void): void;
2901
- public listGroups(
2902
- args: ListGroupsCommandInput,
2903
- options: __HttpHandlerOptions,
2904
- cb: (err: any, data?: ListGroupsCommandOutput) => void
2905
- ): void;
2906
- public listGroups(
2907
- args: ListGroupsCommandInput,
2908
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListGroupsCommandOutput) => void),
2909
- cb?: (err: any, data?: ListGroupsCommandOutput) => void
2910
- ): Promise<ListGroupsCommandOutput> | void {
2911
- const command = new ListGroupsCommand(args);
2912
- if (typeof optionsOrCb === "function") {
2913
- this.send(command, optionsOrCb);
2914
- } else if (typeof cb === "function") {
2915
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2916
- this.send(command, optionsOrCb || {}, cb);
2917
- } else {
2918
- return this.send(command, optionsOrCb);
2919
- }
2920
- }
2921
-
2922
- /**
2923
- * <p>Lists information about all identity providers for a user pool.</p>
2924
- */
2925
- public listIdentityProviders(
2926
- args: ListIdentityProvidersCommandInput,
2927
- options?: __HttpHandlerOptions
2928
- ): Promise<ListIdentityProvidersCommandOutput>;
2929
- public listIdentityProviders(
2930
- args: ListIdentityProvidersCommandInput,
2931
- cb: (err: any, data?: ListIdentityProvidersCommandOutput) => void
2932
- ): void;
2933
- public listIdentityProviders(
2934
- args: ListIdentityProvidersCommandInput,
2935
- options: __HttpHandlerOptions,
2936
- cb: (err: any, data?: ListIdentityProvidersCommandOutput) => void
2937
- ): void;
2938
- public listIdentityProviders(
2939
- args: ListIdentityProvidersCommandInput,
2940
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListIdentityProvidersCommandOutput) => void),
2941
- cb?: (err: any, data?: ListIdentityProvidersCommandOutput) => void
2942
- ): Promise<ListIdentityProvidersCommandOutput> | void {
2943
- const command = new ListIdentityProvidersCommand(args);
2944
- if (typeof optionsOrCb === "function") {
2945
- this.send(command, optionsOrCb);
2946
- } else if (typeof cb === "function") {
2947
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2948
- this.send(command, optionsOrCb || {}, cb);
2949
- } else {
2950
- return this.send(command, optionsOrCb);
2951
- }
2952
- }
2953
-
2954
- /**
2955
- * <p>Lists the resource servers for a user pool.</p>
2956
- */
2957
- public listResourceServers(
2958
- args: ListResourceServersCommandInput,
2959
- options?: __HttpHandlerOptions
2960
- ): Promise<ListResourceServersCommandOutput>;
2961
- public listResourceServers(
2962
- args: ListResourceServersCommandInput,
2963
- cb: (err: any, data?: ListResourceServersCommandOutput) => void
2964
- ): void;
2965
- public listResourceServers(
2966
- args: ListResourceServersCommandInput,
2967
- options: __HttpHandlerOptions,
2968
- cb: (err: any, data?: ListResourceServersCommandOutput) => void
2969
- ): void;
2970
- public listResourceServers(
2971
- args: ListResourceServersCommandInput,
2972
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListResourceServersCommandOutput) => void),
2973
- cb?: (err: any, data?: ListResourceServersCommandOutput) => void
2974
- ): Promise<ListResourceServersCommandOutput> | void {
2975
- const command = new ListResourceServersCommand(args);
2976
- if (typeof optionsOrCb === "function") {
2977
- this.send(command, optionsOrCb);
2978
- } else if (typeof cb === "function") {
2979
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
2980
- this.send(command, optionsOrCb || {}, cb);
2981
- } else {
2982
- return this.send(command, optionsOrCb);
2983
- }
2984
- }
2985
-
2986
- /**
2987
- * <p>Lists the tags that are assigned to an Amazon Cognito user pool.</p>
2988
- * <p>A tag is a label that you can apply to user pools to categorize and manage them in
2989
- * different ways, such as by purpose, owner, environment, or other criteria.</p>
2990
- * <p>You can use this action up to 10 times per second, per account.</p>
2991
- */
2992
- public listTagsForResource(
2993
- args: ListTagsForResourceCommandInput,
2994
- options?: __HttpHandlerOptions
2995
- ): Promise<ListTagsForResourceCommandOutput>;
2996
- public listTagsForResource(
2997
- args: ListTagsForResourceCommandInput,
2998
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
2999
- ): void;
3000
- public listTagsForResource(
3001
- args: ListTagsForResourceCommandInput,
3002
- options: __HttpHandlerOptions,
3003
- cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
3004
- ): void;
3005
- public listTagsForResource(
3006
- args: ListTagsForResourceCommandInput,
3007
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
3008
- cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
3009
- ): Promise<ListTagsForResourceCommandOutput> | void {
3010
- const command = new ListTagsForResourceCommand(args);
3011
- if (typeof optionsOrCb === "function") {
3012
- this.send(command, optionsOrCb);
3013
- } else if (typeof cb === "function") {
3014
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3015
- this.send(command, optionsOrCb || {}, cb);
3016
- } else {
3017
- return this.send(command, optionsOrCb);
3018
- }
3019
- }
3020
-
3021
- /**
3022
- * <p>Lists the user import jobs.</p>
3023
- */
3024
- public listUserImportJobs(
3025
- args: ListUserImportJobsCommandInput,
3026
- options?: __HttpHandlerOptions
3027
- ): Promise<ListUserImportJobsCommandOutput>;
3028
- public listUserImportJobs(
3029
- args: ListUserImportJobsCommandInput,
3030
- cb: (err: any, data?: ListUserImportJobsCommandOutput) => void
3031
- ): void;
3032
- public listUserImportJobs(
3033
- args: ListUserImportJobsCommandInput,
3034
- options: __HttpHandlerOptions,
3035
- cb: (err: any, data?: ListUserImportJobsCommandOutput) => void
3036
- ): void;
3037
- public listUserImportJobs(
3038
- args: ListUserImportJobsCommandInput,
3039
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListUserImportJobsCommandOutput) => void),
3040
- cb?: (err: any, data?: ListUserImportJobsCommandOutput) => void
3041
- ): Promise<ListUserImportJobsCommandOutput> | void {
3042
- const command = new ListUserImportJobsCommand(args);
3043
- if (typeof optionsOrCb === "function") {
3044
- this.send(command, optionsOrCb);
3045
- } else if (typeof cb === "function") {
3046
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3047
- this.send(command, optionsOrCb || {}, cb);
3048
- } else {
3049
- return this.send(command, optionsOrCb);
3050
- }
3051
- }
3052
-
3053
- /**
3054
- * <p>Lists the clients that have been created for the specified user pool.</p>
3055
- */
3056
- public listUserPoolClients(
3057
- args: ListUserPoolClientsCommandInput,
3058
- options?: __HttpHandlerOptions
3059
- ): Promise<ListUserPoolClientsCommandOutput>;
3060
- public listUserPoolClients(
3061
- args: ListUserPoolClientsCommandInput,
3062
- cb: (err: any, data?: ListUserPoolClientsCommandOutput) => void
3063
- ): void;
3064
- public listUserPoolClients(
3065
- args: ListUserPoolClientsCommandInput,
3066
- options: __HttpHandlerOptions,
3067
- cb: (err: any, data?: ListUserPoolClientsCommandOutput) => void
3068
- ): void;
3069
- public listUserPoolClients(
3070
- args: ListUserPoolClientsCommandInput,
3071
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListUserPoolClientsCommandOutput) => void),
3072
- cb?: (err: any, data?: ListUserPoolClientsCommandOutput) => void
3073
- ): Promise<ListUserPoolClientsCommandOutput> | void {
3074
- const command = new ListUserPoolClientsCommand(args);
3075
- if (typeof optionsOrCb === "function") {
3076
- this.send(command, optionsOrCb);
3077
- } else if (typeof cb === "function") {
3078
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3079
- this.send(command, optionsOrCb || {}, cb);
3080
- } else {
3081
- return this.send(command, optionsOrCb);
3082
- }
3083
- }
3084
-
3085
- /**
3086
- * <p>Lists the user pools associated with an account.</p>
3087
- */
3088
- public listUserPools(
3089
- args: ListUserPoolsCommandInput,
3090
- options?: __HttpHandlerOptions
3091
- ): Promise<ListUserPoolsCommandOutput>;
3092
- public listUserPools(
3093
- args: ListUserPoolsCommandInput,
3094
- cb: (err: any, data?: ListUserPoolsCommandOutput) => void
3095
- ): void;
3096
- public listUserPools(
3097
- args: ListUserPoolsCommandInput,
3098
- options: __HttpHandlerOptions,
3099
- cb: (err: any, data?: ListUserPoolsCommandOutput) => void
3100
- ): void;
3101
- public listUserPools(
3102
- args: ListUserPoolsCommandInput,
3103
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListUserPoolsCommandOutput) => void),
3104
- cb?: (err: any, data?: ListUserPoolsCommandOutput) => void
3105
- ): Promise<ListUserPoolsCommandOutput> | void {
3106
- const command = new ListUserPoolsCommand(args);
3107
- if (typeof optionsOrCb === "function") {
3108
- this.send(command, optionsOrCb);
3109
- } else if (typeof cb === "function") {
3110
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3111
- this.send(command, optionsOrCb || {}, cb);
3112
- } else {
3113
- return this.send(command, optionsOrCb);
3114
- }
3115
- }
3116
-
3117
- /**
3118
- * <p>Lists the users in the Amazon Cognito user pool.</p>
3119
- */
3120
- public listUsers(args: ListUsersCommandInput, options?: __HttpHandlerOptions): Promise<ListUsersCommandOutput>;
3121
- public listUsers(args: ListUsersCommandInput, cb: (err: any, data?: ListUsersCommandOutput) => void): void;
3122
- public listUsers(
3123
- args: ListUsersCommandInput,
3124
- options: __HttpHandlerOptions,
3125
- cb: (err: any, data?: ListUsersCommandOutput) => void
3126
- ): void;
3127
- public listUsers(
3128
- args: ListUsersCommandInput,
3129
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListUsersCommandOutput) => void),
3130
- cb?: (err: any, data?: ListUsersCommandOutput) => void
3131
- ): Promise<ListUsersCommandOutput> | void {
3132
- const command = new ListUsersCommand(args);
3133
- if (typeof optionsOrCb === "function") {
3134
- this.send(command, optionsOrCb);
3135
- } else if (typeof cb === "function") {
3136
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3137
- this.send(command, optionsOrCb || {}, cb);
3138
- } else {
3139
- return this.send(command, optionsOrCb);
3140
- }
3141
- }
3142
-
3143
- /**
3144
- * <p>Lists the users in the specified group.</p>
3145
- * <p>Calling this action requires developer credentials.</p>
3146
- */
3147
- public listUsersInGroup(
3148
- args: ListUsersInGroupCommandInput,
3149
- options?: __HttpHandlerOptions
3150
- ): Promise<ListUsersInGroupCommandOutput>;
3151
- public listUsersInGroup(
3152
- args: ListUsersInGroupCommandInput,
3153
- cb: (err: any, data?: ListUsersInGroupCommandOutput) => void
3154
- ): void;
3155
- public listUsersInGroup(
3156
- args: ListUsersInGroupCommandInput,
3157
- options: __HttpHandlerOptions,
3158
- cb: (err: any, data?: ListUsersInGroupCommandOutput) => void
3159
- ): void;
3160
- public listUsersInGroup(
3161
- args: ListUsersInGroupCommandInput,
3162
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListUsersInGroupCommandOutput) => void),
3163
- cb?: (err: any, data?: ListUsersInGroupCommandOutput) => void
3164
- ): Promise<ListUsersInGroupCommandOutput> | void {
3165
- const command = new ListUsersInGroupCommand(args);
3166
- if (typeof optionsOrCb === "function") {
3167
- this.send(command, optionsOrCb);
3168
- } else if (typeof cb === "function") {
3169
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3170
- this.send(command, optionsOrCb || {}, cb);
3171
- } else {
3172
- return this.send(command, optionsOrCb);
3173
- }
3174
- }
3175
-
3176
- /**
3177
- * <p>Resends the confirmation (for confirmation of registration) to a specific user in the
3178
- * user pool.</p>
3179
- *
3180
- * <note>
3181
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
3182
- * telecom carriers require that you register an origination phone number before you can
3183
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
3184
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
3185
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
3186
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
3187
- * in.</p>
3188
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
3189
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
3190
- * mode</a>
3191
- * </i>, you’ll have limitations, such as sending messages
3192
- * to only verified phone numbers. After testing in the sandbox environment, you can
3193
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
3194
- * Cognito Developer Guide</i>. </p>
3195
- * </note>
3196
- */
3197
- public resendConfirmationCode(
3198
- args: ResendConfirmationCodeCommandInput,
3199
- options?: __HttpHandlerOptions
3200
- ): Promise<ResendConfirmationCodeCommandOutput>;
3201
- public resendConfirmationCode(
3202
- args: ResendConfirmationCodeCommandInput,
3203
- cb: (err: any, data?: ResendConfirmationCodeCommandOutput) => void
3204
- ): void;
3205
- public resendConfirmationCode(
3206
- args: ResendConfirmationCodeCommandInput,
3207
- options: __HttpHandlerOptions,
3208
- cb: (err: any, data?: ResendConfirmationCodeCommandOutput) => void
3209
- ): void;
3210
- public resendConfirmationCode(
3211
- args: ResendConfirmationCodeCommandInput,
3212
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ResendConfirmationCodeCommandOutput) => void),
3213
- cb?: (err: any, data?: ResendConfirmationCodeCommandOutput) => void
3214
- ): Promise<ResendConfirmationCodeCommandOutput> | void {
3215
- const command = new ResendConfirmationCodeCommand(args);
3216
- if (typeof optionsOrCb === "function") {
3217
- this.send(command, optionsOrCb);
3218
- } else if (typeof cb === "function") {
3219
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3220
- this.send(command, optionsOrCb || {}, cb);
3221
- } else {
3222
- return this.send(command, optionsOrCb);
3223
- }
3224
- }
3225
-
3226
- /**
3227
- * <p>Responds to the authentication challenge.</p>
3228
- *
3229
- * <note>
3230
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
3231
- * telecom carriers require that you register an origination phone number before you can
3232
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
3233
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
3234
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
3235
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
3236
- * in.</p>
3237
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
3238
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
3239
- * mode</a>
3240
- * </i>, you’ll have limitations, such as sending messages
3241
- * to only verified phone numbers. After testing in the sandbox environment, you can
3242
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
3243
- * Cognito Developer Guide</i>. </p>
3244
- * </note>
3245
- */
3246
- public respondToAuthChallenge(
3247
- args: RespondToAuthChallengeCommandInput,
3248
- options?: __HttpHandlerOptions
3249
- ): Promise<RespondToAuthChallengeCommandOutput>;
3250
- public respondToAuthChallenge(
3251
- args: RespondToAuthChallengeCommandInput,
3252
- cb: (err: any, data?: RespondToAuthChallengeCommandOutput) => void
3253
- ): void;
3254
- public respondToAuthChallenge(
3255
- args: RespondToAuthChallengeCommandInput,
3256
- options: __HttpHandlerOptions,
3257
- cb: (err: any, data?: RespondToAuthChallengeCommandOutput) => void
3258
- ): void;
3259
- public respondToAuthChallenge(
3260
- args: RespondToAuthChallengeCommandInput,
3261
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RespondToAuthChallengeCommandOutput) => void),
3262
- cb?: (err: any, data?: RespondToAuthChallengeCommandOutput) => void
3263
- ): Promise<RespondToAuthChallengeCommandOutput> | void {
3264
- const command = new RespondToAuthChallengeCommand(args);
3265
- if (typeof optionsOrCb === "function") {
3266
- this.send(command, optionsOrCb);
3267
- } else if (typeof cb === "function") {
3268
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3269
- this.send(command, optionsOrCb || {}, cb);
3270
- } else {
3271
- return this.send(command, optionsOrCb);
3272
- }
3273
- }
3274
-
3275
- /**
3276
- * <p>Revokes all of the access tokens generated by the specified refresh token. After the token is revoked, you can not
3277
- * use the revoked token to access Cognito authenticated APIs.</p>
3278
- */
3279
- public revokeToken(args: RevokeTokenCommandInput, options?: __HttpHandlerOptions): Promise<RevokeTokenCommandOutput>;
3280
- public revokeToken(args: RevokeTokenCommandInput, cb: (err: any, data?: RevokeTokenCommandOutput) => void): void;
3281
- public revokeToken(
3282
- args: RevokeTokenCommandInput,
3283
- options: __HttpHandlerOptions,
3284
- cb: (err: any, data?: RevokeTokenCommandOutput) => void
3285
- ): void;
3286
- public revokeToken(
3287
- args: RevokeTokenCommandInput,
3288
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RevokeTokenCommandOutput) => void),
3289
- cb?: (err: any, data?: RevokeTokenCommandOutput) => void
3290
- ): Promise<RevokeTokenCommandOutput> | void {
3291
- const command = new RevokeTokenCommand(args);
3292
- if (typeof optionsOrCb === "function") {
3293
- this.send(command, optionsOrCb);
3294
- } else if (typeof cb === "function") {
3295
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3296
- this.send(command, optionsOrCb || {}, cb);
3297
- } else {
3298
- return this.send(command, optionsOrCb);
3299
- }
3300
- }
3301
-
3302
- /**
3303
- * <p>Configures actions on detected risks. To delete the risk configuration for
3304
- * <code>UserPoolId</code> or <code>ClientId</code>, pass null values for all four
3305
- * configuration types.</p>
3306
- * <p>To enable Amazon Cognito advanced security features, update the user pool to include
3307
- * the <code>UserPoolAddOns</code> key<code>AdvancedSecurityMode</code>.</p>
3308
- */
3309
- public setRiskConfiguration(
3310
- args: SetRiskConfigurationCommandInput,
3311
- options?: __HttpHandlerOptions
3312
- ): Promise<SetRiskConfigurationCommandOutput>;
3313
- public setRiskConfiguration(
3314
- args: SetRiskConfigurationCommandInput,
3315
- cb: (err: any, data?: SetRiskConfigurationCommandOutput) => void
3316
- ): void;
3317
- public setRiskConfiguration(
3318
- args: SetRiskConfigurationCommandInput,
3319
- options: __HttpHandlerOptions,
3320
- cb: (err: any, data?: SetRiskConfigurationCommandOutput) => void
3321
- ): void;
3322
- public setRiskConfiguration(
3323
- args: SetRiskConfigurationCommandInput,
3324
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SetRiskConfigurationCommandOutput) => void),
3325
- cb?: (err: any, data?: SetRiskConfigurationCommandOutput) => void
3326
- ): Promise<SetRiskConfigurationCommandOutput> | void {
3327
- const command = new SetRiskConfigurationCommand(args);
3328
- if (typeof optionsOrCb === "function") {
3329
- this.send(command, optionsOrCb);
3330
- } else if (typeof cb === "function") {
3331
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3332
- this.send(command, optionsOrCb || {}, cb);
3333
- } else {
3334
- return this.send(command, optionsOrCb);
3335
- }
3336
- }
3337
-
3338
- /**
3339
- * <p>Sets the UI customization information for a user pool's built-in app UI.</p>
3340
- * <p>You can specify app UI customization settings for a single client (with a specific
3341
- * <code>clientId</code>) or for all clients (by setting the <code>clientId</code> to
3342
- * <code>ALL</code>). If you specify <code>ALL</code>, the default configuration will
3343
- * be used for every client that has no UI customization set previously. If you specify UI
3344
- * customization settings for a particular client, it will no longer fall back to the
3345
- * <code>ALL</code> configuration. </p>
3346
- * <note>
3347
- * <p>To use this API, your user pool must have a domain associated with it. Otherwise,
3348
- * there is no place to host the app's pages, and the service will throw an
3349
- * error.</p>
3350
- * </note>
3351
- */
3352
- public setUICustomization(
3353
- args: SetUICustomizationCommandInput,
3354
- options?: __HttpHandlerOptions
3355
- ): Promise<SetUICustomizationCommandOutput>;
3356
- public setUICustomization(
3357
- args: SetUICustomizationCommandInput,
3358
- cb: (err: any, data?: SetUICustomizationCommandOutput) => void
3359
- ): void;
3360
- public setUICustomization(
3361
- args: SetUICustomizationCommandInput,
3362
- options: __HttpHandlerOptions,
3363
- cb: (err: any, data?: SetUICustomizationCommandOutput) => void
3364
- ): void;
3365
- public setUICustomization(
3366
- args: SetUICustomizationCommandInput,
3367
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SetUICustomizationCommandOutput) => void),
3368
- cb?: (err: any, data?: SetUICustomizationCommandOutput) => void
3369
- ): Promise<SetUICustomizationCommandOutput> | void {
3370
- const command = new SetUICustomizationCommand(args);
3371
- if (typeof optionsOrCb === "function") {
3372
- this.send(command, optionsOrCb);
3373
- } else if (typeof cb === "function") {
3374
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3375
- this.send(command, optionsOrCb || {}, cb);
3376
- } else {
3377
- return this.send(command, optionsOrCb);
3378
- }
3379
- }
3380
-
3381
- /**
3382
- * <p>Set the user's multi-factor authentication (MFA) method preference, including which
3383
- * MFA factors are enabled and if any are preferred. Only one factor can be set as
3384
- * preferred. The preferred MFA factor will be used to authenticate a user if multiple
3385
- * factors are enabled. If multiple options are enabled and no preference is set, a
3386
- * challenge to choose an MFA option will be returned during sign in. If an MFA type is
3387
- * enabled for a user, the user will be prompted for MFA during all sign in attempts,
3388
- * unless device tracking is turned on and the device has been trusted. If you would like
3389
- * MFA to be applied selectively based on the assessed risk level of sign in attempts,
3390
- * disable MFA for users and turn on Adaptive Authentication for the user pool.</p>
3391
- */
3392
- public setUserMFAPreference(
3393
- args: SetUserMFAPreferenceCommandInput,
3394
- options?: __HttpHandlerOptions
3395
- ): Promise<SetUserMFAPreferenceCommandOutput>;
3396
- public setUserMFAPreference(
3397
- args: SetUserMFAPreferenceCommandInput,
3398
- cb: (err: any, data?: SetUserMFAPreferenceCommandOutput) => void
3399
- ): void;
3400
- public setUserMFAPreference(
3401
- args: SetUserMFAPreferenceCommandInput,
3402
- options: __HttpHandlerOptions,
3403
- cb: (err: any, data?: SetUserMFAPreferenceCommandOutput) => void
3404
- ): void;
3405
- public setUserMFAPreference(
3406
- args: SetUserMFAPreferenceCommandInput,
3407
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SetUserMFAPreferenceCommandOutput) => void),
3408
- cb?: (err: any, data?: SetUserMFAPreferenceCommandOutput) => void
3409
- ): Promise<SetUserMFAPreferenceCommandOutput> | void {
3410
- const command = new SetUserMFAPreferenceCommand(args);
3411
- if (typeof optionsOrCb === "function") {
3412
- this.send(command, optionsOrCb);
3413
- } else if (typeof cb === "function") {
3414
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3415
- this.send(command, optionsOrCb || {}, cb);
3416
- } else {
3417
- return this.send(command, optionsOrCb);
3418
- }
3419
- }
3420
-
3421
- /**
3422
- * <p>Set the user pool multi-factor authentication (MFA) configuration.</p>
3423
- *
3424
- * <note>
3425
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
3426
- * telecom carriers require that you register an origination phone number before you can
3427
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
3428
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
3429
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
3430
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
3431
- * in.</p>
3432
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
3433
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
3434
- * mode</a>
3435
- * </i>, you’ll have limitations, such as sending messages
3436
- * to only verified phone numbers. After testing in the sandbox environment, you can
3437
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
3438
- * Cognito Developer Guide</i>. </p>
3439
- * </note>
3440
- */
3441
- public setUserPoolMfaConfig(
3442
- args: SetUserPoolMfaConfigCommandInput,
3443
- options?: __HttpHandlerOptions
3444
- ): Promise<SetUserPoolMfaConfigCommandOutput>;
3445
- public setUserPoolMfaConfig(
3446
- args: SetUserPoolMfaConfigCommandInput,
3447
- cb: (err: any, data?: SetUserPoolMfaConfigCommandOutput) => void
3448
- ): void;
3449
- public setUserPoolMfaConfig(
3450
- args: SetUserPoolMfaConfigCommandInput,
3451
- options: __HttpHandlerOptions,
3452
- cb: (err: any, data?: SetUserPoolMfaConfigCommandOutput) => void
3453
- ): void;
3454
- public setUserPoolMfaConfig(
3455
- args: SetUserPoolMfaConfigCommandInput,
3456
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SetUserPoolMfaConfigCommandOutput) => void),
3457
- cb?: (err: any, data?: SetUserPoolMfaConfigCommandOutput) => void
3458
- ): Promise<SetUserPoolMfaConfigCommandOutput> | void {
3459
- const command = new SetUserPoolMfaConfigCommand(args);
3460
- if (typeof optionsOrCb === "function") {
3461
- this.send(command, optionsOrCb);
3462
- } else if (typeof cb === "function") {
3463
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3464
- this.send(command, optionsOrCb || {}, cb);
3465
- } else {
3466
- return this.send(command, optionsOrCb);
3467
- }
3468
- }
3469
-
3470
- /**
3471
- * <p>
3472
- * <i>This action is no longer supported.</i> You can use it to configure
3473
- * only SMS MFA. You can't use it to configure TOTP software token MFA. To configure either
3474
- * type of MFA, use <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_SetUserMFAPreference.html">SetUserMFAPreference</a> instead.</p>
3475
- */
3476
- public setUserSettings(
3477
- args: SetUserSettingsCommandInput,
3478
- options?: __HttpHandlerOptions
3479
- ): Promise<SetUserSettingsCommandOutput>;
3480
- public setUserSettings(
3481
- args: SetUserSettingsCommandInput,
3482
- cb: (err: any, data?: SetUserSettingsCommandOutput) => void
3483
- ): void;
3484
- public setUserSettings(
3485
- args: SetUserSettingsCommandInput,
3486
- options: __HttpHandlerOptions,
3487
- cb: (err: any, data?: SetUserSettingsCommandOutput) => void
3488
- ): void;
3489
- public setUserSettings(
3490
- args: SetUserSettingsCommandInput,
3491
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SetUserSettingsCommandOutput) => void),
3492
- cb?: (err: any, data?: SetUserSettingsCommandOutput) => void
3493
- ): Promise<SetUserSettingsCommandOutput> | void {
3494
- const command = new SetUserSettingsCommand(args);
3495
- if (typeof optionsOrCb === "function") {
3496
- this.send(command, optionsOrCb);
3497
- } else if (typeof cb === "function") {
3498
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3499
- this.send(command, optionsOrCb || {}, cb);
3500
- } else {
3501
- return this.send(command, optionsOrCb);
3502
- }
3503
- }
3504
-
3505
- /**
3506
- * <p>Registers the user in the specified user pool and creates a user name, password, and
3507
- * user attributes.</p>
3508
- *
3509
- * <note>
3510
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
3511
- * telecom carriers require that you register an origination phone number before you can
3512
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
3513
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
3514
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
3515
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
3516
- * in.</p>
3517
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
3518
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
3519
- * mode</a>
3520
- * </i>, you’ll have limitations, such as sending messages
3521
- * to only verified phone numbers. After testing in the sandbox environment, you can
3522
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
3523
- * Cognito Developer Guide</i>. </p>
3524
- * </note>
3525
- */
3526
- public signUp(args: SignUpCommandInput, options?: __HttpHandlerOptions): Promise<SignUpCommandOutput>;
3527
- public signUp(args: SignUpCommandInput, cb: (err: any, data?: SignUpCommandOutput) => void): void;
3528
- public signUp(
3529
- args: SignUpCommandInput,
3530
- options: __HttpHandlerOptions,
3531
- cb: (err: any, data?: SignUpCommandOutput) => void
3532
- ): void;
3533
- public signUp(
3534
- args: SignUpCommandInput,
3535
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: SignUpCommandOutput) => void),
3536
- cb?: (err: any, data?: SignUpCommandOutput) => void
3537
- ): Promise<SignUpCommandOutput> | void {
3538
- const command = new SignUpCommand(args);
3539
- if (typeof optionsOrCb === "function") {
3540
- this.send(command, optionsOrCb);
3541
- } else if (typeof cb === "function") {
3542
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3543
- this.send(command, optionsOrCb || {}, cb);
3544
- } else {
3545
- return this.send(command, optionsOrCb);
3546
- }
3547
- }
3548
-
3549
- /**
3550
- * <p>Starts the user import.</p>
3551
- */
3552
- public startUserImportJob(
3553
- args: StartUserImportJobCommandInput,
3554
- options?: __HttpHandlerOptions
3555
- ): Promise<StartUserImportJobCommandOutput>;
3556
- public startUserImportJob(
3557
- args: StartUserImportJobCommandInput,
3558
- cb: (err: any, data?: StartUserImportJobCommandOutput) => void
3559
- ): void;
3560
- public startUserImportJob(
3561
- args: StartUserImportJobCommandInput,
3562
- options: __HttpHandlerOptions,
3563
- cb: (err: any, data?: StartUserImportJobCommandOutput) => void
3564
- ): void;
3565
- public startUserImportJob(
3566
- args: StartUserImportJobCommandInput,
3567
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StartUserImportJobCommandOutput) => void),
3568
- cb?: (err: any, data?: StartUserImportJobCommandOutput) => void
3569
- ): Promise<StartUserImportJobCommandOutput> | void {
3570
- const command = new StartUserImportJobCommand(args);
3571
- if (typeof optionsOrCb === "function") {
3572
- this.send(command, optionsOrCb);
3573
- } else if (typeof cb === "function") {
3574
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3575
- this.send(command, optionsOrCb || {}, cb);
3576
- } else {
3577
- return this.send(command, optionsOrCb);
3578
- }
3579
- }
3580
-
3581
- /**
3582
- * <p>Stops the user import job.</p>
3583
- */
3584
- public stopUserImportJob(
3585
- args: StopUserImportJobCommandInput,
3586
- options?: __HttpHandlerOptions
3587
- ): Promise<StopUserImportJobCommandOutput>;
3588
- public stopUserImportJob(
3589
- args: StopUserImportJobCommandInput,
3590
- cb: (err: any, data?: StopUserImportJobCommandOutput) => void
3591
- ): void;
3592
- public stopUserImportJob(
3593
- args: StopUserImportJobCommandInput,
3594
- options: __HttpHandlerOptions,
3595
- cb: (err: any, data?: StopUserImportJobCommandOutput) => void
3596
- ): void;
3597
- public stopUserImportJob(
3598
- args: StopUserImportJobCommandInput,
3599
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: StopUserImportJobCommandOutput) => void),
3600
- cb?: (err: any, data?: StopUserImportJobCommandOutput) => void
3601
- ): Promise<StopUserImportJobCommandOutput> | void {
3602
- const command = new StopUserImportJobCommand(args);
3603
- if (typeof optionsOrCb === "function") {
3604
- this.send(command, optionsOrCb);
3605
- } else if (typeof cb === "function") {
3606
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3607
- this.send(command, optionsOrCb || {}, cb);
3608
- } else {
3609
- return this.send(command, optionsOrCb);
3610
- }
3611
- }
3612
-
3613
- /**
3614
- * <p>Assigns a set of tags to an Amazon Cognito user pool. A tag is a label that you can
3615
- * use to categorize and manage user pools in different ways, such as by purpose, owner,
3616
- * environment, or other criteria.</p>
3617
- * <p>Each tag consists of a key and value, both of which you define. A key is a general
3618
- * category for more specific values. For example, if you have two versions of a user pool,
3619
- * one for testing and another for production, you might assign an <code>Environment</code>
3620
- * tag key to both user pools. The value of this key might be <code>Test</code> for one
3621
- * user pool and <code>Production</code> for the other.</p>
3622
- * <p>Tags are useful for cost tracking and access control. You can activate your tags so
3623
- * that they appear on the Billing and Cost Management console, where you can track the
3624
- * costs associated with your user pools. In an IAM policy, you can constrain permissions
3625
- * for user pools based on specific tags or tag values.</p>
3626
- * <p>You can use this action up to 5 times per second, per account. A user pool can have as
3627
- * many as 50 tags.</p>
3628
- */
3629
- public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
3630
- public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
3631
- public tagResource(
3632
- args: TagResourceCommandInput,
3633
- options: __HttpHandlerOptions,
3634
- cb: (err: any, data?: TagResourceCommandOutput) => void
3635
- ): void;
3636
- public tagResource(
3637
- args: TagResourceCommandInput,
3638
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
3639
- cb?: (err: any, data?: TagResourceCommandOutput) => void
3640
- ): Promise<TagResourceCommandOutput> | void {
3641
- const command = new TagResourceCommand(args);
3642
- if (typeof optionsOrCb === "function") {
3643
- this.send(command, optionsOrCb);
3644
- } else if (typeof cb === "function") {
3645
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3646
- this.send(command, optionsOrCb || {}, cb);
3647
- } else {
3648
- return this.send(command, optionsOrCb);
3649
- }
3650
- }
3651
-
3652
- /**
3653
- * <p>Removes the specified tags from an Amazon Cognito user pool. You can use this action
3654
- * up to 5 times per second, per account</p>
3655
- */
3656
- public untagResource(
3657
- args: UntagResourceCommandInput,
3658
- options?: __HttpHandlerOptions
3659
- ): Promise<UntagResourceCommandOutput>;
3660
- public untagResource(
3661
- args: UntagResourceCommandInput,
3662
- cb: (err: any, data?: UntagResourceCommandOutput) => void
3663
- ): void;
3664
- public untagResource(
3665
- args: UntagResourceCommandInput,
3666
- options: __HttpHandlerOptions,
3667
- cb: (err: any, data?: UntagResourceCommandOutput) => void
3668
- ): void;
3669
- public untagResource(
3670
- args: UntagResourceCommandInput,
3671
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
3672
- cb?: (err: any, data?: UntagResourceCommandOutput) => void
3673
- ): Promise<UntagResourceCommandOutput> | void {
3674
- const command = new UntagResourceCommand(args);
3675
- if (typeof optionsOrCb === "function") {
3676
- this.send(command, optionsOrCb);
3677
- } else if (typeof cb === "function") {
3678
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3679
- this.send(command, optionsOrCb || {}, cb);
3680
- } else {
3681
- return this.send(command, optionsOrCb);
3682
- }
3683
- }
3684
-
3685
- /**
3686
- * <p>Provides the feedback for an authentication event whether it was from a valid user or
3687
- * not. This feedback is used for improving the risk evaluation decision for the user pool
3688
- * as part of Amazon Cognito advanced security.</p>
3689
- */
3690
- public updateAuthEventFeedback(
3691
- args: UpdateAuthEventFeedbackCommandInput,
3692
- options?: __HttpHandlerOptions
3693
- ): Promise<UpdateAuthEventFeedbackCommandOutput>;
3694
- public updateAuthEventFeedback(
3695
- args: UpdateAuthEventFeedbackCommandInput,
3696
- cb: (err: any, data?: UpdateAuthEventFeedbackCommandOutput) => void
3697
- ): void;
3698
- public updateAuthEventFeedback(
3699
- args: UpdateAuthEventFeedbackCommandInput,
3700
- options: __HttpHandlerOptions,
3701
- cb: (err: any, data?: UpdateAuthEventFeedbackCommandOutput) => void
3702
- ): void;
3703
- public updateAuthEventFeedback(
3704
- args: UpdateAuthEventFeedbackCommandInput,
3705
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateAuthEventFeedbackCommandOutput) => void),
3706
- cb?: (err: any, data?: UpdateAuthEventFeedbackCommandOutput) => void
3707
- ): Promise<UpdateAuthEventFeedbackCommandOutput> | void {
3708
- const command = new UpdateAuthEventFeedbackCommand(args);
3709
- if (typeof optionsOrCb === "function") {
3710
- this.send(command, optionsOrCb);
3711
- } else if (typeof cb === "function") {
3712
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3713
- this.send(command, optionsOrCb || {}, cb);
3714
- } else {
3715
- return this.send(command, optionsOrCb);
3716
- }
3717
- }
3718
-
3719
- /**
3720
- * <p>Updates the device status.</p>
3721
- */
3722
- public updateDeviceStatus(
3723
- args: UpdateDeviceStatusCommandInput,
3724
- options?: __HttpHandlerOptions
3725
- ): Promise<UpdateDeviceStatusCommandOutput>;
3726
- public updateDeviceStatus(
3727
- args: UpdateDeviceStatusCommandInput,
3728
- cb: (err: any, data?: UpdateDeviceStatusCommandOutput) => void
3729
- ): void;
3730
- public updateDeviceStatus(
3731
- args: UpdateDeviceStatusCommandInput,
3732
- options: __HttpHandlerOptions,
3733
- cb: (err: any, data?: UpdateDeviceStatusCommandOutput) => void
3734
- ): void;
3735
- public updateDeviceStatus(
3736
- args: UpdateDeviceStatusCommandInput,
3737
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateDeviceStatusCommandOutput) => void),
3738
- cb?: (err: any, data?: UpdateDeviceStatusCommandOutput) => void
3739
- ): Promise<UpdateDeviceStatusCommandOutput> | void {
3740
- const command = new UpdateDeviceStatusCommand(args);
3741
- if (typeof optionsOrCb === "function") {
3742
- this.send(command, optionsOrCb);
3743
- } else if (typeof cb === "function") {
3744
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3745
- this.send(command, optionsOrCb || {}, cb);
3746
- } else {
3747
- return this.send(command, optionsOrCb);
3748
- }
3749
- }
3750
-
3751
- /**
3752
- * <p>Updates the specified group with the specified attributes.</p>
3753
- * <p>Calling this action requires developer credentials.</p>
3754
- */
3755
- public updateGroup(args: UpdateGroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateGroupCommandOutput>;
3756
- public updateGroup(args: UpdateGroupCommandInput, cb: (err: any, data?: UpdateGroupCommandOutput) => void): void;
3757
- public updateGroup(
3758
- args: UpdateGroupCommandInput,
3759
- options: __HttpHandlerOptions,
3760
- cb: (err: any, data?: UpdateGroupCommandOutput) => void
3761
- ): void;
3762
- public updateGroup(
3763
- args: UpdateGroupCommandInput,
3764
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateGroupCommandOutput) => void),
3765
- cb?: (err: any, data?: UpdateGroupCommandOutput) => void
3766
- ): Promise<UpdateGroupCommandOutput> | void {
3767
- const command = new UpdateGroupCommand(args);
3768
- if (typeof optionsOrCb === "function") {
3769
- this.send(command, optionsOrCb);
3770
- } else if (typeof cb === "function") {
3771
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3772
- this.send(command, optionsOrCb || {}, cb);
3773
- } else {
3774
- return this.send(command, optionsOrCb);
3775
- }
3776
- }
3777
-
3778
- /**
3779
- * <p>Updates identity provider information for a user pool.</p>
3780
- */
3781
- public updateIdentityProvider(
3782
- args: UpdateIdentityProviderCommandInput,
3783
- options?: __HttpHandlerOptions
3784
- ): Promise<UpdateIdentityProviderCommandOutput>;
3785
- public updateIdentityProvider(
3786
- args: UpdateIdentityProviderCommandInput,
3787
- cb: (err: any, data?: UpdateIdentityProviderCommandOutput) => void
3788
- ): void;
3789
- public updateIdentityProvider(
3790
- args: UpdateIdentityProviderCommandInput,
3791
- options: __HttpHandlerOptions,
3792
- cb: (err: any, data?: UpdateIdentityProviderCommandOutput) => void
3793
- ): void;
3794
- public updateIdentityProvider(
3795
- args: UpdateIdentityProviderCommandInput,
3796
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateIdentityProviderCommandOutput) => void),
3797
- cb?: (err: any, data?: UpdateIdentityProviderCommandOutput) => void
3798
- ): Promise<UpdateIdentityProviderCommandOutput> | void {
3799
- const command = new UpdateIdentityProviderCommand(args);
3800
- if (typeof optionsOrCb === "function") {
3801
- this.send(command, optionsOrCb);
3802
- } else if (typeof cb === "function") {
3803
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3804
- this.send(command, optionsOrCb || {}, cb);
3805
- } else {
3806
- return this.send(command, optionsOrCb);
3807
- }
3808
- }
3809
-
3810
- /**
3811
- * <p>Updates the name and scopes of resource server. All other fields are read-only.</p>
3812
- * <important>
3813
- * <p>If you don't provide a value for an attribute, it will be set to the default
3814
- * value.</p>
3815
- * </important>
3816
- */
3817
- public updateResourceServer(
3818
- args: UpdateResourceServerCommandInput,
3819
- options?: __HttpHandlerOptions
3820
- ): Promise<UpdateResourceServerCommandOutput>;
3821
- public updateResourceServer(
3822
- args: UpdateResourceServerCommandInput,
3823
- cb: (err: any, data?: UpdateResourceServerCommandOutput) => void
3824
- ): void;
3825
- public updateResourceServer(
3826
- args: UpdateResourceServerCommandInput,
3827
- options: __HttpHandlerOptions,
3828
- cb: (err: any, data?: UpdateResourceServerCommandOutput) => void
3829
- ): void;
3830
- public updateResourceServer(
3831
- args: UpdateResourceServerCommandInput,
3832
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateResourceServerCommandOutput) => void),
3833
- cb?: (err: any, data?: UpdateResourceServerCommandOutput) => void
3834
- ): Promise<UpdateResourceServerCommandOutput> | void {
3835
- const command = new UpdateResourceServerCommand(args);
3836
- if (typeof optionsOrCb === "function") {
3837
- this.send(command, optionsOrCb);
3838
- } else if (typeof cb === "function") {
3839
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3840
- this.send(command, optionsOrCb || {}, cb);
3841
- } else {
3842
- return this.send(command, optionsOrCb);
3843
- }
3844
- }
3845
-
3846
- /**
3847
- * <p>Allows a user to update a specific attribute (one at a time).</p>
3848
- *
3849
- * <note>
3850
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
3851
- * telecom carriers require that you register an origination phone number before you can
3852
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
3853
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
3854
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
3855
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
3856
- * in.</p>
3857
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
3858
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
3859
- * mode</a>
3860
- * </i>, you’ll have limitations, such as sending messages
3861
- * to only verified phone numbers. After testing in the sandbox environment, you can
3862
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
3863
- * Cognito Developer Guide</i>. </p>
3864
- * </note>
3865
- */
3866
- public updateUserAttributes(
3867
- args: UpdateUserAttributesCommandInput,
3868
- options?: __HttpHandlerOptions
3869
- ): Promise<UpdateUserAttributesCommandOutput>;
3870
- public updateUserAttributes(
3871
- args: UpdateUserAttributesCommandInput,
3872
- cb: (err: any, data?: UpdateUserAttributesCommandOutput) => void
3873
- ): void;
3874
- public updateUserAttributes(
3875
- args: UpdateUserAttributesCommandInput,
3876
- options: __HttpHandlerOptions,
3877
- cb: (err: any, data?: UpdateUserAttributesCommandOutput) => void
3878
- ): void;
3879
- public updateUserAttributes(
3880
- args: UpdateUserAttributesCommandInput,
3881
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateUserAttributesCommandOutput) => void),
3882
- cb?: (err: any, data?: UpdateUserAttributesCommandOutput) => void
3883
- ): Promise<UpdateUserAttributesCommandOutput> | void {
3884
- const command = new UpdateUserAttributesCommand(args);
3885
- if (typeof optionsOrCb === "function") {
3886
- this.send(command, optionsOrCb);
3887
- } else if (typeof cb === "function") {
3888
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3889
- this.send(command, optionsOrCb || {}, cb);
3890
- } else {
3891
- return this.send(command, optionsOrCb);
3892
- }
3893
- }
3894
-
3895
- /**
3896
- * <p>Updates the specified user pool with the specified attributes. You can get a list of
3897
- * the current user pool settings using <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPool.html">DescribeUserPool</a>. If you don't provide a value for an attribute, it will be set to the default
3898
- * value.</p>
3899
- *
3900
- * <note>
3901
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
3902
- * telecom carriers require that you register an origination phone number before you can
3903
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
3904
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
3905
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
3906
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
3907
- * in.</p>
3908
- * <p>If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Service, Amazon SNS might place your account in SMS sandbox. In <i>
3909
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
3910
- * mode</a>
3911
- * </i>, you’ll have limitations, such as sending messages
3912
- * to only verified phone numbers. After testing in the sandbox environment, you can
3913
- * move out of the SMS sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Cognito User Pools</a> in the <i>Amazon
3914
- * Cognito Developer Guide</i>. </p>
3915
- * </note>
3916
- */
3917
- public updateUserPool(
3918
- args: UpdateUserPoolCommandInput,
3919
- options?: __HttpHandlerOptions
3920
- ): Promise<UpdateUserPoolCommandOutput>;
3921
- public updateUserPool(
3922
- args: UpdateUserPoolCommandInput,
3923
- cb: (err: any, data?: UpdateUserPoolCommandOutput) => void
3924
- ): void;
3925
- public updateUserPool(
3926
- args: UpdateUserPoolCommandInput,
3927
- options: __HttpHandlerOptions,
3928
- cb: (err: any, data?: UpdateUserPoolCommandOutput) => void
3929
- ): void;
3930
- public updateUserPool(
3931
- args: UpdateUserPoolCommandInput,
3932
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateUserPoolCommandOutput) => void),
3933
- cb?: (err: any, data?: UpdateUserPoolCommandOutput) => void
3934
- ): Promise<UpdateUserPoolCommandOutput> | void {
3935
- const command = new UpdateUserPoolCommand(args);
3936
- if (typeof optionsOrCb === "function") {
3937
- this.send(command, optionsOrCb);
3938
- } else if (typeof cb === "function") {
3939
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3940
- this.send(command, optionsOrCb || {}, cb);
3941
- } else {
3942
- return this.send(command, optionsOrCb);
3943
- }
3944
- }
3945
-
3946
- /**
3947
- * <p>Updates the specified user pool app client with the specified attributes. You can get
3948
- * a list of the current user pool app client settings using <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_DescribeUserPoolClient.html">DescribeUserPoolClient</a>.</p>
3949
- * <important>
3950
- * <p>If you don't provide a value for an attribute, it will be set to the default
3951
- * value.</p>
3952
- * </important>
3953
- * <p>You can also use this operation to enable token revocation for user pool clients. For more information
3954
- * about revoking tokens, see <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_RevokeToken.html">RevokeToken</a>.</p>
3955
- */
3956
- public updateUserPoolClient(
3957
- args: UpdateUserPoolClientCommandInput,
3958
- options?: __HttpHandlerOptions
3959
- ): Promise<UpdateUserPoolClientCommandOutput>;
3960
- public updateUserPoolClient(
3961
- args: UpdateUserPoolClientCommandInput,
3962
- cb: (err: any, data?: UpdateUserPoolClientCommandOutput) => void
3963
- ): void;
3964
- public updateUserPoolClient(
3965
- args: UpdateUserPoolClientCommandInput,
3966
- options: __HttpHandlerOptions,
3967
- cb: (err: any, data?: UpdateUserPoolClientCommandOutput) => void
3968
- ): void;
3969
- public updateUserPoolClient(
3970
- args: UpdateUserPoolClientCommandInput,
3971
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateUserPoolClientCommandOutput) => void),
3972
- cb?: (err: any, data?: UpdateUserPoolClientCommandOutput) => void
3973
- ): Promise<UpdateUserPoolClientCommandOutput> | void {
3974
- const command = new UpdateUserPoolClientCommand(args);
3975
- if (typeof optionsOrCb === "function") {
3976
- this.send(command, optionsOrCb);
3977
- } else if (typeof cb === "function") {
3978
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
3979
- this.send(command, optionsOrCb || {}, cb);
3980
- } else {
3981
- return this.send(command, optionsOrCb);
3982
- }
3983
- }
3984
-
3985
- /**
3986
- * <p>Updates the Secure Sockets Layer (SSL) certificate for the custom domain for your user
3987
- * pool.</p>
3988
- * <p>You can use this operation to provide the Amazon Resource Name (ARN) of a new
3989
- * certificate to Amazon Cognito. You cannot use it to change the domain for a user
3990
- * pool.</p>
3991
- * <p>A custom domain is used to host the Amazon Cognito hosted UI, which provides sign-up
3992
- * and sign-in pages for your application. When you set up a custom domain, you provide a
3993
- * certificate that you manage with Certificate Manager (ACM). When necessary, you can
3994
- * use this operation to change the certificate that you applied to your custom
3995
- * domain.</p>
3996
- * <p>Usually, this is unnecessary following routine certificate renewal with ACM. When you
3997
- * renew your existing certificate in ACM, the ARN for your certificate remains the same,
3998
- * and your custom domain uses the new certificate automatically.</p>
3999
- * <p>However, if you replace your existing certificate with a new one, ACM gives the new
4000
- * certificate a new ARN. To apply the new certificate to your custom domain, you must
4001
- * provide this ARN to Amazon Cognito.</p>
4002
- * <p>When you add your new certificate in ACM, you must choose US East (N. Virginia) as the
4003
- * Region.</p>
4004
- * <p>After you submit your request, Amazon Cognito requires up to 1 hour to distribute your
4005
- * new certificate to your custom domain.</p>
4006
- * <p>For more information about adding a custom domain to your user pool, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-add-custom-domain.html">Using Your Own Domain for the Hosted UI</a>.</p>
4007
- */
4008
- public updateUserPoolDomain(
4009
- args: UpdateUserPoolDomainCommandInput,
4010
- options?: __HttpHandlerOptions
4011
- ): Promise<UpdateUserPoolDomainCommandOutput>;
4012
- public updateUserPoolDomain(
4013
- args: UpdateUserPoolDomainCommandInput,
4014
- cb: (err: any, data?: UpdateUserPoolDomainCommandOutput) => void
4015
- ): void;
4016
- public updateUserPoolDomain(
4017
- args: UpdateUserPoolDomainCommandInput,
4018
- options: __HttpHandlerOptions,
4019
- cb: (err: any, data?: UpdateUserPoolDomainCommandOutput) => void
4020
- ): void;
4021
- public updateUserPoolDomain(
4022
- args: UpdateUserPoolDomainCommandInput,
4023
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UpdateUserPoolDomainCommandOutput) => void),
4024
- cb?: (err: any, data?: UpdateUserPoolDomainCommandOutput) => void
4025
- ): Promise<UpdateUserPoolDomainCommandOutput> | void {
4026
- const command = new UpdateUserPoolDomainCommand(args);
4027
- if (typeof optionsOrCb === "function") {
4028
- this.send(command, optionsOrCb);
4029
- } else if (typeof cb === "function") {
4030
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
4031
- this.send(command, optionsOrCb || {}, cb);
4032
- } else {
4033
- return this.send(command, optionsOrCb);
4034
- }
4035
- }
4036
-
4037
- /**
4038
- * <p>Use this API to register a user's entered TOTP code and mark the user's software token
4039
- * MFA status as "verified" if successful. The request takes an access token or a session
4040
- * string, but not both.</p>
4041
- */
4042
- public verifySoftwareToken(
4043
- args: VerifySoftwareTokenCommandInput,
4044
- options?: __HttpHandlerOptions
4045
- ): Promise<VerifySoftwareTokenCommandOutput>;
4046
- public verifySoftwareToken(
4047
- args: VerifySoftwareTokenCommandInput,
4048
- cb: (err: any, data?: VerifySoftwareTokenCommandOutput) => void
4049
- ): void;
4050
- public verifySoftwareToken(
4051
- args: VerifySoftwareTokenCommandInput,
4052
- options: __HttpHandlerOptions,
4053
- cb: (err: any, data?: VerifySoftwareTokenCommandOutput) => void
4054
- ): void;
4055
- public verifySoftwareToken(
4056
- args: VerifySoftwareTokenCommandInput,
4057
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: VerifySoftwareTokenCommandOutput) => void),
4058
- cb?: (err: any, data?: VerifySoftwareTokenCommandOutput) => void
4059
- ): Promise<VerifySoftwareTokenCommandOutput> | void {
4060
- const command = new VerifySoftwareTokenCommand(args);
4061
- if (typeof optionsOrCb === "function") {
4062
- this.send(command, optionsOrCb);
4063
- } else if (typeof cb === "function") {
4064
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
4065
- this.send(command, optionsOrCb || {}, cb);
4066
- } else {
4067
- return this.send(command, optionsOrCb);
4068
- }
4069
- }
4070
-
4071
- /**
4072
- * <p>Verifies the specified user attributes in the user pool.</p>
4073
- */
4074
- public verifyUserAttribute(
4075
- args: VerifyUserAttributeCommandInput,
4076
- options?: __HttpHandlerOptions
4077
- ): Promise<VerifyUserAttributeCommandOutput>;
4078
- public verifyUserAttribute(
4079
- args: VerifyUserAttributeCommandInput,
4080
- cb: (err: any, data?: VerifyUserAttributeCommandOutput) => void
4081
- ): void;
4082
- public verifyUserAttribute(
4083
- args: VerifyUserAttributeCommandInput,
4084
- options: __HttpHandlerOptions,
4085
- cb: (err: any, data?: VerifyUserAttributeCommandOutput) => void
4086
- ): void;
4087
- public verifyUserAttribute(
4088
- args: VerifyUserAttributeCommandInput,
4089
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: VerifyUserAttributeCommandOutput) => void),
4090
- cb?: (err: any, data?: VerifyUserAttributeCommandOutput) => void
4091
- ): Promise<VerifyUserAttributeCommandOutput> | void {
4092
- const command = new VerifyUserAttributeCommand(args);
4093
- if (typeof optionsOrCb === "function") {
4094
- this.send(command, optionsOrCb);
4095
- } else if (typeof cb === "function") {
4096
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
4097
- this.send(command, optionsOrCb || {}, cb);
4098
- } else {
4099
- return this.send(command, optionsOrCb);
4100
- }
4101
- }
4102
- }