@aws-sdk/client-cognito-identity-provider 3.36.0 → 3.39.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 (244) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/CognitoIdentityProvider.js +0 -9
  3. package/dist-cjs/CognitoIdentityProviderClient.js +0 -14
  4. package/dist-cjs/commands/AddCustomAttributesCommand.js +0 -24
  5. package/dist-cjs/commands/AdminAddUserToGroupCommand.js +0 -25
  6. package/dist-cjs/commands/AdminConfirmSignUpCommand.js +0 -26
  7. package/dist-cjs/commands/AdminCreateUserCommand.js +0 -53
  8. package/dist-cjs/commands/AdminDeleteUserAttributesCommand.js +0 -26
  9. package/dist-cjs/commands/AdminDeleteUserCommand.js +0 -25
  10. package/dist-cjs/commands/AdminDisableProviderForUserCommand.js +0 -51
  11. package/dist-cjs/commands/AdminDisableUserCommand.js +0 -25
  12. package/dist-cjs/commands/AdminEnableUserCommand.js +0 -25
  13. package/dist-cjs/commands/AdminForgetDeviceCommand.js +0 -25
  14. package/dist-cjs/commands/AdminGetDeviceCommand.js +0 -25
  15. package/dist-cjs/commands/AdminGetUserCommand.js +0 -26
  16. package/dist-cjs/commands/AdminInitiateAuthCommand.js +0 -44
  17. package/dist-cjs/commands/AdminLinkProviderForUserCommand.js +0 -44
  18. package/dist-cjs/commands/AdminListDevicesCommand.js +0 -25
  19. package/dist-cjs/commands/AdminListGroupsForUserCommand.js +0 -25
  20. package/dist-cjs/commands/AdminListUserAuthEventsCommand.js +0 -25
  21. package/dist-cjs/commands/AdminRemoveUserFromGroupCommand.js +0 -25
  22. package/dist-cjs/commands/AdminResetUserPasswordCommand.js +0 -53
  23. package/dist-cjs/commands/AdminRespondToAuthChallengeCommand.js +0 -43
  24. package/dist-cjs/commands/AdminSetUserMFAPreferenceCommand.js +0 -28
  25. package/dist-cjs/commands/AdminSetUserPasswordCommand.js +0 -33
  26. package/dist-cjs/commands/AdminSetUserSettingsCommand.js +0 -27
  27. package/dist-cjs/commands/AdminUpdateAuthEventFeedbackCommand.js +0 -26
  28. package/dist-cjs/commands/AdminUpdateDeviceStatusCommand.js +0 -25
  29. package/dist-cjs/commands/AdminUpdateUserAttributesCommand.js +0 -48
  30. package/dist-cjs/commands/AdminUserGlobalSignOutCommand.js +0 -27
  31. package/dist-cjs/commands/AssociateSoftwareTokenCommand.js +0 -33
  32. package/dist-cjs/commands/ChangePasswordCommand.js +0 -24
  33. package/dist-cjs/commands/ConfirmDeviceCommand.js +0 -25
  34. package/dist-cjs/commands/ConfirmForgotPasswordCommand.js +0 -24
  35. package/dist-cjs/commands/ConfirmSignUpCommand.js +0 -25
  36. package/dist-cjs/commands/CreateGroupCommand.js +0 -25
  37. package/dist-cjs/commands/CreateIdentityProviderCommand.js +0 -24
  38. package/dist-cjs/commands/CreateResourceServerCommand.js +0 -24
  39. package/dist-cjs/commands/CreateUserImportJobCommand.js +0 -24
  40. package/dist-cjs/commands/CreateUserPoolClientCommand.js +0 -26
  41. package/dist-cjs/commands/CreateUserPoolCommand.js +0 -42
  42. package/dist-cjs/commands/CreateUserPoolDomainCommand.js +0 -24
  43. package/dist-cjs/commands/DeleteGroupCommand.js +0 -25
  44. package/dist-cjs/commands/DeleteIdentityProviderCommand.js +0 -24
  45. package/dist-cjs/commands/DeleteResourceServerCommand.js +0 -24
  46. package/dist-cjs/commands/DeleteUserAttributesCommand.js +0 -24
  47. package/dist-cjs/commands/DeleteUserCommand.js +0 -24
  48. package/dist-cjs/commands/DeleteUserPoolClientCommand.js +0 -24
  49. package/dist-cjs/commands/DeleteUserPoolCommand.js +0 -24
  50. package/dist-cjs/commands/DeleteUserPoolDomainCommand.js +0 -24
  51. package/dist-cjs/commands/DescribeIdentityProviderCommand.js +0 -24
  52. package/dist-cjs/commands/DescribeResourceServerCommand.js +0 -24
  53. package/dist-cjs/commands/DescribeRiskConfigurationCommand.js +0 -24
  54. package/dist-cjs/commands/DescribeUserImportJobCommand.js +0 -24
  55. package/dist-cjs/commands/DescribeUserPoolClientCommand.js +0 -25
  56. package/dist-cjs/commands/DescribeUserPoolCommand.js +0 -24
  57. package/dist-cjs/commands/DescribeUserPoolDomainCommand.js +0 -24
  58. package/dist-cjs/commands/ForgetDeviceCommand.js +0 -24
  59. package/dist-cjs/commands/ForgotPasswordCommand.js +0 -48
  60. package/dist-cjs/commands/GetCSVHeaderCommand.js +0 -25
  61. package/dist-cjs/commands/GetDeviceCommand.js +0 -24
  62. package/dist-cjs/commands/GetGroupCommand.js +0 -25
  63. package/dist-cjs/commands/GetIdentityProviderByIdentifierCommand.js +0 -24
  64. package/dist-cjs/commands/GetSigningCertificateCommand.js +0 -24
  65. package/dist-cjs/commands/GetUICustomizationCommand.js +0 -27
  66. package/dist-cjs/commands/GetUserAttributeVerificationCodeCommand.js +0 -41
  67. package/dist-cjs/commands/GetUserCommand.js +0 -24
  68. package/dist-cjs/commands/GetUserPoolMfaConfigCommand.js +0 -24
  69. package/dist-cjs/commands/GlobalSignOutCommand.js +0 -26
  70. package/dist-cjs/commands/InitiateAuthCommand.js +0 -41
  71. package/dist-cjs/commands/ListDevicesCommand.js +0 -24
  72. package/dist-cjs/commands/ListGroupsCommand.js +0 -25
  73. package/dist-cjs/commands/ListIdentityProvidersCommand.js +0 -24
  74. package/dist-cjs/commands/ListResourceServersCommand.js +0 -24
  75. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -27
  76. package/dist-cjs/commands/ListUserImportJobsCommand.js +0 -24
  77. package/dist-cjs/commands/ListUserPoolClientsCommand.js +0 -24
  78. package/dist-cjs/commands/ListUserPoolsCommand.js +0 -24
  79. package/dist-cjs/commands/ListUsersCommand.js +0 -24
  80. package/dist-cjs/commands/ListUsersInGroupCommand.js +0 -25
  81. package/dist-cjs/commands/ResendConfirmationCodeCommand.js +0 -42
  82. package/dist-cjs/commands/RespondToAuthChallengeCommand.js +0 -41
  83. package/dist-cjs/commands/RevokeTokenCommand.js +0 -25
  84. package/dist-cjs/commands/SetRiskConfigurationCommand.js +0 -28
  85. package/dist-cjs/commands/SetUICustomizationCommand.js +0 -35
  86. package/dist-cjs/commands/SetUserMFAPreferenceCommand.js +0 -32
  87. package/dist-cjs/commands/SetUserPoolMfaConfigCommand.js +0 -41
  88. package/dist-cjs/commands/SetUserSettingsCommand.js +0 -27
  89. package/dist-cjs/commands/SignUpCommand.js +0 -42
  90. package/dist-cjs/commands/StartUserImportJobCommand.js +0 -24
  91. package/dist-cjs/commands/StopUserImportJobCommand.js +0 -24
  92. package/dist-cjs/commands/TagResourceCommand.js +0 -37
  93. package/dist-cjs/commands/UntagResourceCommand.js +0 -25
  94. package/dist-cjs/commands/UpdateAuthEventFeedbackCommand.js +0 -26
  95. package/dist-cjs/commands/UpdateDeviceStatusCommand.js +0 -24
  96. package/dist-cjs/commands/UpdateGroupCommand.js +0 -25
  97. package/dist-cjs/commands/UpdateIdentityProviderCommand.js +0 -24
  98. package/dist-cjs/commands/UpdateResourceServerCommand.js +0 -28
  99. package/dist-cjs/commands/UpdateUserAttributesCommand.js +0 -41
  100. package/dist-cjs/commands/UpdateUserPoolClientCommand.js +0 -31
  101. package/dist-cjs/commands/UpdateUserPoolCommand.js +0 -43
  102. package/dist-cjs/commands/UpdateUserPoolDomainCommand.js +0 -44
  103. package/dist-cjs/commands/VerifySoftwareTokenCommand.js +0 -26
  104. package/dist-cjs/commands/VerifyUserAttributeCommand.js +0 -24
  105. package/dist-cjs/commands/index.js +104 -0
  106. package/dist-cjs/endpoints.js +6 -1
  107. package/dist-cjs/index.js +4 -113
  108. package/dist-cjs/models/models_0.js +0 -795
  109. package/dist-cjs/models/models_1.js +0 -90
  110. package/dist-cjs/pagination/AdminListGroupsForUserPaginator.js +0 -10
  111. package/dist-cjs/pagination/AdminListUserAuthEventsPaginator.js +0 -10
  112. package/dist-cjs/pagination/ListGroupsPaginator.js +0 -10
  113. package/dist-cjs/pagination/ListIdentityProvidersPaginator.js +0 -10
  114. package/dist-cjs/pagination/ListResourceServersPaginator.js +0 -10
  115. package/dist-cjs/pagination/ListUserPoolClientsPaginator.js +0 -10
  116. package/dist-cjs/pagination/ListUserPoolsPaginator.js +0 -10
  117. package/dist-cjs/pagination/ListUsersInGroupPaginator.js +0 -10
  118. package/dist-cjs/pagination/ListUsersPaginator.js +0 -10
  119. package/dist-cjs/pagination/index.js +13 -0
  120. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  121. package/dist-cjs/runtimeConfig.browser.js +1 -5
  122. package/dist-cjs/runtimeConfig.js +1 -5
  123. package/dist-cjs/runtimeConfig.native.js +0 -3
  124. package/dist-cjs/runtimeConfig.shared.js +0 -3
  125. package/dist-es/commands/index.js +101 -0
  126. package/dist-es/endpoints.js +6 -1
  127. package/dist-es/index.js +4 -113
  128. package/dist-es/pagination/index.js +10 -0
  129. package/dist-types/commands/index.d.ts +101 -0
  130. package/dist-types/index.d.ts +4 -113
  131. package/dist-types/pagination/index.d.ts +10 -0
  132. package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +102 -805
  133. package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +24 -95
  134. package/dist-types/ts3.4/commands/AddCustomAttributesCommand.d.ts +2 -20
  135. package/dist-types/ts3.4/commands/AdminAddUserToGroupCommand.d.ts +2 -21
  136. package/dist-types/ts3.4/commands/AdminConfirmSignUpCommand.d.ts +2 -22
  137. package/dist-types/ts3.4/commands/AdminCreateUserCommand.d.ts +2 -49
  138. package/dist-types/ts3.4/commands/AdminDeleteUserAttributesCommand.d.ts +2 -22
  139. package/dist-types/ts3.4/commands/AdminDeleteUserCommand.d.ts +2 -21
  140. package/dist-types/ts3.4/commands/AdminDisableProviderForUserCommand.d.ts +2 -47
  141. package/dist-types/ts3.4/commands/AdminDisableUserCommand.d.ts +2 -21
  142. package/dist-types/ts3.4/commands/AdminEnableUserCommand.d.ts +2 -21
  143. package/dist-types/ts3.4/commands/AdminForgetDeviceCommand.d.ts +2 -21
  144. package/dist-types/ts3.4/commands/AdminGetDeviceCommand.d.ts +2 -21
  145. package/dist-types/ts3.4/commands/AdminGetUserCommand.d.ts +2 -22
  146. package/dist-types/ts3.4/commands/AdminInitiateAuthCommand.d.ts +2 -40
  147. package/dist-types/ts3.4/commands/AdminLinkProviderForUserCommand.d.ts +2 -40
  148. package/dist-types/ts3.4/commands/AdminListDevicesCommand.d.ts +2 -21
  149. package/dist-types/ts3.4/commands/AdminListGroupsForUserCommand.d.ts +2 -21
  150. package/dist-types/ts3.4/commands/AdminListUserAuthEventsCommand.d.ts +2 -21
  151. package/dist-types/ts3.4/commands/AdminRemoveUserFromGroupCommand.d.ts +2 -21
  152. package/dist-types/ts3.4/commands/AdminResetUserPasswordCommand.d.ts +2 -49
  153. package/dist-types/ts3.4/commands/AdminRespondToAuthChallengeCommand.d.ts +2 -39
  154. package/dist-types/ts3.4/commands/AdminSetUserMFAPreferenceCommand.d.ts +2 -24
  155. package/dist-types/ts3.4/commands/AdminSetUserPasswordCommand.d.ts +2 -29
  156. package/dist-types/ts3.4/commands/AdminSetUserSettingsCommand.d.ts +2 -23
  157. package/dist-types/ts3.4/commands/AdminUpdateAuthEventFeedbackCommand.d.ts +2 -22
  158. package/dist-types/ts3.4/commands/AdminUpdateDeviceStatusCommand.d.ts +2 -21
  159. package/dist-types/ts3.4/commands/AdminUpdateUserAttributesCommand.d.ts +2 -44
  160. package/dist-types/ts3.4/commands/AdminUserGlobalSignOutCommand.d.ts +2 -23
  161. package/dist-types/ts3.4/commands/AssociateSoftwareTokenCommand.d.ts +2 -29
  162. package/dist-types/ts3.4/commands/ChangePasswordCommand.d.ts +2 -20
  163. package/dist-types/ts3.4/commands/ConfirmDeviceCommand.d.ts +2 -21
  164. package/dist-types/ts3.4/commands/ConfirmForgotPasswordCommand.d.ts +2 -20
  165. package/dist-types/ts3.4/commands/ConfirmSignUpCommand.d.ts +2 -21
  166. package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +2 -21
  167. package/dist-types/ts3.4/commands/CreateIdentityProviderCommand.d.ts +2 -20
  168. package/dist-types/ts3.4/commands/CreateResourceServerCommand.d.ts +2 -20
  169. package/dist-types/ts3.4/commands/CreateUserImportJobCommand.d.ts +2 -20
  170. package/dist-types/ts3.4/commands/CreateUserPoolClientCommand.d.ts +2 -22
  171. package/dist-types/ts3.4/commands/CreateUserPoolCommand.d.ts +2 -38
  172. package/dist-types/ts3.4/commands/CreateUserPoolDomainCommand.d.ts +2 -20
  173. package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +2 -21
  174. package/dist-types/ts3.4/commands/DeleteIdentityProviderCommand.d.ts +2 -20
  175. package/dist-types/ts3.4/commands/DeleteResourceServerCommand.d.ts +2 -20
  176. package/dist-types/ts3.4/commands/DeleteUserAttributesCommand.d.ts +2 -20
  177. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +2 -20
  178. package/dist-types/ts3.4/commands/DeleteUserPoolClientCommand.d.ts +2 -20
  179. package/dist-types/ts3.4/commands/DeleteUserPoolCommand.d.ts +2 -20
  180. package/dist-types/ts3.4/commands/DeleteUserPoolDomainCommand.d.ts +2 -20
  181. package/dist-types/ts3.4/commands/DescribeIdentityProviderCommand.d.ts +2 -20
  182. package/dist-types/ts3.4/commands/DescribeResourceServerCommand.d.ts +2 -20
  183. package/dist-types/ts3.4/commands/DescribeRiskConfigurationCommand.d.ts +2 -20
  184. package/dist-types/ts3.4/commands/DescribeUserImportJobCommand.d.ts +2 -20
  185. package/dist-types/ts3.4/commands/DescribeUserPoolClientCommand.d.ts +2 -21
  186. package/dist-types/ts3.4/commands/DescribeUserPoolCommand.d.ts +2 -20
  187. package/dist-types/ts3.4/commands/DescribeUserPoolDomainCommand.d.ts +2 -20
  188. package/dist-types/ts3.4/commands/ForgetDeviceCommand.d.ts +2 -20
  189. package/dist-types/ts3.4/commands/ForgotPasswordCommand.d.ts +2 -44
  190. package/dist-types/ts3.4/commands/GetCSVHeaderCommand.d.ts +2 -21
  191. package/dist-types/ts3.4/commands/GetDeviceCommand.d.ts +2 -20
  192. package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +2 -21
  193. package/dist-types/ts3.4/commands/GetIdentityProviderByIdentifierCommand.d.ts +2 -20
  194. package/dist-types/ts3.4/commands/GetSigningCertificateCommand.d.ts +2 -20
  195. package/dist-types/ts3.4/commands/GetUICustomizationCommand.d.ts +2 -23
  196. package/dist-types/ts3.4/commands/GetUserAttributeVerificationCodeCommand.d.ts +2 -37
  197. package/dist-types/ts3.4/commands/GetUserCommand.d.ts +2 -20
  198. package/dist-types/ts3.4/commands/GetUserPoolMfaConfigCommand.d.ts +2 -20
  199. package/dist-types/ts3.4/commands/GlobalSignOutCommand.d.ts +2 -22
  200. package/dist-types/ts3.4/commands/InitiateAuthCommand.d.ts +2 -37
  201. package/dist-types/ts3.4/commands/ListDevicesCommand.d.ts +2 -20
  202. package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +2 -21
  203. package/dist-types/ts3.4/commands/ListIdentityProvidersCommand.d.ts +2 -20
  204. package/dist-types/ts3.4/commands/ListResourceServersCommand.d.ts +2 -20
  205. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -23
  206. package/dist-types/ts3.4/commands/ListUserImportJobsCommand.d.ts +2 -20
  207. package/dist-types/ts3.4/commands/ListUserPoolClientsCommand.d.ts +2 -20
  208. package/dist-types/ts3.4/commands/ListUserPoolsCommand.d.ts +2 -20
  209. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +2 -20
  210. package/dist-types/ts3.4/commands/ListUsersInGroupCommand.d.ts +2 -21
  211. package/dist-types/ts3.4/commands/ResendConfirmationCodeCommand.d.ts +2 -38
  212. package/dist-types/ts3.4/commands/RespondToAuthChallengeCommand.d.ts +2 -37
  213. package/dist-types/ts3.4/commands/RevokeTokenCommand.d.ts +2 -21
  214. package/dist-types/ts3.4/commands/SetRiskConfigurationCommand.d.ts +2 -24
  215. package/dist-types/ts3.4/commands/SetUICustomizationCommand.d.ts +2 -31
  216. package/dist-types/ts3.4/commands/SetUserMFAPreferenceCommand.d.ts +2 -28
  217. package/dist-types/ts3.4/commands/SetUserPoolMfaConfigCommand.d.ts +2 -37
  218. package/dist-types/ts3.4/commands/SetUserSettingsCommand.d.ts +2 -23
  219. package/dist-types/ts3.4/commands/SignUpCommand.d.ts +2 -38
  220. package/dist-types/ts3.4/commands/StartUserImportJobCommand.d.ts +2 -20
  221. package/dist-types/ts3.4/commands/StopUserImportJobCommand.d.ts +2 -20
  222. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -33
  223. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -21
  224. package/dist-types/ts3.4/commands/UpdateAuthEventFeedbackCommand.d.ts +2 -22
  225. package/dist-types/ts3.4/commands/UpdateDeviceStatusCommand.d.ts +2 -20
  226. package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +2 -21
  227. package/dist-types/ts3.4/commands/UpdateIdentityProviderCommand.d.ts +2 -20
  228. package/dist-types/ts3.4/commands/UpdateResourceServerCommand.d.ts +2 -24
  229. package/dist-types/ts3.4/commands/UpdateUserAttributesCommand.d.ts +2 -37
  230. package/dist-types/ts3.4/commands/UpdateUserPoolClientCommand.d.ts +2 -27
  231. package/dist-types/ts3.4/commands/UpdateUserPoolCommand.d.ts +2 -39
  232. package/dist-types/ts3.4/commands/UpdateUserPoolDomainCommand.d.ts +2 -40
  233. package/dist-types/ts3.4/commands/VerifySoftwareTokenCommand.d.ts +2 -22
  234. package/dist-types/ts3.4/commands/VerifyUserAttributeCommand.d.ts +2 -20
  235. package/dist-types/ts3.4/commands/index.d.ts +101 -0
  236. package/dist-types/ts3.4/index.d.ts +4 -113
  237. package/dist-types/ts3.4/models/models_0.d.ts +1183 -5804
  238. package/dist-types/ts3.4/models/models_1.d.ts +134 -604
  239. package/dist-types/ts3.4/pagination/index.d.ts +10 -0
  240. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -6
  241. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  242. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  243. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  244. package/package.json +32 -32
