Update User Pool
cognitoidentityprovider_update_user_pool | R Documentation |
This action might generate an SMS text message¶
Description¶
This action might generate an SMS text message. Starting June 1, 2021, US telecom carriers require you to register an origination phone number before you can send SMS messages to US phone numbers. If you use SMS text messages in Amazon Cognito, you must register a phone number with Amazon Pinpoint. Amazon Cognito uses the registered number automatically. Otherwise, Amazon Cognito users who must receive SMS messages might not be able to sign up, activate their accounts, or sign in.
If you have never used SMS text messages with Amazon Cognito or any other Amazon Web Services service, Amazon Simple Notification Service might place your account in the SMS sandbox. In sandbox mode , you can send messages only to verified phone numbers. After you test your app while in the sandbox environment, you can move out of the sandbox and into production. For more information, see SMS message settings for Amazon Cognito user pools in the Amazon Cognito Developer Guide.
Updates the specified user pool with the specified attributes. You can
get a list of the current user pool settings using describe_user_pool
.
If you don't provide a value for an attribute, Amazon Cognito sets it to its default value.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
Usage¶
cognitoidentityprovider_update_user_pool(UserPoolId, Policies,
DeletionProtection, LambdaConfig, AutoVerifiedAttributes,
SmsVerificationMessage, EmailVerificationMessage,
EmailVerificationSubject, VerificationMessageTemplate,
SmsAuthenticationMessage, UserAttributeUpdateSettings, MfaConfiguration,
DeviceConfiguration, EmailConfiguration, SmsConfiguration, UserPoolTags,
AdminCreateUserConfig, UserPoolAddOns, AccountRecoverySetting, PoolName,
UserPoolTier)
Arguments¶
UserPoolId |
[required] The ID of the user pool you want to update. |
Policies |
A container with the policies you want to update in a user pool. |
DeletionProtection |
When active, When you try to delete a protected user pool in a
|
LambdaConfig |
The Lambda configuration information from the request to update the user pool. |
AutoVerifiedAttributes |
The attributes that are automatically verified when Amazon Cognito requests to update user pools. |
SmsVerificationMessage |
This parameter is no longer used. See VerificationMessageTemplateType. |
EmailVerificationMessage |
This parameter is no longer used. See VerificationMessageTemplateType. |
EmailVerificationSubject |
This parameter is no longer used. See VerificationMessageTemplateType. |
VerificationMessageTemplate |
The template for verification messages. |
SmsAuthenticationMessage |
The contents of the SMS authentication message. |
UserAttributeUpdateSettings |
The settings for updates to user attributes. These settings
include the property
|
MfaConfiguration |
Possible values include:
|
DeviceConfiguration |
The device-remembering configuration for a user pool. A null value indicates that you have deactivated device remembering in your user pool. When you provide a value for any |
EmailConfiguration |
The email configuration of your user pool. The email configuration type sets your preferred sending method, Amazon Web Services Region, and sender for email invitation and verification messages from your user pool. |
SmsConfiguration |
The SMS configuration with the settings that your Amazon Cognito user pool must use to send an SMS message from your Amazon Web Services account through Amazon Simple Notification Service. To send SMS messages with Amazon SNS in the Amazon Web Services Region that you want, the Amazon Cognito user pool uses an Identity and Access Management (IAM) role in your Amazon Web Services account. |
UserPoolTags |
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. |
AdminCreateUserConfig |
The configuration for |
UserPoolAddOns |
User pool add-ons. Contains settings for activation of advanced
security features. To log user security information but take no action,
set to For more information, see Adding advanced security to a user pool. |
AccountRecoverySetting |
The available verified method a user can use to recover their
password when they call |
PoolName |
The updated name of your user pool. |
UserPoolTier |
The user pool feature
plan, or tier. This parameter determines the eligibility of the user
pool for features like managed login, access-token customization, and
threat protection. Defaults to |
Value¶
An empty list.
Request syntax¶
svc$update_user_pool(
UserPoolId = "string",
Policies = list(
PasswordPolicy = list(
MinimumLength = 123,
RequireUppercase = TRUE|FALSE,
RequireLowercase = TRUE|FALSE,
RequireNumbers = TRUE|FALSE,
RequireSymbols = TRUE|FALSE,
PasswordHistorySize = 123,
TemporaryPasswordValidityDays = 123
),
SignInPolicy = list(
AllowedFirstAuthFactors = list(
"PASSWORD"|"EMAIL_OTP"|"SMS_OTP"|"WEB_AUTHN"
)
)
),
DeletionProtection = "ACTIVE"|"INACTIVE",
LambdaConfig = list(
PreSignUp = "string",
CustomMessage = "string",
PostConfirmation = "string",
PreAuthentication = "string",
PostAuthentication = "string",
DefineAuthChallenge = "string",
CreateAuthChallenge = "string",
VerifyAuthChallengeResponse = "string",
PreTokenGeneration = "string",
UserMigration = "string",
PreTokenGenerationConfig = list(
LambdaVersion = "V1_0"|"V2_0",
LambdaArn = "string"
),
CustomSMSSender = list(
LambdaVersion = "V1_0",
LambdaArn = "string"
),
CustomEmailSender = list(
LambdaVersion = "V1_0",
LambdaArn = "string"
),
KMSKeyID = "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",
UserAttributeUpdateSettings = list(
AttributesRequireVerificationBeforeUpdate = list(
"phone_number"|"email"
)
),
MfaConfiguration = "OFF"|"ON"|"OPTIONAL",
DeviceConfiguration = list(
ChallengeRequiredOnNewDevice = TRUE|FALSE,
DeviceOnlyRememberedOnUserPrompt = TRUE|FALSE
),
EmailConfiguration = list(
SourceArn = "string",
ReplyToEmailAddress = "string",
EmailSendingAccount = "COGNITO_DEFAULT"|"DEVELOPER",
From = "string",
ConfigurationSet = "string"
),
SmsConfiguration = list(
SnsCallerArn = "string",
ExternalId = "string",
SnsRegion = "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",
AdvancedSecurityAdditionalFlows = list(
CustomAuthMode = "AUDIT"|"ENFORCED"
)
),
AccountRecoverySetting = list(
RecoveryMechanisms = list(
list(
Priority = 123,
Name = "verified_email"|"verified_phone_number"|"admin_only"
)
)
),
PoolName = "string",
UserPoolTier = "LITE"|"ESSENTIALS"|"PLUS"
)