{-# 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.SageMaker.DescribeUserProfile
(
DescribeUserProfile (..),
newDescribeUserProfile,
describeUserProfile_domainId,
describeUserProfile_userProfileName,
DescribeUserProfileResponse (..),
newDescribeUserProfileResponse,
describeUserProfileResponse_creationTime,
describeUserProfileResponse_userSettings,
describeUserProfileResponse_status,
describeUserProfileResponse_failureReason,
describeUserProfileResponse_singleSignOnUserValue,
describeUserProfileResponse_userProfileName,
describeUserProfileResponse_lastModifiedTime,
describeUserProfileResponse_homeEfsFileSystemUid,
describeUserProfileResponse_userProfileArn,
describeUserProfileResponse_singleSignOnUserIdentifier,
describeUserProfileResponse_domainId,
describeUserProfileResponse_httpStatus,
)
where
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
import Amazonka.SageMaker.Types
data DescribeUserProfile = DescribeUserProfile'
{
DescribeUserProfile -> Text
domainId :: Prelude.Text,
DescribeUserProfile -> Text
userProfileName :: Prelude.Text
}
deriving (DescribeUserProfile -> DescribeUserProfile -> Bool
(DescribeUserProfile -> DescribeUserProfile -> Bool)
-> (DescribeUserProfile -> DescribeUserProfile -> Bool)
-> Eq DescribeUserProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeUserProfile -> DescribeUserProfile -> Bool
$c/= :: DescribeUserProfile -> DescribeUserProfile -> Bool
== :: DescribeUserProfile -> DescribeUserProfile -> Bool
$c== :: DescribeUserProfile -> DescribeUserProfile -> Bool
Prelude.Eq, ReadPrec [DescribeUserProfile]
ReadPrec DescribeUserProfile
Int -> ReadS DescribeUserProfile
ReadS [DescribeUserProfile]
(Int -> ReadS DescribeUserProfile)
-> ReadS [DescribeUserProfile]
-> ReadPrec DescribeUserProfile
-> ReadPrec [DescribeUserProfile]
-> Read DescribeUserProfile
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeUserProfile]
$creadListPrec :: ReadPrec [DescribeUserProfile]
readPrec :: ReadPrec DescribeUserProfile
$creadPrec :: ReadPrec DescribeUserProfile
readList :: ReadS [DescribeUserProfile]
$creadList :: ReadS [DescribeUserProfile]
readsPrec :: Int -> ReadS DescribeUserProfile
$creadsPrec :: Int -> ReadS DescribeUserProfile
Prelude.Read, Int -> DescribeUserProfile -> ShowS
[DescribeUserProfile] -> ShowS
DescribeUserProfile -> String
(Int -> DescribeUserProfile -> ShowS)
-> (DescribeUserProfile -> String)
-> ([DescribeUserProfile] -> ShowS)
-> Show DescribeUserProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeUserProfile] -> ShowS
$cshowList :: [DescribeUserProfile] -> ShowS
show :: DescribeUserProfile -> String
$cshow :: DescribeUserProfile -> String
showsPrec :: Int -> DescribeUserProfile -> ShowS
$cshowsPrec :: Int -> DescribeUserProfile -> ShowS
Prelude.Show, (forall x. DescribeUserProfile -> Rep DescribeUserProfile x)
-> (forall x. Rep DescribeUserProfile x -> DescribeUserProfile)
-> Generic DescribeUserProfile
forall x. Rep DescribeUserProfile x -> DescribeUserProfile
forall x. DescribeUserProfile -> Rep DescribeUserProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeUserProfile x -> DescribeUserProfile
$cfrom :: forall x. DescribeUserProfile -> Rep DescribeUserProfile x
Prelude.Generic)
newDescribeUserProfile ::
Prelude.Text ->
Prelude.Text ->
DescribeUserProfile
newDescribeUserProfile :: Text -> Text -> DescribeUserProfile
newDescribeUserProfile Text
pDomainId_ Text
pUserProfileName_ =
DescribeUserProfile' :: Text -> Text -> DescribeUserProfile
DescribeUserProfile'
{ $sel:domainId:DescribeUserProfile' :: Text
domainId = Text
pDomainId_,
$sel:userProfileName:DescribeUserProfile' :: Text
userProfileName = Text
pUserProfileName_
}
describeUserProfile_domainId :: Lens.Lens' DescribeUserProfile Prelude.Text
describeUserProfile_domainId :: (Text -> f Text) -> DescribeUserProfile -> f DescribeUserProfile
describeUserProfile_domainId = (DescribeUserProfile -> Text)
-> (DescribeUserProfile -> Text -> DescribeUserProfile)
-> Lens DescribeUserProfile DescribeUserProfile Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfile' {Text
domainId :: Text
$sel:domainId:DescribeUserProfile' :: DescribeUserProfile -> Text
domainId} -> Text
domainId) (\s :: DescribeUserProfile
s@DescribeUserProfile' {} Text
a -> DescribeUserProfile
s {$sel:domainId:DescribeUserProfile' :: Text
domainId = Text
a} :: DescribeUserProfile)
describeUserProfile_userProfileName :: Lens.Lens' DescribeUserProfile Prelude.Text
describeUserProfile_userProfileName :: (Text -> f Text) -> DescribeUserProfile -> f DescribeUserProfile
describeUserProfile_userProfileName = (DescribeUserProfile -> Text)
-> (DescribeUserProfile -> Text -> DescribeUserProfile)
-> Lens DescribeUserProfile DescribeUserProfile Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfile' {Text
userProfileName :: Text
$sel:userProfileName:DescribeUserProfile' :: DescribeUserProfile -> Text
userProfileName} -> Text
userProfileName) (\s :: DescribeUserProfile
s@DescribeUserProfile' {} Text
a -> DescribeUserProfile
s {$sel:userProfileName:DescribeUserProfile' :: Text
userProfileName = Text
a} :: DescribeUserProfile)
instance Core.AWSRequest DescribeUserProfile where
type
AWSResponse DescribeUserProfile =
DescribeUserProfileResponse
request :: DescribeUserProfile -> Request DescribeUserProfile
request = Service -> DescribeUserProfile -> Request DescribeUserProfile
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeUserProfile
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeUserProfile)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeUserProfile))
-> Logger
-> Service
-> Proxy DescribeUserProfile
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeUserProfile)))
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 POSIX
-> Maybe UserSettings
-> Maybe UserProfileStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse
DescribeUserProfileResponse'
(Maybe POSIX
-> Maybe UserSettings
-> Maybe UserProfileStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe UserSettings
-> Maybe UserProfileStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
forall (f :: * -> *) a b. Functor 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
"CreationTime")
Either
String
(Maybe UserSettings
-> Maybe UserProfileStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
-> Either String (Maybe UserSettings)
-> Either
String
(Maybe UserProfileStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe UserSettings)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"UserSettings")
Either
String
(Maybe UserProfileStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
-> Either String (Maybe UserProfileStatus)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe UserProfileStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
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
"FailureReason")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
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
"SingleSignOnUserValue")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
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
"UserProfileName")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
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
"LastModifiedTime")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DescribeUserProfileResponse)
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
"HomeEfsFileSystemUid")
Either
String
(Maybe Text
-> Maybe Text -> Maybe Text -> Int -> DescribeUserProfileResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text -> Maybe Text -> Int -> DescribeUserProfileResponse)
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
"UserProfileArn")
Either
String
(Maybe Text -> Maybe Text -> Int -> DescribeUserProfileResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> DescribeUserProfileResponse)
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
"SingleSignOnUserIdentifier")
Either String (Maybe Text -> Int -> DescribeUserProfileResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeUserProfileResponse)
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
"DomainId")
Either String (Int -> DescribeUserProfileResponse)
-> Either String Int -> Either String DescribeUserProfileResponse
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))
)
instance Prelude.Hashable DescribeUserProfile
instance Prelude.NFData DescribeUserProfile
instance Core.ToHeaders DescribeUserProfile where
toHeaders :: DescribeUserProfile -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeUserProfile -> 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
"SageMaker.DescribeUserProfile" ::
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 DescribeUserProfile where
toJSON :: DescribeUserProfile -> Value
toJSON DescribeUserProfile' {Text
userProfileName :: Text
domainId :: Text
$sel:userProfileName:DescribeUserProfile' :: DescribeUserProfile -> Text
$sel:domainId:DescribeUserProfile' :: DescribeUserProfile -> 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
"DomainId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
domainId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"UserProfileName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
userProfileName)
]
)
instance Core.ToPath DescribeUserProfile where
toPath :: DescribeUserProfile -> ByteString
toPath = ByteString -> DescribeUserProfile -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeUserProfile where
toQuery :: DescribeUserProfile -> QueryString
toQuery = QueryString -> DescribeUserProfile -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeUserProfileResponse = DescribeUserProfileResponse'
{
DescribeUserProfileResponse -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
DescribeUserProfileResponse -> Maybe UserSettings
userSettings :: Prelude.Maybe UserSettings,
DescribeUserProfileResponse -> Maybe UserProfileStatus
status :: Prelude.Maybe UserProfileStatus,
DescribeUserProfileResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
DescribeUserProfileResponse -> Maybe Text
singleSignOnUserValue :: Prelude.Maybe Prelude.Text,
DescribeUserProfileResponse -> Maybe Text
userProfileName :: Prelude.Maybe Prelude.Text,
DescribeUserProfileResponse -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
DescribeUserProfileResponse -> Maybe Text
homeEfsFileSystemUid :: Prelude.Maybe Prelude.Text,
DescribeUserProfileResponse -> Maybe Text
userProfileArn :: Prelude.Maybe Prelude.Text,
DescribeUserProfileResponse -> Maybe Text
singleSignOnUserIdentifier :: Prelude.Maybe Prelude.Text,
DescribeUserProfileResponse -> Maybe Text
domainId :: Prelude.Maybe Prelude.Text,
DescribeUserProfileResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeUserProfileResponse -> DescribeUserProfileResponse -> Bool
(DescribeUserProfileResponse
-> DescribeUserProfileResponse -> Bool)
-> (DescribeUserProfileResponse
-> DescribeUserProfileResponse -> Bool)
-> Eq DescribeUserProfileResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeUserProfileResponse -> DescribeUserProfileResponse -> Bool
$c/= :: DescribeUserProfileResponse -> DescribeUserProfileResponse -> Bool
== :: DescribeUserProfileResponse -> DescribeUserProfileResponse -> Bool
$c== :: DescribeUserProfileResponse -> DescribeUserProfileResponse -> Bool
Prelude.Eq, ReadPrec [DescribeUserProfileResponse]
ReadPrec DescribeUserProfileResponse
Int -> ReadS DescribeUserProfileResponse
ReadS [DescribeUserProfileResponse]
(Int -> ReadS DescribeUserProfileResponse)
-> ReadS [DescribeUserProfileResponse]
-> ReadPrec DescribeUserProfileResponse
-> ReadPrec [DescribeUserProfileResponse]
-> Read DescribeUserProfileResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeUserProfileResponse]
$creadListPrec :: ReadPrec [DescribeUserProfileResponse]
readPrec :: ReadPrec DescribeUserProfileResponse
$creadPrec :: ReadPrec DescribeUserProfileResponse
readList :: ReadS [DescribeUserProfileResponse]
$creadList :: ReadS [DescribeUserProfileResponse]
readsPrec :: Int -> ReadS DescribeUserProfileResponse
$creadsPrec :: Int -> ReadS DescribeUserProfileResponse
Prelude.Read, Int -> DescribeUserProfileResponse -> ShowS
[DescribeUserProfileResponse] -> ShowS
DescribeUserProfileResponse -> String
(Int -> DescribeUserProfileResponse -> ShowS)
-> (DescribeUserProfileResponse -> String)
-> ([DescribeUserProfileResponse] -> ShowS)
-> Show DescribeUserProfileResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeUserProfileResponse] -> ShowS
$cshowList :: [DescribeUserProfileResponse] -> ShowS
show :: DescribeUserProfileResponse -> String
$cshow :: DescribeUserProfileResponse -> String
showsPrec :: Int -> DescribeUserProfileResponse -> ShowS
$cshowsPrec :: Int -> DescribeUserProfileResponse -> ShowS
Prelude.Show, (forall x.
DescribeUserProfileResponse -> Rep DescribeUserProfileResponse x)
-> (forall x.
Rep DescribeUserProfileResponse x -> DescribeUserProfileResponse)
-> Generic DescribeUserProfileResponse
forall x.
Rep DescribeUserProfileResponse x -> DescribeUserProfileResponse
forall x.
DescribeUserProfileResponse -> Rep DescribeUserProfileResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeUserProfileResponse x -> DescribeUserProfileResponse
$cfrom :: forall x.
DescribeUserProfileResponse -> Rep DescribeUserProfileResponse x
Prelude.Generic)
newDescribeUserProfileResponse ::
Prelude.Int ->
DescribeUserProfileResponse
newDescribeUserProfileResponse :: Int -> DescribeUserProfileResponse
newDescribeUserProfileResponse Int
pHttpStatus_ =
DescribeUserProfileResponse' :: Maybe POSIX
-> Maybe UserSettings
-> Maybe UserProfileStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeUserProfileResponse
DescribeUserProfileResponse'
{ $sel:creationTime:DescribeUserProfileResponse' :: Maybe POSIX
creationTime =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:userSettings:DescribeUserProfileResponse' :: Maybe UserSettings
userSettings = Maybe UserSettings
forall a. Maybe a
Prelude.Nothing,
$sel:status:DescribeUserProfileResponse' :: Maybe UserProfileStatus
status = Maybe UserProfileStatus
forall a. Maybe a
Prelude.Nothing,
$sel:failureReason:DescribeUserProfileResponse' :: Maybe Text
failureReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:singleSignOnUserValue:DescribeUserProfileResponse' :: Maybe Text
singleSignOnUserValue = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:userProfileName:DescribeUserProfileResponse' :: Maybe Text
userProfileName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:DescribeUserProfileResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:homeEfsFileSystemUid:DescribeUserProfileResponse' :: Maybe Text
homeEfsFileSystemUid = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:userProfileArn:DescribeUserProfileResponse' :: Maybe Text
userProfileArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:singleSignOnUserIdentifier:DescribeUserProfileResponse' :: Maybe Text
singleSignOnUserIdentifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:domainId:DescribeUserProfileResponse' :: Maybe Text
domainId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeUserProfileResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeUserProfileResponse_creationTime :: Lens.Lens' DescribeUserProfileResponse (Prelude.Maybe Prelude.UTCTime)
describeUserProfileResponse_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse
describeUserProfileResponse_creationTime = (DescribeUserProfileResponse -> Maybe POSIX)
-> (DescribeUserProfileResponse
-> Maybe POSIX -> DescribeUserProfileResponse)
-> Lens
DescribeUserProfileResponse
DescribeUserProfileResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfileResponse' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:DescribeUserProfileResponse' :: DescribeUserProfileResponse -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: DescribeUserProfileResponse
s@DescribeUserProfileResponse' {} Maybe POSIX
a -> DescribeUserProfileResponse
s {$sel:creationTime:DescribeUserProfileResponse' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: DescribeUserProfileResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeUserProfileResponse
-> f DescribeUserProfileResponse
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
describeUserProfileResponse_userSettings :: Lens.Lens' DescribeUserProfileResponse (Prelude.Maybe UserSettings)
describeUserProfileResponse_userSettings :: (Maybe UserSettings -> f (Maybe UserSettings))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse
describeUserProfileResponse_userSettings = (DescribeUserProfileResponse -> Maybe UserSettings)
-> (DescribeUserProfileResponse
-> Maybe UserSettings -> DescribeUserProfileResponse)
-> Lens
DescribeUserProfileResponse
DescribeUserProfileResponse
(Maybe UserSettings)
(Maybe UserSettings)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfileResponse' {Maybe UserSettings
userSettings :: Maybe UserSettings
$sel:userSettings:DescribeUserProfileResponse' :: DescribeUserProfileResponse -> Maybe UserSettings
userSettings} -> Maybe UserSettings
userSettings) (\s :: DescribeUserProfileResponse
s@DescribeUserProfileResponse' {} Maybe UserSettings
a -> DescribeUserProfileResponse
s {$sel:userSettings:DescribeUserProfileResponse' :: Maybe UserSettings
userSettings = Maybe UserSettings
a} :: DescribeUserProfileResponse)
describeUserProfileResponse_status :: Lens.Lens' DescribeUserProfileResponse (Prelude.Maybe UserProfileStatus)
describeUserProfileResponse_status :: (Maybe UserProfileStatus -> f (Maybe UserProfileStatus))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse
describeUserProfileResponse_status = (DescribeUserProfileResponse -> Maybe UserProfileStatus)
-> (DescribeUserProfileResponse
-> Maybe UserProfileStatus -> DescribeUserProfileResponse)
-> Lens
DescribeUserProfileResponse
DescribeUserProfileResponse
(Maybe UserProfileStatus)
(Maybe UserProfileStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfileResponse' {Maybe UserProfileStatus
status :: Maybe UserProfileStatus
$sel:status:DescribeUserProfileResponse' :: DescribeUserProfileResponse -> Maybe UserProfileStatus
status} -> Maybe UserProfileStatus
status) (\s :: DescribeUserProfileResponse
s@DescribeUserProfileResponse' {} Maybe UserProfileStatus
a -> DescribeUserProfileResponse
s {$sel:status:DescribeUserProfileResponse' :: Maybe UserProfileStatus
status = Maybe UserProfileStatus
a} :: DescribeUserProfileResponse)
describeUserProfileResponse_failureReason :: Lens.Lens' DescribeUserProfileResponse (Prelude.Maybe Prelude.Text)
describeUserProfileResponse_failureReason :: (Maybe Text -> f (Maybe Text))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse
describeUserProfileResponse_failureReason = (DescribeUserProfileResponse -> Maybe Text)
-> (DescribeUserProfileResponse
-> Maybe Text -> DescribeUserProfileResponse)
-> Lens
DescribeUserProfileResponse
DescribeUserProfileResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfileResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:DescribeUserProfileResponse' :: DescribeUserProfileResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: DescribeUserProfileResponse
s@DescribeUserProfileResponse' {} Maybe Text
a -> DescribeUserProfileResponse
s {$sel:failureReason:DescribeUserProfileResponse' :: Maybe Text
failureReason = Maybe Text
a} :: DescribeUserProfileResponse)
describeUserProfileResponse_singleSignOnUserValue :: Lens.Lens' DescribeUserProfileResponse (Prelude.Maybe Prelude.Text)
describeUserProfileResponse_singleSignOnUserValue :: (Maybe Text -> f (Maybe Text))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse
describeUserProfileResponse_singleSignOnUserValue = (DescribeUserProfileResponse -> Maybe Text)
-> (DescribeUserProfileResponse
-> Maybe Text -> DescribeUserProfileResponse)
-> Lens
DescribeUserProfileResponse
DescribeUserProfileResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfileResponse' {Maybe Text
singleSignOnUserValue :: Maybe Text
$sel:singleSignOnUserValue:DescribeUserProfileResponse' :: DescribeUserProfileResponse -> Maybe Text
singleSignOnUserValue} -> Maybe Text
singleSignOnUserValue) (\s :: DescribeUserProfileResponse
s@DescribeUserProfileResponse' {} Maybe Text
a -> DescribeUserProfileResponse
s {$sel:singleSignOnUserValue:DescribeUserProfileResponse' :: Maybe Text
singleSignOnUserValue = Maybe Text
a} :: DescribeUserProfileResponse)
describeUserProfileResponse_userProfileName :: Lens.Lens' DescribeUserProfileResponse (Prelude.Maybe Prelude.Text)
describeUserProfileResponse_userProfileName :: (Maybe Text -> f (Maybe Text))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse
describeUserProfileResponse_userProfileName = (DescribeUserProfileResponse -> Maybe Text)
-> (DescribeUserProfileResponse
-> Maybe Text -> DescribeUserProfileResponse)
-> Lens
DescribeUserProfileResponse
DescribeUserProfileResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfileResponse' {Maybe Text
userProfileName :: Maybe Text
$sel:userProfileName:DescribeUserProfileResponse' :: DescribeUserProfileResponse -> Maybe Text
userProfileName} -> Maybe Text
userProfileName) (\s :: DescribeUserProfileResponse
s@DescribeUserProfileResponse' {} Maybe Text
a -> DescribeUserProfileResponse
s {$sel:userProfileName:DescribeUserProfileResponse' :: Maybe Text
userProfileName = Maybe Text
a} :: DescribeUserProfileResponse)
describeUserProfileResponse_lastModifiedTime :: Lens.Lens' DescribeUserProfileResponse (Prelude.Maybe Prelude.UTCTime)
describeUserProfileResponse_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse
describeUserProfileResponse_lastModifiedTime = (DescribeUserProfileResponse -> Maybe POSIX)
-> (DescribeUserProfileResponse
-> Maybe POSIX -> DescribeUserProfileResponse)
-> Lens
DescribeUserProfileResponse
DescribeUserProfileResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfileResponse' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:DescribeUserProfileResponse' :: DescribeUserProfileResponse -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: DescribeUserProfileResponse
s@DescribeUserProfileResponse' {} Maybe POSIX
a -> DescribeUserProfileResponse
s {$sel:lastModifiedTime:DescribeUserProfileResponse' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: DescribeUserProfileResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeUserProfileResponse
-> f DescribeUserProfileResponse
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
describeUserProfileResponse_homeEfsFileSystemUid :: Lens.Lens' DescribeUserProfileResponse (Prelude.Maybe Prelude.Text)
describeUserProfileResponse_homeEfsFileSystemUid :: (Maybe Text -> f (Maybe Text))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse
describeUserProfileResponse_homeEfsFileSystemUid = (DescribeUserProfileResponse -> Maybe Text)
-> (DescribeUserProfileResponse
-> Maybe Text -> DescribeUserProfileResponse)
-> Lens
DescribeUserProfileResponse
DescribeUserProfileResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfileResponse' {Maybe Text
homeEfsFileSystemUid :: Maybe Text
$sel:homeEfsFileSystemUid:DescribeUserProfileResponse' :: DescribeUserProfileResponse -> Maybe Text
homeEfsFileSystemUid} -> Maybe Text
homeEfsFileSystemUid) (\s :: DescribeUserProfileResponse
s@DescribeUserProfileResponse' {} Maybe Text
a -> DescribeUserProfileResponse
s {$sel:homeEfsFileSystemUid:DescribeUserProfileResponse' :: Maybe Text
homeEfsFileSystemUid = Maybe Text
a} :: DescribeUserProfileResponse)
describeUserProfileResponse_userProfileArn :: Lens.Lens' DescribeUserProfileResponse (Prelude.Maybe Prelude.Text)
describeUserProfileResponse_userProfileArn :: (Maybe Text -> f (Maybe Text))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse
describeUserProfileResponse_userProfileArn = (DescribeUserProfileResponse -> Maybe Text)
-> (DescribeUserProfileResponse
-> Maybe Text -> DescribeUserProfileResponse)
-> Lens
DescribeUserProfileResponse
DescribeUserProfileResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfileResponse' {Maybe Text
userProfileArn :: Maybe Text
$sel:userProfileArn:DescribeUserProfileResponse' :: DescribeUserProfileResponse -> Maybe Text
userProfileArn} -> Maybe Text
userProfileArn) (\s :: DescribeUserProfileResponse
s@DescribeUserProfileResponse' {} Maybe Text
a -> DescribeUserProfileResponse
s {$sel:userProfileArn:DescribeUserProfileResponse' :: Maybe Text
userProfileArn = Maybe Text
a} :: DescribeUserProfileResponse)
describeUserProfileResponse_singleSignOnUserIdentifier :: Lens.Lens' DescribeUserProfileResponse (Prelude.Maybe Prelude.Text)
describeUserProfileResponse_singleSignOnUserIdentifier :: (Maybe Text -> f (Maybe Text))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse
describeUserProfileResponse_singleSignOnUserIdentifier = (DescribeUserProfileResponse -> Maybe Text)
-> (DescribeUserProfileResponse
-> Maybe Text -> DescribeUserProfileResponse)
-> Lens
DescribeUserProfileResponse
DescribeUserProfileResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfileResponse' {Maybe Text
singleSignOnUserIdentifier :: Maybe Text
$sel:singleSignOnUserIdentifier:DescribeUserProfileResponse' :: DescribeUserProfileResponse -> Maybe Text
singleSignOnUserIdentifier} -> Maybe Text
singleSignOnUserIdentifier) (\s :: DescribeUserProfileResponse
s@DescribeUserProfileResponse' {} Maybe Text
a -> DescribeUserProfileResponse
s {$sel:singleSignOnUserIdentifier:DescribeUserProfileResponse' :: Maybe Text
singleSignOnUserIdentifier = Maybe Text
a} :: DescribeUserProfileResponse)
describeUserProfileResponse_domainId :: Lens.Lens' DescribeUserProfileResponse (Prelude.Maybe Prelude.Text)
describeUserProfileResponse_domainId :: (Maybe Text -> f (Maybe Text))
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse
describeUserProfileResponse_domainId = (DescribeUserProfileResponse -> Maybe Text)
-> (DescribeUserProfileResponse
-> Maybe Text -> DescribeUserProfileResponse)
-> Lens
DescribeUserProfileResponse
DescribeUserProfileResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfileResponse' {Maybe Text
domainId :: Maybe Text
$sel:domainId:DescribeUserProfileResponse' :: DescribeUserProfileResponse -> Maybe Text
domainId} -> Maybe Text
domainId) (\s :: DescribeUserProfileResponse
s@DescribeUserProfileResponse' {} Maybe Text
a -> DescribeUserProfileResponse
s {$sel:domainId:DescribeUserProfileResponse' :: Maybe Text
domainId = Maybe Text
a} :: DescribeUserProfileResponse)
describeUserProfileResponse_httpStatus :: Lens.Lens' DescribeUserProfileResponse Prelude.Int
describeUserProfileResponse_httpStatus :: (Int -> f Int)
-> DescribeUserProfileResponse -> f DescribeUserProfileResponse
describeUserProfileResponse_httpStatus = (DescribeUserProfileResponse -> Int)
-> (DescribeUserProfileResponse
-> Int -> DescribeUserProfileResponse)
-> Lens
DescribeUserProfileResponse DescribeUserProfileResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUserProfileResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeUserProfileResponse' :: DescribeUserProfileResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeUserProfileResponse
s@DescribeUserProfileResponse' {} Int
a -> DescribeUserProfileResponse
s {$sel:httpStatus:DescribeUserProfileResponse' :: Int
httpStatus = Int
a} :: DescribeUserProfileResponse)
instance Prelude.NFData DescribeUserProfileResponse