From 6250097ec2de47d48f94daecb7e1c3f59423e0ae Mon Sep 17 00:00:00 2001 From: kdnakt Date: Fri, 24 Nov 2023 00:38:06 +0900 Subject: [PATCH] Add another example for cognito-idp update-user-pool --- awscli/examples/cognito-idp/update-user-pool.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/awscli/examples/cognito-idp/update-user-pool.rst b/awscli/examples/cognito-idp/update-user-pool.rst index a3948e59122b..c132addc0ca7 100644 --- a/awscli/examples/cognito-idp/update-user-pool.rst +++ b/awscli/examples/cognito-idp/update-user-pool.rst @@ -5,3 +5,11 @@ This example adds tags to a user pool. Command:: aws cognito-idp update-user-pool --user-pool-id us-west-2_aaaaaaaaa --user-pool-tags Team=Blue,Area=West + +As mentioned earlier, this example does not specify values for other attributes, such as Lambda triggers and email settings, so Amazon Cognito sets them to their default settings. + +For example, if you want to avoid this behavior for the pre sign-up Lambda trigger, execute the following command. :: + + aws cognito-idp update-user-pool --user-pool-id us-west-2_aaaaaaaaa \ + --user-pool-tags Team=Blue,Area=West \ + --cli-input-json '{ "LambdaConfig": { "PreSignUp": "arn:aws:lambda:us-west-2:123456789012:function:my-function" } }'