{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.Organizations.Types.DelegatedAdministrator where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Organizations.Types.AccountJoinedMethod
import Amazonka.Organizations.Types.AccountStatus
import qualified Amazonka.Prelude as Prelude
data DelegatedAdministrator = DelegatedAdministrator'
{
DelegatedAdministrator -> Maybe AccountStatus
status :: Prelude.Maybe AccountStatus,
DelegatedAdministrator -> Maybe AccountJoinedMethod
joinedMethod :: Prelude.Maybe AccountJoinedMethod,
DelegatedAdministrator -> Maybe (Sensitive Text)
email :: Prelude.Maybe (Core.Sensitive Prelude.Text),
DelegatedAdministrator -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
DelegatedAdministrator -> Maybe POSIX
joinedTimestamp :: Prelude.Maybe Core.POSIX,
DelegatedAdministrator -> Maybe POSIX
delegationEnabledDate :: Prelude.Maybe Core.POSIX,
DelegatedAdministrator -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Core.Sensitive Prelude.Text),
DelegatedAdministrator -> Maybe Text
id :: Prelude.Maybe Prelude.Text
}
deriving (DelegatedAdministrator -> DelegatedAdministrator -> Bool
(DelegatedAdministrator -> DelegatedAdministrator -> Bool)
-> (DelegatedAdministrator -> DelegatedAdministrator -> Bool)
-> Eq DelegatedAdministrator
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DelegatedAdministrator -> DelegatedAdministrator -> Bool
$c/= :: DelegatedAdministrator -> DelegatedAdministrator -> Bool
== :: DelegatedAdministrator -> DelegatedAdministrator -> Bool
$c== :: DelegatedAdministrator -> DelegatedAdministrator -> Bool
Prelude.Eq, Int -> DelegatedAdministrator -> ShowS
[DelegatedAdministrator] -> ShowS
DelegatedAdministrator -> String
(Int -> DelegatedAdministrator -> ShowS)
-> (DelegatedAdministrator -> String)
-> ([DelegatedAdministrator] -> ShowS)
-> Show DelegatedAdministrator
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DelegatedAdministrator] -> ShowS
$cshowList :: [DelegatedAdministrator] -> ShowS
show :: DelegatedAdministrator -> String
$cshow :: DelegatedAdministrator -> String
showsPrec :: Int -> DelegatedAdministrator -> ShowS
$cshowsPrec :: Int -> DelegatedAdministrator -> ShowS
Prelude.Show, (forall x. DelegatedAdministrator -> Rep DelegatedAdministrator x)
-> (forall x.
Rep DelegatedAdministrator x -> DelegatedAdministrator)
-> Generic DelegatedAdministrator
forall x. Rep DelegatedAdministrator x -> DelegatedAdministrator
forall x. DelegatedAdministrator -> Rep DelegatedAdministrator x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DelegatedAdministrator x -> DelegatedAdministrator
$cfrom :: forall x. DelegatedAdministrator -> Rep DelegatedAdministrator x
Prelude.Generic)
newDelegatedAdministrator ::
DelegatedAdministrator
newDelegatedAdministrator :: DelegatedAdministrator
newDelegatedAdministrator =
DelegatedAdministrator' :: Maybe AccountStatus
-> Maybe AccountJoinedMethod
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> DelegatedAdministrator
DelegatedAdministrator'
{ $sel:status:DelegatedAdministrator' :: Maybe AccountStatus
status = Maybe AccountStatus
forall a. Maybe a
Prelude.Nothing,
$sel:joinedMethod:DelegatedAdministrator' :: Maybe AccountJoinedMethod
joinedMethod = Maybe AccountJoinedMethod
forall a. Maybe a
Prelude.Nothing,
$sel:email:DelegatedAdministrator' :: Maybe (Sensitive Text)
email = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:arn:DelegatedAdministrator' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:joinedTimestamp:DelegatedAdministrator' :: Maybe POSIX
joinedTimestamp = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:delegationEnabledDate:DelegatedAdministrator' :: Maybe POSIX
delegationEnabledDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:name:DelegatedAdministrator' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:id:DelegatedAdministrator' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
delegatedAdministrator_status :: Lens.Lens' DelegatedAdministrator (Prelude.Maybe AccountStatus)
delegatedAdministrator_status :: (Maybe AccountStatus -> f (Maybe AccountStatus))
-> DelegatedAdministrator -> f DelegatedAdministrator
delegatedAdministrator_status = (DelegatedAdministrator -> Maybe AccountStatus)
-> (DelegatedAdministrator
-> Maybe AccountStatus -> DelegatedAdministrator)
-> Lens
DelegatedAdministrator
DelegatedAdministrator
(Maybe AccountStatus)
(Maybe AccountStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DelegatedAdministrator' {Maybe AccountStatus
status :: Maybe AccountStatus
$sel:status:DelegatedAdministrator' :: DelegatedAdministrator -> Maybe AccountStatus
status} -> Maybe AccountStatus
status) (\s :: DelegatedAdministrator
s@DelegatedAdministrator' {} Maybe AccountStatus
a -> DelegatedAdministrator
s {$sel:status:DelegatedAdministrator' :: Maybe AccountStatus
status = Maybe AccountStatus
a} :: DelegatedAdministrator)
delegatedAdministrator_joinedMethod :: Lens.Lens' DelegatedAdministrator (Prelude.Maybe AccountJoinedMethod)
delegatedAdministrator_joinedMethod :: (Maybe AccountJoinedMethod -> f (Maybe AccountJoinedMethod))
-> DelegatedAdministrator -> f DelegatedAdministrator
delegatedAdministrator_joinedMethod = (DelegatedAdministrator -> Maybe AccountJoinedMethod)
-> (DelegatedAdministrator
-> Maybe AccountJoinedMethod -> DelegatedAdministrator)
-> Lens
DelegatedAdministrator
DelegatedAdministrator
(Maybe AccountJoinedMethod)
(Maybe AccountJoinedMethod)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DelegatedAdministrator' {Maybe AccountJoinedMethod
joinedMethod :: Maybe AccountJoinedMethod
$sel:joinedMethod:DelegatedAdministrator' :: DelegatedAdministrator -> Maybe AccountJoinedMethod
joinedMethod} -> Maybe AccountJoinedMethod
joinedMethod) (\s :: DelegatedAdministrator
s@DelegatedAdministrator' {} Maybe AccountJoinedMethod
a -> DelegatedAdministrator
s {$sel:joinedMethod:DelegatedAdministrator' :: Maybe AccountJoinedMethod
joinedMethod = Maybe AccountJoinedMethod
a} :: DelegatedAdministrator)
delegatedAdministrator_email :: Lens.Lens' DelegatedAdministrator (Prelude.Maybe Prelude.Text)
delegatedAdministrator_email :: (Maybe Text -> f (Maybe Text))
-> DelegatedAdministrator -> f DelegatedAdministrator
delegatedAdministrator_email = (DelegatedAdministrator -> Maybe (Sensitive Text))
-> (DelegatedAdministrator
-> Maybe (Sensitive Text) -> DelegatedAdministrator)
-> Lens
DelegatedAdministrator
DelegatedAdministrator
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DelegatedAdministrator' {Maybe (Sensitive Text)
email :: Maybe (Sensitive Text)
$sel:email:DelegatedAdministrator' :: DelegatedAdministrator -> Maybe (Sensitive Text)
email} -> Maybe (Sensitive Text)
email) (\s :: DelegatedAdministrator
s@DelegatedAdministrator' {} Maybe (Sensitive Text)
a -> DelegatedAdministrator
s {$sel:email:DelegatedAdministrator' :: Maybe (Sensitive Text)
email = Maybe (Sensitive Text)
a} :: DelegatedAdministrator) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> DelegatedAdministrator -> f DelegatedAdministrator)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> DelegatedAdministrator
-> f DelegatedAdministrator
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
delegatedAdministrator_arn :: Lens.Lens' DelegatedAdministrator (Prelude.Maybe Prelude.Text)
delegatedAdministrator_arn :: (Maybe Text -> f (Maybe Text))
-> DelegatedAdministrator -> f DelegatedAdministrator
delegatedAdministrator_arn = (DelegatedAdministrator -> Maybe Text)
-> (DelegatedAdministrator -> Maybe Text -> DelegatedAdministrator)
-> Lens
DelegatedAdministrator
DelegatedAdministrator
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DelegatedAdministrator' {Maybe Text
arn :: Maybe Text
$sel:arn:DelegatedAdministrator' :: DelegatedAdministrator -> Maybe Text
arn} -> Maybe Text
arn) (\s :: DelegatedAdministrator
s@DelegatedAdministrator' {} Maybe Text
a -> DelegatedAdministrator
s {$sel:arn:DelegatedAdministrator' :: Maybe Text
arn = Maybe Text
a} :: DelegatedAdministrator)
delegatedAdministrator_joinedTimestamp :: Lens.Lens' DelegatedAdministrator (Prelude.Maybe Prelude.UTCTime)
delegatedAdministrator_joinedTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DelegatedAdministrator -> f DelegatedAdministrator
delegatedAdministrator_joinedTimestamp = (DelegatedAdministrator -> Maybe POSIX)
-> (DelegatedAdministrator
-> Maybe POSIX -> DelegatedAdministrator)
-> Lens
DelegatedAdministrator
DelegatedAdministrator
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DelegatedAdministrator' {Maybe POSIX
joinedTimestamp :: Maybe POSIX
$sel:joinedTimestamp:DelegatedAdministrator' :: DelegatedAdministrator -> Maybe POSIX
joinedTimestamp} -> Maybe POSIX
joinedTimestamp) (\s :: DelegatedAdministrator
s@DelegatedAdministrator' {} Maybe POSIX
a -> DelegatedAdministrator
s {$sel:joinedTimestamp:DelegatedAdministrator' :: Maybe POSIX
joinedTimestamp = Maybe POSIX
a} :: DelegatedAdministrator) ((Maybe POSIX -> f (Maybe POSIX))
-> DelegatedAdministrator -> f DelegatedAdministrator)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DelegatedAdministrator
-> f DelegatedAdministrator
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
delegatedAdministrator_delegationEnabledDate :: Lens.Lens' DelegatedAdministrator (Prelude.Maybe Prelude.UTCTime)
delegatedAdministrator_delegationEnabledDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DelegatedAdministrator -> f DelegatedAdministrator
delegatedAdministrator_delegationEnabledDate = (DelegatedAdministrator -> Maybe POSIX)
-> (DelegatedAdministrator
-> Maybe POSIX -> DelegatedAdministrator)
-> Lens
DelegatedAdministrator
DelegatedAdministrator
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DelegatedAdministrator' {Maybe POSIX
delegationEnabledDate :: Maybe POSIX
$sel:delegationEnabledDate:DelegatedAdministrator' :: DelegatedAdministrator -> Maybe POSIX
delegationEnabledDate} -> Maybe POSIX
delegationEnabledDate) (\s :: DelegatedAdministrator
s@DelegatedAdministrator' {} Maybe POSIX
a -> DelegatedAdministrator
s {$sel:delegationEnabledDate:DelegatedAdministrator' :: Maybe POSIX
delegationEnabledDate = Maybe POSIX
a} :: DelegatedAdministrator) ((Maybe POSIX -> f (Maybe POSIX))
-> DelegatedAdministrator -> f DelegatedAdministrator)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DelegatedAdministrator
-> f DelegatedAdministrator
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
delegatedAdministrator_name :: Lens.Lens' DelegatedAdministrator (Prelude.Maybe Prelude.Text)
delegatedAdministrator_name :: (Maybe Text -> f (Maybe Text))
-> DelegatedAdministrator -> f DelegatedAdministrator
delegatedAdministrator_name = (DelegatedAdministrator -> Maybe (Sensitive Text))
-> (DelegatedAdministrator
-> Maybe (Sensitive Text) -> DelegatedAdministrator)
-> Lens
DelegatedAdministrator
DelegatedAdministrator
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DelegatedAdministrator' {Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:name:DelegatedAdministrator' :: DelegatedAdministrator -> Maybe (Sensitive Text)
name} -> Maybe (Sensitive Text)
name) (\s :: DelegatedAdministrator
s@DelegatedAdministrator' {} Maybe (Sensitive Text)
a -> DelegatedAdministrator
s {$sel:name:DelegatedAdministrator' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
a} :: DelegatedAdministrator) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> DelegatedAdministrator -> f DelegatedAdministrator)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> DelegatedAdministrator
-> f DelegatedAdministrator
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
delegatedAdministrator_id :: Lens.Lens' DelegatedAdministrator (Prelude.Maybe Prelude.Text)
delegatedAdministrator_id :: (Maybe Text -> f (Maybe Text))
-> DelegatedAdministrator -> f DelegatedAdministrator
delegatedAdministrator_id = (DelegatedAdministrator -> Maybe Text)
-> (DelegatedAdministrator -> Maybe Text -> DelegatedAdministrator)
-> Lens
DelegatedAdministrator
DelegatedAdministrator
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DelegatedAdministrator' {Maybe Text
id :: Maybe Text
$sel:id:DelegatedAdministrator' :: DelegatedAdministrator -> Maybe Text
id} -> Maybe Text
id) (\s :: DelegatedAdministrator
s@DelegatedAdministrator' {} Maybe Text
a -> DelegatedAdministrator
s {$sel:id:DelegatedAdministrator' :: Maybe Text
id = Maybe Text
a} :: DelegatedAdministrator)
instance Core.FromJSON DelegatedAdministrator where
parseJSON :: Value -> Parser DelegatedAdministrator
parseJSON =
String
-> (Object -> Parser DelegatedAdministrator)
-> Value
-> Parser DelegatedAdministrator
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"DelegatedAdministrator"
( \Object
x ->
Maybe AccountStatus
-> Maybe AccountJoinedMethod
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> DelegatedAdministrator
DelegatedAdministrator'
(Maybe AccountStatus
-> Maybe AccountJoinedMethod
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> DelegatedAdministrator)
-> Parser (Maybe AccountStatus)
-> Parser
(Maybe AccountJoinedMethod
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> DelegatedAdministrator)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe AccountStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser
(Maybe AccountJoinedMethod
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> DelegatedAdministrator)
-> Parser (Maybe AccountJoinedMethod)
-> Parser
(Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> DelegatedAdministrator)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AccountJoinedMethod)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JoinedMethod")
Parser
(Maybe (Sensitive Text)
-> Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> DelegatedAdministrator)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> DelegatedAdministrator)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Email")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> DelegatedAdministrator)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> DelegatedAdministrator)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Arn")
Parser
(Maybe POSIX
-> Maybe POSIX
-> Maybe (Sensitive Text)
-> Maybe Text
-> DelegatedAdministrator)
-> Parser (Maybe POSIX)
-> Parser
(Maybe POSIX
-> Maybe (Sensitive Text) -> Maybe Text -> DelegatedAdministrator)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"JoinedTimestamp")
Parser
(Maybe POSIX
-> Maybe (Sensitive Text) -> Maybe Text -> DelegatedAdministrator)
-> Parser (Maybe POSIX)
-> Parser
(Maybe (Sensitive Text) -> Maybe Text -> DelegatedAdministrator)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DelegationEnabledDate")
Parser
(Maybe (Sensitive Text) -> Maybe Text -> DelegatedAdministrator)
-> Parser (Maybe (Sensitive Text))
-> Parser (Maybe Text -> DelegatedAdministrator)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Name")
Parser (Maybe Text -> DelegatedAdministrator)
-> Parser (Maybe Text) -> Parser DelegatedAdministrator
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Id")
)
instance Prelude.Hashable DelegatedAdministrator
instance Prelude.NFData DelegatedAdministrator