@aws-sdk/client-cognito-identity-provider 3.193.0 → 3.196.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 (447) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist-cjs/CognitoIdentityProviderClient.js +11 -8
  3. package/dist-cjs/commands/AddCustomAttributesCommand.js +10 -0
  4. package/dist-cjs/commands/AdminAddUserToGroupCommand.js +10 -0
  5. package/dist-cjs/commands/AdminConfirmSignUpCommand.js +10 -0
  6. package/dist-cjs/commands/AdminCreateUserCommand.js +10 -0
  7. package/dist-cjs/commands/AdminDeleteUserAttributesCommand.js +10 -0
  8. package/dist-cjs/commands/AdminDeleteUserCommand.js +10 -0
  9. package/dist-cjs/commands/AdminDisableProviderForUserCommand.js +10 -0
  10. package/dist-cjs/commands/AdminDisableUserCommand.js +10 -0
  11. package/dist-cjs/commands/AdminEnableUserCommand.js +10 -0
  12. package/dist-cjs/commands/AdminForgetDeviceCommand.js +10 -0
  13. package/dist-cjs/commands/AdminGetDeviceCommand.js +10 -0
  14. package/dist-cjs/commands/AdminGetUserCommand.js +10 -0
  15. package/dist-cjs/commands/AdminInitiateAuthCommand.js +10 -0
  16. package/dist-cjs/commands/AdminLinkProviderForUserCommand.js +10 -0
  17. package/dist-cjs/commands/AdminListDevicesCommand.js +10 -0
  18. package/dist-cjs/commands/AdminListGroupsForUserCommand.js +10 -0
  19. package/dist-cjs/commands/AdminListUserAuthEventsCommand.js +10 -0
  20. package/dist-cjs/commands/AdminRemoveUserFromGroupCommand.js +10 -0
  21. package/dist-cjs/commands/AdminResetUserPasswordCommand.js +10 -0
  22. package/dist-cjs/commands/AdminRespondToAuthChallengeCommand.js +10 -0
  23. package/dist-cjs/commands/AdminSetUserMFAPreferenceCommand.js +10 -0
  24. package/dist-cjs/commands/AdminSetUserPasswordCommand.js +10 -0
  25. package/dist-cjs/commands/AdminSetUserSettingsCommand.js +10 -0
  26. package/dist-cjs/commands/AdminUpdateAuthEventFeedbackCommand.js +10 -0
  27. package/dist-cjs/commands/AdminUpdateDeviceStatusCommand.js +10 -0
  28. package/dist-cjs/commands/AdminUpdateUserAttributesCommand.js +10 -0
  29. package/dist-cjs/commands/AdminUserGlobalSignOutCommand.js +10 -0
  30. package/dist-cjs/commands/AssociateSoftwareTokenCommand.js +10 -0
  31. package/dist-cjs/commands/ChangePasswordCommand.js +10 -0
  32. package/dist-cjs/commands/ConfirmDeviceCommand.js +10 -0
  33. package/dist-cjs/commands/ConfirmForgotPasswordCommand.js +10 -0
  34. package/dist-cjs/commands/ConfirmSignUpCommand.js +10 -0
  35. package/dist-cjs/commands/CreateGroupCommand.js +10 -0
  36. package/dist-cjs/commands/CreateIdentityProviderCommand.js +10 -0
  37. package/dist-cjs/commands/CreateResourceServerCommand.js +10 -0
  38. package/dist-cjs/commands/CreateUserImportJobCommand.js +10 -0
  39. package/dist-cjs/commands/CreateUserPoolClientCommand.js +10 -0
  40. package/dist-cjs/commands/CreateUserPoolCommand.js +10 -0
  41. package/dist-cjs/commands/CreateUserPoolDomainCommand.js +10 -0
  42. package/dist-cjs/commands/DeleteGroupCommand.js +10 -0
  43. package/dist-cjs/commands/DeleteIdentityProviderCommand.js +10 -0
  44. package/dist-cjs/commands/DeleteResourceServerCommand.js +10 -0
  45. package/dist-cjs/commands/DeleteUserAttributesCommand.js +10 -0
  46. package/dist-cjs/commands/DeleteUserCommand.js +10 -0
  47. package/dist-cjs/commands/DeleteUserPoolClientCommand.js +10 -0
  48. package/dist-cjs/commands/DeleteUserPoolCommand.js +10 -0
  49. package/dist-cjs/commands/DeleteUserPoolDomainCommand.js +10 -0
  50. package/dist-cjs/commands/DescribeIdentityProviderCommand.js +10 -0
  51. package/dist-cjs/commands/DescribeResourceServerCommand.js +10 -0
  52. package/dist-cjs/commands/DescribeRiskConfigurationCommand.js +10 -0
  53. package/dist-cjs/commands/DescribeUserImportJobCommand.js +10 -0
  54. package/dist-cjs/commands/DescribeUserPoolClientCommand.js +10 -0
  55. package/dist-cjs/commands/DescribeUserPoolCommand.js +10 -0
  56. package/dist-cjs/commands/DescribeUserPoolDomainCommand.js +10 -0
  57. package/dist-cjs/commands/ForgetDeviceCommand.js +10 -0
  58. package/dist-cjs/commands/ForgotPasswordCommand.js +10 -0
  59. package/dist-cjs/commands/GetCSVHeaderCommand.js +10 -0
  60. package/dist-cjs/commands/GetDeviceCommand.js +10 -0
  61. package/dist-cjs/commands/GetGroupCommand.js +10 -0
  62. package/dist-cjs/commands/GetIdentityProviderByIdentifierCommand.js +10 -0
  63. package/dist-cjs/commands/GetSigningCertificateCommand.js +10 -0
  64. package/dist-cjs/commands/GetUICustomizationCommand.js +10 -0
  65. package/dist-cjs/commands/GetUserAttributeVerificationCodeCommand.js +10 -0
  66. package/dist-cjs/commands/GetUserCommand.js +10 -0
  67. package/dist-cjs/commands/GetUserPoolMfaConfigCommand.js +10 -0
  68. package/dist-cjs/commands/GlobalSignOutCommand.js +10 -0
  69. package/dist-cjs/commands/InitiateAuthCommand.js +10 -0
  70. package/dist-cjs/commands/ListDevicesCommand.js +10 -0
  71. package/dist-cjs/commands/ListGroupsCommand.js +10 -0
  72. package/dist-cjs/commands/ListIdentityProvidersCommand.js +10 -0
  73. package/dist-cjs/commands/ListResourceServersCommand.js +10 -0
  74. package/dist-cjs/commands/ListTagsForResourceCommand.js +10 -0
  75. package/dist-cjs/commands/ListUserImportJobsCommand.js +10 -0
  76. package/dist-cjs/commands/ListUserPoolClientsCommand.js +10 -0
  77. package/dist-cjs/commands/ListUserPoolsCommand.js +10 -0
  78. package/dist-cjs/commands/ListUsersCommand.js +10 -0
  79. package/dist-cjs/commands/ListUsersInGroupCommand.js +10 -0
  80. package/dist-cjs/commands/ResendConfirmationCodeCommand.js +10 -0
  81. package/dist-cjs/commands/RespondToAuthChallengeCommand.js +10 -0
  82. package/dist-cjs/commands/RevokeTokenCommand.js +10 -0
  83. package/dist-cjs/commands/SetRiskConfigurationCommand.js +10 -0
  84. package/dist-cjs/commands/SetUICustomizationCommand.js +10 -0
  85. package/dist-cjs/commands/SetUserMFAPreferenceCommand.js +10 -0
  86. package/dist-cjs/commands/SetUserPoolMfaConfigCommand.js +10 -0
  87. package/dist-cjs/commands/SetUserSettingsCommand.js +10 -0
  88. package/dist-cjs/commands/SignUpCommand.js +11 -2
  89. package/dist-cjs/commands/StartUserImportJobCommand.js +10 -0
  90. package/dist-cjs/commands/StopUserImportJobCommand.js +10 -0
  91. package/dist-cjs/commands/TagResourceCommand.js +10 -0
  92. package/dist-cjs/commands/UntagResourceCommand.js +10 -0
  93. package/dist-cjs/commands/UpdateAuthEventFeedbackCommand.js +10 -0
  94. package/dist-cjs/commands/UpdateDeviceStatusCommand.js +10 -0
  95. package/dist-cjs/commands/UpdateGroupCommand.js +10 -0
  96. package/dist-cjs/commands/UpdateIdentityProviderCommand.js +10 -0
  97. package/dist-cjs/commands/UpdateResourceServerCommand.js +10 -0
  98. package/dist-cjs/commands/UpdateUserAttributesCommand.js +10 -0
  99. package/dist-cjs/commands/UpdateUserPoolClientCommand.js +10 -0
  100. package/dist-cjs/commands/UpdateUserPoolCommand.js +10 -0
  101. package/dist-cjs/commands/UpdateUserPoolDomainCommand.js +10 -0
  102. package/dist-cjs/commands/VerifySoftwareTokenCommand.js +10 -0
  103. package/dist-cjs/commands/VerifyUserAttributeCommand.js +10 -0
  104. package/dist-cjs/endpoint/EndpointParameters.js +13 -0
  105. package/dist-cjs/endpoint/endpointResolver.js +12 -0
  106. package/dist-cjs/endpoint/ruleset.js +318 -0
  107. package/dist-cjs/models/models_0.js +10 -19
  108. package/dist-cjs/models/models_1.js +15 -1
  109. package/dist-cjs/protocols/Aws_json1_1.js +12 -0
  110. package/dist-cjs/runtimeConfig.shared.js +3 -3
  111. package/dist-es/CognitoIdentityProviderClient.js +12 -9
  112. package/dist-es/commands/AddCustomAttributesCommand.js +10 -0
  113. package/dist-es/commands/AdminAddUserToGroupCommand.js +10 -0
  114. package/dist-es/commands/AdminConfirmSignUpCommand.js +10 -0
  115. package/dist-es/commands/AdminCreateUserCommand.js +10 -0
  116. package/dist-es/commands/AdminDeleteUserAttributesCommand.js +10 -0
  117. package/dist-es/commands/AdminDeleteUserCommand.js +10 -0
  118. package/dist-es/commands/AdminDisableProviderForUserCommand.js +10 -0
  119. package/dist-es/commands/AdminDisableUserCommand.js +10 -0
  120. package/dist-es/commands/AdminEnableUserCommand.js +10 -0
  121. package/dist-es/commands/AdminForgetDeviceCommand.js +10 -0
  122. package/dist-es/commands/AdminGetDeviceCommand.js +10 -0
  123. package/dist-es/commands/AdminGetUserCommand.js +10 -0
  124. package/dist-es/commands/AdminInitiateAuthCommand.js +10 -0
  125. package/dist-es/commands/AdminLinkProviderForUserCommand.js +10 -0
  126. package/dist-es/commands/AdminListDevicesCommand.js +10 -0
  127. package/dist-es/commands/AdminListGroupsForUserCommand.js +10 -0
  128. package/dist-es/commands/AdminListUserAuthEventsCommand.js +10 -0
  129. package/dist-es/commands/AdminRemoveUserFromGroupCommand.js +10 -0
  130. package/dist-es/commands/AdminResetUserPasswordCommand.js +10 -0
  131. package/dist-es/commands/AdminRespondToAuthChallengeCommand.js +10 -0
  132. package/dist-es/commands/AdminSetUserMFAPreferenceCommand.js +10 -0
  133. package/dist-es/commands/AdminSetUserPasswordCommand.js +10 -0
  134. package/dist-es/commands/AdminSetUserSettingsCommand.js +10 -0
  135. package/dist-es/commands/AdminUpdateAuthEventFeedbackCommand.js +10 -0
  136. package/dist-es/commands/AdminUpdateDeviceStatusCommand.js +10 -0
  137. package/dist-es/commands/AdminUpdateUserAttributesCommand.js +10 -0
  138. package/dist-es/commands/AdminUserGlobalSignOutCommand.js +10 -0
  139. package/dist-es/commands/AssociateSoftwareTokenCommand.js +10 -0
  140. package/dist-es/commands/ChangePasswordCommand.js +10 -0
  141. package/dist-es/commands/ConfirmDeviceCommand.js +10 -0
  142. package/dist-es/commands/ConfirmForgotPasswordCommand.js +10 -0
  143. package/dist-es/commands/ConfirmSignUpCommand.js +10 -0
  144. package/dist-es/commands/CreateGroupCommand.js +10 -0
  145. package/dist-es/commands/CreateIdentityProviderCommand.js +10 -0
  146. package/dist-es/commands/CreateResourceServerCommand.js +10 -0
  147. package/dist-es/commands/CreateUserImportJobCommand.js +10 -0
  148. package/dist-es/commands/CreateUserPoolClientCommand.js +10 -0
  149. package/dist-es/commands/CreateUserPoolCommand.js +10 -0
  150. package/dist-es/commands/CreateUserPoolDomainCommand.js +10 -0
  151. package/dist-es/commands/DeleteGroupCommand.js +10 -0
  152. package/dist-es/commands/DeleteIdentityProviderCommand.js +10 -0
  153. package/dist-es/commands/DeleteResourceServerCommand.js +10 -0
  154. package/dist-es/commands/DeleteUserAttributesCommand.js +10 -0
  155. package/dist-es/commands/DeleteUserCommand.js +10 -0
  156. package/dist-es/commands/DeleteUserPoolClientCommand.js +10 -0
  157. package/dist-es/commands/DeleteUserPoolCommand.js +10 -0
  158. package/dist-es/commands/DeleteUserPoolDomainCommand.js +10 -0
  159. package/dist-es/commands/DescribeIdentityProviderCommand.js +10 -0
  160. package/dist-es/commands/DescribeResourceServerCommand.js +10 -0
  161. package/dist-es/commands/DescribeRiskConfigurationCommand.js +10 -0
  162. package/dist-es/commands/DescribeUserImportJobCommand.js +10 -0
  163. package/dist-es/commands/DescribeUserPoolClientCommand.js +10 -0
  164. package/dist-es/commands/DescribeUserPoolCommand.js +10 -0
  165. package/dist-es/commands/DescribeUserPoolDomainCommand.js +10 -0
  166. package/dist-es/commands/ForgetDeviceCommand.js +10 -0
  167. package/dist-es/commands/ForgotPasswordCommand.js +10 -0
  168. package/dist-es/commands/GetCSVHeaderCommand.js +10 -0
  169. package/dist-es/commands/GetDeviceCommand.js +10 -0
  170. package/dist-es/commands/GetGroupCommand.js +10 -0
  171. package/dist-es/commands/GetIdentityProviderByIdentifierCommand.js +10 -0
  172. package/dist-es/commands/GetSigningCertificateCommand.js +10 -0
  173. package/dist-es/commands/GetUICustomizationCommand.js +10 -0
  174. package/dist-es/commands/GetUserAttributeVerificationCodeCommand.js +10 -0
  175. package/dist-es/commands/GetUserCommand.js +10 -0
  176. package/dist-es/commands/GetUserPoolMfaConfigCommand.js +10 -0
  177. package/dist-es/commands/GlobalSignOutCommand.js +10 -0
  178. package/dist-es/commands/InitiateAuthCommand.js +10 -0
  179. package/dist-es/commands/ListDevicesCommand.js +10 -0
  180. package/dist-es/commands/ListGroupsCommand.js +10 -0
  181. package/dist-es/commands/ListIdentityProvidersCommand.js +10 -0
  182. package/dist-es/commands/ListResourceServersCommand.js +10 -0
  183. package/dist-es/commands/ListTagsForResourceCommand.js +10 -0
  184. package/dist-es/commands/ListUserImportJobsCommand.js +10 -0
  185. package/dist-es/commands/ListUserPoolClientsCommand.js +10 -0
  186. package/dist-es/commands/ListUserPoolsCommand.js +10 -0
  187. package/dist-es/commands/ListUsersCommand.js +10 -0
  188. package/dist-es/commands/ListUsersInGroupCommand.js +10 -0
  189. package/dist-es/commands/ResendConfirmationCodeCommand.js +10 -0
  190. package/dist-es/commands/RespondToAuthChallengeCommand.js +10 -0
  191. package/dist-es/commands/RevokeTokenCommand.js +10 -0
  192. package/dist-es/commands/SetRiskConfigurationCommand.js +10 -0
  193. package/dist-es/commands/SetUICustomizationCommand.js +10 -0
  194. package/dist-es/commands/SetUserMFAPreferenceCommand.js +10 -0
  195. package/dist-es/commands/SetUserPoolMfaConfigCommand.js +10 -0
  196. package/dist-es/commands/SetUserSettingsCommand.js +10 -0
  197. package/dist-es/commands/SignUpCommand.js +11 -2
  198. package/dist-es/commands/StartUserImportJobCommand.js +10 -0
  199. package/dist-es/commands/StopUserImportJobCommand.js +10 -0
  200. package/dist-es/commands/TagResourceCommand.js +10 -0
  201. package/dist-es/commands/UntagResourceCommand.js +10 -0
  202. package/dist-es/commands/UpdateAuthEventFeedbackCommand.js +10 -0
  203. package/dist-es/commands/UpdateDeviceStatusCommand.js +10 -0
  204. package/dist-es/commands/UpdateGroupCommand.js +10 -0
  205. package/dist-es/commands/UpdateIdentityProviderCommand.js +10 -0
  206. package/dist-es/commands/UpdateResourceServerCommand.js +10 -0
  207. package/dist-es/commands/UpdateUserAttributesCommand.js +10 -0
  208. package/dist-es/commands/UpdateUserPoolClientCommand.js +10 -0
  209. package/dist-es/commands/UpdateUserPoolCommand.js +10 -0
  210. package/dist-es/commands/UpdateUserPoolDomainCommand.js +10 -0
  211. package/dist-es/commands/VerifySoftwareTokenCommand.js +10 -0
  212. package/dist-es/commands/VerifyUserAttributeCommand.js +10 -0
  213. package/dist-es/endpoint/EndpointParameters.js +8 -0
  214. package/dist-es/endpoint/endpointResolver.js +8 -0
  215. package/dist-es/endpoint/ruleset.js +315 -0
  216. package/dist-es/models/models_0.js +5 -13
  217. package/dist-es/models/models_1.js +13 -0
  218. package/dist-es/protocols/Aws_json1_1.js +12 -0
  219. package/dist-es/runtimeConfig.shared.js +2 -2
  220. package/dist-types/CognitoIdentityProvider.d.ts +11 -10
  221. package/dist-types/CognitoIdentityProviderClient.d.ts +6 -9
  222. package/dist-types/commands/AddCustomAttributesCommand.d.ts +2 -0
  223. package/dist-types/commands/AdminAddUserToGroupCommand.d.ts +2 -0
  224. package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +2 -0
  225. package/dist-types/commands/AdminCreateUserCommand.d.ts +2 -0
  226. package/dist-types/commands/AdminDeleteUserAttributesCommand.d.ts +2 -0
  227. package/dist-types/commands/AdminDeleteUserCommand.d.ts +2 -0
  228. package/dist-types/commands/AdminDisableProviderForUserCommand.d.ts +2 -0
  229. package/dist-types/commands/AdminDisableUserCommand.d.ts +5 -2
  230. package/dist-types/commands/AdminEnableUserCommand.d.ts +2 -0
  231. package/dist-types/commands/AdminForgetDeviceCommand.d.ts +2 -0
  232. package/dist-types/commands/AdminGetDeviceCommand.d.ts +2 -0
  233. package/dist-types/commands/AdminGetUserCommand.d.ts +2 -0
  234. package/dist-types/commands/AdminInitiateAuthCommand.d.ts +2 -0
  235. package/dist-types/commands/AdminLinkProviderForUserCommand.d.ts +2 -0
  236. package/dist-types/commands/AdminListDevicesCommand.d.ts +2 -0
  237. package/dist-types/commands/AdminListGroupsForUserCommand.d.ts +2 -0
  238. package/dist-types/commands/AdminListUserAuthEventsCommand.d.ts +2 -0
  239. package/dist-types/commands/AdminRemoveUserFromGroupCommand.d.ts +2 -0
  240. package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +2 -0
  241. package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +2 -0
  242. package/dist-types/commands/AdminSetUserMFAPreferenceCommand.d.ts +2 -0
  243. package/dist-types/commands/AdminSetUserPasswordCommand.d.ts +2 -0
  244. package/dist-types/commands/AdminSetUserSettingsCommand.d.ts +2 -0
  245. package/dist-types/commands/AdminUpdateAuthEventFeedbackCommand.d.ts +2 -0
  246. package/dist-types/commands/AdminUpdateDeviceStatusCommand.d.ts +2 -0
  247. package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +2 -0
  248. package/dist-types/commands/AdminUserGlobalSignOutCommand.d.ts +2 -0
  249. package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +2 -0
  250. package/dist-types/commands/ChangePasswordCommand.d.ts +2 -0
  251. package/dist-types/commands/ConfirmDeviceCommand.d.ts +2 -0
  252. package/dist-types/commands/ConfirmForgotPasswordCommand.d.ts +2 -0
  253. package/dist-types/commands/ConfirmSignUpCommand.d.ts +2 -0
  254. package/dist-types/commands/CreateGroupCommand.d.ts +2 -0
  255. package/dist-types/commands/CreateIdentityProviderCommand.d.ts +2 -0
  256. package/dist-types/commands/CreateResourceServerCommand.d.ts +2 -0
  257. package/dist-types/commands/CreateUserImportJobCommand.d.ts +2 -0
  258. package/dist-types/commands/CreateUserPoolClientCommand.d.ts +2 -0
  259. package/dist-types/commands/CreateUserPoolCommand.d.ts +2 -0
  260. package/dist-types/commands/CreateUserPoolDomainCommand.d.ts +2 -0
  261. package/dist-types/commands/DeleteGroupCommand.d.ts +2 -0
  262. package/dist-types/commands/DeleteIdentityProviderCommand.d.ts +2 -0
  263. package/dist-types/commands/DeleteResourceServerCommand.d.ts +2 -0
  264. package/dist-types/commands/DeleteUserAttributesCommand.d.ts +2 -0
  265. package/dist-types/commands/DeleteUserCommand.d.ts +2 -0
  266. package/dist-types/commands/DeleteUserPoolClientCommand.d.ts +2 -0
  267. package/dist-types/commands/DeleteUserPoolCommand.d.ts +2 -0
  268. package/dist-types/commands/DeleteUserPoolDomainCommand.d.ts +2 -0
  269. package/dist-types/commands/DescribeIdentityProviderCommand.d.ts +2 -0
  270. package/dist-types/commands/DescribeResourceServerCommand.d.ts +2 -0
  271. package/dist-types/commands/DescribeRiskConfigurationCommand.d.ts +2 -0
  272. package/dist-types/commands/DescribeUserImportJobCommand.d.ts +2 -0
  273. package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +2 -0
  274. package/dist-types/commands/DescribeUserPoolCommand.d.ts +2 -0
  275. package/dist-types/commands/DescribeUserPoolDomainCommand.d.ts +2 -0
  276. package/dist-types/commands/ForgetDeviceCommand.d.ts +2 -0
  277. package/dist-types/commands/ForgotPasswordCommand.d.ts +2 -0
  278. package/dist-types/commands/GetCSVHeaderCommand.d.ts +2 -0
  279. package/dist-types/commands/GetDeviceCommand.d.ts +2 -0
  280. package/dist-types/commands/GetGroupCommand.d.ts +2 -0
  281. package/dist-types/commands/GetIdentityProviderByIdentifierCommand.d.ts +2 -0
  282. package/dist-types/commands/GetSigningCertificateCommand.d.ts +5 -1
  283. package/dist-types/commands/GetUICustomizationCommand.d.ts +2 -0
  284. package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +2 -0
  285. package/dist-types/commands/GetUserCommand.d.ts +2 -0
  286. package/dist-types/commands/GetUserPoolMfaConfigCommand.d.ts +2 -0
  287. package/dist-types/commands/GlobalSignOutCommand.d.ts +4 -4
  288. package/dist-types/commands/InitiateAuthCommand.d.ts +2 -0
  289. package/dist-types/commands/ListDevicesCommand.d.ts +2 -0
  290. package/dist-types/commands/ListGroupsCommand.d.ts +2 -0
  291. package/dist-types/commands/ListIdentityProvidersCommand.d.ts +2 -0
  292. package/dist-types/commands/ListResourceServersCommand.d.ts +2 -0
  293. package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -0
  294. package/dist-types/commands/ListUserImportJobsCommand.d.ts +2 -0
  295. package/dist-types/commands/ListUserPoolClientsCommand.d.ts +2 -0
  296. package/dist-types/commands/ListUserPoolsCommand.d.ts +2 -0
  297. package/dist-types/commands/ListUsersCommand.d.ts +2 -0
  298. package/dist-types/commands/ListUsersInGroupCommand.d.ts +2 -0
  299. package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +2 -0
  300. package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +2 -0
  301. package/dist-types/commands/RevokeTokenCommand.d.ts +5 -3
  302. package/dist-types/commands/SetRiskConfigurationCommand.d.ts +2 -0
  303. package/dist-types/commands/SetUICustomizationCommand.d.ts +2 -0
  304. package/dist-types/commands/SetUserMFAPreferenceCommand.d.ts +2 -0
  305. package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +2 -0
  306. package/dist-types/commands/SetUserSettingsCommand.d.ts +2 -0
  307. package/dist-types/commands/SignUpCommand.d.ts +3 -2
  308. package/dist-types/commands/StartUserImportJobCommand.d.ts +2 -0
  309. package/dist-types/commands/StopUserImportJobCommand.d.ts +2 -0
  310. package/dist-types/commands/TagResourceCommand.d.ts +2 -0
  311. package/dist-types/commands/UntagResourceCommand.d.ts +2 -0
  312. package/dist-types/commands/UpdateAuthEventFeedbackCommand.d.ts +2 -0
  313. package/dist-types/commands/UpdateDeviceStatusCommand.d.ts +2 -0
  314. package/dist-types/commands/UpdateGroupCommand.d.ts +2 -0
  315. package/dist-types/commands/UpdateIdentityProviderCommand.d.ts +2 -0
  316. package/dist-types/commands/UpdateResourceServerCommand.d.ts +2 -0
  317. package/dist-types/commands/UpdateUserAttributesCommand.d.ts +2 -0
  318. package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +2 -0
  319. package/dist-types/commands/UpdateUserPoolCommand.d.ts +2 -0
  320. package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +2 -0
  321. package/dist-types/commands/VerifySoftwareTokenCommand.d.ts +2 -0
  322. package/dist-types/commands/VerifyUserAttributeCommand.d.ts +2 -0
  323. package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
  324. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  325. package/dist-types/endpoint/ruleset.d.ts +2 -0
  326. package/dist-types/models/models_0.d.ts +109 -148
  327. package/dist-types/models/models_1.d.ts +126 -21
  328. package/dist-types/runtimeConfig.browser.d.ts +4 -2
  329. package/dist-types/runtimeConfig.d.ts +4 -2
  330. package/dist-types/runtimeConfig.native.d.ts +4 -2
  331. package/dist-types/runtimeConfig.shared.d.ts +3 -1
  332. package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +15 -8
  333. package/dist-types/ts3.4/commands/AddCustomAttributesCommand.d.ts +2 -0
  334. package/dist-types/ts3.4/commands/AdminAddUserToGroupCommand.d.ts +2 -0
  335. package/dist-types/ts3.4/commands/AdminConfirmSignUpCommand.d.ts +2 -0
  336. package/dist-types/ts3.4/commands/AdminCreateUserCommand.d.ts +2 -0
  337. package/dist-types/ts3.4/commands/AdminDeleteUserAttributesCommand.d.ts +2 -0
  338. package/dist-types/ts3.4/commands/AdminDeleteUserCommand.d.ts +2 -0
  339. package/dist-types/ts3.4/commands/AdminDisableProviderForUserCommand.d.ts +2 -0
  340. package/dist-types/ts3.4/commands/AdminDisableUserCommand.d.ts +2 -0
  341. package/dist-types/ts3.4/commands/AdminEnableUserCommand.d.ts +2 -0
  342. package/dist-types/ts3.4/commands/AdminForgetDeviceCommand.d.ts +2 -0
  343. package/dist-types/ts3.4/commands/AdminGetDeviceCommand.d.ts +2 -0
  344. package/dist-types/ts3.4/commands/AdminGetUserCommand.d.ts +2 -0
  345. package/dist-types/ts3.4/commands/AdminInitiateAuthCommand.d.ts +2 -0
  346. package/dist-types/ts3.4/commands/AdminLinkProviderForUserCommand.d.ts +2 -0
  347. package/dist-types/ts3.4/commands/AdminListDevicesCommand.d.ts +2 -0
  348. package/dist-types/ts3.4/commands/AdminListGroupsForUserCommand.d.ts +2 -0
  349. package/dist-types/ts3.4/commands/AdminListUserAuthEventsCommand.d.ts +2 -0
  350. package/dist-types/ts3.4/commands/AdminRemoveUserFromGroupCommand.d.ts +2 -0
  351. package/dist-types/ts3.4/commands/AdminResetUserPasswordCommand.d.ts +2 -0
  352. package/dist-types/ts3.4/commands/AdminRespondToAuthChallengeCommand.d.ts +2 -0
  353. package/dist-types/ts3.4/commands/AdminSetUserMFAPreferenceCommand.d.ts +2 -0
  354. package/dist-types/ts3.4/commands/AdminSetUserPasswordCommand.d.ts +2 -0
  355. package/dist-types/ts3.4/commands/AdminSetUserSettingsCommand.d.ts +2 -0
  356. package/dist-types/ts3.4/commands/AdminUpdateAuthEventFeedbackCommand.d.ts +2 -0
  357. package/dist-types/ts3.4/commands/AdminUpdateDeviceStatusCommand.d.ts +2 -0
  358. package/dist-types/ts3.4/commands/AdminUpdateUserAttributesCommand.d.ts +2 -0
  359. package/dist-types/ts3.4/commands/AdminUserGlobalSignOutCommand.d.ts +2 -0
  360. package/dist-types/ts3.4/commands/AssociateSoftwareTokenCommand.d.ts +2 -0
  361. package/dist-types/ts3.4/commands/ChangePasswordCommand.d.ts +2 -0
  362. package/dist-types/ts3.4/commands/ConfirmDeviceCommand.d.ts +2 -0
  363. package/dist-types/ts3.4/commands/ConfirmForgotPasswordCommand.d.ts +2 -0
  364. package/dist-types/ts3.4/commands/ConfirmSignUpCommand.d.ts +2 -0
  365. package/dist-types/ts3.4/commands/CreateGroupCommand.d.ts +2 -0
  366. package/dist-types/ts3.4/commands/CreateIdentityProviderCommand.d.ts +2 -0
  367. package/dist-types/ts3.4/commands/CreateResourceServerCommand.d.ts +2 -0
  368. package/dist-types/ts3.4/commands/CreateUserImportJobCommand.d.ts +2 -0
  369. package/dist-types/ts3.4/commands/CreateUserPoolClientCommand.d.ts +2 -0
  370. package/dist-types/ts3.4/commands/CreateUserPoolCommand.d.ts +2 -0
  371. package/dist-types/ts3.4/commands/CreateUserPoolDomainCommand.d.ts +2 -0
  372. package/dist-types/ts3.4/commands/DeleteGroupCommand.d.ts +2 -0
  373. package/dist-types/ts3.4/commands/DeleteIdentityProviderCommand.d.ts +2 -0
  374. package/dist-types/ts3.4/commands/DeleteResourceServerCommand.d.ts +2 -0
  375. package/dist-types/ts3.4/commands/DeleteUserAttributesCommand.d.ts +2 -0
  376. package/dist-types/ts3.4/commands/DeleteUserCommand.d.ts +2 -0
  377. package/dist-types/ts3.4/commands/DeleteUserPoolClientCommand.d.ts +2 -0
  378. package/dist-types/ts3.4/commands/DeleteUserPoolCommand.d.ts +2 -0
  379. package/dist-types/ts3.4/commands/DeleteUserPoolDomainCommand.d.ts +2 -0
  380. package/dist-types/ts3.4/commands/DescribeIdentityProviderCommand.d.ts +2 -0
  381. package/dist-types/ts3.4/commands/DescribeResourceServerCommand.d.ts +2 -0
  382. package/dist-types/ts3.4/commands/DescribeRiskConfigurationCommand.d.ts +2 -0
  383. package/dist-types/ts3.4/commands/DescribeUserImportJobCommand.d.ts +2 -0
  384. package/dist-types/ts3.4/commands/DescribeUserPoolClientCommand.d.ts +2 -0
  385. package/dist-types/ts3.4/commands/DescribeUserPoolCommand.d.ts +2 -0
  386. package/dist-types/ts3.4/commands/DescribeUserPoolDomainCommand.d.ts +2 -0
  387. package/dist-types/ts3.4/commands/ForgetDeviceCommand.d.ts +2 -0
  388. package/dist-types/ts3.4/commands/ForgotPasswordCommand.d.ts +2 -0
  389. package/dist-types/ts3.4/commands/GetCSVHeaderCommand.d.ts +2 -0
  390. package/dist-types/ts3.4/commands/GetDeviceCommand.d.ts +2 -0
  391. package/dist-types/ts3.4/commands/GetGroupCommand.d.ts +2 -0
  392. package/dist-types/ts3.4/commands/GetIdentityProviderByIdentifierCommand.d.ts +2 -0
  393. package/dist-types/ts3.4/commands/GetSigningCertificateCommand.d.ts +2 -0
  394. package/dist-types/ts3.4/commands/GetUICustomizationCommand.d.ts +2 -0
  395. package/dist-types/ts3.4/commands/GetUserAttributeVerificationCodeCommand.d.ts +2 -0
  396. package/dist-types/ts3.4/commands/GetUserCommand.d.ts +2 -0
  397. package/dist-types/ts3.4/commands/GetUserPoolMfaConfigCommand.d.ts +2 -0
  398. package/dist-types/ts3.4/commands/GlobalSignOutCommand.d.ts +2 -0
  399. package/dist-types/ts3.4/commands/InitiateAuthCommand.d.ts +2 -0
  400. package/dist-types/ts3.4/commands/ListDevicesCommand.d.ts +2 -0
  401. package/dist-types/ts3.4/commands/ListGroupsCommand.d.ts +2 -0
  402. package/dist-types/ts3.4/commands/ListIdentityProvidersCommand.d.ts +2 -0
  403. package/dist-types/ts3.4/commands/ListResourceServersCommand.d.ts +2 -0
  404. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -0
  405. package/dist-types/ts3.4/commands/ListUserImportJobsCommand.d.ts +2 -0
  406. package/dist-types/ts3.4/commands/ListUserPoolClientsCommand.d.ts +2 -0
  407. package/dist-types/ts3.4/commands/ListUserPoolsCommand.d.ts +2 -0
  408. package/dist-types/ts3.4/commands/ListUsersCommand.d.ts +2 -0
  409. package/dist-types/ts3.4/commands/ListUsersInGroupCommand.d.ts +2 -0
  410. package/dist-types/ts3.4/commands/ResendConfirmationCodeCommand.d.ts +2 -0
  411. package/dist-types/ts3.4/commands/RespondToAuthChallengeCommand.d.ts +2 -0
  412. package/dist-types/ts3.4/commands/RevokeTokenCommand.d.ts +2 -0
  413. package/dist-types/ts3.4/commands/SetRiskConfigurationCommand.d.ts +2 -0
  414. package/dist-types/ts3.4/commands/SetUICustomizationCommand.d.ts +2 -0
  415. package/dist-types/ts3.4/commands/SetUserMFAPreferenceCommand.d.ts +2 -0
  416. package/dist-types/ts3.4/commands/SetUserPoolMfaConfigCommand.d.ts +2 -0
  417. package/dist-types/ts3.4/commands/SetUserSettingsCommand.d.ts +2 -0
  418. package/dist-types/ts3.4/commands/SignUpCommand.d.ts +3 -2
  419. package/dist-types/ts3.4/commands/StartUserImportJobCommand.d.ts +2 -0
  420. package/dist-types/ts3.4/commands/StopUserImportJobCommand.d.ts +2 -0
  421. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +2 -0
  422. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +2 -0
  423. package/dist-types/ts3.4/commands/UpdateAuthEventFeedbackCommand.d.ts +2 -0
  424. package/dist-types/ts3.4/commands/UpdateDeviceStatusCommand.d.ts +2 -0
  425. package/dist-types/ts3.4/commands/UpdateGroupCommand.d.ts +2 -0
  426. package/dist-types/ts3.4/commands/UpdateIdentityProviderCommand.d.ts +2 -0
  427. package/dist-types/ts3.4/commands/UpdateResourceServerCommand.d.ts +2 -0
  428. package/dist-types/ts3.4/commands/UpdateUserAttributesCommand.d.ts +2 -0
  429. package/dist-types/ts3.4/commands/UpdateUserPoolClientCommand.d.ts +2 -0
  430. package/dist-types/ts3.4/commands/UpdateUserPoolCommand.d.ts +2 -0
  431. package/dist-types/ts3.4/commands/UpdateUserPoolDomainCommand.d.ts +2 -0
  432. package/dist-types/ts3.4/commands/VerifySoftwareTokenCommand.d.ts +2 -0
  433. package/dist-types/ts3.4/commands/VerifyUserAttributeCommand.d.ts +2 -0
  434. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +26 -0
  435. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  436. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  437. package/dist-types/ts3.4/models/models_0.d.ts +6 -14
  438. package/dist-types/ts3.4/models/models_1.d.ts +18 -0
  439. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +14 -4
  440. package/dist-types/ts3.4/runtimeConfig.d.ts +14 -4
  441. package/dist-types/ts3.4/runtimeConfig.native.d.ts +14 -3
  442. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +6 -1
  443. package/package.json +5 -3
  444. package/dist-cjs/endpoints.js +0 -177
  445. package/dist-es/endpoints.js +0 -173
  446. package/dist-types/endpoints.d.ts +0 -2
  447. package/dist-types/ts3.4/endpoints.d.ts +0 -2
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -8,8 +9,17 @@ export class UpdateUserPoolCommand extends $Command {
8
9
  super();
9
10
  this.input = input;
10
11
  }
