aws_sdk_cognitoidentityprovider/client/update_user_pool.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`UpdateUserPool`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`user_pool_id(impl Into<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::user_pool_id) / [`set_user_pool_id(Option<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_user_pool_id):<br>required: **true**<br><p>The ID of the user pool you want to update.</p><br>
7 /// - [`policies(UserPoolPolicyType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::policies) / [`set_policies(Option<UserPoolPolicyType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_policies):<br>required: **false**<br><p>The password policy and sign-in policy in the user pool. The password policy sets options like password complexity requirements and password history. The sign-in policy sets the options available to applications in <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/authentication-flows-selection-sdk.html#authentication-flows-selection-choice">choice-based authentication</a>.</p><br>
8 /// - [`deletion_protection(DeletionProtectionType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::deletion_protection) / [`set_deletion_protection(Option<DeletionProtectionType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_deletion_protection):<br>required: **false**<br><p>When active, <code>DeletionProtection</code> prevents accidental deletion of your user pool. Before you can delete a user pool that you have protected against deletion, you must deactivate this feature.</p> <p>When you try to delete a protected user pool in a <code>DeleteUserPool</code> API request, Amazon Cognito returns an <code>InvalidParameterException</code> error. To delete a protected user pool, send a new <code>DeleteUserPool</code> request after you deactivate deletion protection in an <code>UpdateUserPool</code> API request.</p><br>
9 /// - [`lambda_config(LambdaConfigType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::lambda_config) / [`set_lambda_config(Option<LambdaConfigType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_lambda_config):<br>required: **false**<br><p>A collection of user pool Lambda triggers. Amazon Cognito invokes triggers at several possible stages of authentication operations. Triggers can modify the outcome of the operations that invoked them.</p><br>
10 /// - [`auto_verified_attributes(VerifiedAttributeType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::auto_verified_attributes) / [`set_auto_verified_attributes(Option<Vec::<VerifiedAttributeType>>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_auto_verified_attributes):<br>required: **false**<br><p>The attributes that you want your user pool to automatically verify. Possible values: <b>email</b>, <b>phone_number</b>. For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/signing-up-users-in-your-app.html#allowing-users-to-sign-up-and-confirm-themselves">Verifying contact information at sign-up</a>.</p><br>
11 /// - [`sms_verification_message(impl Into<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::sms_verification_message) / [`set_sms_verification_message(Option<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_sms_verification_message):<br>required: **false**<br><p>This parameter is no longer used.</p><br>
12 /// - [`email_verification_message(impl Into<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::email_verification_message) / [`set_email_verification_message(Option<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_email_verification_message):<br>required: **false**<br><p>This parameter is no longer used.</p><br>
13 /// - [`email_verification_subject(impl Into<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::email_verification_subject) / [`set_email_verification_subject(Option<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_email_verification_subject):<br>required: **false**<br><p>This parameter is no longer used.</p><br>
14 /// - [`verification_message_template(VerificationMessageTemplateType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::verification_message_template) / [`set_verification_message_template(Option<VerificationMessageTemplateType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_verification_message_template):<br>required: **false**<br><p>The template for the verification message that your user pool delivers to users who set an email address or phone number attribute.</p> <p>Set the email message type that corresponds to your <code>DefaultEmailOption</code> selection. For <code>CONFIRM_WITH_LINK</code>, specify an <code>EmailMessageByLink</code> and leave <code>EmailMessage</code> blank. For <code>CONFIRM_WITH_CODE</code>, specify an <code>EmailMessage</code> and leave <code>EmailMessageByLink</code> blank. When you supply both parameters with either choice, Amazon Cognito returns an error.</p><br>
15 /// - [`sms_authentication_message(impl Into<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::sms_authentication_message) / [`set_sms_authentication_message(Option<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_sms_authentication_message):<br>required: **false**<br><p>The contents of the SMS message that your user pool sends to users in SMS authentication.</p><br>
16 /// - [`user_attribute_update_settings(UserAttributeUpdateSettingsType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::user_attribute_update_settings) / [`set_user_attribute_update_settings(Option<UserAttributeUpdateSettingsType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_user_attribute_update_settings):<br>required: **false**<br><p>The settings for updates to user attributes. These settings include the property <code>AttributesRequireVerificationBeforeUpdate</code>, a user-pool setting that tells Amazon Cognito how to handle changes to the value of your users' email address and phone number attributes. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-settings-email-phone-verification.html#user-pool-settings-verifications-verify-attribute-updates"> Verifying updates to email addresses and phone numbers</a>.</p><br>
17 /// - [`mfa_configuration(UserPoolMfaType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::mfa_configuration) / [`set_mfa_configuration(Option<UserPoolMfaType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_mfa_configuration):<br>required: **false**<br><p>Sets multi-factor authentication (MFA) to be on, off, or optional. When <code>ON</code>, all users must set up MFA before they can sign in. When <code>OPTIONAL</code>, your application must make a client-side determination of whether a user wants to register an MFA device. For user pools with adaptive authentication with threat protection, choose <code>OPTIONAL</code>.</p> <p>When <code>MfaConfiguration</code> is <code>OPTIONAL</code>, managed login doesn't automatically prompt users to set up MFA. Amazon Cognito generates MFA prompts in API responses and in managed login for users who have chosen and configured a preferred MFA factor.</p><br>
18 /// - [`device_configuration(DeviceConfigurationType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::device_configuration) / [`set_device_configuration(Option<DeviceConfigurationType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_device_configuration):<br>required: **false**<br><p>The device-remembering configuration for a user pool. Device remembering or device tracking is a "Remember me on this device" option for user pools that perform authentication with the device key of a trusted device in the back end, instead of a user-provided MFA code. For more information about device authentication, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html">Working with user devices in your user pool</a>. A null value indicates that you have deactivated device remembering in your user pool.</p><note> <p>When you provide a value for any <code>DeviceConfiguration</code> field, you activate the Amazon Cognito device-remembering feature. For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-device-tracking.html">Working with devices</a>.</p> </note><br>
19 /// - [`email_configuration(EmailConfigurationType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::email_configuration) / [`set_email_configuration(Option<EmailConfigurationType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_email_configuration):<br>required: **false**<br><p>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.</p><br>
20 /// - [`sms_configuration(SmsConfigurationType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::sms_configuration) / [`set_sms_configuration(Option<SmsConfigurationType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_sms_configuration):<br>required: **false**<br><p>The SMS configuration with the settings for your Amazon Cognito user pool to send SMS message with 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. For more information see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/user-pool-sms-settings.html">SMS message settings</a>.</p><br>
21 /// - [`user_pool_tags(impl Into<String>, impl Into<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::user_pool_tags) / [`set_user_pool_tags(Option<HashMap::<String, String>>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_user_pool_tags):<br>required: **false**<br><p>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.</p><br>
22 /// - [`admin_create_user_config(AdminCreateUserConfigType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::admin_create_user_config) / [`set_admin_create_user_config(Option<AdminCreateUserConfigType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_admin_create_user_config):<br>required: **false**<br><p>The configuration for administrative creation of users. Includes the template for the invitation message for new users, the duration of temporary passwords, and permitting self-service sign-up.</p><br>
23 /// - [`user_pool_add_ons(UserPoolAddOnsType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::user_pool_add_ons) / [`set_user_pool_add_ons(Option<UserPoolAddOnsType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_user_pool_add_ons):<br>required: **false**<br><p>Contains settings for activation of threat protection, including the operating mode and additional authentication types. To log user security information but take no action, set to <code>AUDIT</code>. To configure automatic security responses to potentially unwanted traffic to your user pool, set to <code>ENFORCED</code>.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pool-settings-advanced-security.html">Adding advanced security to a user pool</a>. To activate this setting, your user pool must be on the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/feature-plans-features-plus.html"> Plus tier</a>.</p><br>
24 /// - [`account_recovery_setting(AccountRecoverySettingType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::account_recovery_setting) / [`set_account_recovery_setting(Option<AccountRecoverySettingType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_account_recovery_setting):<br>required: **false**<br><p>The available verified method a user can use to recover their password when they call <code>ForgotPassword</code>. You can use this setting to define a preferred method when a user has more than one method available. With this setting, SMS doesn't qualify for a valid password recovery mechanism if the user also has SMS multi-factor authentication (MFA) activated. In the absence of this setting, Amazon Cognito uses the legacy behavior to determine the recovery method where SMS is preferred through email.</p><br>
25 /// - [`pool_name(impl Into<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::pool_name) / [`set_pool_name(Option<String>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_pool_name):<br>required: **false**<br><p>The updated name of your user pool.</p><br>
26 /// - [`user_pool_tier(UserPoolTierType)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::user_pool_tier) / [`set_user_pool_tier(Option<UserPoolTierType>)`](crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::set_user_pool_tier):<br>required: **false**<br><p>The user pool <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-sign-in-feature-plans.html">feature plan</a>, or tier. This parameter determines the eligibility of the user pool for features like managed login, access-token customization, and threat protection. Defaults to <code>ESSENTIALS</code>.</p><br>
27 /// - On success, responds with [`UpdateUserPoolOutput`](crate::operation::update_user_pool::UpdateUserPoolOutput)
28 /// - On failure, responds with [`SdkError<UpdateUserPoolError>`](crate::operation::update_user_pool::UpdateUserPoolError)
29 pub fn update_user_pool(&self) -> crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder {
30 crate::operation::update_user_pool::builders::UpdateUserPoolFluentBuilder::new(self.handle.clone())
31 }
32}