Updates the specified user pool with the specified attributes. If you don't provide a value for an attribute, it will be set to the default value. You can get a list of the current user pool settings with .
cognitoidentityprovider_update_user_pool(UserPoolId, Policies,
LambdaConfig, AutoVerifiedAttributes, SmsVerificationMessage,
EmailVerificationMessage, EmailVerificationSubject,
VerificationMessageTemplate, SmsAuthenticationMessage, MfaConfiguration,
DeviceConfiguration, EmailConfiguration, SmsConfiguration, UserPoolTags,
AdminCreateUserConfig, UserPoolAddOns)
[required] The user pool ID for the user pool you want to update.
A container with the policies you wish to update in a user pool.
The AWS Lambda configuration information from the request to update the user pool.
The attributes that are automatically verified when the Amazon Cognito service makes a request to update user pools.
A container with information about the SMS verification message.
The contents of the email verification message.
The subject of the email verification message.
The template for verification messages.
The contents of the SMS authentication message.
Can be one of the following values:
OFF
- MFA tokens are not required and cannot be specified during
user registration.
ON
- MFA tokens are required for all user registrations. You can
only specify required when you are initially creating a user pool.
OPTIONAL
- Users have the option when registering to create an MFA
token.
Device configuration.
Email configuration.
SMS configuration.
The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.
The configuration for AdminCreateUser
requests.
Used to enable advanced security risk detection. Set the key
AdvancedSecurityMode
to the value "AUDIT".
svc$update_user_pool( UserPoolId = "string", Policies = list( PasswordPolicy = list( MinimumLength = 123, RequireUppercase = TRUE|FALSE, RequireLowercase = TRUE|FALSE, RequireNumbers = TRUE|FALSE, RequireSymbols = TRUE|FALSE ) ), LambdaConfig = list( PreSignUp = "string", CustomMessage = "string", PostConfirmation = "string", PreAuthentication = "string", PostAuthentication = "string", DefineAuthChallenge = "string", CreateAuthChallenge = "string", VerifyAuthChallengeResponse = "string", PreTokenGeneration = "string", UserMigration = "string" ), AutoVerifiedAttributes = list( "phone_number"|"email" ), SmsVerificationMessage = "string", EmailVerificationMessage = "string", EmailVerificationSubject = "string", VerificationMessageTemplate = list( SmsMessage = "string", EmailMessage = "string", EmailSubject = "string", EmailMessageByLink = "string", EmailSubjectByLink = "string", DefaultEmailOption = "CONFIRM_WITH_LINK"|"CONFIRM_WITH_CODE" ), SmsAuthenticationMessage = "string", MfaConfiguration = "OFF"|"ON"|"OPTIONAL", DeviceConfiguration = list( ChallengeRequiredOnNewDevice = TRUE|FALSE, DeviceOnlyRememberedOnUserPrompt = TRUE|FALSE ), EmailConfiguration = list( SourceArn = "string", ReplyToEmailAddress = "string" ), SmsConfiguration = list( SnsCallerArn = "string", ExternalId = "string" ), UserPoolTags = list( "string" ), AdminCreateUserConfig = list( AllowAdminCreateUserOnly = TRUE|FALSE, UnusedAccountValidityDays = 123, InviteMessageTemplate = list( SMSMessage = "string", EmailMessage = "string", EmailSubject = "string" ) ), UserPoolAddOns = list( AdvancedSecurityMode = "OFF"|"AUDIT"|"ENFORCED" ) )