{-# 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.AdminGetUser
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Gets the specified user by user name in a user pool as an administrator.
-- Works on any user.
--
-- Calling this action requires developer credentials.
module Amazonka.CognitoIdentityProvider.AdminGetUser
  ( -- * Creating a Request
    AdminGetUser (..),
    newAdminGetUser,

    -- * Request Lenses
    adminGetUser_userPoolId,
    adminGetUser_username,

    -- * Destructuring the Response
    AdminGetUserResponse (..),
    newAdminGetUserResponse,

    -- * Response Lenses
    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

-- | Represents the request to get the specified user as an administrator.
--
-- /See:/ 'newAdminGetUser' smart constructor.
data AdminGetUser = AdminGetUser'
  { -- | The user pool ID for the user pool where you want to get information
    -- about the user.
    AdminGetUser -> Text
userPoolId :: Prelude.Text,
    -- | The user name of the user you wish to retrieve.
    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)

-- |
-- Create a value of 'AdminGetUser' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'userPoolId', 'adminGetUser_userPoolId' - The user pool ID for the user pool where you want to get information
-- about the user.
--
-- 'username', 'adminGetUser_username' - The user name of the user you wish to retrieve.
newAdminGetUser ::
  -- | 'userPoolId'
  Prelude.Text ->
  -- | 'username'
  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_
    }

-- | The user pool ID for the user pool where you want to get information
-- about the user.
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)

-- | The user name of the user you wish to retrieve.
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

-- | Represents the response from the server from the request to get the
-- specified user as an administrator.
--
-- /See:/ 'newAdminGetUserResponse' smart constructor.
data AdminGetUserResponse = AdminGetUserResponse'
  { -- | Indicates that the status is enabled.
    AdminGetUserResponse -> Maybe Bool
enabled :: Prelude.Maybe Prelude.Bool,
    -- | The user status. Can be one of the following:
    --
    -- -   UNCONFIRMED - User has been created but not confirmed.
    --
    -- -   CONFIRMED - User has been confirmed.
    --
    -- -   ARCHIVED - User is no longer active.
    --
    -- -   COMPROMISED - User is disabled due to a potential security threat.
    --
    -- -   UNKNOWN - User status is not known.
    --
    -- -   RESET_REQUIRED - User is confirmed, but the user must request a code
    --     and reset his or her password before he or she can sign in.
    --
    -- -   FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign
    --     in using a temporary password, but on first sign-in, the user must
    --     change his or her password to a new value before doing anything
    --     else.
    AdminGetUserResponse -> Maybe UserStatusType
userStatus :: Prelude.Maybe UserStatusType,
    -- | An array of name-value pairs representing user attributes.
    AdminGetUserResponse -> Maybe [AttributeType]
userAttributes :: Prelude.Maybe [AttributeType],
    -- | The date the user was created.
    AdminGetUserResponse -> Maybe POSIX
userCreateDate :: Prelude.Maybe Core.POSIX,
    -- | The MFA options that are enabled for the user. The possible values in
    -- this list are @SMS_MFA@ and @SOFTWARE_TOKEN_MFA@.
    AdminGetUserResponse -> Maybe [Text]
userMFASettingList :: Prelude.Maybe [Prelude.Text],
    -- | /This response parameter is no longer supported./ It provides
    -- information only about SMS MFA configurations. It doesn\'t provide
    -- information about TOTP software token MFA configurations. To look up
    -- information about either type of MFA configuration, use
    -- UserMFASettingList instead.
    AdminGetUserResponse -> Maybe [MFAOptionType]
mfaOptions :: Prelude.Maybe [MFAOptionType],
    -- | The date the user was last modified.
    AdminGetUserResponse -> Maybe POSIX
userLastModifiedDate :: Prelude.Maybe Core.POSIX,
    -- | The user\'s preferred MFA setting.
    AdminGetUserResponse -> Maybe Text
preferredMfaSetting :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    AdminGetUserResponse -> Int
httpStatus :: Prelude.Int,
    -- | The user name of the user about whom you are receiving information.
    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)

-- |
-- Create a value of 'AdminGetUserResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'enabled', 'adminGetUserResponse_enabled' - Indicates that the status is enabled.
--
-- 'userStatus', 'adminGetUserResponse_userStatus' - The user status. Can be one of the following:
--
-- -   UNCONFIRMED - User has been created but not confirmed.
--
-- -   CONFIRMED - User has been confirmed.
--
-- -   ARCHIVED - User is no longer active.
--
-- -   COMPROMISED - User is disabled due to a potential security threat.
--
-- -   UNKNOWN - User status is not known.
--
-- -   RESET_REQUIRED - User is confirmed, but the user must request a code
--     and reset his or her password before he or she can sign in.
--
-- -   FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign
--     in using a temporary password, but on first sign-in, the user must
--     change his or her password to a new value before doing anything
--     else.
--
-- 'userAttributes', 'adminGetUserResponse_userAttributes' - An array of name-value pairs representing user attributes.
--
-- 'userCreateDate', 'adminGetUserResponse_userCreateDate' - The date the user was created.
--
-- 'userMFASettingList', 'adminGetUserResponse_userMFASettingList' - The MFA options that are enabled for the user. The possible values in
-- this list are @SMS_MFA@ and @SOFTWARE_TOKEN_MFA@.
--
-- 'mfaOptions', 'adminGetUserResponse_mfaOptions' - /This response parameter is no longer supported./ It provides
-- information only about SMS MFA configurations. It doesn\'t provide
-- information about TOTP software token MFA configurations. To look up
-- information about either type of MFA configuration, use
-- UserMFASettingList instead.
--
-- 'userLastModifiedDate', 'adminGetUserResponse_userLastModifiedDate' - The date the user was last modified.
--
-- 'preferredMfaSetting', 'adminGetUserResponse_preferredMfaSetting' - The user\'s preferred MFA setting.
--
-- 'httpStatus', 'adminGetUserResponse_httpStatus' - The response's http status code.
--
-- 'username', 'adminGetUserResponse_username' - The user name of the user about whom you are receiving information.
newAdminGetUserResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'username'
  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_
    }

-- | Indicates that the status is enabled.
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)

-- | The user status. Can be one of the following:
--
-- -   UNCONFIRMED - User has been created but not confirmed.
--
-- -   CONFIRMED - User has been confirmed.
--
-- -   ARCHIVED - User is no longer active.
--
-- -   COMPROMISED - User is disabled due to a potential security threat.
--
-- -   UNKNOWN - User status is not known.
--
-- -   RESET_REQUIRED - User is confirmed, but the user must request a code
--     and reset his or her password before he or she can sign in.
--
-- -   FORCE_CHANGE_PASSWORD - The user is confirmed and the user can sign
--     in using a temporary password, but on first sign-in, the user must
--     change his or her password to a new value before doing anything
--     else.
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)

-- | An array of name-value pairs representing user attributes.
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

-- | The date the user was created.
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

-- | The MFA options that are enabled for the user. The possible values in
-- this list are @SMS_MFA@ and @SOFTWARE_TOKEN_MFA@.
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

-- | /This response parameter is no longer supported./ It provides
-- information only about SMS MFA configurations. It doesn\'t provide
-- information about TOTP software token MFA configurations. To look up
-- information about either type of MFA configuration, use
-- UserMFASettingList instead.
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

-- | The date the user was last modified.
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

-- | The user\'s preferred MFA setting.
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)

-- | The response's http status code.
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)

-- | The user name of the user about whom you are receiving information.
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