{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.KMS.Types.GrantListEntry
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.KMS.Types.GrantListEntry where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.KMS.Types.GrantConstraints
import Amazonka.KMS.Types.GrantOperation
import qualified Amazonka.Prelude as Prelude

-- | Contains information about a grant.
--
-- /See:/ 'newGrantListEntry' smart constructor.
data GrantListEntry = GrantListEntry'
  { -- | A list of key-value pairs that must be present in the encryption context
    -- of certain subsequent operations that the grant allows.
    GrantListEntry -> Maybe GrantConstraints
constraints :: Prelude.Maybe GrantConstraints,
    -- | The date and time when the grant was created.
    GrantListEntry -> Maybe POSIX
creationDate :: Prelude.Maybe Data.POSIX,
    -- | The unique identifier for the grant.
    GrantListEntry -> Maybe Text
grantId :: Prelude.Maybe Prelude.Text,
    -- | The identity that gets the permissions in the grant.
    --
    -- The @GranteePrincipal@ field in the @ListGrants@ response usually
    -- contains the user or role designated as the grantee principal in the
    -- grant. However, when the grantee principal in the grant is an Amazon Web
    -- Services service, the @GranteePrincipal@ field contains the
    -- <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services service principal>,
    -- which might represent several different grantee principals.
    GrantListEntry -> Maybe Text
granteePrincipal :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Web Services account under which the grant was issued.
    GrantListEntry -> Maybe Text
issuingAccount :: Prelude.Maybe Prelude.Text,
    -- | The unique identifier for the KMS key to which the grant applies.
    GrantListEntry -> Maybe Text
keyId :: Prelude.Maybe Prelude.Text,
    -- | The friendly name that identifies the grant. If a name was provided in
    -- the CreateGrant request, that name is returned. Otherwise this value is
    -- null.
    GrantListEntry -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The list of operations permitted by the grant.
    GrantListEntry -> Maybe [GrantOperation]
operations :: Prelude.Maybe [GrantOperation],
    -- | The principal that can retire the grant.
    GrantListEntry -> Maybe Text
retiringPrincipal :: Prelude.Maybe Prelude.Text
  }
  deriving (GrantListEntry -> GrantListEntry -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GrantListEntry -> GrantListEntry -> Bool
$c/= :: GrantListEntry -> GrantListEntry -> Bool
== :: GrantListEntry -> GrantListEntry -> Bool
$c== :: GrantListEntry -> GrantListEntry -> Bool
Prelude.Eq, ReadPrec [GrantListEntry]
ReadPrec GrantListEntry
Int -> ReadS GrantListEntry
ReadS [GrantListEntry]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GrantListEntry]
$creadListPrec :: ReadPrec [GrantListEntry]
readPrec :: ReadPrec GrantListEntry
$creadPrec :: ReadPrec GrantListEntry
readList :: ReadS [GrantListEntry]
$creadList :: ReadS [GrantListEntry]
readsPrec :: Int -> ReadS GrantListEntry
$creadsPrec :: Int -> ReadS GrantListEntry
Prelude.Read, Int -> GrantListEntry -> ShowS
[GrantListEntry] -> ShowS
GrantListEntry -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GrantListEntry] -> ShowS
$cshowList :: [GrantListEntry] -> ShowS
show :: GrantListEntry -> String
$cshow :: GrantListEntry -> String
showsPrec :: Int -> GrantListEntry -> ShowS
$cshowsPrec :: Int -> GrantListEntry -> ShowS
Prelude.Show, forall x. Rep GrantListEntry x -> GrantListEntry
forall x. GrantListEntry -> Rep GrantListEntry x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GrantListEntry x -> GrantListEntry
$cfrom :: forall x. GrantListEntry -> Rep GrantListEntry x
Prelude.Generic)

