{-# 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 #-}
module Amazonka.CognitoIdentityProvider.UpdateUserPool
(
UpdateUserPool (..),
newUpdateUserPool,
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,
UpdateUserPoolResponse (..),
newUpdateUserPoolResponse,
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
data UpdateUserPool = UpdateUserPool'
{
UpdateUserPool -> Maybe AccountRecoverySettingType
accountRecoverySetting :: Prelude.Maybe AccountRecoverySettingType,
UpdateUserPool -> Maybe AdminCreateUserConfigType
adminCreateUserConfig :: Prelude.Maybe AdminCreateUserConfigType,
UpdateUserPool -> Maybe [VerifiedAttributeType]
autoVerifiedAttributes :: Prelude.Maybe [VerifiedAttributeType],
UpdateUserPool -> Maybe DeletionProtectionType
deletionProtection :: Prelude.Maybe DeletionProtectionType,
UpdateUserPool -> Maybe DeviceConfigurationType
deviceConfiguration :: Prelude.Maybe DeviceConfigurationType,
UpdateUserPool -> Maybe EmailConfigurationType
emailConfiguration :: Prelude.Maybe EmailConfigurationType,
UpdateUserPool -> Maybe Text
emailVerificationMessage :: Prelude.Maybe Prelude.Text,
UpdateUserPool -> Maybe Text
emailVerificationSubject :: Prelude.Maybe Prelude.Text,
UpdateUserPool -> Maybe LambdaConfigType
lambdaConfig :: Prelude.Maybe LambdaConfigType,
UpdateUserPool -> Maybe UserPoolMfaType
mfaConfiguration :: Prelude.Maybe UserPoolMfaType,
UpdateUserPool -> Maybe UserPoolPolicyType
policies :: Prelude.Maybe UserPoolPolicyType,
UpdateUserPool -> Maybe Text
smsAuthenticationMessage :: Prelude.Maybe Prelude.Text,
UpdateUserPool -> Maybe SmsConfigurationType
smsConfiguration :: Prelude.Maybe SmsConfigurationType,
UpdateUserPool -> Maybe Text
smsVerificationMessage :: Prelude.Maybe Prelude.Text,
UpdateUserPool -> Maybe UserAttributeUpdateSettingsType
userAttributeUpdateSettings :: Prelude.Maybe UserAttributeUpdateSettingsType,
UpdateUserPool -> Maybe UserPoolAddOnsType
userPoolAddOns :: Prelude.Maybe UserPoolAddOnsType,
UpdateUserPool -> Maybe (HashMap Text Text)
userPoolTags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
UpdateUserPool -> Maybe VerificationMessageTemplateType
verificationMessageTemplate :: Prelude.Maybe VerificationMessageTemplateType,
UpdateUserPool -> Text
userPoolId :: Prelude.Text
}
deriving (UpdateUserPool -> UpdateUserPool -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateUserPool -> UpdateUserPool -> Bool
$c/= :: UpdateUserPool -> UpdateUserPool -> Bool
== :: UpdateUserPool -> UpdateUserPool -> Bool
$c== :: UpdateUserPool -> UpdateUserPool -> Bool
Prelude.Eq, ReadPrec [UpdateUserPool]
ReadPrec UpdateUserPool
Int -> ReadS UpdateUserPool
ReadS [UpdateUserPool]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateUserPool]
$creadListPrec :: ReadPrec [UpdateUserPool]
readPrec :: ReadPrec UpdateUserPool
$creadPrec :: ReadPrec UpdateUserPool
readList :: ReadS [UpdateUserPool]
$creadList :: ReadS [UpdateUserPool]
readsPrec :: Int -> ReadS UpdateUserPool
$creadsPrec :: Int -> ReadS UpdateUserPool
Prelude.Read, Int -> UpdateUserPool -> ShowS
[UpdateUserPool] -> ShowS
UpdateUserPool -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateUserPool] -> ShowS
$cshowList :: [UpdateUserPool] -> ShowS
show :: UpdateUserPool -> String
$cshow :: UpdateUserPool -> String
showsPrec :: Int -> UpdateUserPool -> ShowS
$cshowsPrec :: Int -> UpdateUserPool -> ShowS
Prelude.Show, forall x. Rep UpdateUserPool x -> UpdateUserPool
forall x. UpdateUserPool -> Rep UpdateUserPool x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateUserPool x -> UpdateUserPool
$cfrom :: forall x. UpdateUserPool -> Rep UpdateUserPool x
Prelude.Generic)
newUpdateUserPool ::
Prelude.Text ->
UpdateUserPool
newUpdateUserPool :: Text -> UpdateUserPool
newUpdateUserPool Text
pUserPoolId_ =
UpdateUserPool'
{ $sel:accountRecoverySetting:UpdateUserPool' :: Maybe AccountRecoverySettingType
accountRecoverySetting =
forall a. Maybe a
Prelude.Nothing,
$sel:adminCreateUserConfig:UpdateUserPool' :: Maybe AdminCreateUserConfigType
adminCreateUserConfig = forall a. Maybe a
Prelude.Nothing,
$sel:autoVerifiedAttributes:UpdateUserPool' :: Maybe [VerifiedAttributeType]
autoVerifiedAttributes = forall a. Maybe a
Prelude.Nothing,
$sel:deletionProtection:UpdateUserPool' :: Maybe DeletionProtectionType
deletionProtection = forall a. Maybe a
Prelude.Nothing,
$sel:deviceConfiguration:UpdateUserPool' :: Maybe DeviceConfigurationType
deviceConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:emailConfiguration:UpdateUserPool' :: Maybe EmailConfigurationType
emailConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:emailVerificationMessage:UpdateUserPool' :: Maybe Text
emailVerificationMessage = forall a. Maybe a
Prelude.Nothing,
$sel:emailVerificationSubject:UpdateUserPool' :: Maybe Text
emailVerificationSubject = forall a. Maybe a
Prelude.Nothing,
$sel:lambdaConfig:UpdateUserPool' :: Maybe LambdaConfigType
lambdaConfig = forall a. Maybe a
Prelude.Nothing,
$sel:mfaConfiguration:UpdateUserPool' :: Maybe UserPoolMfaType
mfaConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:policies:UpdateUserPool' :: Maybe UserPoolPolicyType
policies = forall a. Maybe a
Prelude.Nothing,
$sel:smsAuthenticationMessage:UpdateUserPool' :: Maybe Text
smsAuthenticationMessage = forall a. Maybe a
Prelude.Nothing,
$sel:smsConfiguration:UpdateUserPool' :: Maybe SmsConfigurationType
smsConfiguration = forall a. Maybe a
Prelude.Nothing,
$sel:smsVerificationMessage:UpdateUserPool' :: Maybe Text
smsVerificationMessage = forall a. Maybe a
Prelude.Nothing,
$sel:userAttributeUpdateSettings:UpdateUserPool' :: Maybe UserAttributeUpdateSettingsType
userAttributeUpdateSettings = forall a. Maybe a
Prelude.Nothing,
$sel:userPoolAddOns:UpdateUserPool' :: Maybe UserPoolAddOnsType
userPoolAddOns = forall a. Maybe a
Prelude.Nothing,
$sel:userPoolTags:UpdateUserPool' :: Maybe (HashMap Text Text)
userPoolTags = forall a. Maybe a
Prelude.Nothing,
$sel:verificationMessageTemplate:UpdateUserPool' :: Maybe VerificationMessageTemplateType
verificationMessageTemplate = forall a. Maybe a
Prelude.Nothing,
$sel:userPoolId:UpdateUserPool' :: Text
userPoolId = Text
pUserPoolId_
}
updateUserPool_accountRecoverySetting :: Lens.Lens' UpdateUserPool (Prelude.Maybe AccountRecoverySettingType)
updateUserPool_accountRecoverySetting :: Lens' UpdateUserPool (Maybe AccountRecoverySettingType)
updateUserPool_accountRecoverySetting = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe AccountRecoverySettingType
accountRecoverySetting :: Maybe AccountRecoverySettingType
$sel:accountRecoverySetting:UpdateUserPool' :: UpdateUserPool -> Maybe AccountRecoverySettingType
accountRecoverySetting} -> Maybe AccountRecoverySettingType
accountRecoverySetting) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe AccountRecoverySettingType
a -> UpdateUserPool
s {$sel:accountRecoverySetting:UpdateUserPool' :: Maybe AccountRecoverySettingType
accountRecoverySetting = Maybe AccountRecoverySettingType
a} :: UpdateUserPool)
updateUserPool_adminCreateUserConfig :: Lens.Lens' UpdateUserPool (Prelude.Maybe AdminCreateUserConfigType)
updateUserPool_adminCreateUserConfig :: Lens' UpdateUserPool (Maybe AdminCreateUserConfigType)
updateUserPool_adminCreateUserConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe AdminCreateUserConfigType
adminCreateUserConfig :: Maybe AdminCreateUserConfigType
$sel:adminCreateUserConfig:UpdateUserPool' :: UpdateUserPool -> Maybe AdminCreateUserConfigType
adminCreateUserConfig} -> Maybe AdminCreateUserConfigType
adminCreateUserConfig) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe AdminCreateUserConfigType
a -> UpdateUserPool
s {$sel:adminCreateUserConfig:UpdateUserPool' :: Maybe AdminCreateUserConfigType
adminCreateUserConfig = Maybe AdminCreateUserConfigType
a} :: UpdateUserPool)
updateUserPool_autoVerifiedAttributes :: Lens.Lens' UpdateUserPool (Prelude.Maybe [VerifiedAttributeType])
updateUserPool_autoVerifiedAttributes :: Lens' UpdateUserPool (Maybe [VerifiedAttributeType])
updateUserPool_autoVerifiedAttributes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe [VerifiedAttributeType]
autoVerifiedAttributes :: Maybe [VerifiedAttributeType]
$sel:autoVerifiedAttributes:UpdateUserPool' :: UpdateUserPool -> Maybe [VerifiedAttributeType]
autoVerifiedAttributes} -> Maybe [VerifiedAttributeType]
autoVerifiedAttributes) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe [VerifiedAttributeType]
a -> UpdateUserPool
s {$sel:autoVerifiedAttributes:UpdateUserPool' :: Maybe [VerifiedAttributeType]
autoVerifiedAttributes = Maybe [VerifiedAttributeType]
a} :: UpdateUserPool) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateUserPool_deletionProtection :: Lens.Lens' UpdateUserPool (Prelude.Maybe DeletionProtectionType)
updateUserPool_deletionProtection :: Lens' UpdateUserPool (Maybe DeletionProtectionType)
updateUserPool_deletionProtection = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe DeletionProtectionType
deletionProtection :: Maybe DeletionProtectionType
$sel:deletionProtection:UpdateUserPool' :: UpdateUserPool -> Maybe DeletionProtectionType
deletionProtection} -> Maybe DeletionProtectionType
deletionProtection) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe DeletionProtectionType
a -> UpdateUserPool
s {$sel:deletionProtection:UpdateUserPool' :: Maybe DeletionProtectionType
deletionProtection = Maybe DeletionProtectionType
a} :: UpdateUserPool)
updateUserPool_deviceConfiguration :: Lens.Lens' UpdateUserPool (Prelude.Maybe DeviceConfigurationType)
updateUserPool_deviceConfiguration :: Lens' UpdateUserPool (Maybe DeviceConfigurationType)
updateUserPool_deviceConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe DeviceConfigurationType
deviceConfiguration :: Maybe DeviceConfigurationType
$sel:deviceConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe DeviceConfigurationType
deviceConfiguration} -> Maybe DeviceConfigurationType
deviceConfiguration) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe DeviceConfigurationType
a -> UpdateUserPool
s {$sel:deviceConfiguration:UpdateUserPool' :: Maybe DeviceConfigurationType
deviceConfiguration = Maybe DeviceConfigurationType
a} :: UpdateUserPool)
updateUserPool_emailConfiguration :: Lens.Lens' UpdateUserPool (Prelude.Maybe EmailConfigurationType)
updateUserPool_emailConfiguration :: Lens' UpdateUserPool (Maybe EmailConfigurationType)
updateUserPool_emailConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe EmailConfigurationType
emailConfiguration :: Maybe EmailConfigurationType
$sel:emailConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe EmailConfigurationType
emailConfiguration} -> Maybe EmailConfigurationType
emailConfiguration) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe EmailConfigurationType
a -> UpdateUserPool
s {$sel:emailConfiguration:UpdateUserPool' :: Maybe EmailConfigurationType
emailConfiguration = Maybe EmailConfigurationType
a} :: UpdateUserPool)
updateUserPool_emailVerificationMessage :: Lens.Lens' UpdateUserPool (Prelude.Maybe Prelude.Text)
updateUserPool_emailVerificationMessage :: Lens' UpdateUserPool (Maybe Text)
updateUserPool_emailVerificationMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe Text
emailVerificationMessage :: Maybe Text
$sel:emailVerificationMessage:UpdateUserPool' :: UpdateUserPool -> Maybe Text
emailVerificationMessage} -> Maybe Text
emailVerificationMessage) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe Text
a -> UpdateUserPool
s {$sel:emailVerificationMessage:UpdateUserPool' :: Maybe Text
emailVerificationMessage = Maybe Text
a} :: UpdateUserPool)
updateUserPool_emailVerificationSubject :: Lens.Lens' UpdateUserPool (Prelude.Maybe Prelude.Text)
updateUserPool_emailVerificationSubject :: Lens' UpdateUserPool (Maybe Text)
updateUserPool_emailVerificationSubject = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe Text
emailVerificationSubject :: Maybe Text
$sel:emailVerificationSubject:UpdateUserPool' :: UpdateUserPool -> Maybe Text
emailVerificationSubject} -> Maybe Text
emailVerificationSubject) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe Text
a -> UpdateUserPool
s {$sel:emailVerificationSubject:UpdateUserPool' :: Maybe Text
emailVerificationSubject = Maybe Text
a} :: UpdateUserPool)
updateUserPool_lambdaConfig :: Lens.Lens' UpdateUserPool (Prelude.Maybe LambdaConfigType)
updateUserPool_lambdaConfig :: Lens' UpdateUserPool (Maybe LambdaConfigType)
updateUserPool_lambdaConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe LambdaConfigType
lambdaConfig :: Maybe LambdaConfigType
$sel:lambdaConfig:UpdateUserPool' :: UpdateUserPool -> Maybe LambdaConfigType
lambdaConfig} -> Maybe LambdaConfigType
lambdaConfig) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe LambdaConfigType
a -> UpdateUserPool
s {$sel:lambdaConfig:UpdateUserPool' :: Maybe LambdaConfigType
lambdaConfig = Maybe LambdaConfigType
a} :: UpdateUserPool)
updateUserPool_mfaConfiguration :: Lens.Lens' UpdateUserPool (Prelude.Maybe UserPoolMfaType)
updateUserPool_mfaConfiguration :: Lens' UpdateUserPool (Maybe UserPoolMfaType)
updateUserPool_mfaConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe UserPoolMfaType
mfaConfiguration :: Maybe UserPoolMfaType
$sel:mfaConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe UserPoolMfaType
mfaConfiguration} -> Maybe UserPoolMfaType
mfaConfiguration) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe UserPoolMfaType
a -> UpdateUserPool
s {$sel:mfaConfiguration:UpdateUserPool' :: Maybe UserPoolMfaType
mfaConfiguration = Maybe UserPoolMfaType
a} :: UpdateUserPool)
updateUserPool_policies :: Lens.Lens' UpdateUserPool (Prelude.Maybe UserPoolPolicyType)
updateUserPool_policies :: Lens' UpdateUserPool (Maybe UserPoolPolicyType)
updateUserPool_policies = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe UserPoolPolicyType
policies :: Maybe UserPoolPolicyType
$sel:policies:UpdateUserPool' :: UpdateUserPool -> Maybe UserPoolPolicyType
policies} -> Maybe UserPoolPolicyType
policies) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe UserPoolPolicyType
a -> UpdateUserPool
s {$sel:policies:UpdateUserPool' :: Maybe UserPoolPolicyType
policies = Maybe UserPoolPolicyType
a} :: UpdateUserPool)
updateUserPool_smsAuthenticationMessage :: Lens.Lens' UpdateUserPool (Prelude.Maybe Prelude.Text)
updateUserPool_smsAuthenticationMessage :: Lens' UpdateUserPool (Maybe Text)
updateUserPool_smsAuthenticationMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe Text
smsAuthenticationMessage :: Maybe Text
$sel:smsAuthenticationMessage:UpdateUserPool' :: UpdateUserPool -> Maybe Text
smsAuthenticationMessage} -> Maybe Text
smsAuthenticationMessage) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe Text
a -> UpdateUserPool
s {$sel:smsAuthenticationMessage:UpdateUserPool' :: Maybe Text
smsAuthenticationMessage = Maybe Text
a} :: UpdateUserPool)
updateUserPool_smsConfiguration :: Lens.Lens' UpdateUserPool (Prelude.Maybe SmsConfigurationType)
updateUserPool_smsConfiguration :: Lens' UpdateUserPool (Maybe SmsConfigurationType)
updateUserPool_smsConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe SmsConfigurationType
smsConfiguration :: Maybe SmsConfigurationType
$sel:smsConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe SmsConfigurationType
smsConfiguration} -> Maybe SmsConfigurationType
smsConfiguration) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe SmsConfigurationType
a -> UpdateUserPool
s {$sel:smsConfiguration:UpdateUserPool' :: Maybe SmsConfigurationType
smsConfiguration = Maybe SmsConfigurationType
a} :: UpdateUserPool)
updateUserPool_smsVerificationMessage :: Lens.Lens' UpdateUserPool (Prelude.Maybe Prelude.Text)
updateUserPool_smsVerificationMessage :: Lens' UpdateUserPool (Maybe Text)
updateUserPool_smsVerificationMessage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe Text
smsVerificationMessage :: Maybe Text
$sel:smsVerificationMessage:UpdateUserPool' :: UpdateUserPool -> Maybe Text
smsVerificationMessage} -> Maybe Text
smsVerificationMessage) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe Text
a -> UpdateUserPool
s {$sel:smsVerificationMessage:UpdateUserPool' :: Maybe Text
smsVerificationMessage = Maybe Text
a} :: UpdateUserPool)
updateUserPool_userAttributeUpdateSettings :: Lens.Lens' UpdateUserPool (Prelude.Maybe UserAttributeUpdateSettingsType)
updateUserPool_userAttributeUpdateSettings :: Lens' UpdateUserPool (Maybe UserAttributeUpdateSettingsType)
updateUserPool_userAttributeUpdateSettings = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe UserAttributeUpdateSettingsType
userAttributeUpdateSettings :: Maybe UserAttributeUpdateSettingsType
$sel:userAttributeUpdateSettings:UpdateUserPool' :: UpdateUserPool -> Maybe UserAttributeUpdateSettingsType
userAttributeUpdateSettings} -> Maybe UserAttributeUpdateSettingsType
userAttributeUpdateSettings) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe UserAttributeUpdateSettingsType
a -> UpdateUserPool
s {$sel:userAttributeUpdateSettings:UpdateUserPool' :: Maybe UserAttributeUpdateSettingsType
userAttributeUpdateSettings = Maybe UserAttributeUpdateSettingsType
a} :: UpdateUserPool)
updateUserPool_userPoolAddOns :: Lens.Lens' UpdateUserPool (Prelude.Maybe UserPoolAddOnsType)
updateUserPool_userPoolAddOns :: Lens' UpdateUserPool (Maybe UserPoolAddOnsType)
updateUserPool_userPoolAddOns = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe UserPoolAddOnsType
userPoolAddOns :: Maybe UserPoolAddOnsType
$sel:userPoolAddOns:UpdateUserPool' :: UpdateUserPool -> Maybe UserPoolAddOnsType
userPoolAddOns} -> Maybe UserPoolAddOnsType
userPoolAddOns) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe UserPoolAddOnsType
a -> UpdateUserPool
s {$sel:userPoolAddOns:UpdateUserPool' :: Maybe UserPoolAddOnsType
userPoolAddOns = Maybe UserPoolAddOnsType
a} :: UpdateUserPool)
updateUserPool_userPoolTags :: Lens.Lens' UpdateUserPool (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateUserPool_userPoolTags :: Lens' UpdateUserPool (Maybe (HashMap Text Text))
updateUserPool_userPoolTags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe (HashMap Text Text)
userPoolTags :: Maybe (HashMap Text Text)
$sel:userPoolTags:UpdateUserPool' :: UpdateUserPool -> Maybe (HashMap Text Text)
userPoolTags} -> Maybe (HashMap Text Text)
userPoolTags) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe (HashMap Text Text)
a -> UpdateUserPool
s {$sel:userPoolTags:UpdateUserPool' :: Maybe (HashMap Text Text)
userPoolTags = Maybe (HashMap Text Text)
a} :: UpdateUserPool) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
updateUserPool_verificationMessageTemplate :: Lens.Lens' UpdateUserPool (Prelude.Maybe VerificationMessageTemplateType)
updateUserPool_verificationMessageTemplate :: Lens' UpdateUserPool (Maybe VerificationMessageTemplateType)
updateUserPool_verificationMessageTemplate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Maybe VerificationMessageTemplateType
verificationMessageTemplate :: Maybe VerificationMessageTemplateType
$sel:verificationMessageTemplate:UpdateUserPool' :: UpdateUserPool -> Maybe VerificationMessageTemplateType
verificationMessageTemplate} -> Maybe VerificationMessageTemplateType
verificationMessageTemplate) (\s :: UpdateUserPool
s@UpdateUserPool' {} Maybe VerificationMessageTemplateType
a -> UpdateUserPool
s {$sel:verificationMessageTemplate:UpdateUserPool' :: Maybe VerificationMessageTemplateType
verificationMessageTemplate = Maybe VerificationMessageTemplateType
a} :: UpdateUserPool)
updateUserPool_userPoolId :: Lens.Lens' UpdateUserPool Prelude.Text
updateUserPool_userPoolId :: Lens' UpdateUserPool Text
updateUserPool_userPoolId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPool' {Text
userPoolId :: Text
$sel:userPoolId:UpdateUserPool' :: UpdateUserPool -> Text
userPoolId} -> Text
userPoolId) (\s :: UpdateUserPool
s@UpdateUserPool' {} Text
a -> UpdateUserPool
s {$sel:userPoolId:UpdateUserPool' :: Text
userPoolId = Text
a} :: UpdateUserPool)
instance Core.AWSRequest UpdateUserPool where
type
AWSResponse UpdateUserPool =
UpdateUserPoolResponse
request :: (Service -> Service) -> UpdateUserPool -> Request UpdateUserPool
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy UpdateUserPool
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateUserPool)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> UpdateUserPoolResponse
UpdateUserPoolResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable UpdateUserPool where
hashWithSalt :: Int -> UpdateUserPool -> Int
hashWithSalt Int
_salt UpdateUserPool' {Maybe [VerifiedAttributeType]
Maybe Text
Maybe (HashMap Text Text)
Maybe DeletionProtectionType
Maybe DeviceConfigurationType
Maybe EmailConfigurationType
Maybe LambdaConfigType
Maybe AdminCreateUserConfigType
Maybe AccountRecoverySettingType
Maybe SmsConfigurationType
Maybe UserPoolAddOnsType
Maybe UserPoolMfaType
Maybe UserPoolPolicyType
Maybe VerificationMessageTemplateType
Maybe UserAttributeUpdateSettingsType
Text
userPoolId :: Text
verificationMessageTemplate :: Maybe VerificationMessageTemplateType
userPoolTags :: Maybe (HashMap Text Text)
userPoolAddOns :: Maybe UserPoolAddOnsType
userAttributeUpdateSettings :: Maybe UserAttributeUpdateSettingsType
smsVerificationMessage :: Maybe Text
smsConfiguration :: Maybe SmsConfigurationType
smsAuthenticationMessage :: Maybe Text
policies :: Maybe UserPoolPolicyType
mfaConfiguration :: Maybe UserPoolMfaType
lambdaConfig :: Maybe LambdaConfigType
emailVerificationSubject :: Maybe Text
emailVerificationMessage :: Maybe Text
emailConfiguration :: Maybe EmailConfigurationType
deviceConfiguration :: Maybe DeviceConfigurationType
deletionProtection :: Maybe DeletionProtectionType
autoVerifiedAttributes :: Maybe [VerifiedAttributeType]
adminCreateUserConfig :: Maybe AdminCreateUserConfigType
accountRecoverySetting :: Maybe AccountRecoverySettingType
$sel:userPoolId:UpdateUserPool' :: UpdateUserPool -> Text
$sel:verificationMessageTemplate:UpdateUserPool' :: UpdateUserPool -> Maybe VerificationMessageTemplateType
$sel:userPoolTags:UpdateUserPool' :: UpdateUserPool -> Maybe (HashMap Text Text)
$sel:userPoolAddOns:UpdateUserPool' :: UpdateUserPool -> Maybe UserPoolAddOnsType
$sel:userAttributeUpdateSettings:UpdateUserPool' :: UpdateUserPool -> Maybe UserAttributeUpdateSettingsType
$sel:smsVerificationMessage:UpdateUserPool' :: UpdateUserPool -> Maybe Text
$sel:smsConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe SmsConfigurationType
$sel:smsAuthenticationMessage:UpdateUserPool' :: UpdateUserPool -> Maybe Text
$sel:policies:UpdateUserPool' :: UpdateUserPool -> Maybe UserPoolPolicyType
$sel:mfaConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe UserPoolMfaType
$sel:lambdaConfig:UpdateUserPool' :: UpdateUserPool -> Maybe LambdaConfigType
$sel:emailVerificationSubject:UpdateUserPool' :: UpdateUserPool -> Maybe Text
$sel:emailVerificationMessage:UpdateUserPool' :: UpdateUserPool -> Maybe Text
$sel:emailConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe EmailConfigurationType
$sel:deviceConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe DeviceConfigurationType
$sel:deletionProtection:UpdateUserPool' :: UpdateUserPool -> Maybe DeletionProtectionType
$sel:autoVerifiedAttributes:UpdateUserPool' :: UpdateUserPool -> Maybe [VerifiedAttributeType]
$sel:adminCreateUserConfig:UpdateUserPool' :: UpdateUserPool -> Maybe AdminCreateUserConfigType
$sel:accountRecoverySetting:UpdateUserPool' :: UpdateUserPool -> Maybe AccountRecoverySettingType
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AccountRecoverySettingType
accountRecoverySetting
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AdminCreateUserConfigType
adminCreateUserConfig
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [VerifiedAttributeType]
autoVerifiedAttributes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DeletionProtectionType
deletionProtection
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DeviceConfigurationType
deviceConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EmailConfigurationType
emailConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
emailVerificationMessage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
emailVerificationSubject
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe LambdaConfigType
lambdaConfig
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe UserPoolMfaType
mfaConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe UserPoolPolicyType
policies
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
smsAuthenticationMessage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SmsConfigurationType
smsConfiguration
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
smsVerificationMessage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe UserAttributeUpdateSettingsType
userAttributeUpdateSettings
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe UserPoolAddOnsType
userPoolAddOns
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
userPoolTags
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe VerificationMessageTemplateType
verificationMessageTemplate
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
userPoolId
instance Prelude.NFData UpdateUserPool where
rnf :: UpdateUserPool -> ()
rnf UpdateUserPool' {Maybe [VerifiedAttributeType]
Maybe Text
Maybe (HashMap Text Text)
Maybe DeletionProtectionType
Maybe DeviceConfigurationType
Maybe EmailConfigurationType
Maybe LambdaConfigType
Maybe AdminCreateUserConfigType
Maybe AccountRecoverySettingType
Maybe SmsConfigurationType
Maybe UserPoolAddOnsType
Maybe UserPoolMfaType
Maybe UserPoolPolicyType
Maybe VerificationMessageTemplateType
Maybe UserAttributeUpdateSettingsType
Text
userPoolId :: Text
verificationMessageTemplate :: Maybe VerificationMessageTemplateType
userPoolTags :: Maybe (HashMap Text Text)
userPoolAddOns :: Maybe UserPoolAddOnsType
userAttributeUpdateSettings :: Maybe UserAttributeUpdateSettingsType
smsVerificationMessage :: Maybe Text
smsConfiguration :: Maybe SmsConfigurationType
smsAuthenticationMessage :: Maybe Text
policies :: Maybe UserPoolPolicyType
mfaConfiguration :: Maybe UserPoolMfaType
lambdaConfig :: Maybe LambdaConfigType
emailVerificationSubject :: Maybe Text
emailVerificationMessage :: Maybe Text
emailConfiguration :: Maybe EmailConfigurationType
deviceConfiguration :: Maybe DeviceConfigurationType
deletionProtection :: Maybe DeletionProtectionType
autoVerifiedAttributes :: Maybe [VerifiedAttributeType]
adminCreateUserConfig :: Maybe AdminCreateUserConfigType
accountRecoverySetting :: Maybe AccountRecoverySettingType
$sel:userPoolId:UpdateUserPool' :: UpdateUserPool -> Text
$sel:verificationMessageTemplate:UpdateUserPool' :: UpdateUserPool -> Maybe VerificationMessageTemplateType
$sel:userPoolTags:UpdateUserPool' :: UpdateUserPool -> Maybe (HashMap Text Text)
$sel:userPoolAddOns:UpdateUserPool' :: UpdateUserPool -> Maybe UserPoolAddOnsType
$sel:userAttributeUpdateSettings:UpdateUserPool' :: UpdateUserPool -> Maybe UserAttributeUpdateSettingsType
$sel:smsVerificationMessage:UpdateUserPool' :: UpdateUserPool -> Maybe Text
$sel:smsConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe SmsConfigurationType
$sel:smsAuthenticationMessage:UpdateUserPool' :: UpdateUserPool -> Maybe Text
$sel:policies:UpdateUserPool' :: UpdateUserPool -> Maybe UserPoolPolicyType
$sel:mfaConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe UserPoolMfaType
$sel:lambdaConfig:UpdateUserPool' :: UpdateUserPool -> Maybe LambdaConfigType
$sel:emailVerificationSubject:UpdateUserPool' :: UpdateUserPool -> Maybe Text
$sel:emailVerificationMessage:UpdateUserPool' :: UpdateUserPool -> Maybe Text
$sel:emailConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe EmailConfigurationType
$sel:deviceConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe DeviceConfigurationType
$sel:deletionProtection:UpdateUserPool' :: UpdateUserPool -> Maybe DeletionProtectionType
$sel:autoVerifiedAttributes:UpdateUserPool' :: UpdateUserPool -> Maybe [VerifiedAttributeType]
$sel:adminCreateUserConfig:UpdateUserPool' :: UpdateUserPool -> Maybe AdminCreateUserConfigType
$sel:accountRecoverySetting:UpdateUserPool' :: UpdateUserPool -> Maybe AccountRecoverySettingType
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe AccountRecoverySettingType
accountRecoverySetting
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AdminCreateUserConfigType
adminCreateUserConfig
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [VerifiedAttributeType]
autoVerifiedAttributes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DeletionProtectionType
deletionProtection
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DeviceConfigurationType
deviceConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EmailConfigurationType
emailConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
emailVerificationMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
emailVerificationSubject
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe LambdaConfigType
lambdaConfig
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe UserPoolMfaType
mfaConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe UserPoolPolicyType
policies
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
smsAuthenticationMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe SmsConfigurationType
smsConfiguration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
smsVerificationMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe UserAttributeUpdateSettingsType
userAttributeUpdateSettings
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe UserPoolAddOnsType
userPoolAddOns
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
userPoolTags
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf
Maybe VerificationMessageTemplateType
verificationMessageTemplate
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
userPoolId
instance Data.ToHeaders UpdateUserPool where
toHeaders :: UpdateUserPool -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AWSCognitoIdentityProviderService.UpdateUserPool" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON UpdateUserPool where
toJSON :: UpdateUserPool -> Value
toJSON UpdateUserPool' {Maybe [VerifiedAttributeType]
Maybe Text
Maybe (HashMap Text Text)
Maybe DeletionProtectionType
Maybe DeviceConfigurationType
Maybe EmailConfigurationType
Maybe LambdaConfigType
Maybe AdminCreateUserConfigType
Maybe AccountRecoverySettingType
Maybe SmsConfigurationType
Maybe UserPoolAddOnsType
Maybe UserPoolMfaType
Maybe UserPoolPolicyType
Maybe VerificationMessageTemplateType
Maybe UserAttributeUpdateSettingsType
Text
userPoolId :: Text
verificationMessageTemplate :: Maybe VerificationMessageTemplateType
userPoolTags :: Maybe (HashMap Text Text)
userPoolAddOns :: Maybe UserPoolAddOnsType
userAttributeUpdateSettings :: Maybe UserAttributeUpdateSettingsType
smsVerificationMessage :: Maybe Text
smsConfiguration :: Maybe SmsConfigurationType
smsAuthenticationMessage :: Maybe Text
policies :: Maybe UserPoolPolicyType
mfaConfiguration :: Maybe UserPoolMfaType
lambdaConfig :: Maybe LambdaConfigType
emailVerificationSubject :: Maybe Text
emailVerificationMessage :: Maybe Text
emailConfiguration :: Maybe EmailConfigurationType
deviceConfiguration :: Maybe DeviceConfigurationType
deletionProtection :: Maybe DeletionProtectionType
autoVerifiedAttributes :: Maybe [VerifiedAttributeType]
adminCreateUserConfig :: Maybe AdminCreateUserConfigType
accountRecoverySetting :: Maybe AccountRecoverySettingType
$sel:userPoolId:UpdateUserPool' :: UpdateUserPool -> Text
$sel:verificationMessageTemplate:UpdateUserPool' :: UpdateUserPool -> Maybe VerificationMessageTemplateType
$sel:userPoolTags:UpdateUserPool' :: UpdateUserPool -> Maybe (HashMap Text Text)
$sel:userPoolAddOns:UpdateUserPool' :: UpdateUserPool -> Maybe UserPoolAddOnsType
$sel:userAttributeUpdateSettings:UpdateUserPool' :: UpdateUserPool -> Maybe UserAttributeUpdateSettingsType
$sel:smsVerificationMessage:UpdateUserPool' :: UpdateUserPool -> Maybe Text
$sel:smsConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe SmsConfigurationType
$sel:smsAuthenticationMessage:UpdateUserPool' :: UpdateUserPool -> Maybe Text
$sel:policies:UpdateUserPool' :: UpdateUserPool -> Maybe UserPoolPolicyType
$sel:mfaConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe UserPoolMfaType
$sel:lambdaConfig:UpdateUserPool' :: UpdateUserPool -> Maybe LambdaConfigType
$sel:emailVerificationSubject:UpdateUserPool' :: UpdateUserPool -> Maybe Text
$sel:emailVerificationMessage:UpdateUserPool' :: UpdateUserPool -> Maybe Text
$sel:emailConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe EmailConfigurationType
$sel:deviceConfiguration:UpdateUserPool' :: UpdateUserPool -> Maybe DeviceConfigurationType
$sel:deletionProtection:UpdateUserPool' :: UpdateUserPool -> Maybe DeletionProtectionType
$sel:autoVerifiedAttributes:UpdateUserPool' :: UpdateUserPool -> Maybe [VerifiedAttributeType]
$sel:adminCreateUserConfig:UpdateUserPool' :: UpdateUserPool -> Maybe AdminCreateUserConfigType
$sel:accountRecoverySetting:UpdateUserPool' :: UpdateUserPool -> Maybe AccountRecoverySettingType
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"AccountRecoverySetting" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AccountRecoverySettingType
accountRecoverySetting,
(Key
"AdminCreateUserConfig" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe AdminCreateUserConfigType
adminCreateUserConfig,
(Key
"AutoVerifiedAttributes" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [VerifiedAttributeType]
autoVerifiedAttributes,
(Key
"DeletionProtection" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeletionProtectionType
deletionProtection,
(Key
"DeviceConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DeviceConfigurationType
deviceConfiguration,
(Key
"EmailConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe EmailConfigurationType
emailConfiguration,
(Key
"EmailVerificationMessage" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
emailVerificationMessage,
(Key
"EmailVerificationSubject" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
emailVerificationSubject,
(Key
"LambdaConfig" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe LambdaConfigType
lambdaConfig,
(Key
"MfaConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UserPoolMfaType
mfaConfiguration,
(Key
"Policies" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UserPoolPolicyType
policies,
(Key
"SmsAuthenticationMessage" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
smsAuthenticationMessage,
(Key
"SmsConfiguration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe SmsConfigurationType
smsConfiguration,
(Key
"SmsVerificationMessage" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
smsVerificationMessage,
(Key
"UserAttributeUpdateSettings" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UserAttributeUpdateSettingsType
userAttributeUpdateSettings,
(Key
"UserPoolAddOns" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe UserPoolAddOnsType
userPoolAddOns,
(Key
"UserPoolTags" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (HashMap Text Text)
userPoolTags,
(Key
"VerificationMessageTemplate" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe VerificationMessageTemplateType
verificationMessageTemplate,
forall a. a -> Maybe a
Prelude.Just (Key
"UserPoolId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
userPoolId)
]
)
instance Data.ToPath UpdateUserPool where
toPath :: UpdateUserPool -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery UpdateUserPool where
toQuery :: UpdateUserPool -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdateUserPoolResponse = UpdateUserPoolResponse'
{
UpdateUserPoolResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateUserPoolResponse -> UpdateUserPoolResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateUserPoolResponse -> UpdateUserPoolResponse -> Bool
$c/= :: UpdateUserPoolResponse -> UpdateUserPoolResponse -> Bool
== :: UpdateUserPoolResponse -> UpdateUserPoolResponse -> Bool
$c== :: UpdateUserPoolResponse -> UpdateUserPoolResponse -> Bool
Prelude.Eq, ReadPrec [UpdateUserPoolResponse]
ReadPrec UpdateUserPoolResponse
Int -> ReadS UpdateUserPoolResponse
ReadS [UpdateUserPoolResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateUserPoolResponse]
$creadListPrec :: ReadPrec [UpdateUserPoolResponse]
readPrec :: ReadPrec UpdateUserPoolResponse
$creadPrec :: ReadPrec UpdateUserPoolResponse
readList :: ReadS [UpdateUserPoolResponse]
$creadList :: ReadS [UpdateUserPoolResponse]
readsPrec :: Int -> ReadS UpdateUserPoolResponse
$creadsPrec :: Int -> ReadS UpdateUserPoolResponse
Prelude.Read, Int -> UpdateUserPoolResponse -> ShowS
[UpdateUserPoolResponse] -> ShowS
UpdateUserPoolResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateUserPoolResponse] -> ShowS
$cshowList :: [UpdateUserPoolResponse] -> ShowS
show :: UpdateUserPoolResponse -> String
$cshow :: UpdateUserPoolResponse -> String
showsPrec :: Int -> UpdateUserPoolResponse -> ShowS
$cshowsPrec :: Int -> UpdateUserPoolResponse -> ShowS
Prelude.Show, forall x. Rep UpdateUserPoolResponse x -> UpdateUserPoolResponse
forall x. UpdateUserPoolResponse -> Rep UpdateUserPoolResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateUserPoolResponse x -> UpdateUserPoolResponse
$cfrom :: forall x. UpdateUserPoolResponse -> Rep UpdateUserPoolResponse x
Prelude.Generic)
newUpdateUserPoolResponse ::
Prelude.Int ->
UpdateUserPoolResponse
newUpdateUserPoolResponse :: Int -> UpdateUserPoolResponse
newUpdateUserPoolResponse Int
pHttpStatus_ =
UpdateUserPoolResponse' {$sel:httpStatus:UpdateUserPoolResponse' :: Int
httpStatus = Int
pHttpStatus_}
updateUserPoolResponse_httpStatus :: Lens.Lens' UpdateUserPoolResponse Prelude.Int
updateUserPoolResponse_httpStatus :: Lens' UpdateUserPoolResponse Int
updateUserPoolResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateUserPoolResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateUserPoolResponse' :: UpdateUserPoolResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateUserPoolResponse
s@UpdateUserPoolResponse' {} Int
a -> UpdateUserPoolResponse
s {$sel:httpStatus:UpdateUserPoolResponse' :: Int
httpStatus = Int
a} :: UpdateUserPoolResponse)
instance Prelude.NFData UpdateUserPoolResponse where
rnf :: UpdateUserPoolResponse -> ()
rnf UpdateUserPoolResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateUserPoolResponse' :: UpdateUserPoolResponse -> Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus