{-# 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.CodeStar.CreateUserProfile
(
CreateUserProfile (..),
newCreateUserProfile,
createUserProfile_sshPublicKey,
createUserProfile_userArn,
createUserProfile_displayName,
createUserProfile_emailAddress,
CreateUserProfileResponse (..),
newCreateUserProfileResponse,
createUserProfileResponse_lastModifiedTimestamp,
createUserProfileResponse_sshPublicKey,
createUserProfileResponse_emailAddress,
createUserProfileResponse_displayName,
createUserProfileResponse_createdTimestamp,
createUserProfileResponse_httpStatus,
createUserProfileResponse_userArn,
)
where
import Amazonka.CodeStar.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 CreateUserProfile = CreateUserProfile'
{
CreateUserProfile -> Maybe Text
sshPublicKey :: Prelude.Maybe Prelude.Text,
CreateUserProfile -> Text
userArn :: Prelude.Text,
CreateUserProfile -> Sensitive Text
displayName :: Core.Sensitive Prelude.Text,
CreateUserProfile -> Sensitive Text
emailAddress :: Core.Sensitive Prelude.Text
}
deriving (CreateUserProfile -> CreateUserProfile -> Bool
(CreateUserProfile -> CreateUserProfile -> Bool)
-> (CreateUserProfile -> CreateUserProfile -> Bool)
-> Eq CreateUserProfile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateUserProfile -> CreateUserProfile -> Bool
$c/= :: CreateUserProfile -> CreateUserProfile -> Bool
== :: CreateUserProfile -> CreateUserProfile -> Bool
$c== :: CreateUserProfile -> CreateUserProfile -> Bool
Prelude.Eq, Int -> CreateUserProfile -> ShowS
[CreateUserProfile] -> ShowS
CreateUserProfile -> String
(Int -> CreateUserProfile -> ShowS)
-> (CreateUserProfile -> String)
-> ([CreateUserProfile] -> ShowS)
-> Show CreateUserProfile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateUserProfile] -> ShowS
$cshowList :: [CreateUserProfile] -> ShowS
show :: CreateUserProfile -> String
$cshow :: CreateUserProfile -> String
showsPrec :: Int -> CreateUserProfile -> ShowS
$cshowsPrec :: Int -> CreateUserProfile -> ShowS
Prelude.Show, (forall x. CreateUserProfile -> Rep CreateUserProfile x)
-> (forall x. Rep CreateUserProfile x -> CreateUserProfile)
-> Generic CreateUserProfile
forall x. Rep CreateUserProfile x -> CreateUserProfile
forall x. CreateUserProfile -> Rep CreateUserProfile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep CreateUserProfile x -> CreateUserProfile
$cfrom :: forall x. CreateUserProfile -> Rep CreateUserProfile x
Prelude.Generic)
newCreateUserProfile ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
CreateUserProfile
newCreateUserProfile :: Text -> Text -> Text -> CreateUserProfile
newCreateUserProfile
Text
pUserArn_
Text
pDisplayName_
Text
pEmailAddress_ =
CreateUserProfile' :: Maybe Text
-> Text -> Sensitive Text -> Sensitive Text -> CreateUserProfile
CreateUserProfile'
{ $sel:sshPublicKey:CreateUserProfile' :: Maybe Text
sshPublicKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:userArn:CreateUserProfile' :: Text
userArn = Text
pUserArn_,
$sel:displayName:CreateUserProfile' :: Sensitive Text
displayName = 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
pDisplayName_,
$sel:emailAddress:CreateUserProfile' :: Sensitive Text
emailAddress = 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
pEmailAddress_
}
createUserProfile_sshPublicKey :: Lens.Lens' CreateUserProfile (Prelude.Maybe Prelude.Text)
createUserProfile_sshPublicKey :: (Maybe Text -> f (Maybe Text))
-> CreateUserProfile -> f CreateUserProfile
createUserProfile_sshPublicKey = (CreateUserProfile -> Maybe Text)
-> (CreateUserProfile -> Maybe Text -> CreateUserProfile)
-> Lens
CreateUserProfile CreateUserProfile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateUserProfile' {Maybe Text
sshPublicKey :: Maybe Text
$sel:sshPublicKey:CreateUserProfile' :: CreateUserProfile -> Maybe Text
sshPublicKey} -> Maybe Text
sshPublicKey) (\s :: CreateUserProfile
s@CreateUserProfile' {} Maybe Text
a -> CreateUserProfile
s {$sel:sshPublicKey:CreateUserProfile' :: Maybe Text
sshPublicKey = Maybe Text
a} :: CreateUserProfile)
createUserProfile_userArn :: Lens.Lens' CreateUserProfile Prelude.Text
createUserProfile_userArn :: (Text -> f Text) -> CreateUserProfile -> f CreateUserProfile
createUserProfile_userArn = (CreateUserProfile -> Text)
-> (CreateUserProfile -> Text -> CreateUserProfile)
-> Lens CreateUserProfile CreateUserProfile Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateUserProfile' {Text
userArn :: Text
$sel:userArn:CreateUserProfile' :: CreateUserProfile -> Text
userArn} -> Text
userArn) (\s :: CreateUserProfile
s@CreateUserProfile' {} Text
a -> CreateUserProfile
s {$sel:userArn:CreateUserProfile' :: Text
userArn = Text
a} :: CreateUserProfile)
createUserProfile_displayName :: Lens.Lens' CreateUserProfile Prelude.Text
createUserProfile_displayName :: (Text -> f Text) -> CreateUserProfile -> f CreateUserProfile
createUserProfile_displayName = (CreateUserProfile -> Sensitive Text)
-> (CreateUserProfile -> Sensitive Text -> CreateUserProfile)
-> Lens
CreateUserProfile
CreateUserProfile
(Sensitive Text)
(Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateUserProfile' {Sensitive Text
displayName :: Sensitive Text
$sel:displayName:CreateUserProfile' :: CreateUserProfile -> Sensitive Text
displayName} -> Sensitive Text
displayName) (\s :: CreateUserProfile
s@CreateUserProfile' {} Sensitive Text
a -> CreateUserProfile
s {$sel:displayName:CreateUserProfile' :: Sensitive Text
displayName = Sensitive Text
a} :: CreateUserProfile) ((Sensitive Text -> f (Sensitive Text))
-> CreateUserProfile -> f CreateUserProfile)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> CreateUserProfile
-> f CreateUserProfile
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
createUserProfile_emailAddress :: Lens.Lens' CreateUserProfile Prelude.Text
createUserProfile_emailAddress :: (Text -> f Text) -> CreateUserProfile -> f CreateUserProfile
createUserProfile_emailAddress = (CreateUserProfile -> Sensitive Text)
-> (CreateUserProfile -> Sensitive Text -> CreateUserProfile)
-> Lens
CreateUserProfile
CreateUserProfile
(Sensitive Text)
(Sensitive Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateUserProfile' {Sensitive Text
emailAddress :: Sensitive Text
$sel:emailAddress:CreateUserProfile' :: CreateUserProfile -> Sensitive Text
emailAddress} -> Sensitive Text
emailAddress) (\s :: CreateUserProfile
s@CreateUserProfile' {} Sensitive Text
a -> CreateUserProfile
s {$sel:emailAddress:CreateUserProfile' :: Sensitive Text
emailAddress = Sensitive Text
a} :: CreateUserProfile) ((Sensitive Text -> f (Sensitive Text))
-> CreateUserProfile -> f CreateUserProfile)
-> ((Text -> f Text) -> Sensitive Text -> f (Sensitive Text))
-> (Text -> f Text)
-> CreateUserProfile
-> f CreateUserProfile
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 CreateUserProfile where
type
AWSResponse CreateUserProfile =
CreateUserProfileResponse
request :: CreateUserProfile -> Request CreateUserProfile
request = Service -> CreateUserProfile -> Request CreateUserProfile
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy CreateUserProfile
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateUserProfile)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse CreateUserProfile))
-> Logger
-> Service
-> Proxy CreateUserProfile
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse CreateUserProfile)))
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 Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe POSIX
-> Int
-> Text
-> CreateUserProfileResponse
CreateUserProfileResponse'
(Maybe POSIX
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe POSIX
-> Int
-> Text
-> CreateUserProfileResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe POSIX
-> Int
-> Text
-> CreateUserProfileResponse)
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
"lastModifiedTimestamp")
Either
String
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe POSIX
-> Int
-> Text
-> CreateUserProfileResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe POSIX
-> Int
-> Text
-> CreateUserProfileResponse)
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
"sshPublicKey")
Either
String
(Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe POSIX
-> Int
-> Text
-> CreateUserProfileResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String
(Maybe (Sensitive Text)
-> Maybe POSIX -> Int -> Text -> CreateUserProfileResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"emailAddress")
Either
String
(Maybe (Sensitive Text)
-> Maybe POSIX -> Int -> Text -> CreateUserProfileResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String (Maybe POSIX -> Int -> Text -> CreateUserProfileResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"displayName")
Either
String (Maybe POSIX -> Int -> Text -> CreateUserProfileResponse)
-> Either String (Maybe POSIX)
-> Either String (Int -> Text -> CreateUserProfileResponse)
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
"createdTimestamp")
Either String (Int -> Text -> CreateUserProfileResponse)
-> Either String Int
-> Either String (Text -> CreateUserProfileResponse)
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 (Text -> CreateUserProfileResponse)
-> Either String Text -> Either String CreateUserProfileResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"userArn")
)
instance Prelude.Hashable CreateUserProfile
instance Prelude.NFData CreateUserProfile
instance Core.ToHeaders CreateUserProfile where
toHeaders :: CreateUserProfile -> ResponseHeaders
toHeaders =
ResponseHeaders -> CreateUserProfile -> 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
"CodeStar_20170419.CreateUserProfile" ::
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 CreateUserProfile where
toJSON :: CreateUserProfile -> Value
toJSON CreateUserProfile' {Maybe Text
Text
Sensitive Text
emailAddress :: Sensitive Text
displayName :: Sensitive Text
userArn :: Text
sshPublicKey :: Maybe Text
$sel:emailAddress:CreateUserProfile' :: CreateUserProfile -> Sensitive Text
$sel:displayName:CreateUserProfile' :: CreateUserProfile -> Sensitive Text
$sel:userArn:CreateUserProfile' :: CreateUserProfile -> Text
$sel:sshPublicKey:CreateUserProfile' :: CreateUserProfile -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"sshPublicKey" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
sshPublicKey,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"userArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
userArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"displayName" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Text
displayName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"emailAddress" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Sensitive Text
emailAddress)
]
)
instance Core.ToPath CreateUserProfile where
toPath :: CreateUserProfile -> ByteString
toPath = ByteString -> CreateUserProfile -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery CreateUserProfile where
toQuery :: CreateUserProfile -> QueryString
toQuery = QueryString -> CreateUserProfile -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data CreateUserProfileResponse = CreateUserProfileResponse'
{
CreateUserProfileResponse -> Maybe POSIX
lastModifiedTimestamp :: Prelude.Maybe Core.POSIX,
CreateUserProfileResponse -> Maybe Text
sshPublicKey :: Prelude.Maybe Prelude.Text,
CreateUserProfileResponse -> Maybe (Sensitive Text)
emailAddress :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CreateUserProfileResponse -> Maybe (Sensitive Text)
displayName :: Prelude.Maybe (Core.Sensitive Prelude.Text),
CreateUserProfileResponse -> Maybe POSIX
createdTimestamp :: Prelude.Maybe Core.POSIX,
CreateUserProfileResponse -> Int
httpStatus :: Prelude.Int,
CreateUserProfileResponse -> Text
userArn :: Prelude.Text
}
deriving (CreateUserProfileResponse -> CreateUserProfileResponse -> Bool
(CreateUserProfileResponse -> CreateUserProfileResponse -> Bool)
-> (CreateUserProfileResponse -> CreateUserProfileResponse -> Bool)
-> Eq CreateUserProfileResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CreateUserProfileResponse -> CreateUserProfileResponse -> Bool
$c/= :: CreateUserProfileResponse -> CreateUserProfileResponse -> Bool
== :: CreateUserProfileResponse -> CreateUserProfileResponse -> Bool
$c== :: CreateUserProfileResponse -> CreateUserProfileResponse -> Bool
Prelude.Eq, Int -> CreateUserProfileResponse -> ShowS
[CreateUserProfileResponse] -> ShowS
CreateUserProfileResponse -> String
(Int -> CreateUserProfileResponse -> ShowS)
-> (CreateUserProfileResponse -> String)
-> ([CreateUserProfileResponse] -> ShowS)
-> Show CreateUserProfileResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [CreateUserProfileResponse] -> ShowS
$cshowList :: [CreateUserProfileResponse] -> ShowS
show :: CreateUserProfileResponse -> String
$cshow :: CreateUserProfileResponse -> String
showsPrec :: Int -> CreateUserProfileResponse -> ShowS
$cshowsPrec :: Int -> CreateUserProfileResponse -> ShowS
Prelude.Show, (forall x.
CreateUserProfileResponse -> Rep CreateUserProfileResponse x)
-> (forall x.
Rep CreateUserProfileResponse x -> CreateUserProfileResponse)
-> Generic CreateUserProfileResponse
forall x.
Rep CreateUserProfileResponse x -> CreateUserProfileResponse
forall x.
CreateUserProfileResponse -> Rep CreateUserProfileResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep CreateUserProfileResponse x -> CreateUserProfileResponse
$cfrom :: forall x.
CreateUserProfileResponse -> Rep CreateUserProfileResponse x
Prelude.Generic)
newCreateUserProfileResponse ::
Prelude.Int ->
Prelude.Text ->
CreateUserProfileResponse
newCreateUserProfileResponse :: Int -> Text -> CreateUserProfileResponse
newCreateUserProfileResponse Int
pHttpStatus_ Text
pUserArn_ =
CreateUserProfileResponse' :: Maybe POSIX
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Maybe POSIX
-> Int
-> Text
-> CreateUserProfileResponse
CreateUserProfileResponse'
{ $sel:lastModifiedTimestamp:CreateUserProfileResponse' :: Maybe POSIX
lastModifiedTimestamp =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:sshPublicKey:CreateUserProfileResponse' :: Maybe Text
sshPublicKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:emailAddress:CreateUserProfileResponse' :: Maybe (Sensitive Text)
emailAddress = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:displayName:CreateUserProfileResponse' :: Maybe (Sensitive Text)
displayName = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:createdTimestamp:CreateUserProfileResponse' :: Maybe POSIX
createdTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:CreateUserProfileResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:userArn:CreateUserProfileResponse' :: Text
userArn = Text
pUserArn_
}
createUserProfileResponse_lastModifiedTimestamp :: Lens.Lens' CreateUserProfileResponse (Prelude.Maybe Prelude.UTCTime)
createUserProfileResponse_lastModifiedTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateUserProfileResponse -> f CreateUserProfileResponse
createUserProfileResponse_lastModifiedTimestamp = (CreateUserProfileResponse -> Maybe POSIX)
-> (CreateUserProfileResponse
-> Maybe POSIX -> CreateUserProfileResponse)
-> Lens
CreateUserProfileResponse
CreateUserProfileResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateUserProfileResponse' {Maybe POSIX
lastModifiedTimestamp :: Maybe POSIX
$sel:lastModifiedTimestamp:CreateUserProfileResponse' :: CreateUserProfileResponse -> Maybe POSIX
lastModifiedTimestamp} -> Maybe POSIX
lastModifiedTimestamp) (\s :: CreateUserProfileResponse
s@CreateUserProfileResponse' {} Maybe POSIX
a -> CreateUserProfileResponse
s {$sel:lastModifiedTimestamp:CreateUserProfileResponse' :: Maybe POSIX
lastModifiedTimestamp = Maybe POSIX
a} :: CreateUserProfileResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> CreateUserProfileResponse -> f CreateUserProfileResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateUserProfileResponse
-> f CreateUserProfileResponse
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
createUserProfileResponse_sshPublicKey :: Lens.Lens' CreateUserProfileResponse (Prelude.Maybe Prelude.Text)
createUserProfileResponse_sshPublicKey :: (Maybe Text -> f (Maybe Text))
-> CreateUserProfileResponse -> f CreateUserProfileResponse
createUserProfileResponse_sshPublicKey = (CreateUserProfileResponse -> Maybe Text)
-> (CreateUserProfileResponse
-> Maybe Text -> CreateUserProfileResponse)
-> Lens
CreateUserProfileResponse
CreateUserProfileResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateUserProfileResponse' {Maybe Text
sshPublicKey :: Maybe Text
$sel:sshPublicKey:CreateUserProfileResponse' :: CreateUserProfileResponse -> Maybe Text
sshPublicKey} -> Maybe Text
sshPublicKey) (\s :: CreateUserProfileResponse
s@CreateUserProfileResponse' {} Maybe Text
a -> CreateUserProfileResponse
s {$sel:sshPublicKey:CreateUserProfileResponse' :: Maybe Text
sshPublicKey = Maybe Text
a} :: CreateUserProfileResponse)
createUserProfileResponse_emailAddress :: Lens.Lens' CreateUserProfileResponse (Prelude.Maybe Prelude.Text)
createUserProfileResponse_emailAddress :: (Maybe Text -> f (Maybe Text))
-> CreateUserProfileResponse -> f CreateUserProfileResponse
createUserProfileResponse_emailAddress = (CreateUserProfileResponse -> Maybe (Sensitive Text))
-> (CreateUserProfileResponse
-> Maybe (Sensitive Text) -> CreateUserProfileResponse)
-> Lens
CreateUserProfileResponse
CreateUserProfileResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateUserProfileResponse' {Maybe (Sensitive Text)
emailAddress :: Maybe (Sensitive Text)
$sel:emailAddress:CreateUserProfileResponse' :: CreateUserProfileResponse -> Maybe (Sensitive Text)
emailAddress} -> Maybe (Sensitive Text)
emailAddress) (\s :: CreateUserProfileResponse
s@CreateUserProfileResponse' {} Maybe (Sensitive Text)
a -> CreateUserProfileResponse
s {$sel:emailAddress:CreateUserProfileResponse' :: Maybe (Sensitive Text)
emailAddress = Maybe (Sensitive Text)
a} :: CreateUserProfileResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CreateUserProfileResponse -> f CreateUserProfileResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateUserProfileResponse
-> f CreateUserProfileResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive 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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
createUserProfileResponse_displayName :: Lens.Lens' CreateUserProfileResponse (Prelude.Maybe Prelude.Text)
createUserProfileResponse_displayName :: (Maybe Text -> f (Maybe Text))
-> CreateUserProfileResponse -> f CreateUserProfileResponse
createUserProfileResponse_displayName = (CreateUserProfileResponse -> Maybe (Sensitive Text))
-> (CreateUserProfileResponse
-> Maybe (Sensitive Text) -> CreateUserProfileResponse)
-> Lens
CreateUserProfileResponse
CreateUserProfileResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateUserProfileResponse' {Maybe (Sensitive Text)
displayName :: Maybe (Sensitive Text)
$sel:displayName:CreateUserProfileResponse' :: CreateUserProfileResponse -> Maybe (Sensitive Text)
displayName} -> Maybe (Sensitive Text)
displayName) (\s :: CreateUserProfileResponse
s@CreateUserProfileResponse' {} Maybe (Sensitive Text)
a -> CreateUserProfileResponse
s {$sel:displayName:CreateUserProfileResponse' :: Maybe (Sensitive Text)
displayName = Maybe (Sensitive Text)
a} :: CreateUserProfileResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> CreateUserProfileResponse -> f CreateUserProfileResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> CreateUserProfileResponse
-> f CreateUserProfileResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive 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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
createUserProfileResponse_createdTimestamp :: Lens.Lens' CreateUserProfileResponse (Prelude.Maybe Prelude.UTCTime)
createUserProfileResponse_createdTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateUserProfileResponse -> f CreateUserProfileResponse
createUserProfileResponse_createdTimestamp = (CreateUserProfileResponse -> Maybe POSIX)
-> (CreateUserProfileResponse
-> Maybe POSIX -> CreateUserProfileResponse)
-> Lens
CreateUserProfileResponse
CreateUserProfileResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateUserProfileResponse' {Maybe POSIX
createdTimestamp :: Maybe POSIX
$sel:createdTimestamp:CreateUserProfileResponse' :: CreateUserProfileResponse -> Maybe POSIX
createdTimestamp} -> Maybe POSIX
createdTimestamp) (\s :: CreateUserProfileResponse
s@CreateUserProfileResponse' {} Maybe POSIX
a -> CreateUserProfileResponse
s {$sel:createdTimestamp:CreateUserProfileResponse' :: Maybe POSIX
createdTimestamp = Maybe POSIX
a} :: CreateUserProfileResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> CreateUserProfileResponse -> f CreateUserProfileResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> CreateUserProfileResponse
-> f CreateUserProfileResponse
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
createUserProfileResponse_httpStatus :: Lens.Lens' CreateUserProfileResponse Prelude.Int
createUserProfileResponse_httpStatus :: (Int -> f Int)
-> CreateUserProfileResponse -> f CreateUserProfileResponse
createUserProfileResponse_httpStatus = (CreateUserProfileResponse -> Int)
-> (CreateUserProfileResponse -> Int -> CreateUserProfileResponse)
-> Lens CreateUserProfileResponse CreateUserProfileResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateUserProfileResponse' {Int
httpStatus :: Int
$sel:httpStatus:CreateUserProfileResponse' :: CreateUserProfileResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: CreateUserProfileResponse
s@CreateUserProfileResponse' {} Int
a -> CreateUserProfileResponse
s {$sel:httpStatus:CreateUserProfileResponse' :: Int
httpStatus = Int
a} :: CreateUserProfileResponse)
createUserProfileResponse_userArn :: Lens.Lens' CreateUserProfileResponse Prelude.Text
createUserProfileResponse_userArn :: (Text -> f Text)
-> CreateUserProfileResponse -> f CreateUserProfileResponse
createUserProfileResponse_userArn = (CreateUserProfileResponse -> Text)
-> (CreateUserProfileResponse -> Text -> CreateUserProfileResponse)
-> Lens
CreateUserProfileResponse CreateUserProfileResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\CreateUserProfileResponse' {Text
userArn :: Text
$sel:userArn:CreateUserProfileResponse' :: CreateUserProfileResponse -> Text
userArn} -> Text
userArn) (\s :: CreateUserProfileResponse
s@CreateUserProfileResponse' {} Text
a -> CreateUserProfileResponse
s {$sel:userArn:CreateUserProfileResponse' :: Text
userArn = Text
a} :: CreateUserProfileResponse)
instance Prelude.NFData CreateUserProfileResponse