-- |
-- Create a value of 'GrantListEntry' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'constraints', 'grantListEntry_constraints' - A list of key-value pairs that must be present in the encryption context
-- of certain subsequent operations that the grant allows.
--
-- 'creationDate', 'grantListEntry_creationDate' - The date and time when the grant was created.
--
-- 'grantId', 'grantListEntry_grantId' - The unique identifier for the grant.
--
-- 'granteePrincipal', 'grantListEntry_granteePrincipal' - The identity that gets the permissions in the grant.
--
-- The @GranteePrincipal@ field in the @ListGrants@ response usually
-- contains the user or role designated as the grantee principal in the
-- grant. However, when the grantee principal in the grant is an Amazon Web
-- Services service, the @GranteePrincipal@ field contains the
-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services service principal>,
-- which might represent several different grantee principals.
--
-- 'issuingAccount', 'grantListEntry_issuingAccount' - The Amazon Web Services account under which the grant was issued.
--
-- 'keyId', 'grantListEntry_keyId' - The unique identifier for the KMS key to which the grant applies.
--
-- 'name', 'grantListEntry_name' - The friendly name that identifies the grant. If a name was provided in
-- the CreateGrant request, that name is returned. Otherwise this value is
-- null.
--
-- 'operations', 'grantListEntry_operations' - The list of operations permitted by the grant.
--
-- 'retiringPrincipal', 'grantListEntry_retiringPrincipal' - The principal that can retire the grant.
newGrantListEntry ::
  GrantListEntry
newGrantListEntry :: GrantListEntry
newGrantListEntry =
  GrantListEntry'
    { $sel:constraints:GrantListEntry' :: Maybe GrantConstraints
constraints = forall a. Maybe a
Prelude.Nothing,
      $sel:creationDate:GrantListEntry' :: Maybe POSIX
creationDate = forall a. Maybe a
Prelude.Nothing,
      $sel:grantId:GrantListEntry' :: Maybe Text
grantId = forall a. Maybe a
Prelude.Nothing,
      $sel:granteePrincipal:GrantListEntry' :: Maybe Text
granteePrincipal = forall a. Maybe a
Prelude.Nothing,
      $sel:issuingAccount:GrantListEntry' :: Maybe Text
issuingAccount = forall a. Maybe a
Prelude.Nothing,
      $sel:keyId:GrantListEntry' :: Maybe Text
keyId = forall a. Maybe a
Prelude.Nothing,
      $sel:name:GrantListEntry' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:operations:GrantListEntry' :: Maybe [GrantOperation]
operations = forall a. Maybe a
Prelude.Nothing,
      $sel:retiringPrincipal:GrantListEntry' :: Maybe Text
retiringPrincipal = forall a. Maybe a
Prelude.Nothing
    }

-- | A list of key-value pairs that must be present in the encryption context
-- of certain subsequent operations that the grant allows.
grantListEntry_constraints :: Lens.Lens' GrantListEntry (Prelude.Maybe GrantConstraints)
grantListEntry_constraints :: Lens' GrantListEntry (Maybe GrantConstraints)
grantListEntry_constraints = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GrantListEntry' {Maybe GrantConstraints
constraints :: Maybe GrantConstraints
$sel:constraints:GrantListEntry' :: GrantListEntry -> Maybe GrantConstraints
constraints} -> Maybe GrantConstraints
constraints) (\s :: GrantListEntry
s@GrantListEntry' {} Maybe GrantConstraints
a -> GrantListEntry
s {$sel:constraints:GrantListEntry' :: Maybe GrantConstraints
constraints = Maybe GrantConstraints
a} :: GrantListEntry)

-- | The date and time when the grant was created.
grantListEntry_creationDate :: Lens.Lens' GrantListEntry (Prelude.Maybe Prelude.UTCTime)
grantListEntry_creationDate :: Lens' GrantListEntry (Maybe UTCTime)
grantListEntry_creationDate = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GrantListEntry' {Maybe POSIX
creationDate :: Maybe POSIX
$sel:creationDate:GrantListEntry' :: GrantListEntry -> Maybe POSIX
creationDate} -> Maybe POSIX
creationDate) (\s :: GrantListEntry
s@GrantListEntry' {} Maybe POSIX
a -> GrantListEntry
s {$sel:creationDate:GrantListEntry' :: Maybe POSIX
creationDate = Maybe POSIX
a} :: GrantListEntry) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The unique identifier for the grant.
grantListEntry_grantId :: Lens.Lens' GrantListEntry (Prelude.Maybe Prelude.Text)
grantListEntry_grantId :: Lens' GrantListEntry (Maybe Text)
grantListEntry_grantId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GrantListEntry' {Maybe Text
grantId :: Maybe Text
$sel:grantId:GrantListEntry' :: GrantListEntry -> Maybe Text
grantId} -> Maybe Text
grantId) (\s :: GrantListEntry
s@GrantListEntry' {} Maybe Text
a -> GrantListEntry
s {$sel:grantId:GrantListEntry' :: Maybe Text
grantId = Maybe Text
a} :: GrantListEntry)