12
+ static getEndpointParameterInstructions() {
13
+ return {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
19
+ }
11
20
  resolveMiddleware(clientStack, configuration, options) {
12
21
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateUserPoolCommand.getEndpointParameterInstructions()));
13
23
  this.middlewareStack.use(getAwsAuthPlugin(configuration));
14
24
  const stack = clientStack.concat(this.middlewareStack);
15
25
  const { logger } = configuration;
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -8,8 +9,17 @@ export class UpdateUserPoolDomainCommand extends $Command {
8
9
  super();
9
10
  this.input = input;
10
11
  }
12
+ static getEndpointParameterInstructions() {
13
+ return {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
19
+ }
11
20
  resolveMiddleware(clientStack, configuration, options) {
12
21
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, UpdateUserPoolDomainCommand.getEndpointParameterInstructions()));
13
23
  this.middlewareStack.use(getAwsAuthPlugin(configuration));
14
24
  const stack = clientStack.concat(this.middlewareStack);
15
25
  const { logger } = configuration;
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
3
4
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -8,8 +9,17 @@ export class VerifySoftwareTokenCommand extends $Command {
8
9
  super();
9
10
  this.input = input;
10
11
  }
12
+ static getEndpointParameterInstructions() {
13
+ return {
14
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
15
+ Endpoint: { type: "builtInParams", name: "endpoint" },
16
+ Region: { type: "builtInParams", name: "region" },
17
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
18
+ };
19
+ }
11
20
  resolveMiddleware(clientStack, configuration, options) {
12
21
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, VerifySoftwareTokenCommand.getEndpointParameterInstructions()));
13
23
  this.middlewareStack.use(getAwsAuthPlugin(configuration));
