@aws-sdk/client-cognito-identity-provider 3.624.0 → 3.625.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 (36) hide show
  1. package/dist-cjs/index.js +70 -37
  2. package/dist-es/models/models_0.js +14 -24
  3. package/dist-es/models/models_1.js +24 -0
  4. package/dist-es/protocols/Aws_json1_1.js +14 -2
  5. package/dist-types/CognitoIdentityProvider.d.ts +5 -5
  6. package/dist-types/CognitoIdentityProviderClient.d.ts +5 -5
  7. package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +6 -9
  8. package/dist-types/commands/AdminCreateUserCommand.d.ts +1 -1
  9. package/dist-types/commands/AdminInitiateAuthCommand.d.ts +1 -1
  10. package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +1 -1
  11. package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +5 -1
  12. package/dist-types/commands/AdminSetUserPasswordCommand.d.ts +4 -0
  13. package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +1 -1
  14. package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +2 -2
  15. package/dist-types/commands/ChangePasswordCommand.d.ts +4 -0
  16. package/dist-types/commands/ConfirmForgotPasswordCommand.d.ts +4 -0
  17. package/dist-types/commands/CreateUserPoolCommand.d.ts +3 -1
  18. package/dist-types/commands/DescribeUserPoolCommand.d.ts +1 -0
  19. package/dist-types/commands/ForgotPasswordCommand.d.ts +1 -1
  20. package/dist-types/commands/GetLogDeliveryConfigurationCommand.d.ts +9 -3
  21. package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
  22. package/dist-types/commands/InitiateAuthCommand.d.ts +1 -1
  23. package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +1 -1
  24. package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +5 -1
  25. package/dist-types/commands/SetLogDeliveryConfigurationCommand.d.ts +19 -7
  26. package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +1 -1
  27. package/dist-types/commands/SignUpCommand.d.ts +1 -1
  28. package/dist-types/commands/UpdateUserAttributesCommand.d.ts +1 -1
  29. package/dist-types/commands/UpdateUserPoolCommand.d.ts +2 -1
  30. package/dist-types/index.d.ts +5 -5
  31. package/dist-types/models/models_0.d.ts +90 -54
  32. package/dist-types/models/models_1.d.ts +43 -2
  33. package/dist-types/ts3.4/commands/SetLogDeliveryConfigurationCommand.d.ts +4 -2
  34. package/dist-types/ts3.4/models/models_0.d.ts +21 -18
  35. package/dist-types/ts3.4/models/models_1.d.ts +19 -0
  36. package/package.json +1 -1
