{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.CognitoIdentityProvider.UpdateUserPool -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Updates the specified user pool with the specified attributes. You can -- get a list of the current user pool settings using -- . -- If you don\'t provide a value for an attribute, it will be set to the -- default value. -- -- 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 -- 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 Service, Amazon Simple Notification Service might place -- your account in the SMS sandbox. In -- // -- , 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 -- -- in the /Amazon Cognito Developer Guide/. module Amazonka.CognitoIdentityProvider.UpdateUserPool ( -- * Creating a Request UpdateUserPool (..), newUpdateUserPool, -- * Request Lenses updateUserPool_accountRecoverySetting, updateUserPool_adminCreateUserConfig, updateUserPool_autoVerifiedAttributes, updateUserPool_deletionProtection, updateUserPool_deviceConfiguration, updateUserPool_emailConfiguration, updateUserPool_emailVerificationMessage, updateUserPool_emailVerificationSubject, updateUserPool_lambdaConfig, updateUserPool_mfaConfiguration, updateUserPool_policies, updateUserPool_smsAuthenticationMessage, updateUserPool_smsConfiguration, updateUserPool_smsVerificationMessage, updateUserPool_userAttributeUpdateSettings, updateUserPool_userPoolAddOns, updateUserPool_userPoolTags, updateUserPool_verificationMessageTemplate, updateUserPool_userPoolId, -- * Destructuring the Response UpdateUserPoolResponse (..), newUpdateUserPoolResponse, -- * Response Lenses updateUserPoolResponse_httpStatus, ) where import Amazonka.CognitoIdentityProvider.Types import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude import qualified Amazonka.Request as Request import qualified Amazonka.Response as Response -- | Represents the request to update the user pool. -- -- /See:/ 'newUpdateUserPool' smart constructor. data UpdateUserPool = UpdateUserPool' { -- | The available verified method a user can use to recover their password -- when they call @ForgotPassword@. 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. accountRecoverySetting :: Prelude.Maybe AccountRecoverySettingType, -- | The configuration for @AdminCreateUser@ requests. adminCreateUserConfig :: Prelude.Maybe AdminCreateUserConfigType, -- | The attributes that are automatically verified when Amazon Cognito -- requests to update user pools. autoVerifiedAttributes :: Prelude.Maybe [VerifiedAttributeType], -- | When active, @DeletionProtection@ 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. -- -- When you try to delete a protected user pool in a @DeleteUserPool@ API -- request, Amazon Cognito returns an @InvalidParameterException@ error. To -- delete a protected user pool, send a new @DeleteUserPool@ request after -- you deactivate deletion protection in an @UpdateUserPool@ API request. deletionProtection :: Prelude.Maybe DeletionProtectionType, -- | 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 @DeviceConfiguration@ field, you -- activate the Amazon Cognito device-remembering feature. deviceConfiguration :: Prelude.Maybe DeviceConfigurationType, -- | 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. emailConfiguration :: Prelude.Maybe EmailConfigurationType, -- | This parameter is no longer used. See -- . emailVerificationMessage :: Prelude.Maybe Prelude.Text, -- | This parameter is no longer used. See -- . emailVerificationSubject :: Prelude.Maybe Prelude.Text, -- | The Lambda configuration information from the request to update the user -- pool. lambdaConfig :: Prelude.Maybe LambdaConfigType, -- | Possible values include: -- -- - @OFF@ - MFA tokens aren\'t required and can\'t be specified during -- user registration. -- -- - @ON@ - MFA tokens are required for all user registrations. You can -- only specify ON when you\'re initially creating a user pool. You can -- use the -- -- API operation to turn MFA \"ON\" for existing user pools. -- -- - @OPTIONAL@ - Users have the option when registering to create an MFA -- token. mfaConfiguration :: Prelude.Maybe UserPoolMfaType, -- | A container with the policies you want to update in a user pool. policies :: Prelude.Maybe UserPoolPolicyType, -- | The contents of the SMS authentication message. smsAuthenticationMessage :: Prelude.Maybe Prelude.Text, -- | 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. smsConfiguration :: Prelude.Maybe SmsConfigurationType, -- | This parameter is no longer used. See -- . smsVerificationMessage :: Prelude.Maybe Prelude.Text, -- | The settings for updates to user attributes. These settings include the -- property @AttributesRequireVerificationBeforeUpdate@, 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 -- . userAttributeUpdateSettings :: Prelude.Maybe UserAttributeUpdateSettingsType, -- | Enables advanced security risk detection. Set the key -- @AdvancedSecurityMode@ to the value \"AUDIT\". userPoolAddOns :: Prelude.Maybe UserPoolAddOnsType, -- | 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. userPoolTags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text), -- | The template for verification messages. verificationMessageTemplate :: Prelude.Maybe VerificationMessageTemplateType, -- | The user pool ID for the user pool you want to update. userPoolId :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'UpdateUserPool' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'accountRecoverySetting', 'updateUserPool_accountRecoverySetting' - The available verified method a user can use to recover their password -- when they call @ForgotPassword@. 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. -- -- 'adminCreateUserConfig', 'updateUserPool_adminCreateUserConfig' - The configuration for @AdminCreateUser@ requests. -- -- 'autoVerifiedAttributes', 'updateUserPool_autoVerifiedAttributes' - The attributes that are automatically verified when Amazon Cognito -- requests to update user pools. -- -- 'deletionProtection', 'updateUserPool_deletionProtection' - When active, @DeletionProtection@ 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. -- -- When you try to delete a protected user pool in a @DeleteUserPool@ API -- request, Amazon Cognito returns an @InvalidParameterException@ error. To -- delete a protected user pool, send a new @DeleteUserPool@ request after -- you deactivate deletion protection in an @UpdateUserPool@ API request. -- -- 'deviceConfiguration', 'updateUserPool_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 @DeviceConfiguration@ field, you -- activate the Amazon Cognito device-remembering feature. -- -- 'emailConfiguration', 'updateUserPool_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. -- -- 'emailVerificationMessage', 'updateUserPool_emailVerificationMessage' - This parameter is no longer used. See -- . -- -- 'emailVerificationSubject', 'updateUserPool_emailVerificationSubject' - This parameter is no longer used. See -- . -- -- 'lambdaConfig', 'updateUserPool_lambdaConfig' - The Lambda configuration information from the request to update the user -- pool. -- -- 'mfaConfiguration', 'updateUserPool_mfaConfiguration' - Possible values include: -- -- - @OFF@ - MFA tokens aren\'t required and can\'t be specified during -- user registration. -- -- - @ON@ - MFA tokens are required for all user registrations. You can -- only specify ON when you\'re initially creating a user pool. You can -- use the -- -- API operation to turn MFA \"ON\" for existing user pools. -- -- - @OPTIONAL@ - Users have the option when registering to create an MFA -- token. -- -- 'policies', 'updateUserPool_policies' - A container with the policies you want to update in a user pool. -- -- 'smsAuthenticationMessage', 'updateUserPool_smsAuthenticationMessage' - The contents of the SMS authentication message. -- -- 'smsConfiguration', 'updateUserPool_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. -- -- 'smsVerificationMessage', 'updateUserPool_smsVerificationMessage' - This parameter is no longer used. See -- . -- -- 'userAttributeUpdateSettings', 'updateUserPool_userAttributeUpdateSettings' - The settings for updates to user attributes. These settings include the -- property @AttributesRequireVerificationBeforeUpdate@, 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 -- . -- -- 'userPoolAddOns', 'updateUserPool_userPoolAddOns' - Enables advanced security risk detection. Set the key -- @AdvancedSecurityMode@ to the value \"AUDIT\". -- -- 'userPoolTags', 'updateUserPool_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. -- -- 'verificationMessageTemplate', 'updateUserPool_verificationMessageTemplate' - The template for verification messages. -- -- 'userPoolId', 'updateUserPool_userPoolId' - The user pool ID for the user pool you want to update. newUpdateUserPool :: -- | 'userPoolId' Prelude.Text -> UpdateUserPool newUpdateUserPool pUserPoolId_ = UpdateUserPool' { accountRecoverySetting = Prelude.Nothing, adminCreateUserConfig = Prelude.Nothing, autoVerifiedAttributes = Prelude.Nothing, deletionProtection = Prelude.Nothing, deviceConfiguration = Prelude.Nothing, emailConfiguration = Prelude.Nothing, emailVerificationMessage = Prelude.Nothing, emailVerificationSubject = Prelude.Nothing, lambdaConfig = Prelude.Nothing, mfaConfiguration = Prelude.Nothing, policies = Prelude.Nothing, smsAuthenticationMessage = Prelude.Nothing, smsConfiguration = Prelude.Nothing, smsVerificationMessage = Prelude.Nothing, userAttributeUpdateSettings = Prelude.Nothing, userPoolAddOns = Prelude.Nothing, userPoolTags = Prelude.Nothing, verificationMessageTemplate = Prelude.Nothing, userPoolId = pUserPoolId_ } -- | The available verified method a user can use to recover their password -- when they call @ForgotPassword@. 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. updateUserPool_accountRecoverySetting :: Lens.Lens' UpdateUserPool (Prelude.Maybe AccountRecoverySettingType) updateUserPool_accountRecoverySetting = Lens.lens (\UpdateUserPool' {accountRecoverySetting} -> accountRecoverySetting) (\s@UpdateUserPool' {} a -> s {accountRecoverySetting = a} :: UpdateUserPool) -- | The configuration for @AdminCreateUser@ requests. updateUserPool_adminCreateUserConfig :: Lens.Lens' UpdateUserPool (Prelude.Maybe AdminCreateUserConfigType) updateUserPool_adminCreateUserConfig = Lens.lens (\UpdateUserPool' {adminCreateUserConfig} -> adminCreateUserConfig) (\s@UpdateUserPool' {} a -> s {adminCreateUserConfig = a} :: UpdateUserPool) -- | The attributes that are automatically verified when Amazon Cognito -- requests to update user pools. updateUserPool_autoVerifiedAttributes :: Lens.Lens' UpdateUserPool (Prelude.Maybe [VerifiedAttributeType]) updateUserPool_autoVerifiedAttributes = Lens.lens (\UpdateUserPool' {autoVerifiedAttributes} -> autoVerifiedAttributes) (\s@UpdateUserPool' {} a -> s {autoVerifiedAttributes = a} :: UpdateUserPool) Prelude.. Lens.mapping Lens.coerced -- | When active, @DeletionProtection@ 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. -- -- When you try to delete a protected user pool in a @DeleteUserPool@ API -- request, Amazon Cognito returns an @InvalidParameterException@ error. To -- delete a protected user pool, send a new @DeleteUserPool@ request after -- you deactivate deletion protection in an @UpdateUserPool@ API request. updateUserPool_deletionProtection :: Lens.Lens' UpdateUserPool (Prelude.Maybe DeletionProtectionType) updateUserPool_deletionProtection = Lens.lens (\UpdateUserPool' {deletionProtection} -> deletionProtection) (\s@UpdateUserPool' {} a -> s {deletionProtection = a} :: UpdateUserPool) -- | 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 @DeviceConfiguration@ field, you -- activate the Amazon Cognito device-remembering feature. updateUserPool_deviceConfiguration :: Lens.Lens' UpdateUserPool (Prelude.Maybe DeviceConfigurationType) updateUserPool_deviceConfiguration = Lens.lens (\UpdateUserPool' {deviceConfiguration} -> deviceConfiguration) (\s@UpdateUserPool' {} a -> s {deviceConfiguration = a} :: UpdateUserPool) -- | 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. updateUserPool_emailConfiguration :: Lens.Lens' UpdateUserPool (Prelude.Maybe EmailConfigurationType) updateUserPool_emailConfiguration = Lens.lens (\UpdateUserPool' {emailConfiguration} -> emailConfiguration) (\s@UpdateUserPool' {} a -> s {emailConfiguration = a} :: UpdateUserPool) -- | This parameter is no longer used. See -- . updateUserPool_emailVerificationMessage :: Lens.Lens' UpdateUserPool (Prelude.Maybe Prelude.Text) updateUserPool_emailVerificationMessage = Lens.lens (\UpdateUserPool' {emailVerificationMessage} -> emailVerificationMessage) (\s@UpdateUserPool' {} a -> s {emailVerificationMessage = a} :: UpdateUserPool) -- | This parameter is no longer used. See -- . updateUserPool_emailVerificationSubject :: Lens.Lens' UpdateUserPool (Prelude.Maybe Prelude.Text) updateUserPool_emailVerificationSubject = Lens.lens (\UpdateUserPool' {emailVerificationSubject} -> emailVerificationSubject) (\s@UpdateUserPool' {} a -> s {emailVerificationSubject = a} :: UpdateUserPool) -- | The Lambda configuration information from the request to update the user -- pool. updateUserPool_lambdaConfig :: Lens.Lens' UpdateUserPool (Prelude.Maybe LambdaConfigType) updateUserPool_lambdaConfig = Lens.lens (\UpdateUserPool' {lambdaConfig} -> lambdaConfig) (\s@UpdateUserPool' {} a -> s {lambdaConfig = a} :: UpdateUserPool) -- | Possible values include: -- -- - @OFF@ - MFA tokens aren\'t required and can\'t be specified during -- user registration. -- -- - @ON@ - MFA tokens are required for all user registrations. You can -- only specify ON when you\'re initially creating a user pool. You can -- use the -- -- API operation to turn MFA \"ON\" for existing user pools. -- -- - @OPTIONAL@ - Users have the option when registering to create an MFA -- token. updateUserPool_mfaConfiguration :: Lens.Lens' UpdateUserPool (Prelude.Maybe UserPoolMfaType) updateUserPool_mfaConfiguration = Lens.lens (\UpdateUserPool' {mfaConfiguration} -> mfaConfiguration) (\s@UpdateUserPool' {} a -> s {mfaConfiguration = a} :: UpdateUserPool) -- | A container with the policies you want to update in a user pool. updateUserPool_policies :: Lens.Lens' UpdateUserPool (Prelude.Maybe UserPoolPolicyType) updateUserPool_policies = Lens.lens (\UpdateUserPool' {policies} -> policies) (\s@UpdateUserPool' {} a -> s {policies = a} :: UpdateUserPool) -- | The contents of the SMS authentication message. updateUserPool_smsAuthenticationMessage :: Lens.Lens' UpdateUserPool (Prelude.Maybe Prelude.Text) updateUserPool_smsAuthenticationMessage = Lens.lens (\UpdateUserPool' {smsAuthenticationMessage} -> smsAuthenticationMessage) (\s@UpdateUserPool' {} a -> s {smsAuthenticationMessage = a} :: UpdateUserPool) -- | 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. updateUserPool_smsConfiguration :: Lens.Lens' UpdateUserPool (Prelude.Maybe SmsConfigurationType) updateUserPool_smsConfiguration = Lens.lens (\UpdateUserPool' {smsConfiguration} -> smsConfiguration) (\s@UpdateUserPool' {} a -> s {smsConfiguration = a} :: UpdateUserPool) -- | This parameter is no longer used. See -- . updateUserPool_smsVerificationMessage :: Lens.Lens' UpdateUserPool (Prelude.Maybe Prelude.Text) updateUserPool_smsVerificationMessage = Lens.lens (\UpdateUserPool' {smsVerificationMessage} -> smsVerificationMessage) (\s@UpdateUserPool' {} a -> s {smsVerificationMessage = a} :: UpdateUserPool) -- | The settings for updates to user attributes. These settings include the -- property @AttributesRequireVerificationBeforeUpdate@, 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 -- . updateUserPool_userAttributeUpdateSettings :: Lens.Lens' UpdateUserPool (Prelude.Maybe UserAttributeUpdateSettingsType) updateUserPool_userAttributeUpdateSettings = Lens.lens (\UpdateUserPool' {userAttributeUpdateSettings} -> userAttributeUpdateSettings) (\s@UpdateUserPool' {} a -> s {userAttributeUpdateSettings = a} :: UpdateUserPool) -- | Enables advanced security risk detection. Set the key -- @AdvancedSecurityMode@ to the value \"AUDIT\". updateUserPool_userPoolAddOns :: Lens.Lens' UpdateUserPool (Prelude.Maybe UserPoolAddOnsType) updateUserPool_userPoolAddOns = Lens.lens (\UpdateUserPool' {userPoolAddOns} -> userPoolAddOns) (\s@UpdateUserPool' {} a -> s {userPoolAddOns = a} :: UpdateUserPool) -- | 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. updateUserPool_userPoolTags :: Lens.Lens' UpdateUserPool (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)) updateUserPool_userPoolTags = Lens.lens (\UpdateUserPool' {userPoolTags} -> userPoolTags) (\s@UpdateUserPool' {} a -> s {userPoolTags = a} :: UpdateUserPool) Prelude.. Lens.mapping Lens.coerced -- | The template for verification messages. updateUserPool_verificationMessageTemplate :: Lens.Lens' UpdateUserPool (Prelude.Maybe VerificationMessageTemplateType) updateUserPool_verificationMessageTemplate = Lens.lens (\UpdateUserPool' {verificationMessageTemplate} -> verificationMessageTemplate) (\s@UpdateUserPool' {} a -> s {verificationMessageTemplate = a} :: UpdateUserPool) -- | The user pool ID for the user pool you want to update. updateUserPool_userPoolId :: Lens.Lens' UpdateUserPool Prelude.Text updateUserPool_userPoolId = Lens.lens (\UpdateUserPool' {userPoolId} -> userPoolId) (\s@UpdateUserPool' {} a -> s {userPoolId = a} :: UpdateUserPool) instance Core.AWSRequest UpdateUserPool where type AWSResponse UpdateUserPool = UpdateUserPoolResponse request overrides = Request.postJSON (overrides defaultService) response = Response.receiveEmpty ( \s h x -> UpdateUserPoolResponse' Prelude.<$> (Prelude.pure (Prelude.fromEnum s)) ) instance Prelude.Hashable UpdateUserPool where hashWithSalt _salt UpdateUserPool' {..} = _salt `Prelude.hashWithSalt` accountRecoverySetting `Prelude.hashWithSalt` adminCreateUserConfig `Prelude.hashWithSalt` autoVerifiedAttributes `Prelude.hashWithSalt` deletionProtection `Prelude.hashWithSalt` deviceConfiguration `Prelude.hashWithSalt` emailConfiguration `Prelude.hashWithSalt` emailVerificationMessage `Prelude.hashWithSalt` emailVerificationSubject `Prelude.hashWithSalt` lambdaConfig `Prelude.hashWithSalt` mfaConfiguration `Prelude.hashWithSalt` policies `Prelude.hashWithSalt` smsAuthenticationMessage `Prelude.hashWithSalt` smsConfiguration `Prelude.hashWithSalt` smsVerificationMessage `Prelude.hashWithSalt` userAttributeUpdateSettings `Prelude.hashWithSalt` userPoolAddOns `Prelude.hashWithSalt` userPoolTags `Prelude.hashWithSalt` verificationMessageTemplate `Prelude.hashWithSalt` userPoolId instance Prelude.NFData UpdateUserPool where rnf UpdateUserPool' {..} = Prelude.rnf accountRecoverySetting `Prelude.seq` Prelude.rnf adminCreateUserConfig `Prelude.seq` Prelude.rnf autoVerifiedAttributes `Prelude.seq` Prelude.rnf deletionProtection `Prelude.seq` Prelude.rnf deviceConfiguration `Prelude.seq` Prelude.rnf emailConfiguration `Prelude.seq` Prelude.rnf emailVerificationMessage `Prelude.seq` Prelude.rnf emailVerificationSubject `Prelude.seq` Prelude.rnf lambdaConfig `Prelude.seq` Prelude.rnf mfaConfiguration `Prelude.seq` Prelude.rnf policies `Prelude.seq` Prelude.rnf smsAuthenticationMessage `Prelude.seq` Prelude.rnf smsConfiguration `Prelude.seq` Prelude.rnf smsVerificationMessage `Prelude.seq` Prelude.rnf userAttributeUpdateSettings `Prelude.seq` Prelude.rnf userPoolAddOns `Prelude.seq` Prelude.rnf userPoolTags `Prelude.seq` Prelude.rnf verificationMessageTemplate `Prelude.seq` Prelude.rnf userPoolId instance Data.ToHeaders UpdateUserPool where toHeaders = Prelude.const ( Prelude.mconcat [ "X-Amz-Target" Data.=# ( "AWSCognitoIdentityProviderService.UpdateUserPool" :: Prelude.ByteString ), "Content-Type" Data.=# ( "application/x-amz-json-1.1" :: Prelude.ByteString ) ] ) instance Data.ToJSON UpdateUserPool where toJSON UpdateUserPool' {..} = Data.object ( Prelude.catMaybes [ ("AccountRecoverySetting" Data..=) Prelude.<$> accountRecoverySetting, ("AdminCreateUserConfig" Data..=) Prelude.<$> adminCreateUserConfig, ("AutoVerifiedAttributes" Data..=) Prelude.<$> autoVerifiedAttributes, ("DeletionProtection" Data..=) Prelude.<$> deletionProtection, ("DeviceConfiguration" Data..=) Prelude.<$> deviceConfiguration, ("EmailConfiguration" Data..=) Prelude.<$> emailConfiguration, ("EmailVerificationMessage" Data..=) Prelude.<$> emailVerificationMessage, ("EmailVerificationSubject" Data..=) Prelude.<$> emailVerificationSubject, ("LambdaConfig" Data..=) Prelude.<$> lambdaConfig, ("MfaConfiguration" Data..=) Prelude.<$> mfaConfiguration, ("Policies" Data..=) Prelude.<$> policies, ("SmsAuthenticationMessage" Data..=) Prelude.<$> smsAuthenticationMessage, ("SmsConfiguration" Data..=) Prelude.<$> smsConfiguration, ("SmsVerificationMessage" Data..=) Prelude.<$> smsVerificationMessage, ("UserAttributeUpdateSettings" Data..=) Prelude.<$> userAttributeUpdateSettings, ("UserPoolAddOns" Data..=) Prelude.<$> userPoolAddOns, ("UserPoolTags" Data..=) Prelude.<$> userPoolTags, ("VerificationMessageTemplate" Data..=) Prelude.<$> verificationMessageTemplate, Prelude.Just ("UserPoolId" Data..= userPoolId) ] ) instance Data.ToPath UpdateUserPool where toPath = Prelude.const "/" instance Data.ToQuery UpdateUserPool where toQuery = Prelude.const Prelude.mempty -- | Represents the response from the server when you make a request to -- update the user pool. -- -- /See:/ 'newUpdateUserPoolResponse' smart constructor. data UpdateUserPoolResponse = UpdateUserPoolResponse' { -- | The response's http status code. httpStatus :: Prelude.Int } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'UpdateUserPoolResponse' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'httpStatus', 'updateUserPoolResponse_httpStatus' - The response's http status code. newUpdateUserPoolResponse :: -- | 'httpStatus' Prelude.Int -> UpdateUserPoolResponse newUpdateUserPoolResponse pHttpStatus_ = UpdateUserPoolResponse' {httpStatus = pHttpStatus_} -- | The response's http status code. updateUserPoolResponse_httpStatus :: Lens.Lens' UpdateUserPoolResponse Prelude.Int updateUserPoolResponse_httpStatus = Lens.lens (\UpdateUserPoolResponse' {httpStatus} -> httpStatus) (\s@UpdateUserPoolResponse' {} a -> s {httpStatus = a} :: UpdateUserPoolResponse) instance Prelude.NFData UpdateUserPoolResponse where rnf UpdateUserPoolResponse' {..} = Prelude.rnf httpStatus