-- | The identity that gets the permissions in the grant.
--
-- The @GranteePrincipal@ field in the @ListGrants@ response usually
-- contains the user or role designated as the grantee principal in the
-- grant. However, when the grantee principal in the grant is an Amazon Web
-- Services service, the @GranteePrincipal@ field contains the
-- <https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html#principal-services service principal>,
-- which might represent several different grantee principals.
grantListEntry_granteePrincipal :: Lens.Lens' GrantListEntry (Prelude.Maybe Prelude.Text)
grantListEntry_granteePrincipal :: Lens' GrantListEntry (Maybe Text)
grantListEntry_granteePrincipal = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GrantListEntry' {Maybe Text
granteePrincipal :: Maybe Text
$sel:granteePrincipal:GrantListEntry' :: GrantListEntry -> Maybe Text
granteePrincipal} -> Maybe Text
granteePrincipal) (\s :: GrantListEntry
s@GrantListEntry' {} Maybe Text
a -> GrantListEntry
s {$sel:granteePrincipal:GrantListEntry' :: Maybe Text
granteePrincipal = Maybe Text
a} :: GrantListEntry)

-- | The Amazon Web Services account under which the grant was issued.
grantListEntry_issuingAccount :: Lens.Lens' GrantListEntry (Prelude.Maybe Prelude.Text)
grantListEntry_issuingAccount :: Lens' GrantListEntry (Maybe Text)
grantListEntry_issuingAccount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GrantListEntry' {Maybe Text
issuingAccount :: Maybe Text
$sel:issuingAccount:GrantListEntry' :: GrantListEntry -> Maybe Text
issuingAccount} -> Maybe Text
issuingAccount) (\s :: GrantListEntry
s@GrantListEntry' {} Maybe Text
a -> GrantListEntry
s {$sel:issuingAccount:GrantListEntry' :: Maybe Text
issuingAccount = Maybe Text
a} :: GrantListEntry)

-- | The unique identifier for the KMS key to which the grant applies.
grantListEntry_keyId :: Lens.Lens' GrantListEntry (Prelude.Maybe Prelude.Text)
grantListEntry_keyId :: Lens' GrantListEntry (Maybe Text)
grantListEntry_keyId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GrantListEntry' {Maybe Text
keyId :: Maybe Text
$sel:keyId:GrantListEntry' :: GrantListEntry -> Maybe Text
keyId} -> Maybe Text
keyId) (\s :: GrantListEntry
s@GrantListEntry' {} Maybe Text
a -> GrantListEntry
s {$sel:keyId:GrantListEntry' :: Maybe Text
keyId = Maybe Text
a} :: GrantListEntry)

-- | The friendly name that identifies the grant. If a name was provided in
-- the CreateGrant request, that name is returned. Otherwise this value is
-- null.
grantListEntry_name :: Lens.Lens' GrantListEntry (Prelude.Maybe Prelude.Text)
grantListEntry_name :: Lens' GrantListEntry (Maybe Text)
grantListEntry_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GrantListEntry' {Maybe Text
name :: Maybe Text
$sel:name:GrantListEntry' :: GrantListEntry -> Maybe Text
name} -> Maybe Text
name) (\s :: GrantListEntry
s@GrantListEntry' {} Maybe Text
a -> GrantListEntry
s {$sel:name:GrantListEntry' :: Maybe Text
name = Maybe Text
a} :: GrantListEntry)

-- | The list of operations permitted by the grant.
grantListEntry_operations :: Lens.Lens' GrantListEntry (Prelude.Maybe [GrantOperation])
grantListEntry_operations :: Lens' GrantListEntry (Maybe [GrantOperation])
grantListEntry_operations = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GrantListEntry' {Maybe [GrantOperation]
operations :: Maybe [GrantOperation]
$sel:operations:GrantListEntry' :: GrantListEntry -> Maybe [GrantOperation]
operations} -> Maybe [GrantOperation]
operations) (\s :: GrantListEntry
s@GrantListEntry' {} Maybe [GrantOperation]
a -> GrantListEntry
s {$sel:operations:GrantListEntry' :: Maybe [GrantOperation]
operations = Maybe [GrantOperation]
a} :: GrantListEntry) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The principal that can retire the grant.
grantListEntry_retiringPrincipal :: Lens.Lens' GrantListEntry (Prelude.Maybe Prelude.Text)
grantListEntry_retiringPrincipal :: Lens' GrantListEntry (Maybe Text)
grantListEntry_retiringPrincipal = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GrantListEntry' {Maybe Text
retiringPrincipal :: Maybe Text
$sel:retiringPrincipal:GrantListEntry' :: GrantListEntry -> Maybe Text
retiringPrincipal} -> Maybe Text
retiringPrincipal) (\s :: GrantListEntry
s@GrantListEntry' {} Maybe Text
a -> GrantListEntry
s {$sel:retiringPrincipal:GrantListEntry' :: Maybe Text
retiringPrincipal = Maybe Text
a} :: GrantListEntry)