@@ -6,55 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Initiates the authentication flow, as an administrator.</p>
11
- *
12
- *
13
- * <note>
14
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
15
- * telecom carriers require that you register an origination phone number before you can
16
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
17
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
18
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
19
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
20
- * in.</p>
21
- * <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>
22
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
23
- * mode</a>
24
- * </i>, you’ll have limitations, such as sending messages
25
- * to only verified phone numbers. After testing in the sandbox environment, you can
26
- * 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
27
- * Cognito Developer Guide</i>. </p>
28
- * </note>
29
- *
30
- * <p>Calling this action requires developer credentials.</p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { CognitoIdentityProviderClient, AdminInitiateAuthCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
35
- * // const { CognitoIdentityProviderClient, AdminInitiateAuthCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
36
- * const client = new CognitoIdentityProviderClient(config);
37
- * const command = new AdminInitiateAuthCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link AdminInitiateAuthCommandInput} for command's `input` shape.
42
- * @see {@link AdminInitiateAuthCommandOutput} for command's `response` shape.
43
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
9
  class AdminInitiateAuthCommand extends smithy_client_1.Command {
47
- // Start section: command_properties
48
- // End section: command_properties
49
10
  constructor(input) {
50
- // Start section: command_constructor
51
11
  super();
52
12
  this.input = input;
53
- // End section: command_constructor
54
13
  }
55
- /**
56
- * @internal
57
- */
58
14
  resolveMiddleware(clientStack, configuration, options) {
59
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
60
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,55 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Links an existing user account in a user pool (<code>DestinationUser</code>) to an
11
- * identity from an external identity provider (<code>SourceUser</code>) based on a
12
- * specified attribute name and value from the external identity provider. This allows you
13
- * to create a link from the existing user account to an external federated user identity
14
- * that has not yet been used to sign in, so that the federated user identity can be used
15
- * to sign in as the existing user account. </p>
16
- * <p> For example, if there is an existing user with a username and password, this API
17
- * links that user to a federated user identity, so that when the federated user identity
18
- * is used, the user signs in as the existing user account. </p>
19
- * <note>
20
- * <p>The maximum number of federated identities linked to a user is 5.</p>
21
- * </note>
22
- * <important>
23
- * <p>Because this API allows a user with an external federated identity to sign in as
24
- * an existing user in the user pool, it is critical that it only be used with external
25
- * identity providers and provider attributes that have been trusted by the application
26
- * owner.</p>
27
- * </important>
28
- *
29
- * <p>This action is enabled only for admin access and requires developer
30
- * credentials.</p>
31
- * @example
32
- * Use a bare-bones client and the command you need to make an API call.
33
- * ```javascript
34
- * import { CognitoIdentityProviderClient, AdminLinkProviderForUserCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
35
- * // const { CognitoIdentityProviderClient, AdminLinkProviderForUserCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
36
- * const client = new CognitoIdentityProviderClient(config);
37
- * const command = new AdminLinkProviderForUserCommand(input);
38
- * const response = await client.send(command);
39
- * ```
40
- *
41
- * @see {@link AdminLinkProviderForUserCommandInput} for command's `input` shape.
42
- * @see {@link AdminLinkProviderForUserCommandOutput} for command's `response` shape.
43
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
44
- *
45
- */
46
9
  class AdminLinkProviderForUserCommand extends smithy_client_1.Command {
47
- // Start section: command_properties
48
- // End section: command_properties
49
10
  constructor(input) {
50
- // Start section: command_constructor
51
11
  super();
52
12
  this.input = input;
53
- // End section: command_constructor
54
13
  }
55
- /**
56
- * @internal
57
- */
58
14
  resolveMiddleware(clientStack, configuration, options) {
59
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
60
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,36 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Lists devices, as an administrator.</p>
11
- * <p>Calling this action requires developer credentials.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CognitoIdentityProviderClient, AdminListDevicesCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
16
- * // const { CognitoIdentityProviderClient, AdminListDevicesCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
17
- * const client = new CognitoIdentityProviderClient(config);
18
- * const command = new AdminListDevicesCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link AdminListDevicesCommandInput} for command's `input` shape.
23
- * @see {@link AdminListDevicesCommandOutput} for command's `response` shape.
24
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
9
  class AdminListDevicesCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
10
  constructor(input) {
31
- // Start section: command_constructor
32
11
  super();
33
12
  this.input = input;
34
- // End section: command_constructor
35
13
  }
36
- /**
37
- * @internal
38
- */
39
14
  resolveMiddleware(clientStack, configuration, options) {
40
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,36 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Lists the groups that the user belongs to.</p>
11
- * <p>Calling this action requires developer credentials.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CognitoIdentityProviderClient, AdminListGroupsForUserCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
16
- * // const { CognitoIdentityProviderClient, AdminListGroupsForUserCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
17
- * const client = new CognitoIdentityProviderClient(config);
18
- * const command = new AdminListGroupsForUserCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link AdminListGroupsForUserCommandInput} for command's `input` shape.
23
- * @see {@link AdminListGroupsForUserCommandOutput} for command's `response` shape.
24
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
9
  class AdminListGroupsForUserCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
10
  constructor(input) {
31
- // Start section: command_constructor
32
11
  super();
33
12
  this.input = input;
34
- // End section: command_constructor
35
13
  }
36
- /**
37
- * @internal
38
- */
39
14
  resolveMiddleware(clientStack, configuration, options) {
40
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,36 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Lists a history of user activity and any risks detected as part of Amazon Cognito
11
- * advanced security.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CognitoIdentityProviderClient, AdminListUserAuthEventsCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
16
- * // const { CognitoIdentityProviderClient, AdminListUserAuthEventsCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
17
- * const client = new CognitoIdentityProviderClient(config);
18
- * const command = new AdminListUserAuthEventsCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link AdminListUserAuthEventsCommandInput} for command's `input` shape.
23
- * @see {@link AdminListUserAuthEventsCommandOutput} for command's `response` shape.
24
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
9
  class AdminListUserAuthEventsCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
10
  constructor(input) {
31
- // Start section: command_constructor
32
11
  super();
33
12
  this.input = input;
34
- // End section: command_constructor
35
13
  }
36
- /**
37
- * @internal
38
- */
39
14
  resolveMiddleware(clientStack, configuration, options) {
40
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,36 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Removes the specified user from the specified group.</p>
11
- * <p>Calling this action requires developer credentials.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CognitoIdentityProviderClient, AdminRemoveUserFromGroupCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
16
- * // const { CognitoIdentityProviderClient, AdminRemoveUserFromGroupCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
17
- * const client = new CognitoIdentityProviderClient(config);
18
- * const command = new AdminRemoveUserFromGroupCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link AdminRemoveUserFromGroupCommandInput} for command's `input` shape.
23
- * @see {@link AdminRemoveUserFromGroupCommandOutput} for command's `response` shape.
24
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
9
  class AdminRemoveUserFromGroupCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
10
  constructor(input) {
31
- // Start section: command_constructor
32
11
  super();
33
12
  this.input = input;
34
- // End section: command_constructor
35
13
  }
36
- /**
37
- * @internal
38
- */
39
14
  resolveMiddleware(clientStack, configuration, options) {
40
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,64 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Resets the specified user's password in a user pool as an administrator. Works on any
11
- * user.</p>
12
- * <p>When a developer calls this API, the current password is invalidated, so it must be
13
- * changed. If a user tries to sign in after the API is called, the app will get a
14
- * PasswordResetRequiredException exception back and should direct the user down the flow
15
- * to reset the password, which is the same as the forgot password flow. In addition, if
16
- * the user pool has phone verification selected and a verified phone number exists for the
17
- * user, or if email verification is selected and a verified email exists for the user,
18
- * calling this API will also result in sending a message to the end user with the code to
19
- * change their password.</p>
20
- *
21
- *
22
- * <note>
23
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
24
- * telecom carriers require that you register an origination phone number before you can
25
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
26
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
27
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
28
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
29
- * in.</p>
30
- * <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>
31
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
32
- * mode</a>
33
- * </i>, you’ll have limitations, such as sending messages
34
- * to only verified phone numbers. After testing in the sandbox environment, you can
35
- * 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
36
- * Cognito Developer Guide</i>. </p>
37
- * </note>
38
- *
39
- * <p>Calling this action requires developer credentials.</p>
40
- * @example
41
- * Use a bare-bones client and the command you need to make an API call.
42
- * ```javascript
43
- * import { CognitoIdentityProviderClient, AdminResetUserPasswordCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
44
- * // const { CognitoIdentityProviderClient, AdminResetUserPasswordCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
45
- * const client = new CognitoIdentityProviderClient(config);
46
- * const command = new AdminResetUserPasswordCommand(input);
47
- * const response = await client.send(command);
48
- * ```
49
- *
50
- * @see {@link AdminResetUserPasswordCommandInput} for command's `input` shape.
51
- * @see {@link AdminResetUserPasswordCommandOutput} for command's `response` shape.
52
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
53
- *
54
- */
55
9
  class AdminResetUserPasswordCommand extends smithy_client_1.Command {
56
- // Start section: command_properties
57
- // End section: command_properties
58
10
  constructor(input) {
59
- // Start section: command_constructor
60
11
  super();
61
12
  this.input = input;
62
- // End section: command_constructor
63
13
  }
64
- /**
65
- * @internal
66
- */
67
14
  resolveMiddleware(clientStack, configuration, options) {
68
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
69
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,54 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Responds to an authentication challenge, as an administrator.</p>
11
- *
12
- * <note>
13
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
14
- * telecom carriers require that you register an origination phone number before you can
15
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
16
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
17
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
18
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
19
- * in.</p>
20
- * <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>
21
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
22
- * mode</a>
23
- * </i>, you’ll have limitations, such as sending messages
24
- * to only verified phone numbers. After testing in the sandbox environment, you can
25
- * 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
26
- * Cognito Developer Guide</i>. </p>
27
- * </note>
28
- *
29
- * <p>Calling this action requires developer credentials.</p>
30
- * @example
31
- * Use a bare-bones client and the command you need to make an API call.
32
- * ```javascript
33
- * import { CognitoIdentityProviderClient, AdminRespondToAuthChallengeCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
34
- * // const { CognitoIdentityProviderClient, AdminRespondToAuthChallengeCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
35
- * const client = new CognitoIdentityProviderClient(config);
36
- * const command = new AdminRespondToAuthChallengeCommand(input);
37
- * const response = await client.send(command);
38
- * ```
39
- *
40
- * @see {@link AdminRespondToAuthChallengeCommandInput} for command's `input` shape.
41
- * @see {@link AdminRespondToAuthChallengeCommandOutput} for command's `response` shape.
42
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
43
- *
44
- */
45
9
  class AdminRespondToAuthChallengeCommand extends smithy_client_1.Command {
46
- // Start section: command_properties
47
- // End section: command_properties
48
10
  constructor(input) {
49
- // Start section: command_constructor
50
11
  super();
51
12
  this.input = input;
52
- // End section: command_constructor
53
13
  }
54
- /**
55
- * @internal
56
- */
57
14
  resolveMiddleware(clientStack, configuration, options) {
58
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
59
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,39 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Sets the user's multi-factor authentication (MFA) preference, including which MFA
11
- * options are enabled and if any are preferred. Only one factor can be set as preferred.
12
- * The preferred MFA factor will be used to authenticate a user if multiple factors are
13
- * enabled. If multiple options are enabled and no preference is set, a challenge to choose
14
- * an MFA option will be returned during sign in.</p>
15
- * @example
16
- * Use a bare-bones client and the command you need to make an API call.
17
- * ```javascript
18
- * import { CognitoIdentityProviderClient, AdminSetUserMFAPreferenceCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
19
- * // const { CognitoIdentityProviderClient, AdminSetUserMFAPreferenceCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
20
- * const client = new CognitoIdentityProviderClient(config);
21
- * const command = new AdminSetUserMFAPreferenceCommand(input);
22
- * const response = await client.send(command);
23
- * ```
24
- *
25
- * @see {@link AdminSetUserMFAPreferenceCommandInput} for command's `input` shape.
26
- * @see {@link AdminSetUserMFAPreferenceCommandOutput} for command's `response` shape.
27
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
28
- *
29
- */
30
9
  class AdminSetUserMFAPreferenceCommand extends smithy_client_1.Command {
31
- // Start section: command_properties
32
- // End section: command_properties
33
10
  constructor(input) {
34
- // Start section: command_constructor
35
11
  super();
36
12
  this.input = input;
37
- // End section: command_constructor
38
13
  }
39
- /**
40
- * @internal
41
- */
42
14
  resolveMiddleware(clientStack, configuration, options) {
43
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
44
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,44 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Sets the specified user's password in a user pool as an administrator. Works on any
11
- * user. </p>
12
- * <p>The password can be temporary or permanent. If it is temporary, the user status will
13
- * be placed into the <code>FORCE_CHANGE_PASSWORD</code> state. When the user next tries to
14
- * sign in, the InitiateAuth/AdminInitiateAuth response will contain the
15
- * <code>NEW_PASSWORD_REQUIRED</code> challenge. If the user does not sign in before it
16
- * expires, the user will not be able to sign in and their password will need to be reset
17
- * by an administrator. </p>
18
- * <p>Once the user has set a new password, or the password is permanent, the user status
19
- * will be set to <code>Confirmed</code>.</p>
20
- * @example
21
- * Use a bare-bones client and the command you need to make an API call.
22
- * ```javascript
23
- * import { CognitoIdentityProviderClient, AdminSetUserPasswordCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
24
- * // const { CognitoIdentityProviderClient, AdminSetUserPasswordCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
25
- * const client = new CognitoIdentityProviderClient(config);
26
- * const command = new AdminSetUserPasswordCommand(input);
27
- * const response = await client.send(command);
28
- * ```
29
- *
30
- * @see {@link AdminSetUserPasswordCommandInput} for command's `input` shape.
31
- * @see {@link AdminSetUserPasswordCommandOutput} for command's `response` shape.
32
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
33
- *
34
- */
35
9
  class AdminSetUserPasswordCommand extends smithy_client_1.Command {
36
- // Start section: command_properties
37
- // End section: command_properties
38
10
  constructor(input) {
39
- // Start section: command_constructor
40
11
  super();
41
12
  this.input = input;
42
- // End section: command_constructor
43
13
  }
44
- /**
45
- * @internal
46
- */
47
14
  resolveMiddleware(clientStack, configuration, options) {
48
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
49
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,38 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>
11
- * <i>This action is no longer supported.</i> You can use it to configure
12
- * only SMS MFA. You can't use it to configure TOTP software token MFA. To configure either
13
- * type of MFA, use <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminSetUserMFAPreference.html">AdminSetUserMFAPreference</a> instead.</p>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { CognitoIdentityProviderClient, AdminSetUserSettingsCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
18
- * // const { CognitoIdentityProviderClient, AdminSetUserSettingsCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
19
- * const client = new CognitoIdentityProviderClient(config);
20
- * const command = new AdminSetUserSettingsCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link AdminSetUserSettingsCommandInput} for command's `input` shape.
25
- * @see {@link AdminSetUserSettingsCommandOutput} for command's `response` shape.
26
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
9
  class AdminSetUserSettingsCommand extends smithy_client_1.Command {
30
- // Start section: command_properties
31
- // End section: command_properties
32
10
  constructor(input) {
33
- // Start section: command_constructor
34
11
  super();
35
12
  this.input = input;
36
- // End section: command_constructor
37
13
  }
38
- /**
39
- * @internal
40
- */
41
14
  resolveMiddleware(clientStack, configuration, options) {
42
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
43
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,37 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Provides feedback for an authentication event as to whether it was from a valid user.
11
- * This feedback is used for improving the risk evaluation decision for the user pool as
12
- * part of Amazon Cognito advanced security.</p>
13
- * @example
14
- * Use a bare-bones client and the command you need to make an API call.
15
- * ```javascript
16
- * import { CognitoIdentityProviderClient, AdminUpdateAuthEventFeedbackCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
17
- * // const { CognitoIdentityProviderClient, AdminUpdateAuthEventFeedbackCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
18
- * const client = new CognitoIdentityProviderClient(config);
19
- * const command = new AdminUpdateAuthEventFeedbackCommand(input);
20
- * const response = await client.send(command);
21
- * ```
22
- *
23
- * @see {@link AdminUpdateAuthEventFeedbackCommandInput} for command's `input` shape.
24
- * @see {@link AdminUpdateAuthEventFeedbackCommandOutput} for command's `response` shape.
25
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
26
- *
27
- */
28
9
  class AdminUpdateAuthEventFeedbackCommand extends smithy_client_1.Command {
29
- // Start section: command_properties
30
- // End section: command_properties
31
10
  constructor(input) {
32
- // Start section: command_constructor
33
11
  super();
34
12
  this.input = input;
35
- // End section: command_constructor
36
13
  }
37
- /**
38
- * @internal
39
- */
40
14
  resolveMiddleware(clientStack, configuration, options) {
41
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
42
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,36 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Updates the device status as an administrator.</p>
11
- * <p>Calling this action requires developer credentials.</p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CognitoIdentityProviderClient, AdminUpdateDeviceStatusCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
16
- * // const { CognitoIdentityProviderClient, AdminUpdateDeviceStatusCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
17
- * const client = new CognitoIdentityProviderClient(config);
18
- * const command = new AdminUpdateDeviceStatusCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link AdminUpdateDeviceStatusCommandInput} for command's `input` shape.
23
- * @see {@link AdminUpdateDeviceStatusCommandOutput} for command's `response` shape.
24
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
9
  class AdminUpdateDeviceStatusCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
10
  constructor(input) {
31
- // Start section: command_constructor
32
11
  super();
33
12
  this.input = input;
34
- // End section: command_constructor
35
13
  }
36
- /**
37
- * @internal
38
- */
39
14
  resolveMiddleware(clientStack, configuration, options) {
40
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));
@@ -6,59 +6,11 @@ const middleware_signing_1 = require("@aws-sdk/middleware-signing");
6
6
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
7
  const models_0_1 = require("../models/models_0");
8
8
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
9
- /**
10
- * <p>Updates the specified user's attributes, including developer attributes, as an
11
- * administrator. Works on any user.</p>
12
- * <p>For custom attributes, you must prepend the <code>custom:</code> prefix to the
13
- * attribute name.</p>
14
- * <p>In addition to updating user attributes, this API can also be used to mark phone and
15
- * email as verified.</p>
16
- *
17
- * <note>
18
- * <p>This action might generate an SMS text message. Starting June 1, 2021, U.S.
19
- * telecom carriers require that you register an origination phone number before you can
20
- * send SMS messages to U.S. phone numbers. If you use SMS text messages in Amazon Cognito,
21
- * you must register a phone number with <a href="https://console.aws.amazon.com/pinpoint/home/">Amazon Pinpoint</a>.
22
- * Cognito will use the the registered number automatically. Otherwise, Cognito users that must
23
- * receive SMS messages might be unable to sign up, activate their accounts, or sign
24
- * in.</p>
25
- * <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>
26
- * <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-sms-sandbox.html">sandbox
27
- * mode</a>
28
- * </i>, you’ll have limitations, such as sending messages
29
- * to only verified phone numbers. After testing in the sandbox environment, you can
30
- * 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
31
- * Cognito Developer Guide</i>. </p>
32
- * </note>
33
- *
34
- * <p>Calling this action requires developer credentials.</p>
35
- * @example
36
- * Use a bare-bones client and the command you need to make an API call.
37
- * ```javascript
38
- * import { CognitoIdentityProviderClient, AdminUpdateUserAttributesCommand } from "@aws-sdk/client-cognito-identity-provider"; // ES Modules import
39
- * // const { CognitoIdentityProviderClient, AdminUpdateUserAttributesCommand } = require("@aws-sdk/client-cognito-identity-provider"); // CommonJS import
40
- * const client = new CognitoIdentityProviderClient(config);
41
- * const command = new AdminUpdateUserAttributesCommand(input);
42
- * const response = await client.send(command);
43
- * ```
44
- *
45
- * @see {@link AdminUpdateUserAttributesCommandInput} for command's `input` shape.
46
- * @see {@link AdminUpdateUserAttributesCommandOutput} for command's `response` shape.
47
- * @see {@link CognitoIdentityProviderClientResolvedConfig | config} for command's `input` shape.
48
- *
49
- */
50
9
  class AdminUpdateUserAttributesCommand extends smithy_client_1.Command {
51
- // Start section: command_properties
52
- // End section: command_properties
53
10
  constructor(input) {
54
- // Start section: command_constructor
55
11
  super();
56
12
  this.input = input;
57
- // End section: command_constructor
58
13
  }
59
- /**
60
- * @internal
61
- */
62
14
  resolveMiddleware(clientStack, configuration, options) {
63
15
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
64
16
  this.middlewareStack.use(middleware_signing_1.getAwsAuthPlugin(configuration));