14
24
  const stack = clientStack.concat(this.middlewareStack);
15
25
  const { logger } = configuration;
@@ -1,3 +1,4 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { VerifyUserAttributeRequestFilterSensitiveLog, VerifyUserAttributeResponseFilterSensitiveLog, } from "../models/models_1";
@@ -7,8 +8,17 @@ export class VerifyUserAttributeCommand extends $Command {
7
8
  super();
8
9
  this.input = input;
9
10
  }
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
10
19
  resolveMiddleware(clientStack, configuration, options) {
11
20
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, VerifyUserAttributeCommand.getEndpointParameterInstructions()));
12
22
  const stack = clientStack.concat(this.middlewareStack);
13
23
  const { logger } = configuration;
14
24
  const clientName = "CognitoIdentityProviderClient";
@@ -0,0 +1,8 @@
1
+ export const resolveClientEndpointParameters = (options) => {
2
+ return {
3
+ ...options,
4
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
6
+ defaultSigningName: "cognito-idp",
7
+ };
8
+ };
@@ -0,0 +1,8 @@
1
+ import { resolveEndpoint } from "@aws-sdk/util-endpoints";
2
+ import { ruleSet } from "./ruleset";
3
+ export const defaultEndpointResolver = (endpointParams, context = {}) => {
4
+ return resolveEndpoint(ruleSet, {
5
+ endpointParams: endpointParams,
6
+ logger: context.logger,
7
+ });
8
+ };
@@ -0,0 +1,315 @@
1
+ export const ruleSet = {
2
+ version: "1.0",
3
+ parameters: {
4
+ Region: {
5
+ builtIn: "AWS::Region",
6
+ required: false,
7
+ documentation: "The AWS region used to dispatch the request.",
8
+ type: "String",
9
+ },
10
+ UseDualStack: {
11
+ builtIn: "AWS::UseDualStack",
12
+ required: true,
13
+ default: false,
14
+ documentation: "When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.",
15
+ type: "Boolean",
16
+ },
17
+ UseFIPS: {
18
+ builtIn: "AWS::UseFIPS",
19
+ required: true,
20
+ default: false,
21
+ documentation: "When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.",
22
+ type: "Boolean",
23
+ },
24
+ Endpoint: {
25
+ builtIn: "SDK::Endpoint",
26
+ required: false,
27
+ documentation: "Override the endpoint used to send this request",
28
+ type: "String",
29
+ },
30
+ },
31
+ rules: [
32
+ {
33
+ conditions: [
34
+ {
35
+ fn: "aws.partition",
36
+ argv: [
37
+ {
38
+ ref: "Region",
39
+ },
40
+ ],
41
+ assign: "PartitionResult",
42
+ },
43
+ ],
44
+ type: "tree",
45
+ rules: [
46
+ {
47
+ conditions: [
48
+ {
49
+ fn: "isSet",
50
+ argv: [
51
+ {
52
+ ref: "Endpoint",
53
+ },
54
+ ],
55
+ },
56
+ {
57
+ fn: "parseURL",
58
+ argv: [
59
+ {
60
+ ref: "Endpoint",
61
+ },
62
+ ],
63
+ assign: "url",
64
+ },
65
+ ],
66
+ type: "tree",
67
+ rules: [
68
+ {
69
+ conditions: [
70
+ {
71
+ fn: "booleanEquals",
72
+ argv: [
73
+ {
74
+ ref: "UseFIPS",
75
+ },
76
+ true,
77
+ ],
78
+ },
79
+ ],
80
+ error: "Invalid Configuration: FIPS and custom endpoint are not supported",
81
+ type: "error",
82
+ },
83
+ {
84
+ conditions: [],
85
+ type: "tree",
86
+ rules: [
87
+ {
88
+ conditions: [
89
+ {
90
+ fn: "booleanEquals",
91
+ argv: [
92
+ {
93
+ ref: "UseDualStack",
94
+ },
95
+ true,
96
+ ],
97
+ },
98
+ ],
99
+ error: "Invalid Configuration: Dualstack and custom endpoint are not supported",
100
+ type: "error",
101
+ },
102
+ {
103
+ conditions: [],
104
+ endpoint: {
105
+ url: {
106
+ ref: "Endpoint",
107
+ },
108
+ properties: {},
109
+ headers: {},
110
+ },
111
+ type: "endpoint",
112
+ },
113
+ ],
114
+ },
115
+ ],
116
+ },
117
+ {
118
+ conditions: [
119
+ {
120
+ fn: "booleanEquals",
121
+ argv: [
122
+ {
123
+ ref: "UseFIPS",
124
+ },
125
+ true,
126
+ ],
127
+ },
128
+ {
129
+ fn: "booleanEquals",
130
+ argv: [
131
+ {
132
+ ref: "UseDualStack",
133
+ },
134
+ true,
135
+ ],
136
+ },
137
+ ],
138
+ type: "tree",
139
+ rules: [
140
+ {
141
+ conditions: [
142
+ {
143
+ fn: "booleanEquals",
144
+ argv: [
145
+ true,
146
+ {
147
+ fn: "getAttr",
148
+ argv: [
149
+ {
150
+ ref: "PartitionResult",
151
+ },
152
+ "supportsFIPS",
153
+ ],
154
+ },
155
+ ],
156
+ },
157
+ {
158
+ fn: "booleanEquals",
159
+ argv: [
160
+ true,
161
+ {
162
+ fn: "getAttr",
163
+ argv: [
164
+ {
165
+ ref: "PartitionResult",
166
+ },
167
+ "supportsDualStack",
168
+ ],
169
+ },
170
+ ],
171
+ },
172
+ ],
173
+ type: "tree",
174
+ rules: [
175
+ {
176
+ conditions: [],
177
+ endpoint: {
178
+ url: "https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",
179
+ properties: {},
180
+ headers: {},
181
+ },
182
+ type: "endpoint",
183
+ },
184
+ ],
185
+ },
186
+ {
187
+ conditions: [],
188
+ error: "FIPS and DualStack are enabled, but this partition does not support one or both",
189
+ type: "error",
190
+ },
191
+ ],
192
+ },
193
+ {
194
+ conditions: [
195
+ {
196
+ fn: "booleanEquals",
197
+ argv: [
198
+ {
199
+ ref: "UseFIPS",
200
+ },
201
+ true,
202
+ ],
203
+ },
204
+ ],
205
+ type: "tree",
206
+ rules: [
207
+ {
208
+ conditions: [
209
+ {
210
+ fn: "booleanEquals",
211
+ argv: [
212
+ true,
213
+ {
214
+ fn: "getAttr",
215
+ argv: [
216
+ {
217
+ ref: "PartitionResult",
218
+ },
219
+ "supportsFIPS",
220
+ ],
221
+ },
222
+ ],
223
+ },
224
+ ],
225
+ type: "tree",
226
+ rules: [
227
+ {
228
+ conditions: [],
229
+ type: "tree",
230
+ rules: [
231
+ {
232
+ conditions: [],
233
+ endpoint: {
234
+ url: "https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}",
235
+ properties: {},
236
+ headers: {},
237
+ },
238
+ type: "endpoint",
239
+ },
240
+ ],
241
+ },
242
+ ],
243
+ },
244
+ {
245
+ conditions: [],
246
+ error: "FIPS is enabled but this partition does not support FIPS",
247
+ type: "error",
248
+ },
249
+ ],
250
+ },
251
+ {
252
+ conditions: [
253
+ {
254
+ fn: "booleanEquals",
255
+ argv: [
256
+ {
257
+ ref: "UseDualStack",
258
+ },
259
+ true,
260
+ ],
261
+ },
262
+ ],
263
+ type: "tree",
264
+ rules: [
265
+ {
266
+ conditions: [
267
+ {
268
+ fn: "booleanEquals",
269
+ argv: [
270
+ true,
271
+ {
272
+ fn: "getAttr",
273
+ argv: [
274
+ {
275
+ ref: "PartitionResult",
276
+ },
277
+ "supportsDualStack",
278
+ ],
279
+ },
280
+ ],
281
+ },
282
+ ],
283
+ type: "tree",
284
+ rules: [
285
+ {
286
+ conditions: [],
287
+ endpoint: {
288
+ url: "https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}",
289
+ properties: {},
290
+ headers: {},
291
+ },
292
+ type: "endpoint",
293
+ },
294
+ ],
295
+ },
296
+ {
297
+ conditions: [],
298
+ error: "DualStack is enabled but this partition does not support DualStack",
299
+ type: "error",
300
+ },
301
+ ],
302
+ },
303
+ {
304
+ conditions: [],
305
+ endpoint: {
306
+ url: "https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}",
307
+ properties: {},
308
+ headers: {},
309
+ },
310
+ type: "endpoint",
311
+ },
312
+ ],
313
+ },
314
+ ],
315
+ };
@@ -542,6 +542,11 @@ export var UserImportJobStatusType;
542
542
  UserImportJobStatusType["Stopping"] = "Stopping";
