Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add another example for cognito-idp update-user-pool #8358

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions awscli/examples/cognito-idp/update-user-pool.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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" } }'