instance Data.FromJSON GrantListEntry where
  parseJSON :: Value -> Parser GrantListEntry
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"GrantListEntry"
      ( \Object
x ->
          Maybe GrantConstraints
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe [GrantOperation]
-> Maybe Text
-> GrantListEntry
GrantListEntry'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Constraints")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CreationDate")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"GrantId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"GranteePrincipal")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"IssuingAccount")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"KeyId")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Operations" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"RetiringPrincipal")
      )

instance Prelude.Hashable GrantListEntry where
  hashWithSalt :: Int -> GrantListEntry -> Int
hashWithSalt Int
_salt GrantListEntry' {Maybe [GrantOperation]
Maybe Text
Maybe POSIX
Maybe GrantConstraints
retiringPrincipal :: Maybe Text
operations :: Maybe [GrantOperation]
name :: Maybe Text
keyId :: Maybe Text
issuingAccount :: Maybe Text
granteePrincipal :: Maybe Text
grantId :: Maybe Text
creationDate :: Maybe POSIX
constraints :: Maybe GrantConstraints
$sel:retiringPrincipal:GrantListEntry' :: GrantListEntry -> Maybe Text
$sel:operations:GrantListEntry' :: GrantListEntry -> Maybe [GrantOperation]
$sel:name:GrantListEntry' :: GrantListEntry -> Maybe Text
$sel:keyId:GrantListEntry' :: GrantListEntry -> Maybe Text
$sel:issuingAccount:GrantListEntry' :: GrantListEntry -> Maybe Text
$sel:granteePrincipal:GrantListEntry' :: GrantListEntry -> Maybe Text
$sel:grantId:GrantListEntry' :: GrantListEntry -> Maybe Text
$sel:creationDate:GrantListEntry' :: GrantListEntry -> Maybe POSIX
$sel:constraints:GrantListEntry' :: GrantListEntry -> Maybe GrantConstraints
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe GrantConstraints
constraints
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationDate
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
grantId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
granteePrincipal
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
issuingAccount
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
keyId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [GrantOperation]
operations
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
retiringPrincipal

instance Prelude.NFData GrantListEntry where
  rnf :: GrantListEntry -> ()
rnf GrantListEntry' {Maybe [GrantOperation]
Maybe Text
Maybe POSIX
Maybe GrantConstraints
retiringPrincipal :: Maybe Text
operations :: Maybe [GrantOperation]
name :: Maybe Text
keyId :: Maybe Text
issuingAccount :: Maybe Text
granteePrincipal :: Maybe Text
grantId :: Maybe Text
creationDate :: Maybe POSIX
constraints :: Maybe GrantConstraints
$sel:retiringPrincipal:GrantListEntry' :: GrantListEntry -> Maybe Text
$sel:operations:GrantListEntry' :: GrantListEntry -> Maybe [GrantOperation]
$sel:name:GrantListEntry' :: GrantListEntry -> Maybe Text
$sel:keyId:GrantListEntry' :: GrantListEntry -> Maybe Text
$sel:issuingAccount:GrantListEntry' :: GrantListEntry -> Maybe Text
$sel:granteePrincipal:GrantListEntry' :: GrantListEntry -> Maybe Text
$sel:grantId:GrantListEntry' :: GrantListEntry -> Maybe Text
$sel:creationDate:GrantListEntry' :: GrantListEntry -> Maybe POSIX
$sel:constraints:GrantListEntry' :: GrantListEntry -> Maybe GrantConstraints
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe GrantConstraints
constraints
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationDate
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
grantId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
granteePrincipal
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
issuingAccount
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
keyId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [GrantOperation]
operations
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
retiringPrincipal