@aws-sdk/client-cognito-identity-provider 3.624.0 → 3.627.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +94 -55
- package/dist-es/models/models_0.js +18 -36
- package/dist-es/models/models_1.js +36 -0
- package/dist-es/protocols/Aws_json1_1.js +14 -2
- package/dist-types/CognitoIdentityProvider.d.ts +5 -5
- package/dist-types/CognitoIdentityProviderClient.d.ts +5 -5
- package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +6 -9
- package/dist-types/commands/AdminCreateUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminInitiateAuthCommand.d.ts +1 -1
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +1 -1
- package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +5 -1
- package/dist-types/commands/AdminSetUserPasswordCommand.d.ts +4 -0
- package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +1 -1
- package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +2 -2
- package/dist-types/commands/ChangePasswordCommand.d.ts +4 -0
- package/dist-types/commands/ConfirmForgotPasswordCommand.d.ts +4 -0
- package/dist-types/commands/CreateUserPoolCommand.d.ts +9 -1
- package/dist-types/commands/DescribeUserPoolCommand.d.ts +4 -0
- package/dist-types/commands/ForgotPasswordCommand.d.ts +1 -1
- package/dist-types/commands/GetLogDeliveryConfigurationCommand.d.ts +9 -3
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +1 -1
- package/dist-types/commands/InitiateAuthCommand.d.ts +1 -1
- package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +1 -1
- package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +5 -1
- package/dist-types/commands/RevokeTokenCommand.d.ts +2 -1
- package/dist-types/commands/SetLogDeliveryConfigurationCommand.d.ts +19 -7
- package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +1 -1
- package/dist-types/commands/SignUpCommand.d.ts +1 -1
- package/dist-types/commands/UpdateUserAttributesCommand.d.ts +1 -1
- package/dist-types/commands/UpdateUserPoolCommand.d.ts +5 -1
- package/dist-types/index.d.ts +5 -5
- package/dist-types/models/models_0.d.ts +131 -73
- package/dist-types/models/models_1.d.ts +61 -2
- package/dist-types/ts3.4/commands/RevokeTokenCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/SetLogDeliveryConfigurationCommand.d.ts +4 -2
- package/dist-types/ts3.4/models/models_0.d.ts +31 -26
- package/dist-types/ts3.4/models/models_1.d.ts +27 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -79,6 +79,7 @@ __export(src_exports, {
|
|
|
79
79
|
AdminUpdateUserAttributesRequestFilterSensitiveLog: () => AdminUpdateUserAttributesRequestFilterSensitiveLog,
|
|
80
80
|
AdminUserGlobalSignOutCommand: () => AdminUserGlobalSignOutCommand,
|
|
81
81
|
AdminUserGlobalSignOutRequestFilterSensitiveLog: () => AdminUserGlobalSignOutRequestFilterSensitiveLog,
|
|
82
|
+
AdvancedSecurityEnabledModeType: () => AdvancedSecurityEnabledModeType,
|
|
82
83
|
AdvancedSecurityModeType: () => AdvancedSecurityModeType,
|
|
83
84
|
AliasAttributeType: () => AliasAttributeType,
|
|
84
85
|
AliasExistsException: () => AliasExistsException,
|
|
@@ -214,6 +215,7 @@ __export(src_exports, {
|
|
|
214
215
|
MessageActionType: () => MessageActionType,
|
|
215
216
|
NotAuthorizedException: () => NotAuthorizedException,
|
|
216
217
|
OAuthFlowType: () => OAuthFlowType,
|
|
218
|
+
PasswordHistoryPolicyViolationException: () => PasswordHistoryPolicyViolationException,
|
|
217
219
|
PasswordResetRequiredException: () => PasswordResetRequiredException,
|
|
218
220
|
PreTokenGenerationLambdaVersionType: () => PreTokenGenerationLambdaVersionType,
|
|
219
221
|
PreconditionNotMetException: () => PreconditionNotMetException,
|
|
@@ -1042,6 +1044,23 @@ var _ExpiredCodeException = class _ExpiredCodeException extends CognitoIdentityP
|
|
|
1042
1044
|
};
|
|
1043
1045
|
__name(_ExpiredCodeException, "ExpiredCodeException");
|
|
1044
1046
|
var ExpiredCodeException = _ExpiredCodeException;
|
|
1047
|
+
var _PasswordHistoryPolicyViolationException = class _PasswordHistoryPolicyViolationException extends CognitoIdentityProviderServiceException {
|
|
1048
|
+
/**
|
|
1049
|
+
* @internal
|
|
1050
|
+
*/
|
|
1051
|
+
constructor(opts) {
|
|
1052
|
+
super({
|
|
1053
|
+
name: "PasswordHistoryPolicyViolationException",
|
|
1054
|
+
$fault: "client",
|
|
1055
|
+
...opts
|
|
1056
|
+
});
|
|
1057
|
+
this.name = "PasswordHistoryPolicyViolationException";
|
|
1058
|
+
this.$fault = "client";
|
|
1059
|
+
Object.setPrototypeOf(this, _PasswordHistoryPolicyViolationException.prototype);
|
|
1060
|
+
}
|
|
1061
|
+
};
|
|
1062
|
+
__name(_PasswordHistoryPolicyViolationException, "PasswordHistoryPolicyViolationException");
|
|
1063
|
+
var PasswordHistoryPolicyViolationException = _PasswordHistoryPolicyViolationException;
|
|
1045
1064
|
var _SoftwareTokenMFANotFoundException = class _SoftwareTokenMFANotFoundException extends CognitoIdentityProviderServiceException {
|
|
1046
1065
|
/**
|
|
1047
1066
|
* @internal
|
|
@@ -1063,6 +1082,10 @@ var DeviceRememberedStatusType = {
|
|
|
1063
1082
|
NOT_REMEMBERED: "not_remembered",
|
|
1064
1083
|
REMEMBERED: "remembered"
|
|
1065
1084
|
};
|
|
1085
|
+
var AdvancedSecurityEnabledModeType = {
|
|
1086
|
+
AUDIT: "AUDIT",
|
|
1087
|
+
ENFORCED: "ENFORCED"
|
|
1088
|
+
};
|
|
1066
1089
|
var AdvancedSecurityModeType = {
|
|
1067
1090
|
AUDIT: "AUDIT",
|
|
1068
1091
|
ENFORCED: "ENFORCED",
|
|
@@ -1308,62 +1331,13 @@ var DomainStatusType = {
|
|
|
1308
1331
|
UPDATING: "UPDATING"
|
|
1309
1332
|
};
|
|
1310
1333
|
var EventSourceName = {
|
|
1334
|
+
USER_AUTH_EVENTS: "userAuthEvents",
|
|
1311
1335
|
USER_NOTIFICATION: "userNotification"
|
|
1312
1336
|
};
|
|
1313
1337
|
var LogLevel = {
|
|
1314
|
-
ERROR: "ERROR"
|
|
1315
|
-
|
|
1316
|
-
var _UnauthorizedException = class _UnauthorizedException extends CognitoIdentityProviderServiceException {
|
|
1317
|
-
/**
|
|
1318
|
-
* @internal
|
|
1319
|
-
*/
|
|
1320
|
-
constructor(opts) {
|
|
1321
|
-
super({
|
|
1322
|
-
name: "UnauthorizedException",
|
|
1323
|
-
$fault: "client",
|
|
1324
|
-
...opts
|
|
1325
|
-
});
|
|
1326
|
-
this.name = "UnauthorizedException";
|
|
1327
|
-
this.$fault = "client";
|
|
1328
|
-
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
|
1329
|
-
}
|
|
1330
|
-
};
|
|
1331
|
-
__name(_UnauthorizedException, "UnauthorizedException");
|
|
1332
|
-
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
|
-
}
|
|
1338
|
+
ERROR: "ERROR",
|
|
1339
|
+
INFO: "INFO"
|
|
1364
1340
|
};
|
|
1365
|
-
__name(_UnsupportedTokenTypeException, "UnsupportedTokenTypeException");
|
|
1366
|
-
var UnsupportedTokenTypeException = _UnsupportedTokenTypeException;
|
|
1367
1341
|
var AdminAddUserToGroupRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1368
1342
|
...obj,
|
|
1369
1343
|
...obj.Username && { Username: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1724,6 +1698,57 @@ var RevokeTokenRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1724
1698
|
|
|
1725
1699
|
// src/models/models_1.ts
|
|
1726
1700
|
|
|
1701
|
+
var _UnauthorizedException = class _UnauthorizedException extends CognitoIdentityProviderServiceException {
|
|
1702
|
+
/**
|
|
1703
|
+
* @internal
|
|
1704
|
+
*/
|
|
1705
|
+
constructor(opts) {
|
|
1706
|
+
super({
|
|
1707
|
+
name: "UnauthorizedException",
|
|
1708
|
+
$fault: "client",
|
|
1709
|
+
...opts
|
|
1710
|
+
});
|
|
1711
|
+
this.name = "UnauthorizedException";
|
|
1712
|
+
this.$fault = "client";
|
|
1713
|
+
Object.setPrototypeOf(this, _UnauthorizedException.prototype);
|
|
1714
|
+
}
|
|
1715
|
+
};
|
|
1716
|
+
__name(_UnauthorizedException, "UnauthorizedException");
|
|
1717
|
+
var UnauthorizedException = _UnauthorizedException;
|
|
1718
|
+
var _UnsupportedOperationException = class _UnsupportedOperationException extends CognitoIdentityProviderServiceException {
|
|
1719
|
+
/**
|
|
1720
|
+
* @internal
|
|
1721
|
+
*/
|
|
1722
|
+
constructor(opts) {
|
|
1723
|
+
super({
|
|
1724
|
+
name: "UnsupportedOperationException",
|
|
1725
|
+
$fault: "client",
|
|
1726
|
+
...opts
|
|
1727
|
+
});
|
|
1728
|
+
this.name = "UnsupportedOperationException";
|
|
1729
|
+
this.$fault = "client";
|
|
1730
|
+
Object.setPrototypeOf(this, _UnsupportedOperationException.prototype);
|
|
1731
|
+
}
|
|
1732
|
+
};
|
|
1733
|
+
__name(_UnsupportedOperationException, "UnsupportedOperationException");
|
|
1734
|
+
var UnsupportedOperationException = _UnsupportedOperationException;
|
|
1735
|
+
var _UnsupportedTokenTypeException = class _UnsupportedTokenTypeException extends CognitoIdentityProviderServiceException {
|
|
1736
|
+
/**
|
|
1737
|
+
* @internal
|
|
1738
|
+
*/
|
|
1739
|
+
constructor(opts) {
|
|
1740
|
+
super({
|
|
1741
|
+
name: "UnsupportedTokenTypeException",
|
|
1742
|
+
$fault: "client",
|
|
1743
|
+
...opts
|
|
1744
|
+
});
|
|
1745
|
+
this.name = "UnsupportedTokenTypeException";
|
|
1746
|
+
this.$fault = "client";
|
|
1747
|
+
Object.setPrototypeOf(this, _UnsupportedTokenTypeException.prototype);
|
|
1748
|
+
}
|
|
1749
|
+
};
|
|
1750
|
+
__name(_UnsupportedTokenTypeException, "UnsupportedTokenTypeException");
|
|
1751
|
+
var UnsupportedTokenTypeException = _UnsupportedTokenTypeException;
|
|
1727
1752
|
var _EnableSoftwareTokenMFAException = class _EnableSoftwareTokenMFAException extends CognitoIdentityProviderServiceException {
|
|
1728
1753
|
/**
|
|
1729
1754
|
* @internal
|
|
@@ -3838,6 +3863,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3838
3863
|
case "ExpiredCodeException":
|
|
3839
3864
|
case "com.amazonaws.cognitoidentityprovider#ExpiredCodeException":
|
|
3840
3865
|
throw await de_ExpiredCodeExceptionRes(parsedOutput, context);
|
|
3866
|
+
case "PasswordHistoryPolicyViolationException":
|
|
3867
|
+
case "com.amazonaws.cognitoidentityprovider#PasswordHistoryPolicyViolationException":
|
|
3868
|
+
throw await de_PasswordHistoryPolicyViolationExceptionRes(parsedOutput, context);
|
|
3841
3869
|
case "SoftwareTokenMFANotFoundException":
|
|
3842
3870
|
case "com.amazonaws.cognitoidentityprovider#SoftwareTokenMFANotFoundException":
|
|
3843
3871
|
throw await de_SoftwareTokenMFANotFoundExceptionRes(parsedOutput, context);
|
|
@@ -4075,6 +4103,15 @@ var de_NotAuthorizedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, c
|
|
|
4075
4103
|
});
|
|
4076
4104
|
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
4077
4105
|
}, "de_NotAuthorizedExceptionRes");
|
|
4106
|
+
var de_PasswordHistoryPolicyViolationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4107
|
+
const body = parsedOutput.body;
|
|
4108
|
+
const deserialized = (0, import_smithy_client._json)(body);
|
|
4109
|
+
const exception = new PasswordHistoryPolicyViolationException({
|
|
4110
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
4111
|
+
...deserialized
|
|
4112
|
+
});
|
|
4113
|
+
return (0, import_smithy_client.decorateServiceException)(exception, body);
|
|
4114
|
+
}, "de_PasswordHistoryPolicyViolationExceptionRes");
|
|
4078
4115
|
var de_PasswordResetRequiredExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
4079
4116
|
const body = parsedOutput.body;
|
|
4080
4117
|
const deserialized = (0, import_smithy_client._json)(body);
|
|
@@ -6665,8 +6702,10 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
6665
6702
|
InvalidEmailRoleAccessPolicyException,
|
|
6666
6703
|
CodeMismatchException,
|
|
6667
6704
|
ExpiredCodeException,
|
|
6705
|
+
PasswordHistoryPolicyViolationException,
|
|
6668
6706
|
SoftwareTokenMFANotFoundException,
|
|
6669
6707
|
DeviceRememberedStatusType,
|
|
6708
|
+
AdvancedSecurityEnabledModeType,
|
|
6670
6709
|
AdvancedSecurityModeType,
|
|
6671
6710
|
AliasAttributeType,
|
|
6672
6711
|
ConcurrentModificationException,
|
|
@@ -6698,9 +6737,6 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
6698
6737
|
DomainStatusType,
|
|
6699
6738
|
EventSourceName,
|
|
6700
6739
|
LogLevel,
|
|
6701
|
-
UnauthorizedException,
|
|
6702
|
-
UnsupportedOperationException,
|
|
6703
|
-
UnsupportedTokenTypeException,
|
|
6704
6740
|
AdminAddUserToGroupRequestFilterSensitiveLog,
|
|
6705
6741
|
AdminConfirmSignUpRequestFilterSensitiveLog,
|
|
6706
6742
|
AttributeTypeFilterSensitiveLog,
|
|
@@ -6775,6 +6811,9 @@ var paginateListUsers = (0, import_core.createPaginator)(CognitoIdentityProvider
|
|
|
6775
6811
|
RespondToAuthChallengeRequestFilterSensitiveLog,
|
|
6776
6812
|
RespondToAuthChallengeResponseFilterSensitiveLog,
|
|
6777
6813
|
RevokeTokenRequestFilterSensitiveLog,
|
|
6814
|
+
UnauthorizedException,
|
|
6815
|
+
UnsupportedOperationException,
|
|
6816
|
+
UnsupportedTokenTypeException,
|
|
6778
6817
|
EnableSoftwareTokenMFAException,
|
|
6779
6818
|
VerifySoftwareTokenResponseType,
|
|
6780
6819
|
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({
|
|
@@ -442,6 +454,10 @@ export const DeviceRememberedStatusType = {
|
|
|
442
454
|
NOT_REMEMBERED: "not_remembered",
|
|
443
455
|
REMEMBERED: "remembered",
|
|
444
456
|
};
|
|
457
|
+
export const AdvancedSecurityEnabledModeType = {
|
|
458
|
+
AUDIT: "AUDIT",
|
|
459
|
+
ENFORCED: "ENFORCED",
|
|
460
|
+
};
|
|
445
461
|
export const AdvancedSecurityModeType = {
|
|
446
462
|
AUDIT: "AUDIT",
|
|
447
463
|
ENFORCED: "ENFORCED",
|
|
@@ -647,47 +663,13 @@ export const DomainStatusType = {
|
|
|
647
663
|
UPDATING: "UPDATING",
|
|
648
664
|
};
|
|
649
665
|
export const EventSourceName = {
|
|
666
|
+
USER_AUTH_EVENTS: "userAuthEvents",
|
|
650
667
|
USER_NOTIFICATION: "userNotification",
|
|
651
668
|
};
|
|
652
669
|
export const LogLevel = {
|
|
653
670
|
ERROR: "ERROR",
|
|
671
|
+
INFO: "INFO",
|
|
654
672
|
};
|
|
655
|
-
export class UnauthorizedException extends __BaseException {
|
|
656
|
-
constructor(opts) {
|
|
657
|
-
super({
|
|
658
|
-
name: "UnauthorizedException",
|
|
659
|
-
$fault: "client",
|
|
660
|
-
...opts,
|
|
661
|
-
});
|
|
662
|
-
this.name = "UnauthorizedException";
|
|
663
|
-
this.$fault = "client";
|
|
664
|
-
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
665
|
-
}
|
|
666
|
-
}
|
|
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
673
|
export const AdminAddUserToGroupRequestFilterSensitiveLog = (obj) => ({
|
|
692
674
|
...obj,
|
|
693
675
|
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
@@ -1,6 +1,42 @@
|
|
|
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 UnauthorizedException extends __BaseException {
|
|
5
|
+
constructor(opts) {
|
|
6
|
+
super({
|
|
7
|
+
name: "UnauthorizedException",
|
|
8
|
+
$fault: "client",
|
|
9
|
+
...opts,
|
|
10
|
+
});
|
|
11
|
+
this.name = "UnauthorizedException";
|
|
12
|
+
this.$fault = "client";
|
|
13
|
+
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
export class UnsupportedOperationException extends __BaseException {
|
|
17
|
+
constructor(opts) {
|
|
18
|
+
super({
|
|
19
|
+
name: "UnsupportedOperationException",
|
|
20
|
+
$fault: "client",
|
|
21
|
+
...opts,
|
|
22
|
+
});
|
|
23
|
+
this.name = "UnsupportedOperationException";
|
|
24
|
+
this.$fault = "client";
|
|
25
|
+
Object.setPrototypeOf(this, UnsupportedOperationException.prototype);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export class UnsupportedTokenTypeException extends __BaseException {
|
|
29
|
+
constructor(opts) {
|
|
30
|
+
super({
|
|
31
|
+
name: "UnsupportedTokenTypeException",
|
|
32
|
+
$fault: "client",
|
|
33
|
+
...opts,
|
|
34
|
+
});
|
|
35
|
+
this.name = "UnsupportedTokenTypeException";
|
|
36
|
+
this.$fault = "client";
|
|
37
|
+
Object.setPrototypeOf(this, UnsupportedTokenTypeException.prototype);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
4
40
|
export class EnableSoftwareTokenMFAException extends __BaseException {
|
|
5
41
|
constructor(opts) {
|
|
6
42
|
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,
|
|
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, UnexpectedLambdaException, UnsupportedIdentityProviderException, UnsupportedUserStateException, UserImportInProgressException, UserLambdaValidationException, UsernameExistsException, UserNotConfirmedException, UserNotFoundException, UserPoolAddOnNotEnabledException, UserPoolTaggingException, } from "../models/models_0";
|
|
6
|
+
import { EnableSoftwareTokenMFAException, UnauthorizedException, 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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
42
|
-
*
|
|
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>
|