@aws-sdk/client-cognito-identity-provider 3.363.0 → 3.370.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/commands/VerifySoftwareTokenCommand.js +1 -1
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +22 -2
- package/dist-cjs/models/models_1.js +9 -1
- package/dist-es/commands/VerifySoftwareTokenCommand.js +2 -2
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +19 -0
- package/dist-es/models/models_1.js +7 -0
- package/dist-types/CognitoIdentityProvider.d.ts +2 -2
- package/dist-types/CognitoIdentityProviderClient.d.ts +2 -2
- package/dist-types/commands/AdminAddUserToGroupCommand.d.ts +1 -1
- package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +1 -1
- package/dist-types/commands/AdminCreateUserCommand.d.ts +5 -7
- package/dist-types/commands/AdminDeleteUserAttributesCommand.d.ts +1 -1
- package/dist-types/commands/AdminDeleteUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminDisableProviderForUserCommand.d.ts +5 -5
- package/dist-types/commands/AdminDisableUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminEnableUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminForgetDeviceCommand.d.ts +1 -1
- package/dist-types/commands/AdminGetDeviceCommand.d.ts +1 -1
- package/dist-types/commands/AdminGetUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminInitiateAuthCommand.d.ts +1 -3
- package/dist-types/commands/AdminLinkProviderForUserCommand.d.ts +6 -7
- package/dist-types/commands/AdminListDevicesCommand.d.ts +1 -1
- package/dist-types/commands/AdminListGroupsForUserCommand.d.ts +1 -1
- package/dist-types/commands/AdminRemoveUserFromGroupCommand.d.ts +1 -1
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +2 -4
- package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +1 -3
- package/dist-types/commands/AdminSetUserPasswordCommand.d.ts +2 -2
- package/dist-types/commands/AdminUpdateDeviceStatusCommand.d.ts +1 -1
- package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +3 -5
- package/dist-types/commands/AdminUserGlobalSignOutCommand.d.ts +1 -1
- package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +2 -2
- package/dist-types/commands/CreateGroupCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserPoolClientCommand.d.ts +1 -1
- package/dist-types/commands/CreateUserPoolCommand.d.ts +0 -1
- package/dist-types/commands/DeleteGroupCommand.d.ts +1 -1
- package/dist-types/commands/ForgotPasswordCommand.d.ts +0 -1
- package/dist-types/commands/GetGroupCommand.d.ts +1 -1
- package/dist-types/commands/GetSigningCertificateCommand.d.ts +1 -1
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +0 -1
- package/dist-types/commands/InitiateAuthCommand.d.ts +0 -1
- package/dist-types/commands/ListGroupsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/dist-types/commands/ListUsersInGroupCommand.d.ts +1 -1
- package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +0 -1
- package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +0 -1
- package/dist-types/commands/SetRiskConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/SetUICustomizationCommand.d.ts +3 -3
- package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +0 -1
- package/dist-types/commands/SignUpCommand.d.ts +0 -1
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UpdateGroupCommand.d.ts +1 -1
- package/dist-types/commands/UpdateResourceServerCommand.d.ts +2 -2
- package/dist-types/commands/UpdateUserAttributesCommand.d.ts +0 -1
- package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +3 -3
- package/dist-types/commands/UpdateUserPoolCommand.d.ts +0 -1
- package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +7 -7
- package/dist-types/commands/VerifyUserAttributeCommand.d.ts +1 -1
- package/dist-types/index.d.ts +2 -2
- package/dist-types/models/models_0.d.ts +627 -658
- package/dist-types/models/models_1.d.ts +74 -74
- package/dist-types/ts3.4/models/models_0.d.ts +3 -0
- package/dist-types/ts3.4/models/models_1.d.ts +3 -0
- package/package.json +17 -18
|
@@ -34,7 +34,7 @@ class VerifySoftwareTokenCommand extends smithy_client_1.Command {
|
|
|
34
34
|
clientName,
|
|
35
35
|
commandName,
|
|
36
36
|
inputFilterSensitiveLog: models_1_1.VerifySoftwareTokenRequestFilterSensitiveLog,
|
|
37
|
-
outputFilterSensitiveLog:
|
|
37
|
+
outputFilterSensitiveLog: models_1_1.VerifySoftwareTokenResponseFilterSensitiveLog,
|
|
38
38
|
};
|
|
39
39
|
const { requestHandler } = configuration;
|
|
40
40
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VerifiedAttributeType = exports.ForbiddenException = exports.ConcurrentModificationException = exports.AliasAttributeType = exports.AdvancedSecurityModeType = exports.DeviceRememberedStatusType = exports.SoftwareTokenMFANotFoundException = exports.ExpiredCodeException = exports.CodeMismatchException = exports.InvalidEmailRoleAccessPolicyException = exports.UserPoolAddOnNotEnabledException = exports.EventType = exports.RiskLevelType = exports.RiskDecisionType = exports.EventResponseType = exports.FeedbackValueType = exports.ChallengeResponse = exports.ChallengeName = exports.UserNotConfirmedException = exports.PasswordResetRequiredException = exports.MFAMethodNotFoundException = exports.ChallengeNameType = exports.AuthFlowType = exports.InvalidUserPoolConfigurationException = exports.AliasExistsException = exports.UsernameExistsException = exports.UnsupportedUserStateException = exports.PreconditionNotMetException = exports.InvalidSmsRoleTrustRelationshipException = exports.InvalidSmsRoleAccessPolicyException = exports.InvalidPasswordException = exports.CodeDeliveryFailureException = exports.UserStatusType = exports.MessageActionType = exports.DeliveryMediumType = exports.UserLambdaValidationException = exports.UnexpectedLambdaException = exports.TooManyFailedAttemptsException = exports.LimitExceededException = exports.InvalidLambdaResponseException = exports.UserNotFoundException = exports.UserImportInProgressException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.NotAuthorizedException = exports.InvalidParameterException = exports.InternalErrorException = exports.AttributeDataType = exports.AccountTakeoverEventActionType = exports.RecoveryOptionNameType = void 0;
|
|
4
4
|
exports.AdminRemoveUserFromGroupRequestFilterSensitiveLog = exports.AdminListUserAuthEventsRequestFilterSensitiveLog = exports.AdminListGroupsForUserRequestFilterSensitiveLog = exports.AdminListDevicesResponseFilterSensitiveLog = exports.AdminListDevicesRequestFilterSensitiveLog = exports.AdminInitiateAuthResponseFilterSensitiveLog = exports.AuthenticationResultTypeFilterSensitiveLog = exports.AdminInitiateAuthRequestFilterSensitiveLog = exports.AdminGetUserResponseFilterSensitiveLog = exports.AdminGetUserRequestFilterSensitiveLog = exports.AdminGetDeviceResponseFilterSensitiveLog = exports.DeviceTypeFilterSensitiveLog = exports.AdminGetDeviceRequestFilterSensitiveLog = exports.AdminForgetDeviceRequestFilterSensitiveLog = exports.AdminEnableUserRequestFilterSensitiveLog = exports.AdminDisableUserRequestFilterSensitiveLog = exports.AdminDeleteUserAttributesRequestFilterSensitiveLog = exports.AdminDeleteUserRequestFilterSensitiveLog = exports.AdminCreateUserResponseFilterSensitiveLog = exports.UserTypeFilterSensitiveLog = exports.AdminCreateUserRequestFilterSensitiveLog = exports.AttributeTypeFilterSensitiveLog = exports.AdminConfirmSignUpRequestFilterSensitiveLog = exports.AdminAddUserToGroupRequestFilterSensitiveLog = exports.UnsupportedTokenTypeException = exports.UnsupportedOperationException = exports.UnauthorizedException = exports.DomainStatusType = exports.EventFilterType = exports.CompromisedCredentialsEventActionType = exports.UnsupportedIdentityProviderException = exports.ScopeDoesNotExistException = exports.InvalidOAuthFlowException = exports.TimeUnitsType = exports.PreventUserExistenceErrorTypes = exports.ExplicitAuthFlowsType = exports.OAuthFlowType = exports.UserPoolTaggingException = exports.StatusType = exports.DefaultEmailOptionType = exports.UsernameAttributeType = exports.UserPoolMfaType = exports.CustomSMSSenderLambdaVersionType = exports.CustomEmailSenderLambdaVersionType = exports.EmailSendingAccountType = exports.DeletionProtectionType = exports.UserImportJobStatusType = exports.DuplicateProviderException = exports.IdentityProviderTypeType = exports.GroupExistsException = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.SetUserSettingsRequestFilterSensitiveLog = exports.SetUserMFAPreferenceRequestFilterSensitiveLog = exports.SetUICustomizationResponseFilterSensitiveLog = exports.SetUICustomizationRequestFilterSensitiveLog = exports.SetRiskConfigurationResponseFilterSensitiveLog = void 0;
|
|
5
|
+
exports.RevokeTokenRequestFilterSensitiveLog = exports.RespondToAuthChallengeResponseFilterSensitiveLog = exports.RespondToAuthChallengeRequestFilterSensitiveLog = exports.ResendConfirmationCodeRequestFilterSensitiveLog = exports.ListUsersInGroupResponseFilterSensitiveLog = exports.ListUsersResponseFilterSensitiveLog = exports.ListUserPoolClientsResponseFilterSensitiveLog = exports.UserPoolClientDescriptionFilterSensitiveLog = exports.ListDevicesResponseFilterSensitiveLog = exports.ListDevicesRequestFilterSensitiveLog = exports.InitiateAuthResponseFilterSensitiveLog = exports.InitiateAuthRequestFilterSensitiveLog = exports.GlobalSignOutRequestFilterSensitiveLog = exports.GetUserAttributeVerificationCodeRequestFilterSensitiveLog = exports.GetUserResponseFilterSensitiveLog = exports.GetUserRequestFilterSensitiveLog = exports.GetUICustomizationResponseFilterSensitiveLog = exports.UICustomizationTypeFilterSensitiveLog = exports.GetUICustomizationRequestFilterSensitiveLog = exports.GetDeviceResponseFilterSensitiveLog = exports.GetDeviceRequestFilterSensitiveLog = exports.ForgotPasswordRequestFilterSensitiveLog = exports.ForgetDeviceRequestFilterSensitiveLog = exports.DescribeUserPoolClientResponseFilterSensitiveLog = exports.DescribeUserPoolClientRequestFilterSensitiveLog = exports.DescribeRiskConfigurationResponseFilterSensitiveLog = exports.RiskConfigurationTypeFilterSensitiveLog = exports.DescribeRiskConfigurationRequestFilterSensitiveLog = exports.DeleteUserPoolClientRequestFilterSensitiveLog = exports.DeleteUserAttributesRequestFilterSensitiveLog = exports.DeleteUserRequestFilterSensitiveLog = exports.CreateUserPoolClientResponseFilterSensitiveLog = exports.UserPoolClientTypeFilterSensitiveLog = exports.ConfirmSignUpRequestFilterSensitiveLog = exports.ConfirmForgotPasswordRequestFilterSensitiveLog = exports.UserContextDataTypeFilterSensitiveLog = exports.ConfirmDeviceRequestFilterSensitiveLog = exports.ChangePasswordRequestFilterSensitiveLog = exports.AssociateSoftwareTokenResponseFilterSensitiveLog = exports.AssociateSoftwareTokenRequestFilterSensitiveLog = exports.AdminUserGlobalSignOutRequestFilterSensitiveLog = exports.AdminUpdateUserAttributesRequestFilterSensitiveLog = exports.AdminUpdateDeviceStatusRequestFilterSensitiveLog = exports.AdminUpdateAuthEventFeedbackRequestFilterSensitiveLog = exports.AdminSetUserSettingsRequestFilterSensitiveLog = exports.AdminSetUserPasswordRequestFilterSensitiveLog = exports.AdminSetUserMFAPreferenceRequestFilterSensitiveLog = exports.AdminRespondToAuthChallengeResponseFilterSensitiveLog = exports.AdminRespondToAuthChallengeRequestFilterSensitiveLog = exports.AdminResetUserPasswordRequestFilterSensitiveLog = void 0;
|
|
6
|
+
exports.SetUserSettingsRequestFilterSensitiveLog = exports.SetUserMFAPreferenceRequestFilterSensitiveLog = exports.SetUICustomizationResponseFilterSensitiveLog = exports.SetUICustomizationRequestFilterSensitiveLog = exports.SetRiskConfigurationResponseFilterSensitiveLog = exports.SetRiskConfigurationRequestFilterSensitiveLog = void 0;
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
8
|
const CognitoIdentityProviderServiceException_1 = require("./CognitoIdentityProviderServiceException");
|
|
9
9
|
exports.RecoveryOptionNameType = {
|
|
@@ -831,6 +831,7 @@ const AuthenticationResultTypeFilterSensitiveLog = (obj) => ({
|
|
|
831
831
|
exports.AuthenticationResultTypeFilterSensitiveLog = AuthenticationResultTypeFilterSensitiveLog;
|
|
832
832
|
const AdminInitiateAuthResponseFilterSensitiveLog = (obj) => ({
|
|
833
833
|
...obj,
|
|
834
|
+
...(obj.Session && { Session: smithy_client_1.SENSITIVE_STRING }),
|
|
834
835
|
...(obj.AuthenticationResult && {
|
|
835
836
|
AuthenticationResult: (0, exports.AuthenticationResultTypeFilterSensitiveLog)(obj.AuthenticationResult),
|
|
836
837
|
}),
|
|
@@ -868,10 +869,13 @@ exports.AdminResetUserPasswordRequestFilterSensitiveLog = AdminResetUserPassword
|
|
|
868
869
|
const AdminRespondToAuthChallengeRequestFilterSensitiveLog = (obj) => ({
|
|
869
870
|
...obj,
|
|
870
871
|
...(obj.ClientId && { ClientId: smithy_client_1.SENSITIVE_STRING }),
|
|
872
|
+
...(obj.ChallengeResponses && { ChallengeResponses: smithy_client_1.SENSITIVE_STRING }),
|
|
873
|
+
...(obj.Session && { Session: smithy_client_1.SENSITIVE_STRING }),
|
|
871
874
|
});
|
|
872
875
|
exports.AdminRespondToAuthChallengeRequestFilterSensitiveLog = AdminRespondToAuthChallengeRequestFilterSensitiveLog;
|
|
873
876
|
const AdminRespondToAuthChallengeResponseFilterSensitiveLog = (obj) => ({
|
|
874
877
|
...obj,
|
|
878
|
+
...(obj.Session && { Session: smithy_client_1.SENSITIVE_STRING }),
|
|
875
879
|
...(obj.AuthenticationResult && {
|
|
876
880
|
AuthenticationResult: (0, exports.AuthenticationResultTypeFilterSensitiveLog)(obj.AuthenticationResult),
|
|
877
881
|
}),
|
|
@@ -919,11 +923,13 @@ exports.AdminUserGlobalSignOutRequestFilterSensitiveLog = AdminUserGlobalSignOut
|
|
|
919
923
|
const AssociateSoftwareTokenRequestFilterSensitiveLog = (obj) => ({
|
|
920
924
|
...obj,
|
|
921
925
|
...(obj.AccessToken && { AccessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
926
|
+
...(obj.Session && { Session: smithy_client_1.SENSITIVE_STRING }),
|
|
922
927
|
});
|
|
923
928
|
exports.AssociateSoftwareTokenRequestFilterSensitiveLog = AssociateSoftwareTokenRequestFilterSensitiveLog;
|
|
924
929
|
const AssociateSoftwareTokenResponseFilterSensitiveLog = (obj) => ({
|
|
925
930
|
...obj,
|
|
926
931
|
...(obj.SecretCode && { SecretCode: smithy_client_1.SENSITIVE_STRING }),
|
|
932
|
+
...(obj.Session && { Session: smithy_client_1.SENSITIVE_STRING }),
|
|
927
933
|
});
|
|
928
934
|
exports.AssociateSoftwareTokenResponseFilterSensitiveLog = AssociateSoftwareTokenResponseFilterSensitiveLog;
|
|
929
935
|
const ChangePasswordRequestFilterSensitiveLog = (obj) => ({
|
|
@@ -938,12 +944,17 @@ const ConfirmDeviceRequestFilterSensitiveLog = (obj) => ({
|
|
|
938
944
|
...(obj.AccessToken && { AccessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
939
945
|
});
|
|
940
946
|
exports.ConfirmDeviceRequestFilterSensitiveLog = ConfirmDeviceRequestFilterSensitiveLog;
|
|
947
|
+
const UserContextDataTypeFilterSensitiveLog = (obj) => ({
|
|
948
|
+
...obj,
|
|
949
|
+
});
|
|
950
|
+
exports.UserContextDataTypeFilterSensitiveLog = UserContextDataTypeFilterSensitiveLog;
|
|
941
951
|
const ConfirmForgotPasswordRequestFilterSensitiveLog = (obj) => ({
|
|
942
952
|
...obj,
|
|
943
953
|
...(obj.ClientId && { ClientId: smithy_client_1.SENSITIVE_STRING }),
|
|
944
954
|
...(obj.SecretHash && { SecretHash: smithy_client_1.SENSITIVE_STRING }),
|
|
945
955
|
...(obj.Username && { Username: smithy_client_1.SENSITIVE_STRING }),
|
|
946
956
|
...(obj.Password && { Password: smithy_client_1.SENSITIVE_STRING }),
|
|
957
|
+
...(obj.UserContextData && { UserContextData: smithy_client_1.SENSITIVE_STRING }),
|
|
947
958
|
});
|
|
948
959
|
exports.ConfirmForgotPasswordRequestFilterSensitiveLog = ConfirmForgotPasswordRequestFilterSensitiveLog;
|
|
949
960
|
const ConfirmSignUpRequestFilterSensitiveLog = (obj) => ({
|
|
@@ -951,6 +962,7 @@ const ConfirmSignUpRequestFilterSensitiveLog = (obj) => ({
|
|
|
951
962
|
...(obj.ClientId && { ClientId: smithy_client_1.SENSITIVE_STRING }),
|
|
952
963
|
...(obj.SecretHash && { SecretHash: smithy_client_1.SENSITIVE_STRING }),
|
|
953
964
|
...(obj.Username && { Username: smithy_client_1.SENSITIVE_STRING }),
|
|
965
|
+
...(obj.UserContextData && { UserContextData: smithy_client_1.SENSITIVE_STRING }),
|
|
954
966
|
});
|
|
955
967
|
exports.ConfirmSignUpRequestFilterSensitiveLog = ConfirmSignUpRequestFilterSensitiveLog;
|
|
956
968
|
const UserPoolClientTypeFilterSensitiveLog = (obj) => ({
|
|
@@ -1013,6 +1025,7 @@ const ForgotPasswordRequestFilterSensitiveLog = (obj) => ({
|
|
|
1013
1025
|
...obj,
|
|
1014
1026
|
...(obj.ClientId && { ClientId: smithy_client_1.SENSITIVE_STRING }),
|
|
1015
1027
|
...(obj.SecretHash && { SecretHash: smithy_client_1.SENSITIVE_STRING }),
|
|
1028
|
+
...(obj.UserContextData && { UserContextData: smithy_client_1.SENSITIVE_STRING }),
|
|
1016
1029
|
...(obj.Username && { Username: smithy_client_1.SENSITIVE_STRING }),
|
|
1017
1030
|
});
|
|
1018
1031
|
exports.ForgotPasswordRequestFilterSensitiveLog = ForgotPasswordRequestFilterSensitiveLog;
|
|
@@ -1068,10 +1081,12 @@ const InitiateAuthRequestFilterSensitiveLog = (obj) => ({
|
|
|
1068
1081
|
...obj,
|
|
1069
1082
|
...(obj.AuthParameters && { AuthParameters: smithy_client_1.SENSITIVE_STRING }),
|
|
1070
1083
|
...(obj.ClientId && { ClientId: smithy_client_1.SENSITIVE_STRING }),
|
|
1084
|
+
...(obj.UserContextData && { UserContextData: smithy_client_1.SENSITIVE_STRING }),
|
|
1071
1085
|
});
|
|
1072
1086
|
exports.InitiateAuthRequestFilterSensitiveLog = InitiateAuthRequestFilterSensitiveLog;
|
|
1073
1087
|
const InitiateAuthResponseFilterSensitiveLog = (obj) => ({
|
|
1074
1088
|
...obj,
|
|
1089
|
+
...(obj.Session && { Session: smithy_client_1.SENSITIVE_STRING }),
|
|
1075
1090
|
...(obj.AuthenticationResult && {
|
|
1076
1091
|
AuthenticationResult: (0, exports.AuthenticationResultTypeFilterSensitiveLog)(obj.AuthenticationResult),
|
|
1077
1092
|
}),
|
|
@@ -1112,16 +1127,21 @@ const ResendConfirmationCodeRequestFilterSensitiveLog = (obj) => ({
|
|
|
1112
1127
|
...obj,
|
|
1113
1128
|
...(obj.ClientId && { ClientId: smithy_client_1.SENSITIVE_STRING }),
|
|
1114
1129
|
...(obj.SecretHash && { SecretHash: smithy_client_1.SENSITIVE_STRING }),
|
|
1130
|
+
...(obj.UserContextData && { UserContextData: smithy_client_1.SENSITIVE_STRING }),
|
|
1115
1131
|
...(obj.Username && { Username: smithy_client_1.SENSITIVE_STRING }),
|
|
1116
1132
|
});
|
|
1117
1133
|
exports.ResendConfirmationCodeRequestFilterSensitiveLog = ResendConfirmationCodeRequestFilterSensitiveLog;
|
|
1118
1134
|
const RespondToAuthChallengeRequestFilterSensitiveLog = (obj) => ({
|
|
1119
1135
|
...obj,
|
|
1120
1136
|
...(obj.ClientId && { ClientId: smithy_client_1.SENSITIVE_STRING }),
|
|
1137
|
+
...(obj.Session && { Session: smithy_client_1.SENSITIVE_STRING }),
|
|
1138
|
+
...(obj.ChallengeResponses && { ChallengeResponses: smithy_client_1.SENSITIVE_STRING }),
|
|
1139
|
+
...(obj.UserContextData && { UserContextData: smithy_client_1.SENSITIVE_STRING }),
|
|
1121
1140
|
});
|
|
1122
1141
|
exports.RespondToAuthChallengeRequestFilterSensitiveLog = RespondToAuthChallengeRequestFilterSensitiveLog;
|
|
1123
1142
|
const RespondToAuthChallengeResponseFilterSensitiveLog = (obj) => ({
|
|
1124
1143
|
...obj,
|
|
1144
|
+
...(obj.Session && { Session: smithy_client_1.SENSITIVE_STRING }),
|
|
1125
1145
|
...(obj.AuthenticationResult && {
|
|
1126
1146
|
AuthenticationResult: (0, exports.AuthenticationResultTypeFilterSensitiveLog)(obj.AuthenticationResult),
|
|
1127
1147
|
}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerifyUserAttributeRequestFilterSensitiveLog = exports.VerifySoftwareTokenRequestFilterSensitiveLog = exports.UpdateUserPoolClientResponseFilterSensitiveLog = exports.UpdateUserPoolClientRequestFilterSensitiveLog = exports.UpdateUserAttributesRequestFilterSensitiveLog = exports.UpdateDeviceStatusRequestFilterSensitiveLog = exports.UpdateAuthEventFeedbackRequestFilterSensitiveLog = exports.SignUpRequestFilterSensitiveLog = exports.VerifySoftwareTokenResponseType = exports.EnableSoftwareTokenMFAException = void 0;
|
|
3
|
+
exports.VerifyUserAttributeRequestFilterSensitiveLog = exports.VerifySoftwareTokenResponseFilterSensitiveLog = exports.VerifySoftwareTokenRequestFilterSensitiveLog = exports.UpdateUserPoolClientResponseFilterSensitiveLog = exports.UpdateUserPoolClientRequestFilterSensitiveLog = exports.UpdateUserAttributesRequestFilterSensitiveLog = exports.UpdateDeviceStatusRequestFilterSensitiveLog = exports.UpdateAuthEventFeedbackRequestFilterSensitiveLog = exports.SignUpRequestFilterSensitiveLog = exports.VerifySoftwareTokenResponseType = exports.EnableSoftwareTokenMFAException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const CognitoIdentityProviderServiceException_1 = require("./CognitoIdentityProviderServiceException");
|
|
6
6
|
const models_0_1 = require("./models_0");
|
|
@@ -33,6 +33,7 @@ const SignUpRequestFilterSensitiveLog = (obj) => ({
|
|
|
33
33
|
...(obj.ValidationData && {
|
|
34
34
|
ValidationData: obj.ValidationData.map((item) => (0, models_0_1.AttributeTypeFilterSensitiveLog)(item)),
|
|
35
35
|
}),
|
|
36
|
+
...(obj.UserContextData && { UserContextData: smithy_client_1.SENSITIVE_STRING }),
|
|
36
37
|
});
|
|
37
38
|
exports.SignUpRequestFilterSensitiveLog = SignUpRequestFilterSensitiveLog;
|
|
38
39
|
const UpdateAuthEventFeedbackRequestFilterSensitiveLog = (obj) => ({
|
|
@@ -67,8 +68,15 @@ exports.UpdateUserPoolClientResponseFilterSensitiveLog = UpdateUserPoolClientRes
|
|
|
67
68
|
const VerifySoftwareTokenRequestFilterSensitiveLog = (obj) => ({
|
|
68
69
|
...obj,
|
|
69
70
|
...(obj.AccessToken && { AccessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
71
|
+
...(obj.Session && { Session: smithy_client_1.SENSITIVE_STRING }),
|
|
72
|
+
...(obj.UserCode && { UserCode: smithy_client_1.SENSITIVE_STRING }),
|
|
70
73
|
});
|
|
71
74
|
exports.VerifySoftwareTokenRequestFilterSensitiveLog = VerifySoftwareTokenRequestFilterSensitiveLog;
|
|
75
|
+
const VerifySoftwareTokenResponseFilterSensitiveLog = (obj) => ({
|
|
76
|
+
...obj,
|
|
77
|
+
...(obj.Session && { Session: smithy_client_1.SENSITIVE_STRING }),
|
|
78
|
+
});
|
|
79
|
+
exports.VerifySoftwareTokenResponseFilterSensitiveLog = VerifySoftwareTokenResponseFilterSensitiveLog;
|
|
72
80
|
const VerifyUserAttributeRequestFilterSensitiveLog = (obj) => ({
|
|
73
81
|
...obj,
|
|
74
82
|
...(obj.AccessToken && { AccessToken: smithy_client_1.SENSITIVE_STRING }),
|
|
@@ -2,7 +2,7 @@ import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
|
2
2
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
3
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
4
4
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
5
|
-
import { VerifySoftwareTokenRequestFilterSensitiveLog, } from "../models/models_1";
|
|
5
|
+
import { VerifySoftwareTokenRequestFilterSensitiveLog, VerifySoftwareTokenResponseFilterSensitiveLog, } from "../models/models_1";
|
|
6
6
|
import { de_VerifySoftwareTokenCommand, se_VerifySoftwareTokenCommand } from "../protocols/Aws_json1_1";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class VerifySoftwareTokenCommand extends $Command {
|
|
@@ -31,7 +31,7 @@ export class VerifySoftwareTokenCommand extends $Command {
|
|
|
31
31
|
clientName,
|
|
32
32
|
commandName,
|
|
33
33
|
inputFilterSensitiveLog: VerifySoftwareTokenRequestFilterSensitiveLog,
|
|
34
|
-
outputFilterSensitiveLog:
|
|
34
|
+
outputFilterSensitiveLog: VerifySoftwareTokenResponseFilterSensitiveLog,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -767,6 +767,7 @@ export const AuthenticationResultTypeFilterSensitiveLog = (obj) => ({
|
|
|
767
767
|
});
|
|
768
768
|
export const AdminInitiateAuthResponseFilterSensitiveLog = (obj) => ({
|
|
769
769
|
...obj,
|
|
770
|
+
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
770
771
|
...(obj.AuthenticationResult && {
|
|
771
772
|
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
772
773
|
}),
|
|
@@ -797,9 +798,12 @@ export const AdminResetUserPasswordRequestFilterSensitiveLog = (obj) => ({
|
|
|
797
798
|
export const AdminRespondToAuthChallengeRequestFilterSensitiveLog = (obj) => ({
|
|
798
799
|
...obj,
|
|
799
800
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
801
|
+
...(obj.ChallengeResponses && { ChallengeResponses: SENSITIVE_STRING }),
|
|
802
|
+
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
800
803
|
});
|
|
801
804
|
export const AdminRespondToAuthChallengeResponseFilterSensitiveLog = (obj) => ({
|
|
802
805
|
...obj,
|
|
806
|
+
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
803
807
|
...(obj.AuthenticationResult && {
|
|
804
808
|
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
805
809
|
}),
|
|
@@ -839,10 +843,12 @@ export const AdminUserGlobalSignOutRequestFilterSensitiveLog = (obj) => ({
|
|
|
839
843
|
export const AssociateSoftwareTokenRequestFilterSensitiveLog = (obj) => ({
|
|
840
844
|
...obj,
|
|
841
845
|
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
846
|
+
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
842
847
|
});
|
|
843
848
|
export const AssociateSoftwareTokenResponseFilterSensitiveLog = (obj) => ({
|
|
844
849
|
...obj,
|
|
845
850
|
...(obj.SecretCode && { SecretCode: SENSITIVE_STRING }),
|
|
851
|
+
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
846
852
|
});
|
|
847
853
|
export const ChangePasswordRequestFilterSensitiveLog = (obj) => ({
|
|
848
854
|
...obj,
|
|
@@ -854,18 +860,23 @@ export const ConfirmDeviceRequestFilterSensitiveLog = (obj) => ({
|
|
|
854
860
|
...obj,
|
|
855
861
|
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
856
862
|
});
|
|
863
|
+
export const UserContextDataTypeFilterSensitiveLog = (obj) => ({
|
|
864
|
+
...obj,
|
|
865
|
+
});
|
|
857
866
|
export const ConfirmForgotPasswordRequestFilterSensitiveLog = (obj) => ({
|
|
858
867
|
...obj,
|
|
859
868
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
860
869
|
...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
|
|
861
870
|
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
862
871
|
...(obj.Password && { Password: SENSITIVE_STRING }),
|
|
872
|
+
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
863
873
|
});
|
|
864
874
|
export const ConfirmSignUpRequestFilterSensitiveLog = (obj) => ({
|
|
865
875
|
...obj,
|
|
866
876
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
867
877
|
...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
|
|
868
878
|
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
879
|
+
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
869
880
|
});
|
|
870
881
|
export const UserPoolClientTypeFilterSensitiveLog = (obj) => ({
|
|
871
882
|
...obj,
|
|
@@ -916,6 +927,7 @@ export const ForgotPasswordRequestFilterSensitiveLog = (obj) => ({
|
|
|
916
927
|
...obj,
|
|
917
928
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
918
929
|
...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
|
|
930
|
+
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
919
931
|
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
920
932
|
});
|
|
921
933
|
export const GetDeviceRequestFilterSensitiveLog = (obj) => ({
|
|
@@ -961,9 +973,11 @@ export const InitiateAuthRequestFilterSensitiveLog = (obj) => ({
|
|
|
961
973
|
...obj,
|
|
962
974
|
...(obj.AuthParameters && { AuthParameters: SENSITIVE_STRING }),
|
|
963
975
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
976
|
+
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
964
977
|
});
|
|
965
978
|
export const InitiateAuthResponseFilterSensitiveLog = (obj) => ({
|
|
966
979
|
...obj,
|
|
980
|
+
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
967
981
|
...(obj.AuthenticationResult && {
|
|
968
982
|
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
969
983
|
}),
|
|
@@ -997,14 +1011,19 @@ export const ResendConfirmationCodeRequestFilterSensitiveLog = (obj) => ({
|
|
|
997
1011
|
...obj,
|
|
998
1012
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
999
1013
|
...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
|
|
1014
|
+
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
1000
1015
|
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
1001
1016
|
});
|
|
1002
1017
|
export const RespondToAuthChallengeRequestFilterSensitiveLog = (obj) => ({
|
|
1003
1018
|
...obj,
|
|
1004
1019
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1020
|
+
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
1021
|
+
...(obj.ChallengeResponses && { ChallengeResponses: SENSITIVE_STRING }),
|
|
1022
|
+
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
1005
1023
|
});
|
|
1006
1024
|
export const RespondToAuthChallengeResponseFilterSensitiveLog = (obj) => ({
|
|
1007
1025
|
...obj,
|
|
1026
|
+
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
1008
1027
|
...(obj.AuthenticationResult && {
|
|
1009
1028
|
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
1010
1029
|
}),
|
|
@@ -29,6 +29,7 @@ export const SignUpRequestFilterSensitiveLog = (obj) => ({
|
|
|
29
29
|
...(obj.ValidationData && {
|
|
30
30
|
ValidationData: obj.ValidationData.map((item) => AttributeTypeFilterSensitiveLog(item)),
|
|
31
31
|
}),
|
|
32
|
+
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
32
33
|
});
|
|
33
34
|
export const UpdateAuthEventFeedbackRequestFilterSensitiveLog = (obj) => ({
|
|
34
35
|
...obj,
|
|
@@ -57,6 +58,12 @@ export const UpdateUserPoolClientResponseFilterSensitiveLog = (obj) => ({
|
|
|
57
58
|
export const VerifySoftwareTokenRequestFilterSensitiveLog = (obj) => ({
|
|
58
59
|
...obj,
|
|
59
60
|
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
61
|
+
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
62
|
+
...(obj.UserCode && { UserCode: SENSITIVE_STRING }),
|
|
63
|
+
});
|
|
64
|
+
export const VerifySoftwareTokenResponseFilterSensitiveLog = (obj) => ({
|
|
65
|
+
...obj,
|
|
66
|
+
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
60
67
|
});
|
|
61
68
|
export const VerifyUserAttributeRequestFilterSensitiveLog = (obj) => ({
|
|
62
69
|
...obj,
|
|
@@ -714,8 +714,8 @@ export interface CognitoIdentityProvider {
|
|
|
714
714
|
* <p>Using the Amazon Cognito user pools API, you can create a user pool to manage directories and
|
|
715
715
|
* users. You can authenticate a user to obtain tokens related to user identity and access
|
|
716
716
|
* policies.</p>
|
|
717
|
-
*
|
|
718
|
-
*
|
|
717
|
+
* <p>This API reference provides information about user pools in Amazon Cognito user pools.</p>
|
|
718
|
+
* <p>For more information, see the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/what-is-amazon-cognito.html">Amazon Cognito
|
|
719
719
|
* Documentation</a>.</p>
|
|
720
720
|
*/
|
|
721
721
|
export declare class CognitoIdentityProvider extends CognitoIdentityProviderClient implements CognitoIdentityProvider {
|
|
@@ -249,8 +249,8 @@ export interface CognitoIdentityProviderClientResolvedConfig extends CognitoIden
|
|
|
249
249
|
* <p>Using the Amazon Cognito user pools API, you can create a user pool to manage directories and
|
|
250
250
|
* users. You can authenticate a user to obtain tokens related to user identity and access
|
|
251
251
|
* policies.</p>
|
|
252
|
-
*
|
|
253
|
-
*
|
|
252
|
+
* <p>This API reference provides information about user pools in Amazon Cognito user pools.</p>
|
|
253
|
+
* <p>For more information, see the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/what-is-amazon-cognito.html">Amazon Cognito
|
|
254
254
|
* Documentation</a>.</p>
|
|
255
255
|
*/
|
|
256
256
|
export declare class CognitoIdentityProviderClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, CognitoIdentityProviderClientResolvedConfig> {
|
|
@@ -24,7 +24,7 @@ export interface AdminAddUserToGroupCommandOutput extends __MetadataBearer {
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Adds the specified user to the specified group.</p>
|
|
27
|
-
*
|
|
27
|
+
* <p>Calling this action requires developer credentials.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -25,7 +25,7 @@ export interface AdminConfirmSignUpCommandOutput extends AdminConfirmSignUpRespo
|
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Confirms user registration as an admin without using a confirmation code. Works on any
|
|
27
27
|
* user.</p>
|
|
28
|
-
*
|
|
28
|
+
* <p>Calling this action requires developer credentials.</p>
|
|
29
29
|
* @example
|
|
30
30
|
* Use a bare-bones client and the command you need to make an API call.
|
|
31
31
|
* ```javascript
|
|
@@ -24,9 +24,8 @@ export interface AdminCreateUserCommandOutput extends AdminCreateUserResponse, _
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Creates a new user in the specified user pool.</p>
|
|
27
|
-
*
|
|
27
|
+
* <p>If <code>MessageAction</code> isn't set, the default is to send a welcome message via
|
|
28
28
|
* email or phone (SMS).</p>
|
|
29
|
-
*
|
|
30
29
|
* <note>
|
|
31
30
|
* <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers
|
|
32
31
|
* require you to register an origination phone number before you can send SMS messages
|
|
@@ -44,15 +43,14 @@ export interface AdminCreateUserCommandOutput extends AdminCreateUserResponse, _
|
|
|
44
43
|
* of the sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito
|
|
45
44
|
* Developer Guide</i>.</p>
|
|
46
45
|
* </note>
|
|
47
|
-
*
|
|
48
|
-
* <p>This message is based on a template that you configured in your call to create or
|
|
46
|
+
* <p>This message is based on a template that you configured in your call to create or
|
|
49
47
|
* update a user pool. This template includes your custom sign-up instructions and
|
|
50
48
|
* placeholders for user name and temporary password.</p>
|
|
51
|
-
*
|
|
49
|
+
* <p>Alternatively, you can call <code>AdminCreateUser</code> with <code>SUPPRESS</code>
|
|
52
50
|
* for the <code>MessageAction</code> parameter, and Amazon Cognito won't send any email. </p>
|
|
53
|
-
*
|
|
51
|
+
* <p>In either case, the user will be in the <code>FORCE_CHANGE_PASSWORD</code> state until
|
|
54
52
|
* they sign in and change their password.</p>
|
|
55
|
-
*
|
|
53
|
+
* <p>
|
|
56
54
|
* <code>AdminCreateUser</code> requires developer credentials.</p>
|
|
57
55
|
* @example
|
|
58
56
|
* Use a bare-bones client and the command you need to make an API call.
|
|
@@ -25,7 +25,7 @@ export interface AdminDeleteUserAttributesCommandOutput extends AdminDeleteUserA
|
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Deletes the user attributes in a user pool as an administrator. Works on any
|
|
27
27
|
* user.</p>
|
|
28
|
-
*
|
|
28
|
+
* <p>Calling this action requires developer credentials.</p>
|
|
29
29
|
* @example
|
|
30
30
|
* Use a bare-bones client and the command you need to make an API call.
|
|
31
31
|
* ```javascript
|
|
@@ -24,7 +24,7 @@ export interface AdminDeleteUserCommandOutput extends __MetadataBearer {
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Deletes a user as an administrator. Works on any user.</p>
|
|
27
|
-
*
|
|
27
|
+
* <p>Calling this action requires developer credentials.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -30,18 +30,18 @@ export interface AdminDisableProviderForUserCommandOutput extends AdminDisablePr
|
|
|
30
30
|
* user is removed. When the external user signs in again, and the user is no longer
|
|
31
31
|
* attached to the previously linked <code>DestinationUser</code>, the user must create a
|
|
32
32
|
* new user account. See <a href="https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminLinkProviderForUser.html">AdminLinkProviderForUser</a>.</p>
|
|
33
|
-
*
|
|
33
|
+
* <p>This action is enabled only for admin access and requires developer
|
|
34
34
|
* credentials.</p>
|
|
35
|
-
*
|
|
35
|
+
* <p>The <code>ProviderName</code> must match the value specified when creating an IdP for
|
|
36
36
|
* the pool. </p>
|
|
37
|
-
*
|
|
37
|
+
* <p>To deactivate a native username + password user, the <code>ProviderName</code> value
|
|
38
38
|
* must be <code>Cognito</code> and the <code>ProviderAttributeName</code> must be
|
|
39
39
|
* <code>Cognito_Subject</code>. The <code>ProviderAttributeValue</code> must be the
|
|
40
40
|
* name that is used in the user pool for the user.</p>
|
|
41
|
-
*
|
|
41
|
+
* <p>The <code>ProviderAttributeName</code> must always be <code>Cognito_Subject</code> for
|
|
42
42
|
* social IdPs. The <code>ProviderAttributeValue</code> must always be the exact subject
|
|
43
43
|
* that was used when the user was originally linked as a source user.</p>
|
|
44
|
-
*
|
|
44
|
+
* <p>For de-linking a SAML identity, there are two scenarios. If the linked identity has
|
|
45
45
|
* not yet been used to sign in, the <code>ProviderAttributeName</code> and
|
|
46
46
|
* <code>ProviderAttributeValue</code> must be the same values that were used for the
|
|
47
47
|
* <code>SourceUser</code> when the identities were originally linked using <code>
|
|
@@ -25,7 +25,7 @@ export interface AdminDisableUserCommandOutput extends AdminDisableUserResponse,
|
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Deactivates a user and revokes all access tokens for the user. A deactivated user can't sign in,
|
|
27
27
|
* but still appears in the responses to <code>GetUser</code> and <code>ListUsers</code> API requests.</p>
|
|
28
|
-
*
|
|
28
|
+
* <p>You must make this API request with Amazon Web Services credentials that have <code>cognito-idp:AdminDisableUser</code> permissions.</p>
|
|
29
29
|
* @example
|
|
30
30
|
* Use a bare-bones client and the command you need to make an API call.
|
|
31
31
|
* ```javascript
|
|
@@ -24,7 +24,7 @@ export interface AdminEnableUserCommandOutput extends AdminEnableUserResponse, _
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Enables the specified user as an administrator. Works on any user.</p>
|
|
27
|
-
*
|
|
27
|
+
* <p>Calling this action requires developer credentials.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -24,7 +24,7 @@ export interface AdminForgetDeviceCommandOutput extends __MetadataBearer {
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Forgets the device, as an administrator.</p>
|
|
27
|
-
*
|
|
27
|
+
* <p>Calling this action requires developer credentials.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -24,7 +24,7 @@ export interface AdminGetDeviceCommandOutput extends AdminGetDeviceResponse, __M
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Gets the device, as an administrator.</p>
|
|
27
|
-
*
|
|
27
|
+
* <p>Calling this action requires developer credentials.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -25,7 +25,7 @@ export interface AdminGetUserCommandOutput extends AdminGetUserResponse, __Metad
|
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Gets the specified user by user name in a user pool as an administrator. Works on any
|
|
27
27
|
* user.</p>
|
|
28
|
-
*
|
|
28
|
+
* <p>Calling this action requires developer credentials.</p>
|
|
29
29
|
* @example
|
|
30
30
|
* Use a bare-bones client and the command you need to make an API call.
|
|
31
31
|
* ```javascript
|
|
@@ -24,7 +24,6 @@ export interface AdminInitiateAuthCommandOutput extends AdminInitiateAuthRespons
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Initiates the authentication flow, as an administrator.</p>
|
|
27
|
-
*
|
|
28
27
|
* <note>
|
|
29
28
|
* <p>This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers
|
|
30
29
|
* require you to register an origination phone number before you can send SMS messages
|
|
@@ -42,8 +41,7 @@ export interface AdminInitiateAuthCommandOutput extends AdminInitiateAuthRespons
|
|
|
42
41
|
* of the sandbox and into production. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-sms-userpool-settings.html"> SMS message settings for Amazon Cognito user pools</a> in the <i>Amazon Cognito
|
|
43
42
|
* Developer Guide</i>.</p>
|
|
44
43
|
* </note>
|
|
45
|
-
*
|
|
46
|
-
* <p>Calling this action requires developer credentials.</p>
|
|
44
|
+
* <p>Calling this action requires developer credentials.</p>
|
|
47
45
|
* @example
|
|
48
46
|
* Use a bare-bones client and the command you need to make an API call.
|
|
49
47
|
* ```javascript
|
|
@@ -29,19 +29,18 @@ export interface AdminLinkProviderForUserCommandOutput extends AdminLinkProvider
|
|
|
29
29
|
* user account to an external federated user identity that has not yet been used to sign
|
|
30
30
|
* in. You can then use the federated user identity to sign in as the existing user
|
|
31
31
|
* account. </p>
|
|
32
|
-
*
|
|
32
|
+
* <p> For example, if there is an existing user with a username and password, this API
|
|
33
33
|
* links that user to a federated user identity. When the user signs in with a federated
|
|
34
34
|
* user identity, they sign in as the existing user account.</p>
|
|
35
|
-
*
|
|
35
|
+
* <note>
|
|
36
36
|
* <p>The maximum number of federated identities linked to a user is five.</p>
|
|
37
|
-
*
|
|
38
|
-
*
|
|
37
|
+
* </note>
|
|
38
|
+
* <important>
|
|
39
39
|
* <p>Because this API allows a user with an external federated identity to sign in as
|
|
40
40
|
* an existing user in the user pool, it is critical that it only be used with external
|
|
41
41
|
* IdPs and provider attributes that have been trusted by the application owner.</p>
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* <p>This action is administrative and requires developer credentials.</p>
|
|
42
|
+
* </important>
|
|
43
|
+
* <p>This action is administrative and requires developer credentials.</p>
|
|
45
44
|
* @example
|
|
46
45
|
* Use a bare-bones client and the command you need to make an API call.
|
|
47
46
|
* ```javascript
|
|
@@ -24,7 +24,7 @@ export interface AdminListDevicesCommandOutput extends AdminListDevicesResponse,
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Lists devices, as an administrator.</p>
|
|
27
|
-
*
|
|
27
|
+
* <p>Calling this action requires developer credentials.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -24,7 +24,7 @@ export interface AdminListGroupsForUserCommandOutput extends AdminListGroupsForU
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Lists the groups that the user belongs to.</p>
|
|
27
|
-
*
|
|
27
|
+
* <p>Calling this action requires developer credentials.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -24,7 +24,7 @@ export interface AdminRemoveUserFromGroupCommandOutput extends __MetadataBearer
|
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
26
|
* <p>Removes the specified user from the specified group.</p>
|
|
27
|
-
*
|
|
27
|
+
* <p>Calling this action requires developer credentials.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|