@aws-sdk/client-cognito-identity-provider 3.382.0 → 3.383.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/README.md +83 -6
- package/dist-cjs/CognitoIdentityProvider.js +4 -0
- package/dist-cjs/commands/GetLogDeliveryConfigurationCommand.js +48 -0
- package/dist-cjs/commands/SetLogDeliveryConfigurationCommand.js +48 -0
- package/dist-cjs/commands/SetRiskConfigurationCommand.js +2 -1
- package/dist-cjs/commands/SetUICustomizationCommand.js +3 -3
- package/dist-cjs/commands/SetUserMFAPreferenceCommand.js +2 -2
- package/dist-cjs/commands/SetUserSettingsCommand.js +2 -2
- package/dist-cjs/commands/VerifySoftwareTokenCommand.js +1 -1
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/models/models_0.js +9 -48
- package/dist-cjs/models/models_1.js +26 -9
- package/dist-cjs/protocols/Aws_json1_1.js +108 -4
- package/dist-es/CognitoIdentityProvider.js +4 -0
- package/dist-es/commands/GetLogDeliveryConfigurationCommand.js +44 -0
- package/dist-es/commands/SetLogDeliveryConfigurationCommand.js +44 -0
- package/dist-es/commands/SetRiskConfigurationCommand.js +2 -1
- package/dist-es/commands/SetUICustomizationCommand.js +1 -1
- package/dist-es/commands/SetUserMFAPreferenceCommand.js +1 -1
- package/dist-es/commands/SetUserSettingsCommand.js +1 -1
- package/dist-es/commands/VerifySoftwareTokenCommand.js +2 -2
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +6 -39
- package/dist-es/models/models_1.js +21 -8
- package/dist-es/protocols/Aws_json1_1.js +100 -0
- package/dist-types/CognitoIdentityProvider.d.ts +81 -6
- package/dist-types/CognitoIdentityProviderClient.d.ts +71 -8
- package/dist-types/commands/AddCustomAttributesCommand.d.ts +20 -0
- package/dist-types/commands/AdminAddUserToGroupCommand.d.ts +20 -1
- package/dist-types/commands/AdminConfirmSignUpCommand.d.ts +20 -1
- package/dist-types/commands/AdminCreateUserCommand.d.ts +22 -4
- package/dist-types/commands/AdminDeleteUserAttributesCommand.d.ts +20 -1
- package/dist-types/commands/AdminDeleteUserCommand.d.ts +20 -1
- package/dist-types/commands/AdminDisableProviderForUserCommand.d.ts +22 -4
- package/dist-types/commands/AdminDisableUserCommand.d.ts +23 -3
- package/dist-types/commands/AdminEnableUserCommand.d.ts +20 -1
- package/dist-types/commands/AdminForgetDeviceCommand.d.ts +20 -1
- package/dist-types/commands/AdminGetDeviceCommand.d.ts +20 -1
- package/dist-types/commands/AdminGetUserCommand.d.ts +20 -1
- package/dist-types/commands/AdminInitiateAuthCommand.d.ts +22 -3
- package/dist-types/commands/AdminLinkProviderForUserCommand.d.ts +22 -3
- package/dist-types/commands/AdminListDevicesCommand.d.ts +20 -1
- package/dist-types/commands/AdminListGroupsForUserCommand.d.ts +20 -1
- package/dist-types/commands/AdminListUserAuthEventsCommand.d.ts +20 -0
- package/dist-types/commands/AdminRemoveUserFromGroupCommand.d.ts +20 -1
- package/dist-types/commands/AdminResetUserPasswordCommand.d.ts +30 -11
- package/dist-types/commands/AdminRespondToAuthChallengeCommand.d.ts +24 -5
- package/dist-types/commands/AdminSetUserMFAPreferenceCommand.d.ts +20 -0
- package/dist-types/commands/AdminSetUserPasswordCommand.d.ts +31 -0
- package/dist-types/commands/AdminSetUserSettingsCommand.d.ts +20 -0
- package/dist-types/commands/AdminUpdateAuthEventFeedbackCommand.d.ts +20 -0
- package/dist-types/commands/AdminUpdateDeviceStatusCommand.d.ts +20 -1
- package/dist-types/commands/AdminUpdateUserAttributesCommand.d.ts +31 -12
- package/dist-types/commands/AdminUserGlobalSignOutCommand.d.ts +28 -7
- package/dist-types/commands/AssociateSoftwareTokenCommand.d.ts +8 -1
- package/dist-types/commands/ChangePasswordCommand.d.ts +8 -1
- package/dist-types/commands/ConfirmDeviceCommand.d.ts +8 -1
- package/dist-types/commands/ConfirmForgotPasswordCommand.d.ts +8 -1
- package/dist-types/commands/ConfirmSignUpCommand.d.ts +10 -3
- package/dist-types/commands/CreateGroupCommand.d.ts +20 -1
- package/dist-types/commands/CreateIdentityProviderCommand.d.ts +20 -0
- package/dist-types/commands/CreateResourceServerCommand.d.ts +20 -0
- package/dist-types/commands/CreateUserImportJobCommand.d.ts +21 -1
- package/dist-types/commands/CreateUserPoolClientCommand.d.ts +23 -0
- package/dist-types/commands/CreateUserPoolCommand.d.ts +28 -5
- package/dist-types/commands/CreateUserPoolDomainCommand.d.ts +20 -0
- package/dist-types/commands/DeleteUserAttributesCommand.d.ts +8 -1
- package/dist-types/commands/DeleteUserCommand.d.ts +9 -2
- package/dist-types/commands/DescribeUserPoolClientCommand.d.ts +20 -0
- package/dist-types/commands/DescribeUserPoolCommand.d.ts +20 -0
- package/dist-types/commands/ForgetDeviceCommand.d.ts +8 -1
- package/dist-types/commands/ForgotPasswordCommand.d.ts +16 -7
- package/dist-types/commands/GetDeviceCommand.d.ts +8 -1
- package/dist-types/commands/GetLogDeliveryConfigurationCommand.d.ts +102 -0
- package/dist-types/commands/GetSigningCertificateCommand.d.ts +5 -3
- package/dist-types/commands/GetUserAttributeVerificationCodeCommand.d.ts +10 -3
- package/dist-types/commands/GetUserCommand.d.ts +8 -1
- package/dist-types/commands/GlobalSignOutCommand.d.ts +16 -4
- package/dist-types/commands/InitiateAuthCommand.d.ts +10 -3
- package/dist-types/commands/ListDevicesCommand.d.ts +8 -1
- package/dist-types/commands/ListGroupsCommand.d.ts +20 -1
- package/dist-types/commands/ListIdentityProvidersCommand.d.ts +20 -0
- package/dist-types/commands/ListResourceServersCommand.d.ts +20 -0
- package/dist-types/commands/ListUserImportJobsCommand.d.ts +21 -1
- package/dist-types/commands/ListUserPoolClientsCommand.d.ts +20 -0
- package/dist-types/commands/ListUserPoolsCommand.d.ts +20 -0
- package/dist-types/commands/ListUsersCommand.d.ts +21 -1
- package/dist-types/commands/ListUsersInGroupCommand.d.ts +20 -1
- package/dist-types/commands/ResendConfirmationCodeCommand.d.ts +10 -3
- package/dist-types/commands/RespondToAuthChallengeCommand.d.ts +12 -5
- package/dist-types/commands/RevokeTokenCommand.d.ts +10 -3
- package/dist-types/commands/SetLogDeliveryConfigurationCommand.d.ts +111 -0
- package/dist-types/commands/SetRiskConfigurationCommand.d.ts +2 -1
- package/dist-types/commands/SetUICustomizationCommand.d.ts +1 -1
- package/dist-types/commands/SetUserMFAPreferenceCommand.d.ts +9 -2
- package/dist-types/commands/SetUserPoolMfaConfigCommand.d.ts +3 -3
- package/dist-types/commands/SetUserSettingsCommand.d.ts +9 -2
- package/dist-types/commands/SignUpCommand.d.ts +10 -3
- package/dist-types/commands/UpdateAuthEventFeedbackCommand.d.ts +6 -0
- package/dist-types/commands/UpdateDeviceStatusCommand.d.ts +8 -1
- package/dist-types/commands/UpdateGroupCommand.d.ts +20 -1
- package/dist-types/commands/UpdateIdentityProviderCommand.d.ts +20 -0
- package/dist-types/commands/UpdateResourceServerCommand.d.ts +20 -0
- package/dist-types/commands/UpdateUserAttributesCommand.d.ts +12 -5
- package/dist-types/commands/UpdateUserPoolClientCommand.d.ts +21 -2
- package/dist-types/commands/UpdateUserPoolCommand.d.ts +28 -7
- package/dist-types/commands/UpdateUserPoolDomainCommand.d.ts +20 -0
- package/dist-types/commands/VerifySoftwareTokenCommand.d.ts +8 -1
- package/dist-types/commands/VerifyUserAttributeCommand.d.ts +13 -9
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/index.d.ts +67 -6
- package/dist-types/models/models_0.d.ts +371 -319
- package/dist-types/models/models_1.d.ts +242 -18
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/CognitoIdentityProvider.d.ts +34 -0
- package/dist-types/ts3.4/CognitoIdentityProviderClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/GetLogDeliveryConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/SetLogDeliveryConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/SetRiskConfigurationCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/SetUICustomizationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SetUserMFAPreferenceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SetUserPoolMfaConfigCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/SetUserSettingsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +34 -52
- package/dist-types/ts3.4/models/models_1.d.ts +56 -3
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.se_DescribeRiskConfigurationCommand = exports.se_DescribeResourceServerCommand = exports.se_DescribeIdentityProviderCommand = exports.se_DeleteUserPoolDomainCommand = exports.se_DeleteUserPoolClientCommand = exports.se_DeleteUserPoolCommand = exports.se_DeleteUserAttributesCommand = exports.se_DeleteUserCommand = exports.se_DeleteResourceServerCommand = exports.se_DeleteIdentityProviderCommand = exports.se_DeleteGroupCommand = exports.se_CreateUserPoolDomainCommand = exports.se_CreateUserPoolClientCommand = exports.se_CreateUserPoolCommand = exports.se_CreateUserImportJobCommand = exports.se_CreateResourceServerCommand = exports.se_CreateIdentityProviderCommand = exports.se_CreateGroupCommand = exports.se_ConfirmSignUpCommand = exports.se_ConfirmForgotPasswordCommand = exports.se_ConfirmDeviceCommand = exports.se_ChangePasswordCommand = exports.se_AssociateSoftwareTokenCommand = exports.se_AdminUserGlobalSignOutCommand = exports.se_AdminUpdateUserAttributesCommand = exports.se_AdminUpdateDeviceStatusCommand = exports.se_AdminUpdateAuthEventFeedbackCommand = exports.se_AdminSetUserSettingsCommand = exports.se_AdminSetUserPasswordCommand = exports.se_AdminSetUserMFAPreferenceCommand = exports.se_AdminRespondToAuthChallengeCommand = exports.se_AdminResetUserPasswordCommand = exports.se_AdminRemoveUserFromGroupCommand = exports.se_AdminListUserAuthEventsCommand = exports.se_AdminListGroupsForUserCommand = exports.se_AdminListDevicesCommand = exports.se_AdminLinkProviderForUserCommand = exports.se_AdminInitiateAuthCommand = exports.se_AdminGetUserCommand = exports.se_AdminGetDeviceCommand = exports.se_AdminForgetDeviceCommand = exports.se_AdminEnableUserCommand = exports.se_AdminDisableUserCommand = exports.se_AdminDisableProviderForUserCommand = exports.se_AdminDeleteUserAttributesCommand = exports.se_AdminDeleteUserCommand = exports.se_AdminCreateUserCommand = exports.se_AdminConfirmSignUpCommand = exports.se_AdminAddUserToGroupCommand = exports.se_AddCustomAttributesCommand = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.de_VerifyUserAttributeCommand = exports.de_VerifySoftwareTokenCommand = void 0;
|
|
4
|
+
exports.se_UpdateUserPoolClientCommand = exports.se_UpdateUserPoolCommand = exports.se_UpdateUserAttributesCommand = exports.se_UpdateResourceServerCommand = exports.se_UpdateIdentityProviderCommand = exports.se_UpdateGroupCommand = exports.se_UpdateDeviceStatusCommand = exports.se_UpdateAuthEventFeedbackCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopUserImportJobCommand = exports.se_StartUserImportJobCommand = exports.se_SignUpCommand = exports.se_SetUserSettingsCommand = exports.se_SetUserPoolMfaConfigCommand = exports.se_SetUserMFAPreferenceCommand = exports.se_SetUICustomizationCommand = exports.se_SetRiskConfigurationCommand = exports.se_SetLogDeliveryConfigurationCommand = exports.se_RevokeTokenCommand = exports.se_RespondToAuthChallengeCommand = exports.se_ResendConfirmationCodeCommand = exports.se_ListUsersInGroupCommand = exports.se_ListUsersCommand = exports.se_ListUserPoolsCommand = exports.se_ListUserPoolClientsCommand = exports.se_ListUserImportJobsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResourceServersCommand = exports.se_ListIdentityProvidersCommand = exports.se_ListGroupsCommand = exports.se_ListDevicesCommand = exports.se_InitiateAuthCommand = exports.se_GlobalSignOutCommand = exports.se_GetUserPoolMfaConfigCommand = exports.se_GetUserAttributeVerificationCodeCommand = exports.se_GetUserCommand = exports.se_GetUICustomizationCommand = exports.se_GetSigningCertificateCommand = exports.se_GetLogDeliveryConfigurationCommand = exports.se_GetIdentityProviderByIdentifierCommand = exports.se_GetGroupCommand = exports.se_GetDeviceCommand = exports.se_GetCSVHeaderCommand = exports.se_ForgotPasswordCommand = exports.se_ForgetDeviceCommand = exports.se_DescribeUserPoolDomainCommand = exports.se_DescribeUserPoolClientCommand = exports.se_DescribeUserPoolCommand = exports.se_DescribeUserImportJobCommand = void 0;
|
|
5
|
+
exports.de_DeleteUserPoolDomainCommand = exports.de_DeleteUserPoolClientCommand = exports.de_DeleteUserPoolCommand = exports.de_DeleteUserAttributesCommand = exports.de_DeleteUserCommand = exports.de_DeleteResourceServerCommand = exports.de_DeleteIdentityProviderCommand = exports.de_DeleteGroupCommand = exports.de_CreateUserPoolDomainCommand = exports.de_CreateUserPoolClientCommand = exports.de_CreateUserPoolCommand = exports.de_CreateUserImportJobCommand = exports.de_CreateResourceServerCommand = exports.de_CreateIdentityProviderCommand = exports.de_CreateGroupCommand = exports.de_ConfirmSignUpCommand = exports.de_ConfirmForgotPasswordCommand = exports.de_ConfirmDeviceCommand = exports.de_ChangePasswordCommand = exports.de_AssociateSoftwareTokenCommand = exports.de_AdminUserGlobalSignOutCommand = exports.de_AdminUpdateUserAttributesCommand = exports.de_AdminUpdateDeviceStatusCommand = exports.de_AdminUpdateAuthEventFeedbackCommand = exports.de_AdminSetUserSettingsCommand = exports.de_AdminSetUserPasswordCommand = exports.de_AdminSetUserMFAPreferenceCommand = exports.de_AdminRespondToAuthChallengeCommand = exports.de_AdminResetUserPasswordCommand = exports.de_AdminRemoveUserFromGroupCommand = exports.de_AdminListUserAuthEventsCommand = exports.de_AdminListGroupsForUserCommand = exports.de_AdminListDevicesCommand = exports.de_AdminLinkProviderForUserCommand = exports.de_AdminInitiateAuthCommand = exports.de_AdminGetUserCommand = exports.de_AdminGetDeviceCommand = exports.de_AdminForgetDeviceCommand = exports.de_AdminEnableUserCommand = exports.de_AdminDisableUserCommand = exports.de_AdminDisableProviderForUserCommand = exports.de_AdminDeleteUserAttributesCommand = exports.de_AdminDeleteUserCommand = exports.de_AdminCreateUserCommand = exports.de_AdminConfirmSignUpCommand = exports.de_AdminAddUserToGroupCommand = exports.de_AddCustomAttributesCommand = exports.se_VerifyUserAttributeCommand = exports.se_VerifySoftwareTokenCommand = exports.se_UpdateUserPoolDomainCommand = void 0;
|
|
6
|
+
exports.de_UpdateResourceServerCommand = exports.de_UpdateIdentityProviderCommand = exports.de_UpdateGroupCommand = exports.de_UpdateDeviceStatusCommand = exports.de_UpdateAuthEventFeedbackCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopUserImportJobCommand = exports.de_StartUserImportJobCommand = exports.de_SignUpCommand = exports.de_SetUserSettingsCommand = exports.de_SetUserPoolMfaConfigCommand = exports.de_SetUserMFAPreferenceCommand = exports.de_SetUICustomizationCommand = exports.de_SetRiskConfigurationCommand = exports.de_SetLogDeliveryConfigurationCommand = exports.de_RevokeTokenCommand = exports.de_RespondToAuthChallengeCommand = exports.de_ResendConfirmationCodeCommand = exports.de_ListUsersInGroupCommand = exports.de_ListUsersCommand = exports.de_ListUserPoolsCommand = exports.de_ListUserPoolClientsCommand = exports.de_ListUserImportJobsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListResourceServersCommand = exports.de_ListIdentityProvidersCommand = exports.de_ListGroupsCommand = exports.de_ListDevicesCommand = exports.de_InitiateAuthCommand = exports.de_GlobalSignOutCommand = exports.de_GetUserPoolMfaConfigCommand = exports.de_GetUserAttributeVerificationCodeCommand = exports.de_GetUserCommand = exports.de_GetUICustomizationCommand = exports.de_GetSigningCertificateCommand = exports.de_GetLogDeliveryConfigurationCommand = exports.de_GetIdentityProviderByIdentifierCommand = exports.de_GetGroupCommand = exports.de_GetDeviceCommand = exports.de_GetCSVHeaderCommand = exports.de_ForgotPasswordCommand = exports.de_ForgetDeviceCommand = exports.de_DescribeUserPoolDomainCommand = exports.de_DescribeUserPoolClientCommand = exports.de_DescribeUserPoolCommand = exports.de_DescribeUserImportJobCommand = exports.de_DescribeRiskConfigurationCommand = exports.de_DescribeResourceServerCommand = exports.de_DescribeIdentityProviderCommand = void 0;
|
|
7
|
+
exports.de_VerifyUserAttributeCommand = exports.de_VerifySoftwareTokenCommand = exports.de_UpdateUserPoolDomainCommand = exports.de_UpdateUserPoolClientCommand = exports.de_UpdateUserPoolCommand = exports.de_UpdateUserAttributesCommand = void 0;
|
|
8
8
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
9
9
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
10
10
|
const CognitoIdentityProviderServiceException_1 = require("../models/CognitoIdentityProviderServiceException");
|
|
@@ -430,6 +430,13 @@ const se_GetIdentityProviderByIdentifierCommand = async (input, context) => {
|
|
|
430
430
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
431
431
|
};
|
|
432
432
|
exports.se_GetIdentityProviderByIdentifierCommand = se_GetIdentityProviderByIdentifierCommand;
|
|
433
|
+
const se_GetLogDeliveryConfigurationCommand = async (input, context) => {
|
|
434
|
+
const headers = sharedHeaders("GetLogDeliveryConfiguration");
|
|
435
|
+
let body;
|
|
436
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
437
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
438
|
+
};
|
|
439
|
+
exports.se_GetLogDeliveryConfigurationCommand = se_GetLogDeliveryConfigurationCommand;
|
|
433
440
|
const se_GetSigningCertificateCommand = async (input, context) => {
|
|
434
441
|
const headers = sharedHeaders("GetSigningCertificate");
|
|
435
442
|
let body;
|
|
@@ -570,6 +577,13 @@ const se_RevokeTokenCommand = async (input, context) => {
|
|
|
570
577
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
571
578
|
};
|
|
572
579
|
exports.se_RevokeTokenCommand = se_RevokeTokenCommand;
|
|
580
|
+
const se_SetLogDeliveryConfigurationCommand = async (input, context) => {
|
|
581
|
+
const headers = sharedHeaders("SetLogDeliveryConfiguration");
|
|
582
|
+
let body;
|
|
583
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
584
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
585
|
+
};
|
|
586
|
+
exports.se_SetLogDeliveryConfigurationCommand = se_SetLogDeliveryConfigurationCommand;
|
|
573
587
|
const se_SetRiskConfigurationCommand = async (input, context) => {
|
|
574
588
|
const headers = sharedHeaders("SetRiskConfiguration");
|
|
575
589
|
let body;
|
|
@@ -3894,6 +3908,51 @@ const de_GetIdentityProviderByIdentifierCommandError = async (output, context) =
|
|
|
3894
3908
|
});
|
|
3895
3909
|
}
|
|
3896
3910
|
};
|
|
3911
|
+
const de_GetLogDeliveryConfigurationCommand = async (output, context) => {
|
|
3912
|
+
if (output.statusCode >= 300) {
|
|
3913
|
+
return de_GetLogDeliveryConfigurationCommandError(output, context);
|
|
3914
|
+
}
|
|
3915
|
+
const data = await parseBody(output.body, context);
|
|
3916
|
+
let contents = {};
|
|
3917
|
+
contents = (0, smithy_client_1._json)(data);
|
|
3918
|
+
const response = {
|
|
3919
|
+
$metadata: deserializeMetadata(output),
|
|
3920
|
+
...contents,
|
|
3921
|
+
};
|
|
3922
|
+
return response;
|
|
3923
|
+
};
|
|
3924
|
+
exports.de_GetLogDeliveryConfigurationCommand = de_GetLogDeliveryConfigurationCommand;
|
|
3925
|
+
const de_GetLogDeliveryConfigurationCommandError = async (output, context) => {
|
|
3926
|
+
const parsedOutput = {
|
|
3927
|
+
...output,
|
|
3928
|
+
body: await parseErrorBody(output.body, context),
|
|
3929
|
+
};
|
|
3930
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3931
|
+
switch (errorCode) {
|
|
3932
|
+
case "InternalErrorException":
|
|
3933
|
+
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
3934
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
3935
|
+
case "InvalidParameterException":
|
|
3936
|
+
case "com.amazonaws.cognitoidentityprovider#InvalidParameterException":
|
|
3937
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3938
|
+
case "NotAuthorizedException":
|
|
3939
|
+
case "com.amazonaws.cognitoidentityprovider#NotAuthorizedException":
|
|
3940
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
3941
|
+
case "ResourceNotFoundException":
|
|
3942
|
+
case "com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":
|
|
3943
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3944
|
+
case "TooManyRequestsException":
|
|
3945
|
+
case "com.amazonaws.cognitoidentityprovider#TooManyRequestsException":
|
|
3946
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
3947
|
+
default:
|
|
3948
|
+
const parsedBody = parsedOutput.body;
|
|
3949
|
+
return throwDefaultError({
|
|
3950
|
+
output,
|
|
3951
|
+
parsedBody,
|
|
3952
|
+
errorCode,
|
|
3953
|
+
});
|
|
3954
|
+
}
|
|
3955
|
+
};
|
|
3897
3956
|
const de_GetSigningCertificateCommand = async (output, context) => {
|
|
3898
3957
|
if (output.statusCode >= 300) {
|
|
3899
3958
|
return de_GetSigningCertificateCommandError(output, context);
|
|
@@ -4971,6 +5030,51 @@ const de_RevokeTokenCommandError = async (output, context) => {
|
|
|
4971
5030
|
});
|
|
4972
5031
|
}
|
|
4973
5032
|
};
|
|
5033
|
+
const de_SetLogDeliveryConfigurationCommand = async (output, context) => {
|
|
5034
|
+
if (output.statusCode >= 300) {
|
|
5035
|
+
return de_SetLogDeliveryConfigurationCommandError(output, context);
|
|
5036
|
+
}
|
|
5037
|
+
const data = await parseBody(output.body, context);
|
|
5038
|
+
let contents = {};
|
|
5039
|
+
contents = (0, smithy_client_1._json)(data);
|
|
5040
|
+
const response = {
|
|
5041
|
+
$metadata: deserializeMetadata(output),
|
|
5042
|
+
...contents,
|
|
5043
|
+
};
|
|
5044
|
+
return response;
|
|
5045
|
+
};
|
|
5046
|
+
exports.de_SetLogDeliveryConfigurationCommand = de_SetLogDeliveryConfigurationCommand;
|
|
5047
|
+
const de_SetLogDeliveryConfigurationCommandError = async (output, context) => {
|
|
5048
|
+
const parsedOutput = {
|
|
5049
|
+
...output,
|
|
5050
|
+
body: await parseErrorBody(output.body, context),
|
|
5051
|
+
};
|
|
5052
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5053
|
+
switch (errorCode) {
|
|
5054
|
+
case "InternalErrorException":
|
|
5055
|
+
case "com.amazonaws.cognitoidentityprovider#InternalErrorException":
|
|
5056
|
+
throw await de_InternalErrorExceptionRes(parsedOutput, context);
|
|
5057
|
+
case "InvalidParameterException":
|
|
5058
|
+
case "com.amazonaws.cognitoidentityprovider#InvalidParameterException":
|
|
5059
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
5060
|
+
case "NotAuthorizedException":
|
|
5061
|
+
case "com.amazonaws.cognitoidentityprovider#NotAuthorizedException":
|
|
5062
|
+
throw await de_NotAuthorizedExceptionRes(parsedOutput, context);
|
|
5063
|
+
case "ResourceNotFoundException":
|
|
5064
|
+
case "com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":
|
|
5065
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5066
|
+
case "TooManyRequestsException":
|
|
5067
|
+
case "com.amazonaws.cognitoidentityprovider#TooManyRequestsException":
|
|
5068
|
+
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
5069
|
+
default:
|
|
5070
|
+
const parsedBody = parsedOutput.body;
|
|
5071
|
+
return throwDefaultError({
|
|
5072
|
+
output,
|
|
5073
|
+
parsedBody,
|
|
5074
|
+
errorCode,
|
|
5075
|
+
});
|
|
5076
|
+
}
|
|
5077
|
+
};
|
|
4974
5078
|
const de_SetRiskConfigurationCommand = async (output, context) => {
|
|
4975
5079
|
if (output.statusCode >= 300) {
|
|
4976
5080
|
return de_SetRiskConfigurationCommandError(output, context);
|
|
@@ -60,6 +60,7 @@ import { GetCSVHeaderCommand, } from "./commands/GetCSVHeaderCommand";
|
|
|
60
60
|
import { GetDeviceCommand } from "./commands/GetDeviceCommand";
|
|
61
61
|
import { GetGroupCommand } from "./commands/GetGroupCommand";
|
|
62
62
|
import { GetIdentityProviderByIdentifierCommand, } from "./commands/GetIdentityProviderByIdentifierCommand";
|
|
63
|
+
import { GetLogDeliveryConfigurationCommand, } from "./commands/GetLogDeliveryConfigurationCommand";
|
|
63
64
|
import { GetSigningCertificateCommand, } from "./commands/GetSigningCertificateCommand";
|
|
64
65
|
import { GetUICustomizationCommand, } from "./commands/GetUICustomizationCommand";
|
|
65
66
|
import { GetUserAttributeVerificationCodeCommand, } from "./commands/GetUserAttributeVerificationCodeCommand";
|
|
@@ -80,6 +81,7 @@ import { ListUsersInGroupCommand, } from "./commands/ListUsersInGroupCommand";
|
|
|
80
81
|
import { ResendConfirmationCodeCommand, } from "./commands/ResendConfirmationCodeCommand";
|
|
81
82
|
import { RespondToAuthChallengeCommand, } from "./commands/RespondToAuthChallengeCommand";
|
|
82
83
|
import { RevokeTokenCommand } from "./commands/RevokeTokenCommand";
|
|
84
|
+
import { SetLogDeliveryConfigurationCommand, } from "./commands/SetLogDeliveryConfigurationCommand";
|
|
83
85
|
import { SetRiskConfigurationCommand, } from "./commands/SetRiskConfigurationCommand";
|
|
84
86
|
import { SetUICustomizationCommand, } from "./commands/SetUICustomizationCommand";
|
|
85
87
|
import { SetUserMFAPreferenceCommand, } from "./commands/SetUserMFAPreferenceCommand";
|
|
@@ -162,6 +164,7 @@ const commands = {
|
|
|
162
164
|
GetDeviceCommand,
|
|
163
165
|
GetGroupCommand,
|
|
164
166
|
GetIdentityProviderByIdentifierCommand,
|
|
167
|
+
GetLogDeliveryConfigurationCommand,
|
|
165
168
|
GetSigningCertificateCommand,
|
|
166
169
|
GetUICustomizationCommand,
|
|
167
170
|
GetUserCommand,
|
|
@@ -182,6 +185,7 @@ const commands = {
|
|
|
182
185
|
ResendConfirmationCodeCommand,
|
|
183
186
|
RespondToAuthChallengeCommand,
|
|
184
187
|
RevokeTokenCommand,
|
|
188
|
+
SetLogDeliveryConfigurationCommand,
|
|
185
189
|
SetRiskConfigurationCommand,
|
|
186
190
|
SetUICustomizationCommand,
|
|
187
191
|
SetUserMFAPreferenceCommand,
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
4
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
5
|
+
import { de_GetLogDeliveryConfigurationCommand, se_GetLogDeliveryConfigurationCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class GetLogDeliveryConfigurationCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetLogDeliveryConfigurationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
this.middlewareStack.use(getAwsAuthPlugin(configuration));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "CognitoIdentityProviderClient";
|
|
27
|
+
const commandName = "GetLogDeliveryConfigurationCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return se_GetLogDeliveryConfigurationCommand(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return de_GetLogDeliveryConfigurationCommand(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
3
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
4
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
5
|
+
import { de_SetLogDeliveryConfigurationCommand, se_SetLogDeliveryConfigurationCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class SetLogDeliveryConfigurationCommand extends $Command {
|
|
8
|
+
static getEndpointParameterInstructions() {
|
|
9
|
+
return {
|
|
10
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
11
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
12
|
+
Region: { type: "builtInParams", name: "region" },
|
|
13
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
constructor(input) {
|
|
17
|
+
super();
|
|
18
|
+
this.input = input;
|
|
19
|
+
}
|
|
20
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
21
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
22
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, SetLogDeliveryConfigurationCommand.getEndpointParameterInstructions()));
|
|
23
|
+
this.middlewareStack.use(getAwsAuthPlugin(configuration));
|
|
24
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
25
|
+
const { logger } = configuration;
|
|
26
|
+
const clientName = "CognitoIdentityProviderClient";
|
|
27
|
+
const commandName = "SetLogDeliveryConfigurationCommand";
|
|
28
|
+
const handlerExecutionContext = {
|
|
29
|
+
logger,
|
|
30
|
+
clientName,
|
|
31
|
+
commandName,
|
|
32
|
+
inputFilterSensitiveLog: (_) => _,
|
|
33
|
+
outputFilterSensitiveLog: (_) => _,
|
|
34
|
+
};
|
|
35
|
+
const { requestHandler } = configuration;
|
|
36
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
37
|
+
}
|
|
38
|
+
serialize(input, context) {
|
|
39
|
+
return se_SetLogDeliveryConfigurationCommand(input, context);
|
|
40
|
+
}
|
|
41
|
+
deserialize(output, context) {
|
|
42
|
+
return de_SetLogDeliveryConfigurationCommand(output, context);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -2,7 +2,8 @@ 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 { SetRiskConfigurationRequestFilterSensitiveLog
|
|
5
|
+
import { SetRiskConfigurationRequestFilterSensitiveLog } from "../models/models_0";
|
|
6
|
+
import { SetRiskConfigurationResponseFilterSensitiveLog } from "../models/models_1";
|
|
6
7
|
import { de_SetRiskConfigurationCommand, se_SetRiskConfigurationCommand } from "../protocols/Aws_json1_1";
|
|
7
8
|
export { $Command };
|
|
8
9
|
export class SetRiskConfigurationCommand extends $Command {
|
|
@@ -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 { SetUICustomizationRequestFilterSensitiveLog, SetUICustomizationResponseFilterSensitiveLog, } from "../models/
|
|
5
|
+
import { SetUICustomizationRequestFilterSensitiveLog, SetUICustomizationResponseFilterSensitiveLog, } from "../models/models_1";
|
|
6
6
|
import { de_SetUICustomizationCommand, se_SetUICustomizationCommand } from "../protocols/Aws_json1_1";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class SetUICustomizationCommand extends $Command {
|
|
@@ -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 { SetUserMFAPreferenceRequestFilterSensitiveLog, } from "../models/
|
|
5
|
+
import { SetUserMFAPreferenceRequestFilterSensitiveLog, } from "../models/models_1";
|
|
6
6
|
import { de_SetUserMFAPreferenceCommand, se_SetUserMFAPreferenceCommand } from "../protocols/Aws_json1_1";
|
|
7
7
|
export { $Command };
|
|
8
8
|
export class SetUserMFAPreferenceCommand extends $Command {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
2
|
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
3
|
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
-
import { SetUserSettingsRequestFilterSensitiveLog, } from "../models/
|
|
4
|
+
import { SetUserSettingsRequestFilterSensitiveLog, } from "../models/models_1";
|
|
5
5
|
import { de_SetUserSettingsCommand, se_SetUserSettingsCommand } from "../protocols/Aws_json1_1";
|
|
6
6
|
export { $Command };
|
|
7
7
|
export class SetUserSettingsCommand extends $Command {
|
|
@@ -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,
|
|
5
|
+
import { VerifySoftwareTokenRequestFilterSensitiveLog, } 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: (_) => _,
|
|
35
35
|
};
|
|
36
36
|
const { requestHandler } = configuration;
|
|
37
37
|
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
@@ -58,6 +58,7 @@ export * from "./GetCSVHeaderCommand";
|
|
|
58
58
|
export * from "./GetDeviceCommand";
|
|
59
59
|
export * from "./GetGroupCommand";
|
|
60
60
|
export * from "./GetIdentityProviderByIdentifierCommand";
|
|
61
|
+
export * from "./GetLogDeliveryConfigurationCommand";
|
|
61
62
|
export * from "./GetSigningCertificateCommand";
|
|
62
63
|
export * from "./GetUICustomizationCommand";
|
|
63
64
|
export * from "./GetUserAttributeVerificationCodeCommand";
|
|
@@ -78,6 +79,7 @@ export * from "./ListUsersInGroupCommand";
|
|
|
78
79
|
export * from "./ResendConfirmationCodeCommand";
|
|
79
80
|
export * from "./RespondToAuthChallengeCommand";
|
|
80
81
|
export * from "./RevokeTokenCommand";
|
|
82
|
+
export * from "./SetLogDeliveryConfigurationCommand";
|
|
81
83
|
export * from "./SetRiskConfigurationCommand";
|
|
82
84
|
export * from "./SetUICustomizationCommand";
|
|
83
85
|
export * from "./SetUserMFAPreferenceCommand";
|
|
@@ -641,6 +641,12 @@ export const DomainStatusType = {
|
|
|
641
641
|
FAILED: "FAILED",
|
|
642
642
|
UPDATING: "UPDATING",
|
|
643
643
|
};
|
|
644
|
+
export const EventSourceName = {
|
|
645
|
+
USER_NOTIFICATION: "userNotification",
|
|
646
|
+
};
|
|
647
|
+
export const LogLevel = {
|
|
648
|
+
ERROR: "ERROR",
|
|
649
|
+
};
|
|
644
650
|
export class UnauthorizedException extends __BaseException {
|
|
645
651
|
constructor(opts) {
|
|
646
652
|
super({
|
|
@@ -767,7 +773,6 @@ export const AuthenticationResultTypeFilterSensitiveLog = (obj) => ({
|
|
|
767
773
|
});
|
|
768
774
|
export const AdminInitiateAuthResponseFilterSensitiveLog = (obj) => ({
|
|
769
775
|
...obj,
|
|
770
|
-
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
771
776
|
...(obj.AuthenticationResult && {
|
|
772
777
|
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
773
778
|
}),
|
|
@@ -798,12 +803,9 @@ export const AdminResetUserPasswordRequestFilterSensitiveLog = (obj) => ({
|
|
|
798
803
|
export const AdminRespondToAuthChallengeRequestFilterSensitiveLog = (obj) => ({
|
|
799
804
|
...obj,
|
|
800
805
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
801
|
-
...(obj.ChallengeResponses && { ChallengeResponses: SENSITIVE_STRING }),
|
|
802
|
-
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
803
806
|
});
|
|
804
807
|
export const AdminRespondToAuthChallengeResponseFilterSensitiveLog = (obj) => ({
|
|
805
808
|
...obj,
|
|
806
|
-
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
807
809
|
...(obj.AuthenticationResult && {
|
|
808
810
|
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
809
811
|
}),
|
|
@@ -843,12 +845,10 @@ export const AdminUserGlobalSignOutRequestFilterSensitiveLog = (obj) => ({
|
|
|
843
845
|
export const AssociateSoftwareTokenRequestFilterSensitiveLog = (obj) => ({
|
|
844
846
|
...obj,
|
|
845
847
|
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
846
|
-
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
847
848
|
});
|
|
848
849
|
export const AssociateSoftwareTokenResponseFilterSensitiveLog = (obj) => ({
|
|
849
850
|
...obj,
|
|
850
851
|
...(obj.SecretCode && { SecretCode: SENSITIVE_STRING }),
|
|
851
|
-
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
852
852
|
});
|
|
853
853
|
export const ChangePasswordRequestFilterSensitiveLog = (obj) => ({
|
|
854
854
|
...obj,
|
|
@@ -860,23 +860,18 @@ export const ConfirmDeviceRequestFilterSensitiveLog = (obj) => ({
|
|
|
860
860
|
...obj,
|
|
861
861
|
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
862
862
|
});
|
|
863
|
-
export const UserContextDataTypeFilterSensitiveLog = (obj) => ({
|
|
864
|
-
...obj,
|
|
865
|
-
});
|
|
866
863
|
export const ConfirmForgotPasswordRequestFilterSensitiveLog = (obj) => ({
|
|
867
864
|
...obj,
|
|
868
865
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
869
866
|
...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
|
|
870
867
|
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
871
868
|
...(obj.Password && { Password: SENSITIVE_STRING }),
|
|
872
|
-
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
873
869
|
});
|
|
874
870
|
export const ConfirmSignUpRequestFilterSensitiveLog = (obj) => ({
|
|
875
871
|
...obj,
|
|
876
872
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
877
873
|
...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
|
|
878
874
|
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
879
|
-
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
880
875
|
});
|
|
881
876
|
export const UserPoolClientTypeFilterSensitiveLog = (obj) => ({
|
|
882
877
|
...obj,
|
|
@@ -927,7 +922,6 @@ export const ForgotPasswordRequestFilterSensitiveLog = (obj) => ({
|
|
|
927
922
|
...obj,
|
|
928
923
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
929
924
|
...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
|
|
930
|
-
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
931
925
|
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
932
926
|
});
|
|
933
927
|
export const GetDeviceRequestFilterSensitiveLog = (obj) => ({
|
|
@@ -973,11 +967,9 @@ export const InitiateAuthRequestFilterSensitiveLog = (obj) => ({
|
|
|
973
967
|
...obj,
|
|
974
968
|
...(obj.AuthParameters && { AuthParameters: SENSITIVE_STRING }),
|
|
975
969
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
976
|
-
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
977
970
|
});
|
|
978
971
|
export const InitiateAuthResponseFilterSensitiveLog = (obj) => ({
|
|
979
972
|
...obj,
|
|
980
|
-
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
981
973
|
...(obj.AuthenticationResult && {
|
|
982
974
|
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
983
975
|
}),
|
|
@@ -1011,19 +1003,14 @@ export const ResendConfirmationCodeRequestFilterSensitiveLog = (obj) => ({
|
|
|
1011
1003
|
...obj,
|
|
1012
1004
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1013
1005
|
...(obj.SecretHash && { SecretHash: SENSITIVE_STRING }),
|
|
1014
|
-
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
1015
1006
|
...(obj.Username && { Username: SENSITIVE_STRING }),
|
|
1016
1007
|
});
|
|
1017
1008
|
export const RespondToAuthChallengeRequestFilterSensitiveLog = (obj) => ({
|
|
1018
1009
|
...obj,
|
|
1019
1010
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1020
|
-
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
1021
|
-
...(obj.ChallengeResponses && { ChallengeResponses: SENSITIVE_STRING }),
|
|
1022
|
-
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
1023
1011
|
});
|
|
1024
1012
|
export const RespondToAuthChallengeResponseFilterSensitiveLog = (obj) => ({
|
|
1025
1013
|
...obj,
|
|
1026
|
-
...(obj.Session && { Session: SENSITIVE_STRING }),
|
|
1027
1014
|
...(obj.AuthenticationResult && {
|
|
1028
1015
|
AuthenticationResult: AuthenticationResultTypeFilterSensitiveLog(obj.AuthenticationResult),
|
|
1029
1016
|
}),
|
|
@@ -1038,23 +1025,3 @@ export const SetRiskConfigurationRequestFilterSensitiveLog = (obj) => ({
|
|
|
1038
1025
|
...obj,
|
|
1039
1026
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1040
1027
|
});
|
|
1041
|
-
export const SetRiskConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
1042
|
-
...obj,
|
|
1043
|
-
...(obj.RiskConfiguration && { RiskConfiguration: RiskConfigurationTypeFilterSensitiveLog(obj.RiskConfiguration) }),
|
|
1044
|
-
});
|
|
1045
|
-
export const SetUICustomizationRequestFilterSensitiveLog = (obj) => ({
|
|
1046
|
-
...obj,
|
|
1047
|
-
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
1048
|
-
});
|
|
1049
|
-
export const SetUICustomizationResponseFilterSensitiveLog = (obj) => ({
|
|
1050
|
-
...obj,
|
|
1051
|
-
...(obj.UICustomization && { UICustomization: UICustomizationTypeFilterSensitiveLog(obj.UICustomization) }),
|
|
1052
|
-
});
|
|
1053
|
-
export const SetUserMFAPreferenceRequestFilterSensitiveLog = (obj) => ({
|
|
1054
|
-
...obj,
|
|
1055
|
-
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
1056
|
-
});
|
|
1057
|
-
export const SetUserSettingsRequestFilterSensitiveLog = (obj) => ({
|
|
1058
|
-
...obj,
|
|
1059
|
-
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
1060
|
-
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
2
|
import { CognitoIdentityProviderServiceException as __BaseException } from "./CognitoIdentityProviderServiceException";
|
|
3
|
-
import { AttributeTypeFilterSensitiveLog, UserPoolClientTypeFilterSensitiveLog, } from "./models_0";
|
|
3
|
+
import { AttributeTypeFilterSensitiveLog, RiskConfigurationTypeFilterSensitiveLog, UICustomizationTypeFilterSensitiveLog, UserPoolClientTypeFilterSensitiveLog, } from "./models_0";
|
|
4
4
|
export class EnableSoftwareTokenMFAException extends __BaseException {
|
|
5
5
|
constructor(opts) {
|
|
6
6
|
super({
|
|
@@ -17,6 +17,26 @@ export const VerifySoftwareTokenResponseType = {
|
|
|
17
17
|
ERROR: "ERROR",
|
|
18
18
|
SUCCESS: "SUCCESS",
|
|
19
19
|
};
|
|
20
|
+
export const SetRiskConfigurationResponseFilterSensitiveLog = (obj) => ({
|
|
21
|
+
...obj,
|
|
22
|
+
...(obj.RiskConfiguration && { RiskConfiguration: RiskConfigurationTypeFilterSensitiveLog(obj.RiskConfiguration) }),
|
|
23
|
+
});
|
|
24
|
+
export const SetUICustomizationRequestFilterSensitiveLog = (obj) => ({
|
|
25
|
+
...obj,
|
|
26
|
+
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
27
|
+
});
|
|
28
|
+
export const SetUICustomizationResponseFilterSensitiveLog = (obj) => ({
|
|
29
|
+
...obj,
|
|
30
|
+
...(obj.UICustomization && { UICustomization: UICustomizationTypeFilterSensitiveLog(obj.UICustomization) }),
|
|
31
|
+
});
|
|
32
|
+
export const SetUserMFAPreferenceRequestFilterSensitiveLog = (obj) => ({
|
|
33
|
+
...obj,
|
|
34
|
+
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
35
|
+
});
|
|
36
|
+
export const SetUserSettingsRequestFilterSensitiveLog = (obj) => ({
|
|
37
|
+
...obj,
|
|
38
|
+
...(obj.AccessToken && { AccessToken: SENSITIVE_STRING }),
|
|
39
|
+
});
|
|
20
40
|
export const SignUpRequestFilterSensitiveLog = (obj) => ({
|
|
21
41
|
...obj,
|
|
22
42
|
...(obj.ClientId && { ClientId: SENSITIVE_STRING }),
|
|
@@ -29,7 +49,6 @@ export const SignUpRequestFilterSensitiveLog = (obj) => ({
|
|
|
29
49
|
...(obj.ValidationData && {
|
|
30
50
|
ValidationData: obj.ValidationData.map((item) => AttributeTypeFilterSensitiveLog(item)),
|
|
31
51
|
}),
|
|
32
|
-
...(obj.UserContextData && { UserContextData: SENSITIVE_STRING }),
|
|
33
52
|
});
|
|
34
53
|
export const UpdateAuthEventFeedbackRequestFilterSensitiveLog = (obj) => ({
|
|
35
54
|
...obj,
|
|
@@ -58,12 +77,6 @@ export const UpdateUserPoolClientResponseFilterSensitiveLog = (obj) => ({
|
|
|
58
77
|
export const VerifySoftwareTokenRequestFilterSensitiveLog = (obj) => ({
|
|
59
78
|
...obj,
|
|
60
79
|
...(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 }),
|
|
67
80
|
});
|
|
68
81
|
export const VerifyUserAttributeRequestFilterSensitiveLog = (obj) => ({
|
|
69
82
|
...obj,
|