package/dist-cjs/index.js CHANGED
@@ -214,6 +214,7 @@ __export(src_exports, {
214
214
  MessageActionType: () => MessageActionType,
215
215
  NotAuthorizedException: () => NotAuthorizedException,
216
216
  OAuthFlowType: () => OAuthFlowType,
217
+ PasswordHistoryPolicyViolationException: () => PasswordHistoryPolicyViolationException,
217
218
  PasswordResetRequiredException: () => PasswordResetRequiredException,
218
219
  PreTokenGenerationLambdaVersionType: () => PreTokenGenerationLambdaVersionType,
219
220
  PreconditionNotMetException: () => PreconditionNotMetException,
@@ -1042,6 +1043,23 @@ var _ExpiredCodeException = class _ExpiredCodeException extends CognitoIdentityP
1042
1043
  };
1043
1044
  __name(_ExpiredCodeException, "ExpiredCodeException");
1044
1045
  var ExpiredCodeException = _ExpiredCodeException;
1046
+ var _PasswordHistoryPolicyViolationException = class _PasswordHistoryPolicyViolationException extends CognitoIdentityProviderServiceException {
1047
+ /**
1048
+ * @internal
1049
+ */
1050
+ constructor(opts) {
1051
+ super({
1052
+ name: "PasswordHistoryPolicyViolationException",
1053
+ $fault: "client",
1054
+ ...opts
1055
+ });
1056
+ this.name = "PasswordHistoryPolicyViolationException";
1057
+ this.$fault = "client";
1058
+ Object.setPrototypeOf(this, _PasswordHistoryPolicyViolationException.prototype);
1059
+ }
1060
+ };
1061
+ __name(_PasswordHistoryPolicyViolationException, "PasswordHistoryPolicyViolationException");
1062
+ var PasswordHistoryPolicyViolationException = _PasswordHistoryPolicyViolationException;
1045
1063
  var _SoftwareTokenMFANotFoundException = class _SoftwareTokenMFANotFoundException extends CognitoIdentityProviderServiceException {
1046
1064
  /**
1047
1065
  * @internal
@@ -1308,10 +1326,12 @@ var DomainStatusType = {
1308
1326
  UPDATING: "UPDATING"
1309
1327
  };
1310
1328
  var EventSourceName = {
1329
+ USER_AUTH_EVENTS: "userAuthEvents",
1311
1330
  USER_NOTIFICATION: "userNotification"
1312
1331
  };
1313
1332
  var LogLevel = {
1314
- ERROR: "ERROR"
1333
+ ERROR: "ERROR",
1334
+ INFO: "INFO"
1315
1335
  };
1316
1336
  var _UnauthorizedException = class _UnauthorizedException extends CognitoIdentityProviderServiceException {
1317
1337
  /**
@@ -1330,40 +1350,6 @@ var _UnauthorizedException = class _UnauthorizedException extends CognitoIdentit
1330
1350
  };
1331
1351
  __name(_UnauthorizedException, "UnauthorizedException");
1332
1352
  var UnauthorizedException = _UnauthorizedException;
1333
- var _UnsupportedOperationException = class _UnsupportedOperationException extends CognitoIdentityProviderServiceException {
1334
- /**
1335
- * @internal
1336
- */
1337
- constructor(opts) {
1338
- super({
1339
- name: "UnsupportedOperationException",
1340
- $fault: "client",
1341
- ...opts
1342
- });
1343
- this.name = "UnsupportedOperationException";
1344
- this.$fault = "client";
1345
- Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
1346
- }
1347
- };
1348
- __name(_UnsupportedOperationException, "UnsupportedOperationException");
1349
- var UnsupportedOperationException = _UnsupportedOperationException;
1350
- var _UnsupportedTokenTypeException = class _UnsupportedTokenTypeException extends CognitoIdentityProviderServiceException {
1351
- /**
1352
- * @internal
1353
- */
1354
- constructor(opts) {
1355
- super({
1356
- name: "UnsupportedTokenTypeException",
1357
- $fault: "client",
1358
- ...opts
1359
- });
1360
- this.name = "UnsupportedTokenTypeException";
1361
- this.$fault = "client";
1362
- Object.setPrototypeOf(this, _UnsupportedTokenTypeException.prototype);
1363
- }
1364
- };
1365
- __name(_UnsupportedTokenTypeException, "UnsupportedTokenTypeException");
1366
- var UnsupportedTokenTypeException = _UnsupportedTokenTypeException;
1367
1353
  var AdminAddUserToGroupRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1368
1354
  ...obj,
1369
1355
  ...obj.Username && { Username: import_smithy_client.SENSITIVE_STRING }
@@ -1724,6 +1710,40 @@ var RevokeTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1724
1710
 
1725
1711
  // src/models/models_1.ts
1726
1712
 
1713
+ var _UnsupportedOperationException = class _UnsupportedOperationException extends CognitoIdentityProviderServiceException {
1714
+ /**
1715
+ * @internal
1716
+ */
1717
+ constructor(opts) {
1718
+ super({
1719
+ name: "UnsupportedOperationException",
1720
+ $fault: "client",
1721
+ ...opts
1722
+ });
1723
+ this.name = "UnsupportedOperationException";
1724
+ this.$fault = "client";
1725
+ Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
1726
+ }
1727
+ };
1728
+ __name(_UnsupportedOperationException, "UnsupportedOperationException");
1729
+ var UnsupportedOperationException = _UnsupportedOperationException;
1730
+ var _UnsupportedTokenTypeException = class _UnsupportedTokenTypeException extends CognitoIdentityProviderServiceException {
1731
+ /**
1732
+ * @internal
1733
+ */
1734
+ constructor(opts) {
1735
+ super({
1736
+ name: "UnsupportedTokenTypeException",
1737
+ $fault: "client",
1738
+ ...opts
1739
+ });
1740
+ this.name = "UnsupportedTokenTypeException";
1741
+ this.$fault = "client";
1742
+ Object.setPrototypeOf(this, _UnsupportedTokenTypeException.prototype);
1743
+ }
1744
+ };
1745
+ __name(_UnsupportedTokenTypeException, "UnsupportedTokenTypeException");
1746
+ var UnsupportedTokenTypeException = _UnsupportedTokenTypeException;
1727
1747
  var _EnableSoftwareTokenMFAException = class _EnableSoftwareTokenMFAException extends CognitoIdentityProviderServiceException {
1728
1748
  /**
1729
1749
  * @internal
@@ -3838,6 +3858,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3838
3858
  case "ExpiredCodeException":
3839
3859
  case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
3840
3860
  throw await de_ExpiredCodeExceptionRes(parsedOutput, context);
3861
+ case "PasswordHistoryPolicyViolationException":
3862
+ case "com.amazonaws.cognitoidentityprovider#PasswordHistoryPolicyViolationException":
3863
+ throw await de_PasswordHistoryPolicyViolationExceptionRes(parsedOutput, context);
3841
3864
  case "SoftwareTokenMFANotFoundException":
3842
3865
  case "com.amazonaws.cognitoidentityprovider#SoftwareTokenMFANotFoundException":
3843
3866
  throw await de_SoftwareTokenMFANotFoundExceptionRes(parsedOutput, context);
@@ -4075,6 +4098,15 @@ var de_NotAuthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, c
4075
4098
  });
4076
4099
  return (0, import_smithy_client.decorateServiceException)(exception, body);
4077
4100
  }, "de_NotAuthorizedExceptionRes");
4101
+ var de_PasswordHistoryPolicyViolationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4102
+ const body = parsedOutput.body;
4103
+ const deserialized = (0, import_smithy_client._json)(body);
4104
+ const exception = new PasswordHistoryPolicyViolationException({
4105
+ $metadata: deserializeMetadata(parsedOutput),
4106
+ ...deserialized
4107
+ });
4108
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
4109
+ }, "de_PasswordHistoryPolicyViolationExceptionRes");
4078
4110
  var de_PasswordResetRequiredExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
4079
4111
  const body = parsedOutput.body;
4080
4112
  const deserialized = (0, import_smithy_client._json)(body);
@@ -6665,6 +6697,7 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
6665
6697
  InvalidEmailRoleAccessPolicyException,
6666
6698
  CodeMismatchException,
6667
6699
  ExpiredCodeException,
6700
+ PasswordHistoryPolicyViolationException,
6668
6701
  SoftwareTokenMFANotFoundException,
6669
6702
  DeviceRememberedStatusType,
6670
6703
  AdvancedSecurityModeType,
@@ -6699,8 +6732,6 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
6699
6732
  EventSourceName,
6700
6733
  LogLevel,
6701
6734
  UnauthorizedException,
6702
- UnsupportedOperationException,
6703
- UnsupportedTokenTypeException,
6704
6735
  AdminAddUserToGroupRequestFilterSensitiveLog,
6705
6736
  AdminConfirmSignUpRequestFilterSensitiveLog,
6706
6737
  AttributeTypeFilterSensitiveLog,
@@ -6775,6 +6806,8 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
6775
6806
  RespondToAuthChallengeRequestFilterSensitiveLog,
6776
6807
  RespondToAuthChallengeResponseFilterSensitiveLog,
6777
6808
  RevokeTokenRequestFilterSensitiveLog,
6809
+ UnsupportedOperationException,
6810
+ UnsupportedTokenTypeException,
6778
6811
  EnableSoftwareTokenMFAException,
6779
6812
  VerifySoftwareTokenResponseType,
6780
6813
  SetRiskConfigurationRequestFilterSensitiveLog,
@@ -426,6 +426,18 @@ export class ExpiredCodeException extends __BaseException {
426
426
  Object.setPrototypeOf(this, ExpiredCodeException.prototype);
427
427
  }
428
428
  }
429
+ export class PasswordHistoryPolicyViolationException extends __BaseException {
430
+ constructor(opts) {
431
+ super({
432
+ name: "PasswordHistoryPolicyViolationException",
433
+ $fault: "client",
434
+ ...opts,
435
+ });
436
+ this.name = "PasswordHistoryPolicyViolationException";
437
+ this.$fault = "client";
438
+ Object.setPrototypeOf(this, PasswordHistoryPolicyViolationException.prototype);
439
+ }
440
+ }
429
441
  export class SoftwareTokenMFANotFoundException extends __BaseException {
430
442
  constructor(opts) {
431
443
  super({
@@ -647,10 +659,12 @@ export const DomainStatusType = {
647
659
  UPDATING: "UPDATING",
648
660
  };
649
661
  export const EventSourceName = {
662
+ USER_AUTH_EVENTS: "userAuthEvents",
650
663
  USER_NOTIFICATION: "userNotification",
651
664
  };
652
665
  export const LogLevel = {
653
666
  ERROR: "ERROR",
667
+ INFO: "INFO",
654
668
  };
655
669
  export class UnauthorizedException extends __BaseException {
656
670
  constructor(opts) {
@@ -664,30 +678,6 @@ export class UnauthorizedException extends __BaseException {
664
678
  Object.setPrototypeOf(this, UnauthorizedException.prototype);
665
679
  }
666
680
  }
667
- export class UnsupportedOperationException extends __BaseException {
668
- constructor(opts) {
669
- super({
670
- name: "UnsupportedOperationException",
671
- $fault: "client",
672
- ...opts,
673
- });
674
- this.name = "UnsupportedOperationException";
675
- this.$fault = "client";
676
- Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
677
- }
678
- }
679
- export class UnsupportedTokenTypeException extends __BaseException {
680
- constructor(opts) {
681
- super({
682
- name: "UnsupportedTokenTypeException",
683
- $fault: "client",
684
- ...opts,
685
- });
686
- this.name = "UnsupportedTokenTypeException";
687
- this.$fault = "client";
688
- Object.setPrototypeOf(this, UnsupportedTokenTypeException.prototype);
689
- }
690
- }
691
681
  export const AdminAddUserToGroupRequestFilterSensitiveLog = (obj) => ({
692
682
  ...obj,
693
683
  ...(obj.Username && { Username: SENSITIVE_STRING }),
@@ -1,6 +1,30 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
3
3
  import { AttributeTypeFilterSensitiveLog, RiskConfigurationTypeFilterSensitiveLog, UICustomizationTypeFilterSensitiveLog, UserPoolClientTypeFilterSensitiveLog, } from "./models_0";
4
+ export class UnsupportedOperationException extends __BaseException {
5
+ constructor(opts) {
6
+ super({
7
+ name: "UnsupportedOperationException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ this.name = "UnsupportedOperationException";
12
+ this.$fault = "client";
13
+ Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
14
+ }
15
+ }
16
+ export class UnsupportedTokenTypeException extends __BaseException {
17
+ constructor(opts) {
18
+ super({
19
+ name: "UnsupportedTokenTypeException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ this.name = "UnsupportedTokenTypeException";
24
+ this.$fault = "client";
25
+ Object.setPrototypeOf(this, UnsupportedTokenTypeException.prototype);
26
+ }
27
+ }
4
28
  export class EnableSoftwareTokenMFAException extends __BaseException {
5
29
  constructor(opts) {
6
30
  super({
@@ -2,8 +2,8 @@ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody a
2
2
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { CognitoIdentityProviderServiceException as __BaseException } from "../models/CognitoIdentityProviderServiceException";
5
- import { AliasExistsException, CodeDeliveryFailureException, CodeMismatchException, ConcurrentModificationException, DuplicateProviderException, ExpiredCodeException, ForbiddenException, GroupExistsException, InternalErrorException, InvalidEmailRoleAccessPolicyException, InvalidLambdaResponseException, InvalidOAuthFlowException, InvalidParameterException, InvalidPasswordException, InvalidSmsRoleAccessPolicyException, InvalidSmsRoleTrustRelationshipException, InvalidUserPoolConfigurationException, LimitExceededException, MFAMethodNotFoundException, NotAuthorizedException, PasswordResetRequiredException, PreconditionNotMetException, ResourceNotFoundException, ScopeDoesNotExistException, SoftwareTokenMFANotFoundException, TooManyFailedAttemptsException, TooManyRequestsException, UnauthorizedException, UnexpectedLambdaException, UnsupportedIdentityProviderException, UnsupportedOperationException, UnsupportedTokenTypeException, UnsupportedUserStateException, UserImportInProgressException, UserLambdaValidationException, UsernameExistsException, UserNotConfirmedException, UserNotFoundException, UserPoolAddOnNotEnabledException, UserPoolTaggingException, } from "../models/models_0";
6
- import { EnableSoftwareTokenMFAException, } from "../models/models_1";
5
+ import { AliasExistsException, CodeDeliveryFailureException, CodeMismatchException, ConcurrentModificationException, DuplicateProviderException, ExpiredCodeException, ForbiddenException, GroupExistsException, InternalErrorException, InvalidEmailRoleAccessPolicyException, InvalidLambdaResponseException, InvalidOAuthFlowException, InvalidParameterException, InvalidPasswordException, InvalidSmsRoleAccessPolicyException, InvalidSmsRoleTrustRelationshipException, InvalidUserPoolConfigurationException, LimitExceededException, MFAMethodNotFoundException, NotAuthorizedException, PasswordHistoryPolicyViolationException, PasswordResetRequiredException, PreconditionNotMetException, ResourceNotFoundException, ScopeDoesNotExistException, SoftwareTokenMFANotFoundException, TooManyFailedAttemptsException, TooManyRequestsException, UnauthorizedException, UnexpectedLambdaException, UnsupportedIdentityProviderException, UnsupportedUserStateException, UserImportInProgressException, UserLambdaValidationException, UsernameExistsException, UserNotConfirmedException, UserNotFoundException, UserPoolAddOnNotEnabledException, UserPoolTaggingException, } from "../models/models_0";
6
+ import { EnableSoftwareTokenMFAException, UnsupportedOperationException, UnsupportedTokenTypeException, } from "../models/models_1";
7
7
  export const se_AddCustomAttributesCommand = async (input, context) => {
8
8
  const headers = sharedHeaders("AddCustomAttributes");
9
9
  let body;
@@ -2019,6 +2019,9 @@ const de_CommandError = async (output, context) => {
2019
2019
  case "ExpiredCodeException":
2020
2020
  case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
2021
2021
  throw await de_ExpiredCodeExceptionRes(parsedOutput, context);
2022
+ case "PasswordHistoryPolicyViolationException":
2023
+ case "com.amazonaws.cognitoidentityprovider#PasswordHistoryPolicyViolationException":
2024
+ throw await de_PasswordHistoryPolicyViolationExceptionRes(parsedOutput, context);
2022
2025
  case "SoftwareTokenMFANotFoundException":
2023
2026
  case "com.amazonaws.cognitoidentityprovider#SoftwareTokenMFANotFoundException":
2024
2027
  throw await de_SoftwareTokenMFANotFoundExceptionRes(parsedOutput, context);
@@ -2256,6 +2259,15 @@ const de_NotAuthorizedExceptionRes = async (parsedOutput, context) => {
2256
2259
  });
2257
2260
  return __decorateServiceException(exception, body);
2258
2261
  };
2262
+ const de_PasswordHistoryPolicyViolationExceptionRes = async (parsedOutput, context) => {
2263
+ const body = parsedOutput.body;
2264
+ const deserialized = _json(body);
2265
+ const exception = new PasswordHistoryPolicyViolationException({
2266
+ $metadata: deserializeMetadata(parsedOutput),
2267
+ ...deserialized,
2268
+ });
2269
+ return __decorateServiceException(exception, body);
2270
+ };
2259
2271
  const de_PasswordResetRequiredExceptionRes = async (parsedOutput, context) => {
2260
2272
  const body = parsedOutput.body;
2261
2273
  const deserialized = _json(body);
@@ -727,7 +727,7 @@ export interface CognitoIdentityProvider {
727
727
  /**
728
728
  * <p>With the Amazon Cognito user pools API, you can configure user pools and authenticate users. To
729
729
  * authenticate users from third-party identity providers (IdPs) in this API, you can
730
- * <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html">link IdP users to native user profiles</a>. Learn more
730
+ * <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html">link IdP users to native user profiles</a>. Learn more
731
731
  * about the authentication and authorization of federated users at <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html">Adding user pool sign-in through a third party</a> and in the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-userpools-server-contract-reference.html">User pool federation endpoints and hosted UI reference</a>.</p>
732
732
  * <p>This API reference provides detailed information about API operations and object types
733
733
  * in Amazon Cognito.</p>
@@ -759,7 +759,7 @@ export interface CognitoIdentityProvider {
759
759
  * <li>
760
760
  * <p>
761
761
  * <a href="https://docs.aws.amazon.com/cli/latest/reference/cognito-idp/index.html#cli-aws-cognito-idp">Amazon Web Services
762
- * Command Line Interface</a>
762
+ * Command Line Interface</a>
763
763
  * </p>
764
764
  * </li>
765
765
  * <li>
@@ -785,13 +785,13 @@ export interface CognitoIdentityProvider {
785
785
  * <li>
786
786
  * <p>
787
787
  * <a href="https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html">Amazon Web Services
788
- * SDK for JavaScript</a>
788
+ * SDK for JavaScript</a>
789
789
  * </p>
790
790
  * </li>
791
791
  * <li>
792
792
  * <p>
793
793
  * <a href="https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-cognito-idp-2016-04-18.html">Amazon Web Services SDK for PHP
794
- * V3</a>
794
+ * V3</a>
795
795
  * </p>
796
796
  * </li>
797
797
  * <li>
@@ -802,7 +802,7 @@ export interface CognitoIdentityProvider {
802
802
  * <li>
803
803
  * <p>
804
804
  * <a href="https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html">Amazon Web Services SDK
805
- * for Ruby V3</a>
805
+ * for Ruby V3</a>
806
806
  * </p>
807
807
  * </li>
808
808
  * </ul>
@@ -256,7 +256,7 @@ export interface CognitoIdentityProviderClientResolvedConfig extends CognitoIden
256
256
  /**
257
257
  * <p>With the Amazon Cognito user pools API, you can configure user pools and authenticate users. To
258
258
  * authenticate users from third-party identity providers (IdPs) in this API, you can
259
- * <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html">link IdP users to native user profiles</a>. Learn more
259
+ * <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation-consolidate-users.html">link IdP users to native user profiles</a>. Learn more
260
260
  * about the authentication and authorization of federated users at <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-identity-federation.html">Adding user pool sign-in through a third party</a> and in the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-userpools-server-contract-reference.html">User pool federation endpoints and hosted UI reference</a>.</p>
261
261
  * <p>This API reference provides detailed information about API operations and object types
262
262
  * in Amazon Cognito.</p>
@@ -288,7 +288,7 @@ export interface CognitoIdentityProviderClientResolvedConfig extends CognitoIden
288
288
  * <li>
289
289
  * <p>
290
290
  * <a href="https://docs.aws.amazon.com/cli/latest/reference/cognito-idp/index.html#cli-aws-cognito-idp">Amazon Web Services
291
- * Command Line Interface</a>
291
+ * Command Line Interface</a>
292
292
  * </p>
293
293
  * </li>
294
294
  * <li>
@@ -314,13 +314,13 @@ export interface CognitoIdentityProviderClientResolvedConfig extends CognitoIden
314
314
  * <li>
315
315
  * <p>
316
316
  * <a href="https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html">Amazon Web Services
317
- * SDK for JavaScript</a>
317
+ * SDK for JavaScript</a>
318
318
  * </p>
319
319
  * </li>
320
320
  * <li>
321
321
  * <p>
322
322
  * <a href="https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-cognito-idp-2016-04-18.html">Amazon Web Services SDK for PHP
323
- * V3</a>
323
+ * V3</a>
324
324
  * </p>
325
325
  * </li>
326
326
  * <li>
@@ -331,7 +331,7 @@ export interface CognitoIdentityProviderClientResolvedConfig extends CognitoIden
331
331
  * <li>
332
332
  * <p>
333
333
  * <a href="https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CognitoIdentityProvider/Client.html">Amazon Web Services SDK
334
- * for Ruby V3</a>
334
+ * for Ruby V3</a>
335
335
  * </p>
336
336
  * </li>
337
337
  * </ul>
@@ -27,15 +27,12 @@ declare const AdminConfirmSignUpCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>This IAM-authenticated API operation provides a code that Amazon Cognito sent to your user
31
- * when they signed up in your user pool. After your user enters their code, they confirm
32
- * ownership of the email address or phone number that they provided, and their user
33
- * account becomes active. Depending on your user pool configuration, your users will
34
- * receive their confirmation code in an email or SMS message.</p>
35
- * <p>Local users who signed up in your user pool are the only type of user who can confirm
36
- * sign-up with a code. Users who federate through an external identity provider (IdP) have
37
- * already been confirmed by their IdP. Administrator-created users confirm their accounts
38
- * when they respond to their invitation email message and choose a password.</p>
30
+ * <p>This IAM-authenticated API operation confirms user sign-up as an administrator.
31
+ * Unlike <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_ConfirmSignUp.html">ConfirmSignUp</a>, your IAM credentials authorize user account confirmation.
32
+ * No confirmation code is required.</p>
33
+ * <p>This request sets a user account active in a user pool that <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#signing-up-users-in-your-app-and-confirming-them-as-admin">requires confirmation of new user accounts</a> before they can sign in. You can
34
+ * configure your user pool to not send confirmation codes to new users and instead confirm
35
+ * them with this API operation on the back end.</p>
39
36
  * <note>
40
37
  * <p>Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For
41
38
  * this operation, you must use IAM credentials to authorize requests, and you must
@@ -161,7 +161,7 @@ declare const AdminCreateUserCommand_base: {
161
161
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
162
162
  * <p>This exception is thrown when the trust relationship is not valid for the role
163
163
  * provided for SMS configuration. This can happen if you don't trust
164
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
164
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
165
165
  * not match what is provided in the SMS configuration for the user pool.</p>
166
166
  *
167
167
  * @throws {@link NotAuthorizedException} (client fault)
@@ -143,7 +143,7 @@ declare const AdminInitiateAuthCommand_base: {
143
143
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
144
144
  * <p>This exception is thrown when the trust relationship is not valid for the role
145
145
  * provided for SMS configuration. This can happen if you don't trust
146
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
146
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
147
147
  * not match what is provided in the SMS configuration for the user pool.</p>
148
148
  *
149
149
  * @throws {@link InvalidUserPoolConfigurationException} (client fault)
@@ -122,7 +122,7 @@ declare const AdminResetUserPasswordCommand_base: {
122
122
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
123
123
  * <p>This exception is thrown when the trust relationship is not valid for the role
124
124
  * provided for SMS configuration. This can happen if you don't trust
125
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
125
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
126
126
  * not match what is provided in the SMS configuration for the user pool.</p>
127
127
  *
128
128
  * @throws {@link LimitExceededException} (client fault)
@@ -167,7 +167,7 @@ declare const AdminRespondToAuthChallengeCommand_base: {
167
167
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
168
168
  * <p>This exception is thrown when the trust relationship is not valid for the role
169
169
  * provided for SMS configuration. This can happen if you don't trust
170
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
170
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
171
171
  * not match what is provided in the SMS configuration for the user pool.</p>
172
172
  *
173
173
  * @throws {@link InvalidUserPoolConfigurationException} (client fault)
@@ -180,6 +180,10 @@ declare const AdminRespondToAuthChallengeCommand_base: {
180
180
  * @throws {@link NotAuthorizedException} (client fault)
181
181
  * <p>This exception is thrown when a user isn't authorized.</p>
182
182
  *
183
+ * @throws {@link PasswordHistoryPolicyViolationException} (client fault)
184
+ * <p>The message returned when a user's new password matches a previous password and
185
+ * doesn't comply with the password-history policy.</p>
186
+ *
183
187
  * @throws {@link PasswordResetRequiredException} (client fault)
184
188
  * <p>This exception is thrown when a password reset is required.</p>
185
189
  *
@@ -105,6 +105,10 @@ declare const AdminSetUserPasswordCommand_base: {
105
105
  * @throws {@link NotAuthorizedException} (client fault)
106
106
  * <p>This exception is thrown when a user isn't authorized.</p>
107
107
  *
108
+ * @throws {@link PasswordHistoryPolicyViolationException} (client fault)
109
+ * <p>The message returned when a user's new password matches a previous password and
110
+ * doesn't comply with the password-history policy.</p>
111
+ *
108
112
  * @throws {@link ResourceNotFoundException} (client fault)
109
113
  * <p>This exception is thrown when the Amazon Cognito service can't find the requested
110
114
  * resource.</p>
@@ -130,7 +130,7 @@ declare const AdminUpdateUserAttributesCommand_base: {
130
130
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
131
131
  * <p>This exception is thrown when the trust relationship is not valid for the role
132
132
  * provided for SMS configuration. This can happen if you don't trust
133
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
133
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
134
134
  * not match what is provided in the SMS configuration for the user pool.</p>
135
135
  *
136
136
  * @throws {@link NotAuthorizedException} (client fault)
@@ -38,8 +38,8 @@ declare const AssociateSoftwareTokenCommand_base: {
38
38
  * token and your user pool doesn't require MFA, the user can then authenticate with
39
39
  * user name and password credentials alone. If your user pool requires TOTP MFA, Amazon Cognito
40
40
  * generates an <code>MFA_SETUP</code> or <code>SOFTWARE_TOKEN_SETUP</code> challenge
41
- * each time your user signs. Complete setup with <code>AssociateSoftwareToken</code>
42
- * and <code>VerifySoftwareToken</code>.</p>
41
+ * each time your user signs in. Complete setup with
42
+ * <code>AssociateSoftwareToken</code> and <code>VerifySoftwareToken</code>.</p>
43
43
  * <p>After you set up software token MFA for your user, Amazon Cognito generates a
44
44
  * <code>SOFTWARE_TOKEN_MFA</code> challenge when they authenticate. Respond to
45
45
  * this challenge with your user's TOTP.</p>
@@ -79,6 +79,10 @@ declare const ChangePasswordCommand_base: {
79
79
  * @throws {@link NotAuthorizedException} (client fault)
80
80
  * <p>This exception is thrown when a user isn't authorized.</p>
81
81
  *
82
+ * @throws {@link PasswordHistoryPolicyViolationException} (client fault)
83
+ * <p>The message returned when a user's new password matches a previous password and
84
+ * doesn't comply with the password-history policy.</p>
85
+ *
82
86
  * @throws {@link PasswordResetRequiredException} (client fault)
83
87
  * <p>This exception is thrown when a password reset is required.</p>
84
88
  *
@@ -100,6 +100,10 @@ declare const ConfirmForgotPasswordCommand_base: {
100
100
  * @throws {@link NotAuthorizedException} (client fault)
101
101
  * <p>This exception is thrown when a user isn't authorized.</p>
102
102
  *
103
+ * @throws {@link PasswordHistoryPolicyViolationException} (client fault)
104
+ * <p>The message returned when a user's new password matches a previous password and
105
+ * doesn't comply with the password-history policy.</p>
106
+ *
103
107
  * @throws {@link ResourceNotFoundException} (client fault)
104
108
  * <p>This exception is thrown when the Amazon Cognito service can't find the requested
105
109
  * resource.</p>
@@ -84,6 +84,7 @@ declare const CreateUserPoolCommand_base: {
84
84
  * RequireLowercase: true || false,
85
85
  * RequireNumbers: true || false,
86
86
  * RequireSymbols: true || false,
87
+ * PasswordHistorySize: Number("int"),
87
88
  * TemporaryPasswordValidityDays: Number("int"),
88
89
  * },
89
90
  * },
@@ -213,6 +214,7 @@ declare const CreateUserPoolCommand_base: {
213
214
  * // RequireLowercase: true || false,
214
215
  * // RequireNumbers: true || false,
215
216
  * // RequireSymbols: true || false,
217
+ * // PasswordHistorySize: Number("int"),
216
218
  * // TemporaryPasswordValidityDays: Number("int"),
217
219
  * // },
218
220
  * // },
@@ -366,7 +368,7 @@ declare const CreateUserPoolCommand_base: {
366
368
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
367
369
  * <p>This exception is thrown when the trust relationship is not valid for the role
368
370
  * provided for SMS configuration. This can happen if you don't trust
369
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
371
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
370
372
  * not match what is provided in the SMS configuration for the user pool.</p>
371
373
  *
372
374
  * @throws {@link LimitExceededException} (client fault)
@@ -70,6 +70,7 @@ declare const DescribeUserPoolCommand_base: {
70
70
  * // RequireLowercase: true || false,
71
71
  * // RequireNumbers: true || false,
72
72
  * // RequireSymbols: true || false,
73
+ * // PasswordHistorySize: Number("int"),
73
74
  * // TemporaryPasswordValidityDays: Number("int"),
74
75
  * // },
75
76
  * // },
@@ -130,7 +130,7 @@ declare const ForgotPasswordCommand_base: {
130
130
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
131
131
  * <p>This exception is thrown when the trust relationship is not valid for the role
132
132
  * provided for SMS configuration. This can happen if you don't trust
133
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
133
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
134
134
  * not match what is provided in the SMS configuration for the user pool.</p>
135
135
  *
136
136
  * @throws {@link LimitExceededException} (client fault)
@@ -27,7 +27,7 @@ declare const GetLogDeliveryConfigurationCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * <p>Gets the detailed activity logging configuration for a user pool.</p>
30
+ * <p>Gets the logging configuration of a user pool.</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -44,11 +44,17 @@ declare const GetLogDeliveryConfigurationCommand_base: {
44
44
  * // UserPoolId: "STRING_VALUE", // required
45
45
  * // LogConfigurations: [ // LogConfigurationListType // required
46
46
  * // { // LogConfigurationType
47
- * // LogLevel: "ERROR", // required
48
- * // EventSource: "userNotification", // required
47
+ * // LogLevel: "ERROR" || "INFO", // required
48
+ * // EventSource: "userNotification" || "userAuthEvents", // required
49
49
  * // CloudWatchLogsConfiguration: { // CloudWatchLogsConfigurationType
50
50
  * // LogGroupArn: "STRING_VALUE",
51
51
  * // },
52
+ * // S3Configuration: { // S3ConfigurationType
53
+ * // BucketArn: "STRING_VALUE",
54
+ * // },
55
+ * // FirehoseConfiguration: { // FirehoseConfigurationType
56
+ * // StreamArn: "STRING_VALUE",
57
+ * // },
52
58
  * // },
53
59
  * // ],
54
60
  * // },
@@ -114,7 +114,7 @@ declare const GetUserAttributeVerificationCodeCommand_base: {
114
114
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
115
115
  * <p>This exception is thrown when the trust relationship is not valid for the role
116
116
  * provided for SMS configuration. This can happen if you don't trust
117
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
117
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
118
118
  * not match what is provided in the SMS configuration for the user pool.</p>
119
119
  *
120
120
  * @throws {@link LimitExceededException} (client fault)
@@ -125,7 +125,7 @@ declare const InitiateAuthCommand_base: {
125
125
  * @throws {@link InvalidSmsRoleTrustRelationshipException} (client fault)
126
126
  * <p>This exception is thrown when the trust relationship is not valid for the role
127
127
  * provided for SMS configuration. This can happen if you don't trust
128
- * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
128
+ * <code>cognito-idp.amazonaws.com</code> or the external ID provided in the role does
129
129
  * not match what is provided in the SMS configuration for the user pool.</p>
130
130
  *
131
131
  * @throws {@link InvalidUserPoolConfigurationException} (client fault)