{-# 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.AuditManager.Types.Delegation where
import Amazonka.AuditManager.Types.DelegationStatus
import Amazonka.AuditManager.Types.RoleType
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data Delegation = Delegation'
{
Delegation -> Maybe RoleType
roleType :: Prelude.Maybe RoleType,
Delegation -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
Delegation -> Maybe DelegationStatus
status :: Prelude.Maybe DelegationStatus,
Delegation -> Maybe POSIX
lastUpdated :: Prelude.Maybe Core.POSIX,
Delegation -> Maybe Text
controlSetId :: Prelude.Maybe Prelude.Text,
Delegation -> Maybe Text
createdBy :: Prelude.Maybe Prelude.Text,
Delegation -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
Delegation -> Maybe Text
assessmentId :: Prelude.Maybe Prelude.Text,
:: Prelude.Maybe Prelude.Text,
Delegation -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
Delegation -> Maybe Text
assessmentName :: Prelude.Maybe Prelude.Text
}
deriving (Delegation -> Delegation -> Bool
(Delegation -> Delegation -> Bool)
-> (Delegation -> Delegation -> Bool) -> Eq Delegation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Delegation -> Delegation -> Bool
$c/= :: Delegation -> Delegation -> Bool
== :: Delegation -> Delegation -> Bool
$c== :: Delegation -> Delegation -> Bool
Prelude.Eq, ReadPrec [Delegation]
ReadPrec Delegation
Int -> ReadS Delegation
ReadS [Delegation]
(Int -> ReadS Delegation)
-> ReadS [Delegation]
-> ReadPrec Delegation
-> ReadPrec [Delegation]
-> Read Delegation
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Delegation]
$creadListPrec :: ReadPrec [Delegation]
readPrec :: ReadPrec Delegation
$creadPrec :: ReadPrec Delegation
readList :: ReadS [Delegation]
$creadList :: ReadS [Delegation]
readsPrec :: Int -> ReadS Delegation
$creadsPrec :: Int -> ReadS Delegation
Prelude.Read, Int -> Delegation -> ShowS
[Delegation] -> ShowS
Delegation -> String
(Int -> Delegation -> ShowS)
-> (Delegation -> String)
-> ([Delegation] -> ShowS)
-> Show Delegation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Delegation] -> ShowS
$cshowList :: [Delegation] -> ShowS
show :: Delegation -> String
$cshow :: Delegation -> String
showsPrec :: Int -> Delegation -> ShowS
$cshowsPrec :: Int -> Delegation -> ShowS
Prelude.Show, (forall x. Delegation -> Rep Delegation x)
-> (forall x. Rep Delegation x -> Delegation) -> Generic Delegation
forall x. Rep Delegation x -> Delegation
forall x. Delegation -> Rep Delegation x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Delegation x -> Delegation
$cfrom :: forall x. Delegation -> Rep Delegation x
Prelude.Generic)
newDelegation ::
Delegation
newDelegation :: Delegation
newDelegation =
Delegation' :: Maybe RoleType
-> Maybe POSIX
-> Maybe DelegationStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation
Delegation'
{ $sel:roleType:Delegation' :: Maybe RoleType
roleType = Maybe RoleType
forall a. Maybe a
Prelude.Nothing,
$sel:creationTime:Delegation' :: Maybe POSIX
creationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:status:Delegation' :: Maybe DelegationStatus
status = Maybe DelegationStatus
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdated:Delegation' :: Maybe POSIX
lastUpdated = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:controlSetId:Delegation' :: Maybe Text
controlSetId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdBy:Delegation' :: Maybe Text
createdBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:Delegation' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:assessmentId:Delegation' :: Maybe Text
assessmentId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:comment:Delegation' :: Maybe Text
comment = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:roleArn:Delegation' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:assessmentName:Delegation' :: Maybe Text
assessmentName = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
delegation_roleType :: Lens.Lens' Delegation (Prelude.Maybe RoleType)
delegation_roleType :: (Maybe RoleType -> f (Maybe RoleType))
-> Delegation -> f Delegation
delegation_roleType = (Delegation -> Maybe RoleType)
-> (Delegation -> Maybe RoleType -> Delegation)
-> Lens Delegation Delegation (Maybe RoleType) (Maybe RoleType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Delegation' {Maybe RoleType
roleType :: Maybe RoleType
$sel:roleType:Delegation' :: Delegation -> Maybe RoleType
roleType} -> Maybe RoleType
roleType) (\s :: Delegation
s@Delegation' {} Maybe RoleType
a -> Delegation
s {$sel:roleType:Delegation' :: Maybe RoleType
roleType = Maybe RoleType
a} :: Delegation)
delegation_creationTime :: Lens.Lens' Delegation (Prelude.Maybe Prelude.UTCTime)
delegation_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Delegation -> f Delegation
delegation_creationTime = (Delegation -> Maybe POSIX)
-> (Delegation -> Maybe POSIX -> Delegation)
-> Lens Delegation Delegation (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Delegation' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:Delegation' :: Delegation -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: Delegation
s@Delegation' {} Maybe POSIX
a -> Delegation
s {$sel:creationTime:Delegation' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: Delegation) ((Maybe POSIX -> f (Maybe POSIX)) -> Delegation -> f Delegation)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Delegation
-> f Delegation
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
delegation_status :: Lens.Lens' Delegation (Prelude.Maybe DelegationStatus)
delegation_status :: (Maybe DelegationStatus -> f (Maybe DelegationStatus))
-> Delegation -> f Delegation
delegation_status = (Delegation -> Maybe DelegationStatus)
-> (Delegation -> Maybe DelegationStatus -> Delegation)
-> Lens
Delegation
Delegation
(Maybe DelegationStatus)
(Maybe DelegationStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Delegation' {Maybe DelegationStatus
status :: Maybe DelegationStatus
$sel:status:Delegation' :: Delegation -> Maybe DelegationStatus
status} -> Maybe DelegationStatus
status) (\s :: Delegation
s@Delegation' {} Maybe DelegationStatus
a -> Delegation
s {$sel:status:Delegation' :: Maybe DelegationStatus
status = Maybe DelegationStatus
a} :: Delegation)
delegation_lastUpdated :: Lens.Lens' Delegation (Prelude.Maybe Prelude.UTCTime)
delegation_lastUpdated :: (Maybe UTCTime -> f (Maybe UTCTime)) -> Delegation -> f Delegation
delegation_lastUpdated = (Delegation -> Maybe POSIX)
-> (Delegation -> Maybe POSIX -> Delegation)
-> Lens Delegation Delegation (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Delegation' {Maybe POSIX
lastUpdated :: Maybe POSIX
$sel:lastUpdated:Delegation' :: Delegation -> Maybe POSIX
lastUpdated} -> Maybe POSIX
lastUpdated) (\s :: Delegation
s@Delegation' {} Maybe POSIX
a -> Delegation
s {$sel:lastUpdated:Delegation' :: Maybe POSIX
lastUpdated = Maybe POSIX
a} :: Delegation) ((Maybe POSIX -> f (Maybe POSIX)) -> Delegation -> f Delegation)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> Delegation
-> f Delegation
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
delegation_controlSetId :: Lens.Lens' Delegation (Prelude.Maybe Prelude.Text)
delegation_controlSetId :: (Maybe Text -> f (Maybe Text)) -> Delegation -> f Delegation
delegation_controlSetId = (Delegation -> Maybe Text)
-> (Delegation -> Maybe Text -> Delegation)
-> Lens Delegation Delegation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Delegation' {Maybe Text
controlSetId :: Maybe Text
$sel:controlSetId:Delegation' :: Delegation -> Maybe Text
controlSetId} -> Maybe Text
controlSetId) (\s :: Delegation
s@Delegation' {} Maybe Text
a -> Delegation
s {$sel:controlSetId:Delegation' :: Maybe Text
controlSetId = Maybe Text
a} :: Delegation)
delegation_createdBy :: Lens.Lens' Delegation (Prelude.Maybe Prelude.Text)
delegation_createdBy :: (Maybe Text -> f (Maybe Text)) -> Delegation -> f Delegation
delegation_createdBy = (Delegation -> Maybe Text)
-> (Delegation -> Maybe Text -> Delegation)
-> Lens Delegation Delegation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Delegation' {Maybe Text
createdBy :: Maybe Text
$sel:createdBy:Delegation' :: Delegation -> Maybe Text
createdBy} -> Maybe Text
createdBy) (\s :: Delegation
s@Delegation' {} Maybe Text
a -> Delegation
s {$sel:createdBy:Delegation' :: Maybe Text
createdBy = Maybe Text
a} :: Delegation)
delegation_id :: Lens.Lens' Delegation (Prelude.Maybe Prelude.Text)
delegation_id :: (Maybe Text -> f (Maybe Text)) -> Delegation -> f Delegation
delegation_id = (Delegation -> Maybe Text)
-> (Delegation -> Maybe Text -> Delegation)
-> Lens Delegation Delegation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Delegation' {Maybe Text
id :: Maybe Text
$sel:id:Delegation' :: Delegation -> Maybe Text
id} -> Maybe Text
id) (\s :: Delegation
s@Delegation' {} Maybe Text
a -> Delegation
s {$sel:id:Delegation' :: Maybe Text
id = Maybe Text
a} :: Delegation)
delegation_assessmentId :: Lens.Lens' Delegation (Prelude.Maybe Prelude.Text)
delegation_assessmentId :: (Maybe Text -> f (Maybe Text)) -> Delegation -> f Delegation
delegation_assessmentId = (Delegation -> Maybe Text)
-> (Delegation -> Maybe Text -> Delegation)
-> Lens Delegation Delegation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Delegation' {Maybe Text
assessmentId :: Maybe Text
$sel:assessmentId:Delegation' :: Delegation -> Maybe Text
assessmentId} -> Maybe Text
assessmentId) (\s :: Delegation
s@Delegation' {} Maybe Text
a -> Delegation
s {$sel:assessmentId:Delegation' :: Maybe Text
assessmentId = Maybe Text
a} :: Delegation)
delegation_comment :: Lens.Lens' Delegation (Prelude.Maybe Prelude.Text)
= (Delegation -> Maybe Text)
-> (Delegation -> Maybe Text -> Delegation)
-> Lens Delegation Delegation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Delegation' {Maybe Text
comment :: Maybe Text
$sel:comment:Delegation' :: Delegation -> Maybe Text
comment} -> Maybe Text
comment) (\s :: Delegation
s@Delegation' {} Maybe Text
a -> Delegation
s {$sel:comment:Delegation' :: Maybe Text
comment = Maybe Text
a} :: Delegation)
delegation_roleArn :: Lens.Lens' Delegation (Prelude.Maybe Prelude.Text)
delegation_roleArn :: (Maybe Text -> f (Maybe Text)) -> Delegation -> f Delegation
delegation_roleArn = (Delegation -> Maybe Text)
-> (Delegation -> Maybe Text -> Delegation)
-> Lens Delegation Delegation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Delegation' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:Delegation' :: Delegation -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: Delegation
s@Delegation' {} Maybe Text
a -> Delegation
s {$sel:roleArn:Delegation' :: Maybe Text
roleArn = Maybe Text
a} :: Delegation)
delegation_assessmentName :: Lens.Lens' Delegation (Prelude.Maybe Prelude.Text)
delegation_assessmentName :: (Maybe Text -> f (Maybe Text)) -> Delegation -> f Delegation
delegation_assessmentName = (Delegation -> Maybe Text)
-> (Delegation -> Maybe Text -> Delegation)
-> Lens Delegation Delegation (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Delegation' {Maybe Text
assessmentName :: Maybe Text
$sel:assessmentName:Delegation' :: Delegation -> Maybe Text
assessmentName} -> Maybe Text
assessmentName) (\s :: Delegation
s@Delegation' {} Maybe Text
a -> Delegation
s {$sel:assessmentName:Delegation' :: Maybe Text
assessmentName = Maybe Text
a} :: Delegation)
instance Core.FromJSON Delegation where
parseJSON :: Value -> Parser Delegation
parseJSON =
String
-> (Object -> Parser Delegation) -> Value -> Parser Delegation
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"Delegation"
( \Object
x ->
Maybe RoleType
-> Maybe POSIX
-> Maybe DelegationStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation
Delegation'
(Maybe RoleType
-> Maybe POSIX
-> Maybe DelegationStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
-> Parser (Maybe RoleType)
-> Parser
(Maybe POSIX
-> Maybe DelegationStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe RoleType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"roleType")
Parser
(Maybe POSIX
-> Maybe DelegationStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
-> Parser (Maybe POSIX)
-> Parser
(Maybe DelegationStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
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
"creationTime")
Parser
(Maybe DelegationStatus
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
-> Parser (Maybe DelegationStatus)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe DelegationStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"status")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
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
"lastUpdated")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
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
"controlSetId")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
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
"createdBy")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Delegation)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> Delegation)
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")
Parser
(Maybe Text
-> Maybe Text -> Maybe Text -> Maybe Text -> Delegation)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Maybe Text -> Delegation)
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
"assessmentId")
Parser (Maybe Text -> Maybe Text -> Maybe Text -> Delegation)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> Delegation)
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
"comment")
Parser (Maybe Text -> Maybe Text -> Delegation)
-> Parser (Maybe Text) -> Parser (Maybe Text -> Delegation)
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
"roleArn")
Parser (Maybe Text -> Delegation)
-> Parser (Maybe Text) -> Parser Delegation
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
"assessmentName")
)
instance Prelude.Hashable Delegation
instance Prelude.NFData Delegation