From 8891b541445428ba8f1e1f0db6a423d8b449e5ff Mon Sep 17 00:00:00 2001 From: notsofunctional Date: Mon, 20 Dec 2021 18:55:26 -0600 Subject: [PATCH] fix add-cognito-user-pool-trigger extra parameters --- src/commands/add-cognito-user-pool-trigger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/add-cognito-user-pool-trigger.js b/src/commands/add-cognito-user-pool-trigger.js index 6ed3adfd..7ef12bd6 100644 --- a/src/commands/add-cognito-user-pool-trigger.js +++ b/src/commands/add-cognito-user-pool-trigger.js @@ -43,7 +43,7 @@ module.exports = function addCognitoUserPoolTrigger(options, optionalLogger) { /* cognito update requires the full config, not just a patch, but some attributes returned * from describeUserPool are not accepted back into the configuration, so they have to be removed */ - ['Id', 'Name', 'LastModifiedDate', 'CreationDate', 'SchemaAttributes', 'EstimatedNumberOfUsers', 'AliasAttributes', 'UsernameAttributes', 'Arn', 'Domain'].forEach(n => delete data[n]); + ['Id', 'Name', 'LastModifiedDate', 'CreationDate', 'SchemaAttributes', 'EstimatedNumberOfUsers', 'AliasAttributes', 'UsernameAttributes', 'Arn', 'Domain', 'UsernameConfiguration', 'CustomDomain'].forEach(n => delete data[n]); if (data.AdminCreateUserConfig && data.AdminCreateUserConfig.UnusedAccountValidityDays) { delete data.AdminCreateUserConfig.UnusedAccountValidityDays; }