543
543
  UserImportJobStatusType["Succeeded"] = "Succeeded";
544
544
  })(UserImportJobStatusType || (UserImportJobStatusType = {}));
545
+ export var DeletionProtectionType;
546
+ (function (DeletionProtectionType) {
547
+ DeletionProtectionType["ACTIVE"] = "ACTIVE";
548
+ DeletionProtectionType["INACTIVE"] = "INACTIVE";
549
+ })(DeletionProtectionType || (DeletionProtectionType = {}));
545
550
  export var EmailSendingAccountType;
546
551
  (function (EmailSendingAccountType) {
547
552
  EmailSendingAccountType["COGNITO_DEFAULT"] = "COGNITO_DEFAULT";
@@ -1505,16 +1510,3 @@ export const SetUserSettingsRequestFilterSensitiveLog = (obj) => ({
1505
1510
  export const SetUserSettingsResponseFilterSensitiveLog = (obj) => ({
1506
1511
  ...obj,
1507
1512
  });
1508
- export const SignUpRequestFilterSensitiveLog = (obj) => ({
1509
- ...obj,
1510
- ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
1511
- ...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
1512
- ...(obj.Username && { Username: SENSITIVE_STRING }),
1513
- ...(obj.Password && { Password: SENSITIVE_STRING }),
1514
- ...(obj.UserAttributes && {
1515
- UserAttributes: obj.UserAttributes.map((item) => AttributeTypeFilterSensitiveLog(item)),
1516
- }),
1517
- ...(obj.ValidationData && {
1518
- ValidationData: obj.ValidationData.map((item) => AttributeTypeFilterSensitiveLog(item)),
1519
- }),
1520
- });
@@ -18,6 +18,19 @@ export var VerifySoftwareTokenResponseType;
18
18
  VerifySoftwareTokenResponseType["ERROR"] = "ERROR";
19
19
  VerifySoftwareTokenResponseType["SUCCESS"] = "SUCCESS";
20
20
  })(VerifySoftwareTokenResponseType || (VerifySoftwareTokenResponseType = {}));
21
+ export const SignUpRequestFilterSensitiveLog = (obj) => ({
22
+ ...obj,
23
+ ...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
24
+ ...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
25
+ ...(obj.Username && { Username: SENSITIVE_STRING }),
26
+ ...(obj.Password && { Password: SENSITIVE_STRING }),
27
+ ...(obj.UserAttributes && {
28
+ UserAttributes: obj.UserAttributes.map((item) => AttributeTypeFilterSensitiveLog(item)),
29
+ }),
30
+ ...(obj.ValidationData && {
31
+ ValidationData: obj.ValidationData.map((item) => AttributeTypeFilterSensitiveLog(item)),
32
+ }),
33
+ });
21
34
  export const SignUpResponseFilterSensitiveLog = (obj) => ({
22
35
  ...obj,
23
36
  });
@@ -3128,6 +3128,9 @@ const deserializeAws_json1_1DeleteIdentityProviderCommandError = async (output,
3128
3128
  };
3129
3129
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3130
3130
  switch (errorCode) {
3131
+ case "ConcurrentModificationException":
3132
+ case "com.amazonaws.cognitoidentityprovider#ConcurrentModificationException":
3133
+ throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
3131
3134
  case "InternalErrorException":
3132
3135
  case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
3133
3136
  throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
@@ -3371,6 +3374,9 @@ const deserializeAws_json1_1DeleteUserPoolClientCommandError = async (output, co
3371
3374
  };
3372
3375
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3373
3376
  switch (errorCode) {
3377
+ case "ConcurrentModificationException":
3378
+ case "com.amazonaws.cognitoidentityprovider#ConcurrentModificationException":
3379
+ throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
3374
3380
  case "InternalErrorException":
3375
3381
  case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
3376
3382
  throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
@@ -5855,6 +5861,9 @@ const deserializeAws_json1_1UpdateIdentityProviderCommandError = async (output,
5855
5861
  };
5856
5862
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
5857
5863
  switch (errorCode) {
5864
+ case "ConcurrentModificationException":
5865
+ case "com.amazonaws.cognitoidentityprovider#ConcurrentModificationException":
5866
+ throw await deserializeAws_json1_1ConcurrentModificationExceptionResponse(parsedOutput, context);
5858
5867
  case "InternalErrorException":
5859
5868
  case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
5860
5869
  throw await deserializeAws_json1_1InternalErrorExceptionResponse(parsedOutput, context);
@@ -7277,6 +7286,7 @@ const serializeAws_json1_1CreateUserPoolRequest = (input, context) => {
7277
7286
  ...(input.AutoVerifiedAttributes != null && {
7278
7287
  AutoVerifiedAttributes: serializeAws_json1_1VerifiedAttributesListType(input.AutoVerifiedAttributes, context),
7279
7288
  }),
7289
+ ...(input.DeletionProtection != null && { DeletionProtection: input.DeletionProtection }),
7280
7290
  ...(input.DeviceConfiguration != null && {
7281
7291
  DeviceConfiguration: serializeAws_json1_1DeviceConfigurationType(input.DeviceConfiguration, context),
7282
7292
  }),
@@ -8176,6 +8186,7 @@ const serializeAws_json1_1UpdateUserPoolRequest = (input, context) => {
8176
8186
  ...(input.AutoVerifiedAttributes != null && {
8177
8187
  AutoVerifiedAttributes: serializeAws_json1_1VerifiedAttributesListType(input.AutoVerifiedAttributes, context),
8178
8188
  }),
8189
+ ...(input.DeletionProtection != null && { DeletionProtection: input.DeletionProtection }),
8179
8190
  ...(input.DeviceConfiguration != null && {
8180
8191
  DeviceConfiguration: serializeAws_json1_1DeviceConfigurationType(input.DeviceConfiguration, context),
8181
8192
  }),
@@ -9963,6 +9974,7 @@ const deserializeAws_json1_1UserPoolType = (output, context) => {
9963
9974
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreationDate)))
9964
9975
  : undefined,
9965
9976
  CustomDomain: __expectString(output.CustomDomain),
9977
+ DeletionProtection: __expectString(output.DeletionProtection),
9966
9978
  DeviceConfiguration: output.DeviceConfiguration != null
9967
9979
  ? deserializeAws_json1_1DeviceConfigurationType(output.DeviceConfiguration, context)
9968
9980
  : undefined,
@@ -1,10 +1,10 @@
1
1
  import { parseUrl } from "@aws-sdk/url-parser";
2
- import { defaultRegionInfoProvider } from "./endpoints";
2
+ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
3
3
  export const getRuntimeConfig = (config) => ({
4
4
  apiVersion: "2016-04-18",
5
5
  disableHostPrefix: config?.disableHostPrefix ?? false,
6
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
6
7
  logger: config?.logger ?? {},
7
- regionInfoProvider: config?.regionInfoProvider ?? defaultRegionInfoProvider,
8
8
  serviceId: config?.serviceId ?? "Cognito Identity Provider",
9
9
  urlParser: config?.urlParser ?? parseUrl,
10
10
  });
@@ -216,8 +216,9 @@ export declare class CognitoIdentityProvider extends CognitoIdentityProviderClie
216
216
  adminDisableProviderForUser(args: AdminDisableProviderForUserCommandInput, cb: (err: any, data?: AdminDisableProviderForUserCommandOutput) => void): void;
217
217
  adminDisableProviderForUser(args: AdminDisableProviderForUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AdminDisableProviderForUserCommandOutput) => void): void;
218
218
  /**
219
- * <p>Disables the specified user.</p>
220
- * <p>Calling this action requires developer credentials.</p>
219
+ * <p>Deactivates a user and revokes all access tokens for the user. A deactivated user can't sign in,
220
+ * but still appears in the responses to <code>GetUser</code> and <code>ListUsers</code> API requests.</p>
221
+ * <p>You must make this API request with Amazon Web Services credentials that have <code>cognito-idp:AdminDisableUser</code> permissions.</p>
221
222
  */
222
223
  adminDisableUser(args: AdminDisableUserCommandInput, options?: __HttpHandlerOptions): Promise<AdminDisableUserCommandOutput>;
223
224
  adminDisableUser(args: AdminDisableUserCommandInput, cb: (err: any, data?: AdminDisableUserCommandOutput) => void): void;
@@ -749,7 +750,9 @@ export declare class CognitoIdentityProvider extends CognitoIdentityProviderClie
749
750
  getIdentityProviderByIdentifier(args: GetIdentityProviderByIdentifierCommandInput, cb: (err: any, data?: GetIdentityProviderByIdentifierCommandOutput) => void): void;
750
751
  getIdentityProviderByIdentifier(args: GetIdentityProviderByIdentifierCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetIdentityProviderByIdentifierCommandOutput) => void): void;
751
752
  /**
752
- * <p>This method takes a user pool ID, and returns the signing certificate.</p>
753
+ * <p>This method takes a user pool ID, and returns the signing certificate. The issued certificate is valid for 10 years from the date of issue.</p>
754
+ * <p>Amazon Cognito issues and assigns a new signing certificate annually. This process returns a new value in the response to <code>GetSigningCertificate</code>,
755
+ * but doesn't invalidate the original certificate.</p>
753
756
  */
754
757
  getSigningCertificate(args: GetSigningCertificateCommandInput, options?: __HttpHandlerOptions): Promise<GetSigningCertificateCommandOutput>;
755
758
  getSigningCertificate(args: GetSigningCertificateCommandInput, cb: (err: any, data?: GetSigningCertificateCommandOutput) => void): void;
@@ -804,10 +807,8 @@ export declare class CognitoIdentityProvider extends CognitoIdentityProviderClie
804
807
  getUserPoolMfaConfig(args: GetUserPoolMfaConfigCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserPoolMfaConfigCommandOutput) => void): void;
805
808
  /**
806
809
  * <p>Signs out users from all devices. It also invalidates all refresh tokens that Amazon Cognito
807
- * has issued to a user. The user's current access and ID tokens remain valid until their
808
- * expiry. By default, access and ID tokens expire one hour after Amazon Cognito issues them. A user
809
- * can still use a hosted UI cookie to retrieve new tokens for the duration of the cookie
810
- * validity period of 1 hour.</p>
810
+ * has issued to a user. A user can still use a hosted UI cookie to retrieve new tokens
811
+ * for the duration of the 1-hour cookie validity period.</p>
811
812
  */
812
813
  globalSignOut(args: GlobalSignOutCommandInput, options?: __HttpHandlerOptions): Promise<GlobalSignOutCommandOutput>;
813
814
  globalSignOut(args: GlobalSignOutCommandInput, cb: (err: any, data?: GlobalSignOutCommandOutput) => void): void;
@@ -952,9 +953,9 @@ export declare class CognitoIdentityProvider extends CognitoIdentityProviderClie
952
953
  respondToAuthChallenge(args: RespondToAuthChallengeCommandInput, cb: (err: any, data?: RespondToAuthChallengeCommandOutput) => void): void;
953
954
  respondToAuthChallenge(args: RespondToAuthChallengeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RespondToAuthChallengeCommandOutput) => void): void;
954
955
  /**
955
- * <p>Revokes all of the access tokens generated by the specified refresh token. After the
956
- * token is revoked, you can't use the revoked token to access Amazon Cognito authenticated
957
- * APIs.</p>
956
+ * <p>Revokes all of the access tokens generated by, and at the same time as, the specified
957
+ * refresh token. After a token is revoked, you can't use the revoked token to access
958
+ * Amazon Cognito user APIs, or to authorize access to your resource server.</p>
958
959
  */
959
960
  revokeToken(args: RevokeTokenCommandInput, options?: __HttpHandlerOptions): Promise<RevokeTokenCommandOutput>;
960
961
  revokeToken(args: RevokeTokenCommandInput, cb: (err: any, data?: RevokeTokenCommandOutput) => void): void;