{-# 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.AdminGetUser
(
AdminGetUser (..),
newAdminGetUser,
adminGetUser_userPoolId,
adminGetUser_username,
AdminGetUserResponse (..),
newAdminGetUserResponse,
adminGetUserResponse_enabled,
adminGetUserResponse_userStatus,
adminGetUserResponse_userAttributes,
adminGetUserResponse_userCreateDate,
adminGetUserResponse_userMFASettingList,
adminGetUserResponse_mfaOptions,
adminGetUserResponse_userLastModifiedDate,
adminGetUserResponse_preferredMfaSetting,
adminGetUserResponse_httpStatus,
adminGetUserResponse_username,
)
where
import Amazonka.CognitoIdentityProvider.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data AdminGetUser = AdminGetUser'
{
AdminGetUser -> Text
userPoolId :: Prelude.Text,
AdminGetUser -> Sensitive Text
username :: Core.Sensitive Prelude.Text
}
deriving (AdminGetUser -> AdminGetUser -> Bool
(AdminGetUser -> AdminGetUser -> Bool)
-> (AdminGetUser -> AdminGetUser -> Bool) -> Eq AdminGetUser
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AdminGetUser -> AdminGetUser -> Bool
$c/= :: AdminGetUser -> AdminGetUser -> Bool
== :: AdminGetUser -> AdminGetUser -> Bool
$c== :: AdminGetUser -> AdminGetUser -> Bool
Prelude.Eq, Int -> AdminGetUser -> ShowS
[AdminGetUser] -> ShowS
AdminGetUser -> String
(Int -> AdminGetUser -> ShowS)
-> (AdminGetUser -> String)
-> ([AdminGetUser] -> ShowS)
-> Show AdminGetUser
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AdminGetUser] -> ShowS
$cshowList :: [AdminGetUser] -> ShowS
show :: AdminGetUser -> String
$cshow :: AdminGetUser -> String
showsPrec :: Int -> AdminGetUser -> ShowS
$cshowsPrec :: Int -> AdminGetUser -> ShowS
Prelude.Show, (forall x. AdminGetUser -> Rep AdminGetUser x)
-> (forall x. Rep AdminGetUser x -> AdminGetUser)
-> Generic AdminGetUser
forall x. Rep AdminGetUser x -> AdminGetUser
forall x. AdminGetUser -> Rep AdminGetUser x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AdminGetUser x -> AdminGetUser
$cfrom :: forall x. AdminGetUser -> Rep AdminGetUser x
Prelude.Generic)
newAdminGetUser ::
Prelude.Text ->
Prelude.Text ->
AdminGetUser
newAdminGetUser :: Text -> Text -> AdminGetUser
newAdminGetUser Text
pUserPoolId_ Text
pUsername_ =
AdminGetUser' :: Text -> Sensitive Text -> AdminGetUser
AdminGetUser'
{ $sel:userPoolId:AdminGetUser' :: Text
userPoolId = Text
pUserPoolId_,
$sel:username:AdminGetUser' :: Sensitive Text
username = Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text)))
-> Text -> Sensitive Text
forall t b. AReview t b -> b -> t
Lens.# Text
pUsername_
}
adminGetUser_userPoolId :: Lens.Lens' AdminGetUser Prelude.Text
adminGetUser_userPoolId :: (Text -> f Text) -> AdminGetUser -> f AdminGetUser
adminGetUser_userPoolId = (AdminGetUser -> Text)
-> (AdminGetUser -> Text -> AdminGetUser)
-> Lens AdminGetUser AdminGetUser Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AdminGetUser' {Text
userPoolId :: Text
$sel:userPoolId:AdminGetUser' :: AdminGetUser -> Text
userPoolId} -> Text
userPoolId) (\s :: AdminGetUser
s@AdminGetUser' {} Text
a -> AdminGetUser
s {$sel:userPoolId:AdminGetUser' :: Text
userPoolId = Text
a} :: AdminGetUser)
adminGetUser_username :: Lens.Lens' AdminGetUser Prelude.Text
adminGetUser_username :: (Text -> f Text) -> AdminGetUser -> f AdminGetUser
adminGetUser_username = (AdminGetUser -> Sensitive Text)
-> (AdminGetUser -> Sensitive Text -> AdminGetUser)
-> Lens AdminGetUser AdminGetUser (Sensitive Text) (Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AdminGetUser' {Sensitive Text
username :: Sensitive Text
$sel:username:AdminGetUser' :: AdminGetUser -> Sensitive Text
username} -> Sensitive Text
username) (\s :: AdminGetUser
s@AdminGetUser' {} Sensitive Text
a -> AdminGetUser
s {$sel:username:AdminGetUser' :: Sensitive Text
username = Sensitive Text
a} :: AdminGetUser) ((Sensitive Text -> f (Sensitive Text))
-> AdminGetUser -> f AdminGetUser)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> AdminGetUser
-> f AdminGetUser
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> f Text) -> Sensitive Text -> f (Sensitive Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive
instance Core.AWSRequest AdminGetUser where
type AWSResponse AdminGetUser = AdminGetUserResponse
request :: AdminGetUser -> Request AdminGetUser
request = Service -> AdminGetUser -> Request AdminGetUser
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy AdminGetUser
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse AdminGetUser)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse AdminGetUser))
-> Logger
-> Service
-> Proxy AdminGetUser
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse AdminGetUser)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Bool
-> Maybe UserStatusType
-> Maybe [AttributeType]
-> Maybe POSIX
-> Maybe [Text]
-> Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse
AdminGetUserResponse'
(Maybe Bool
-> Maybe UserStatusType
-> Maybe [AttributeType]
-> Maybe POSIX
-> Maybe [Text]
-> Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse)
-> Either String (Maybe Bool)
-> Either
String
(Maybe UserStatusType
-> Maybe [AttributeType]
-> Maybe POSIX
-> Maybe [Text]
-> Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Enabled")
Either
String
(Maybe UserStatusType
-> Maybe [AttributeType]
-> Maybe POSIX
-> Maybe [Text]
-> Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse)
-> Either String (Maybe UserStatusType)
-> Either
String
(Maybe [AttributeType]
-> Maybe POSIX
-> Maybe [Text]
-> Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe UserStatusType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UserStatus")
Either
String
(Maybe [AttributeType]
-> Maybe POSIX
-> Maybe [Text]
-> Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse)
-> Either String (Maybe [AttributeType])
-> Either
String
(Maybe POSIX
-> Maybe [Text]
-> Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [AttributeType]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UserAttributes" Either String (Maybe (Maybe [AttributeType]))
-> Maybe [AttributeType] -> Either String (Maybe [AttributeType])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [AttributeType]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe POSIX
-> Maybe [Text]
-> Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe [Text]
-> Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UserCreateDate")
Either
String
(Maybe [Text]
-> Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse)
-> Either String (Maybe [Text])
-> Either
String
(Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [Text]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UserMFASettingList"
Either String (Maybe (Maybe [Text]))
-> Maybe [Text] -> Either String (Maybe [Text])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Text]
forall a. Monoid a => a
Prelude.mempty
)
Either
String
(Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse)
-> Either String (Maybe [MFAOptionType])
-> Either
String
(Maybe POSIX
-> Maybe Text -> Int -> Sensitive Text -> AdminGetUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [MFAOptionType]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"MFAOptions" Either String (Maybe (Maybe [MFAOptionType]))
-> Maybe [MFAOptionType] -> Either String (Maybe [MFAOptionType])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [MFAOptionType]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe POSIX
-> Maybe Text -> Int -> Sensitive Text -> AdminGetUserResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text -> Int -> Sensitive Text -> AdminGetUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UserLastModifiedDate")
Either
String
(Maybe Text -> Int -> Sensitive Text -> AdminGetUserResponse)
-> Either String (Maybe Text)
-> Either String (Int -> Sensitive Text -> AdminGetUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"PreferredMfaSetting")
Either String (Int -> Sensitive Text -> AdminGetUserResponse)
-> Either String Int
-> Either String (Sensitive Text -> AdminGetUserResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
Either String (Sensitive Text -> AdminGetUserResponse)
-> Either String (Sensitive Text)
-> Either String AdminGetUserResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Sensitive Text)
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"Username")
)
instance Prelude.Hashable AdminGetUser
instance Prelude.NFData AdminGetUser
instance Core.ToHeaders AdminGetUser where
toHeaders :: AdminGetUser -> ResponseHeaders
toHeaders =
ResponseHeaders -> AdminGetUser -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSCognitoIdentityProviderService.AdminGetUser" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON AdminGetUser where
toJSON :: AdminGetUser -> Value
toJSON AdminGetUser' {Text
Sensitive Text
username :: Sensitive Text
userPoolId :: Text
$sel:username:AdminGetUser' :: AdminGetUser -> Sensitive Text
$sel:userPoolId:AdminGetUser' :: AdminGetUser -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"UserPoolId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
userPoolId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Username" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Text
username)
]
)
instance Core.ToPath AdminGetUser where
toPath :: AdminGetUser -> ByteString
toPath = ByteString -> AdminGetUser -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery AdminGetUser where
toQuery :: AdminGetUser -> QueryString
toQuery = QueryString -> AdminGetUser -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data AdminGetUserResponse = AdminGetUserResponse'
{
AdminGetUserResponse -> Maybe Bool
enabled :: Prelude.Maybe Prelude.Bool,
AdminGetUserResponse -> Maybe UserStatusType
userStatus :: Prelude.Maybe UserStatusType,
AdminGetUserResponse -> Maybe [AttributeType]
userAttributes :: Prelude.Maybe [AttributeType],
AdminGetUserResponse -> Maybe POSIX
userCreateDate :: Prelude.Maybe Core.POSIX,
AdminGetUserResponse -> Maybe [Text]
userMFASettingList :: Prelude.Maybe [Prelude.Text],
AdminGetUserResponse -> Maybe [MFAOptionType]
mfaOptions :: Prelude.Maybe [MFAOptionType],
AdminGetUserResponse -> Maybe POSIX
userLastModifiedDate :: Prelude.Maybe Core.POSIX,
AdminGetUserResponse -> Maybe Text
preferredMfaSetting :: Prelude.Maybe Prelude.Text,
AdminGetUserResponse -> Int
httpStatus :: Prelude.Int,
AdminGetUserResponse -> Sensitive Text
username :: Core.Sensitive Prelude.Text
}
deriving (AdminGetUserResponse -> AdminGetUserResponse -> Bool
(AdminGetUserResponse -> AdminGetUserResponse -> Bool)
-> (AdminGetUserResponse -> AdminGetUserResponse -> Bool)
-> Eq AdminGetUserResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AdminGetUserResponse -> AdminGetUserResponse -> Bool
$c/= :: AdminGetUserResponse -> AdminGetUserResponse -> Bool
== :: AdminGetUserResponse -> AdminGetUserResponse -> Bool
$c== :: AdminGetUserResponse -> AdminGetUserResponse -> Bool
Prelude.Eq, Int -> AdminGetUserResponse -> ShowS
[AdminGetUserResponse] -> ShowS
AdminGetUserResponse -> String
(Int -> AdminGetUserResponse -> ShowS)
-> (AdminGetUserResponse -> String)
-> ([AdminGetUserResponse] -> ShowS)
-> Show AdminGetUserResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AdminGetUserResponse] -> ShowS
$cshowList :: [AdminGetUserResponse] -> ShowS
show :: AdminGetUserResponse -> String
$cshow :: AdminGetUserResponse -> String
showsPrec :: Int -> AdminGetUserResponse -> ShowS
$cshowsPrec :: Int -> AdminGetUserResponse -> ShowS
Prelude.Show, (forall x. AdminGetUserResponse -> Rep AdminGetUserResponse x)
-> (forall x. Rep AdminGetUserResponse x -> AdminGetUserResponse)
-> Generic AdminGetUserResponse
forall x. Rep AdminGetUserResponse x -> AdminGetUserResponse
forall x. AdminGetUserResponse -> Rep AdminGetUserResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AdminGetUserResponse x -> AdminGetUserResponse
$cfrom :: forall x. AdminGetUserResponse -> Rep AdminGetUserResponse x
Prelude.Generic)
newAdminGetUserResponse ::
Prelude.Int ->
Prelude.Text ->
AdminGetUserResponse
newAdminGetUserResponse :: Int -> Text -> AdminGetUserResponse
newAdminGetUserResponse Int
pHttpStatus_ Text
pUsername_ =
AdminGetUserResponse' :: Maybe Bool
-> Maybe UserStatusType
-> Maybe [AttributeType]
-> Maybe POSIX
-> Maybe [Text]
-> Maybe [MFAOptionType]
-> Maybe POSIX
-> Maybe Text
-> Int
-> Sensitive Text
-> AdminGetUserResponse
AdminGetUserResponse'
{ $sel:enabled:AdminGetUserResponse' :: Maybe Bool
enabled = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:userStatus:AdminGetUserResponse' :: Maybe UserStatusType
userStatus = Maybe UserStatusType
forall a. Maybe a
Prelude.Nothing,
$sel:userAttributes:AdminGetUserResponse' :: Maybe [AttributeType]
userAttributes = Maybe [AttributeType]
forall a. Maybe a
Prelude.Nothing,
$sel:userCreateDate:AdminGetUserResponse' :: Maybe POSIX
userCreateDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:userMFASettingList:AdminGetUserResponse' :: Maybe [Text]
userMFASettingList = Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:mfaOptions:AdminGetUserResponse' :: Maybe [MFAOptionType]
mfaOptions = Maybe [MFAOptionType]
forall a. Maybe a
Prelude.Nothing,
$sel:userLastModifiedDate:AdminGetUserResponse' :: Maybe POSIX
userLastModifiedDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:preferredMfaSetting:AdminGetUserResponse' :: Maybe Text
preferredMfaSetting = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:AdminGetUserResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:username:AdminGetUserResponse' :: Sensitive Text
username = Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text))
forall a. Iso' (Sensitive a) a
Core._Sensitive (Tagged Text (Identity Text)
-> Tagged (Sensitive Text) (Identity (Sensitive Text)))
-> Text -> Sensitive Text
forall t b. AReview t b -> b -> t
Lens.# Text
pUsername_
}
adminGetUserResponse_enabled :: Lens.Lens' AdminGetUserResponse (Prelude.Maybe Prelude.Bool)
adminGetUserResponse_enabled :: (Maybe Bool -> f (Maybe Bool))
-> AdminGetUserResponse -> f AdminGetUserResponse
adminGetUserResponse_enabled = (AdminGetUserResponse -> Maybe Bool)
-> (AdminGetUserResponse -> Maybe Bool -> AdminGetUserResponse)
-> Lens
AdminGetUserResponse AdminGetUserResponse (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AdminGetUserResponse' {Maybe Bool
enabled :: Maybe Bool
$sel:enabled:AdminGetUserResponse' :: AdminGetUserResponse -> Maybe Bool
enabled} -> Maybe Bool
enabled) (\s :: AdminGetUserResponse
s@AdminGetUserResponse' {} Maybe Bool
a -> AdminGetUserResponse
s {$sel:enabled:AdminGetUserResponse' :: Maybe Bool
enabled = Maybe Bool
a} :: AdminGetUserResponse)
adminGetUserResponse_userStatus :: Lens.Lens' AdminGetUserResponse (Prelude.Maybe UserStatusType)
adminGetUserResponse_userStatus :: (Maybe UserStatusType -> f (Maybe UserStatusType))
-> AdminGetUserResponse -> f AdminGetUserResponse
adminGetUserResponse_userStatus = (AdminGetUserResponse -> Maybe UserStatusType)
-> (AdminGetUserResponse
-> Maybe UserStatusType -> AdminGetUserResponse)
-> Lens
AdminGetUserResponse
AdminGetUserResponse
(Maybe UserStatusType)
(Maybe UserStatusType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AdminGetUserResponse' {Maybe UserStatusType
userStatus :: Maybe UserStatusType
$sel:userStatus:AdminGetUserResponse' :: AdminGetUserResponse -> Maybe UserStatusType
userStatus} -> Maybe UserStatusType
userStatus) (\s :: AdminGetUserResponse
s@AdminGetUserResponse' {} Maybe UserStatusType
a -> AdminGetUserResponse
s {$sel:userStatus:AdminGetUserResponse' :: Maybe UserStatusType
userStatus = Maybe UserStatusType
a} :: AdminGetUserResponse)
adminGetUserResponse_userAttributes :: Lens.Lens' AdminGetUserResponse (Prelude.Maybe [AttributeType])
adminGetUserResponse_userAttributes :: (Maybe [AttributeType] -> f (Maybe [AttributeType]))
-> AdminGetUserResponse -> f AdminGetUserResponse
adminGetUserResponse_userAttributes = (AdminGetUserResponse -> Maybe [AttributeType])
-> (AdminGetUserResponse
-> Maybe [AttributeType] -> AdminGetUserResponse)
-> Lens
AdminGetUserResponse
AdminGetUserResponse
(Maybe [AttributeType])
(Maybe [AttributeType])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AdminGetUserResponse' {Maybe [AttributeType]
userAttributes :: Maybe [AttributeType]
$sel:userAttributes:AdminGetUserResponse' :: AdminGetUserResponse -> Maybe [AttributeType]
userAttributes} -> Maybe [AttributeType]
userAttributes) (\s :: AdminGetUserResponse
s@AdminGetUserResponse' {} Maybe [AttributeType]
a -> AdminGetUserResponse
s {$sel:userAttributes:AdminGetUserResponse' :: Maybe [AttributeType]
userAttributes = Maybe [AttributeType]
a} :: AdminGetUserResponse) ((Maybe [AttributeType] -> f (Maybe [AttributeType]))
-> AdminGetUserResponse -> f AdminGetUserResponse)
-> ((Maybe [AttributeType] -> f (Maybe [AttributeType]))
-> Maybe [AttributeType] -> f (Maybe [AttributeType]))
-> (Maybe [AttributeType] -> f (Maybe [AttributeType]))
-> AdminGetUserResponse
-> f AdminGetUserResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[AttributeType] [AttributeType] [AttributeType] [AttributeType]
-> Iso
(Maybe [AttributeType])
(Maybe [AttributeType])
(Maybe [AttributeType])
(Maybe [AttributeType])
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 AnIso
[AttributeType] [AttributeType] [AttributeType] [AttributeType]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
adminGetUserResponse_userCreateDate :: Lens.Lens' AdminGetUserResponse (Prelude.Maybe Prelude.UTCTime)
adminGetUserResponse_userCreateDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> AdminGetUserResponse -> f AdminGetUserResponse
adminGetUserResponse_userCreateDate = (AdminGetUserResponse -> Maybe POSIX)
-> (AdminGetUserResponse -> Maybe POSIX -> AdminGetUserResponse)
-> Lens
AdminGetUserResponse
AdminGetUserResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AdminGetUserResponse' {Maybe POSIX
userCreateDate :: Maybe POSIX
$sel:userCreateDate:AdminGetUserResponse' :: AdminGetUserResponse -> Maybe POSIX
userCreateDate} -> Maybe POSIX
userCreateDate) (\s :: AdminGetUserResponse
s@AdminGetUserResponse' {} Maybe POSIX
a -> AdminGetUserResponse
s {$sel:userCreateDate:AdminGetUserResponse' :: Maybe POSIX
userCreateDate = Maybe POSIX
a} :: AdminGetUserResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> AdminGetUserResponse -> f AdminGetUserResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> AdminGetUserResponse
-> f AdminGetUserResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
adminGetUserResponse_userMFASettingList :: Lens.Lens' AdminGetUserResponse (Prelude.Maybe [Prelude.Text])
adminGetUserResponse_userMFASettingList :: (Maybe [Text] -> f (Maybe [Text]))
-> AdminGetUserResponse -> f AdminGetUserResponse
adminGetUserResponse_userMFASettingList = (AdminGetUserResponse -> Maybe [Text])
-> (AdminGetUserResponse -> Maybe [Text] -> AdminGetUserResponse)
-> Lens
AdminGetUserResponse
AdminGetUserResponse
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AdminGetUserResponse' {Maybe [Text]
userMFASettingList :: Maybe [Text]
$sel:userMFASettingList:AdminGetUserResponse' :: AdminGetUserResponse -> Maybe [Text]
userMFASettingList} -> Maybe [Text]
userMFASettingList) (\s :: AdminGetUserResponse
s@AdminGetUserResponse' {} Maybe [Text]
a -> AdminGetUserResponse
s {$sel:userMFASettingList:AdminGetUserResponse' :: Maybe [Text]
userMFASettingList = Maybe [Text]
a} :: AdminGetUserResponse) ((Maybe [Text] -> f (Maybe [Text]))
-> AdminGetUserResponse -> f AdminGetUserResponse)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> AdminGetUserResponse
-> f AdminGetUserResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [Text])
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 AnIso [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
adminGetUserResponse_mfaOptions :: Lens.Lens' AdminGetUserResponse (Prelude.Maybe [MFAOptionType])
adminGetUserResponse_mfaOptions :: (Maybe [MFAOptionType] -> f (Maybe [MFAOptionType]))
-> AdminGetUserResponse -> f AdminGetUserResponse
adminGetUserResponse_mfaOptions = (AdminGetUserResponse -> Maybe [MFAOptionType])
-> (AdminGetUserResponse
-> Maybe [MFAOptionType] -> AdminGetUserResponse)
-> Lens
AdminGetUserResponse
AdminGetUserResponse
(Maybe [MFAOptionType])
(Maybe [MFAOptionType])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AdminGetUserResponse' {Maybe [MFAOptionType]
mfaOptions :: Maybe [MFAOptionType]
$sel:mfaOptions:AdminGetUserResponse' :: AdminGetUserResponse -> Maybe [MFAOptionType]
mfaOptions} -> Maybe [MFAOptionType]
mfaOptions) (\s :: AdminGetUserResponse
s@AdminGetUserResponse' {} Maybe [MFAOptionType]
a -> AdminGetUserResponse
s {$sel:mfaOptions:AdminGetUserResponse' :: Maybe [MFAOptionType]
mfaOptions = Maybe [MFAOptionType]
a} :: AdminGetUserResponse) ((Maybe [MFAOptionType] -> f (Maybe [MFAOptionType]))
-> AdminGetUserResponse -> f AdminGetUserResponse)
-> ((Maybe [MFAOptionType] -> f (Maybe [MFAOptionType]))
-> Maybe [MFAOptionType] -> f (Maybe [MFAOptionType]))
-> (Maybe [MFAOptionType] -> f (Maybe [MFAOptionType]))
-> AdminGetUserResponse
-> f AdminGetUserResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[MFAOptionType] [MFAOptionType] [MFAOptionType] [MFAOptionType]
-> Iso
(Maybe [MFAOptionType])
(Maybe [MFAOptionType])
(Maybe [MFAOptionType])
(Maybe [MFAOptionType])
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 AnIso
[MFAOptionType] [MFAOptionType] [MFAOptionType] [MFAOptionType]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
adminGetUserResponse_userLastModifiedDate :: Lens.Lens' AdminGetUserResponse (Prelude.Maybe Prelude.UTCTime)
adminGetUserResponse_userLastModifiedDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> AdminGetUserResponse -> f AdminGetUserResponse
adminGetUserResponse_userLastModifiedDate = (AdminGetUserResponse -> Maybe POSIX)
-> (AdminGetUserResponse -> Maybe POSIX -> AdminGetUserResponse)
-> Lens
AdminGetUserResponse
AdminGetUserResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AdminGetUserResponse' {Maybe POSIX
userLastModifiedDate :: Maybe POSIX
$sel:userLastModifiedDate:AdminGetUserResponse' :: AdminGetUserResponse -> Maybe POSIX
userLastModifiedDate} -> Maybe POSIX
userLastModifiedDate) (\s :: AdminGetUserResponse
s@AdminGetUserResponse' {} Maybe POSIX
a -> AdminGetUserResponse
s {$sel:userLastModifiedDate:AdminGetUserResponse' :: Maybe POSIX
userLastModifiedDate = Maybe POSIX
a} :: AdminGetUserResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> AdminGetUserResponse -> f AdminGetUserResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> AdminGetUserResponse
-> f AdminGetUserResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 AnIso POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
adminGetUserResponse_preferredMfaSetting :: Lens.Lens' AdminGetUserResponse (Prelude.Maybe Prelude.Text)
adminGetUserResponse_preferredMfaSetting :: (Maybe Text -> f (Maybe Text))
-> AdminGetUserResponse -> f AdminGetUserResponse
adminGetUserResponse_preferredMfaSetting = (AdminGetUserResponse -> Maybe Text)
-> (AdminGetUserResponse -> Maybe Text -> AdminGetUserResponse)
-> Lens
AdminGetUserResponse AdminGetUserResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AdminGetUserResponse' {Maybe Text
preferredMfaSetting :: Maybe Text
$sel:preferredMfaSetting:AdminGetUserResponse' :: AdminGetUserResponse -> Maybe Text
preferredMfaSetting} -> Maybe Text
preferredMfaSetting) (\s :: AdminGetUserResponse
s@AdminGetUserResponse' {} Maybe Text
a -> AdminGetUserResponse
s {$sel:preferredMfaSetting:AdminGetUserResponse' :: Maybe Text
preferredMfaSetting = Maybe Text
a} :: AdminGetUserResponse)
adminGetUserResponse_httpStatus :: Lens.Lens' AdminGetUserResponse Prelude.Int
adminGetUserResponse_httpStatus :: (Int -> f Int) -> AdminGetUserResponse -> f AdminGetUserResponse
adminGetUserResponse_httpStatus = (AdminGetUserResponse -> Int)
-> (AdminGetUserResponse -> Int -> AdminGetUserResponse)
-> Lens AdminGetUserResponse AdminGetUserResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AdminGetUserResponse' {Int
httpStatus :: Int
$sel:httpStatus:AdminGetUserResponse' :: AdminGetUserResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: AdminGetUserResponse
s@AdminGetUserResponse' {} Int
a -> AdminGetUserResponse
s {$sel:httpStatus:AdminGetUserResponse' :: Int
httpStatus = Int
a} :: AdminGetUserResponse)
adminGetUserResponse_username :: Lens.Lens' AdminGetUserResponse Prelude.Text
adminGetUserResponse_username :: (Text -> f Text) -> AdminGetUserResponse -> f AdminGetUserResponse
adminGetUserResponse_username = (AdminGetUserResponse -> Sensitive Text)
-> (AdminGetUserResponse -> Sensitive Text -> AdminGetUserResponse)
-> Lens
AdminGetUserResponse
AdminGetUserResponse
(Sensitive Text)
(Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AdminGetUserResponse' {Sensitive Text
username :: Sensitive Text
$sel:username:AdminGetUserResponse' :: AdminGetUserResponse -> Sensitive Text
username} -> Sensitive Text
username) (\s :: AdminGetUserResponse
s@AdminGetUserResponse' {} Sensitive Text
a -> AdminGetUserResponse
s {$sel:username:AdminGetUserResponse' :: Sensitive Text
username = Sensitive Text
a} :: AdminGetUserResponse) ((Sensitive Text -> f (Sensitive Text))
-> AdminGetUserResponse -> f AdminGetUserResponse)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> AdminGetUserResponse
-> f AdminGetUserResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> f Text) -> Sensitive Text -> f (Sensitive Text)
forall a. Iso' (Sensitive a) a
Core._Sensitive
instance Prelude.NFData AdminGetUserResponse