{-# 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.SSOAdmin.Types.PermissionSetProvisioningStatusMetadata where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SSOAdmin.Types.StatusValues
data PermissionSetProvisioningStatusMetadata = PermissionSetProvisioningStatusMetadata'
{
PermissionSetProvisioningStatusMetadata -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
PermissionSetProvisioningStatusMetadata -> Maybe StatusValues
status :: Prelude.Maybe StatusValues,
PermissionSetProvisioningStatusMetadata -> Maybe POSIX
createdDate :: Prelude.Maybe Core.POSIX
}
deriving (PermissionSetProvisioningStatusMetadata
-> PermissionSetProvisioningStatusMetadata -> Bool
(PermissionSetProvisioningStatusMetadata
-> PermissionSetProvisioningStatusMetadata -> Bool)
-> (PermissionSetProvisioningStatusMetadata
-> PermissionSetProvisioningStatusMetadata -> Bool)
-> Eq PermissionSetProvisioningStatusMetadata
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PermissionSetProvisioningStatusMetadata
-> PermissionSetProvisioningStatusMetadata -> Bool
$c/= :: PermissionSetProvisioningStatusMetadata
-> PermissionSetProvisioningStatusMetadata -> Bool
== :: PermissionSetProvisioningStatusMetadata
-> PermissionSetProvisioningStatusMetadata -> Bool
$c== :: PermissionSetProvisioningStatusMetadata
-> PermissionSetProvisioningStatusMetadata -> Bool
Prelude.Eq, ReadPrec [PermissionSetProvisioningStatusMetadata]
ReadPrec PermissionSetProvisioningStatusMetadata
Int -> ReadS PermissionSetProvisioningStatusMetadata
ReadS [PermissionSetProvisioningStatusMetadata]
(Int -> ReadS PermissionSetProvisioningStatusMetadata)
-> ReadS [PermissionSetProvisioningStatusMetadata]
-> ReadPrec PermissionSetProvisioningStatusMetadata
-> ReadPrec [PermissionSetProvisioningStatusMetadata]
-> Read PermissionSetProvisioningStatusMetadata
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PermissionSetProvisioningStatusMetadata]
$creadListPrec :: ReadPrec [PermissionSetProvisioningStatusMetadata]
readPrec :: ReadPrec PermissionSetProvisioningStatusMetadata
$creadPrec :: ReadPrec PermissionSetProvisioningStatusMetadata
readList :: ReadS [PermissionSetProvisioningStatusMetadata]
$creadList :: ReadS [PermissionSetProvisioningStatusMetadata]
readsPrec :: Int -> ReadS PermissionSetProvisioningStatusMetadata
$creadsPrec :: Int -> ReadS PermissionSetProvisioningStatusMetadata
Prelude.Read, Int -> PermissionSetProvisioningStatusMetadata -> ShowS
[PermissionSetProvisioningStatusMetadata] -> ShowS
PermissionSetProvisioningStatusMetadata -> String
(Int -> PermissionSetProvisioningStatusMetadata -> ShowS)
-> (PermissionSetProvisioningStatusMetadata -> String)
-> ([PermissionSetProvisioningStatusMetadata] -> ShowS)
-> Show PermissionSetProvisioningStatusMetadata
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PermissionSetProvisioningStatusMetadata] -> ShowS
$cshowList :: [PermissionSetProvisioningStatusMetadata] -> ShowS
show :: PermissionSetProvisioningStatusMetadata -> String
$cshow :: PermissionSetProvisioningStatusMetadata -> String
showsPrec :: Int -> PermissionSetProvisioningStatusMetadata -> ShowS
$cshowsPrec :: Int -> PermissionSetProvisioningStatusMetadata -> ShowS
Prelude.Show, (forall x.
PermissionSetProvisioningStatusMetadata
-> Rep PermissionSetProvisioningStatusMetadata x)
-> (forall x.
Rep PermissionSetProvisioningStatusMetadata x
-> PermissionSetProvisioningStatusMetadata)
-> Generic PermissionSetProvisioningStatusMetadata
forall x.
Rep PermissionSetProvisioningStatusMetadata x
-> PermissionSetProvisioningStatusMetadata
forall x.
PermissionSetProvisioningStatusMetadata
-> Rep PermissionSetProvisioningStatusMetadata x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PermissionSetProvisioningStatusMetadata x
-> PermissionSetProvisioningStatusMetadata
$cfrom :: forall x.
PermissionSetProvisioningStatusMetadata
-> Rep PermissionSetProvisioningStatusMetadata x
Prelude.Generic)
newPermissionSetProvisioningStatusMetadata ::
PermissionSetProvisioningStatusMetadata
newPermissionSetProvisioningStatusMetadata :: PermissionSetProvisioningStatusMetadata
newPermissionSetProvisioningStatusMetadata =
PermissionSetProvisioningStatusMetadata' :: Maybe Text
-> Maybe StatusValues
-> Maybe POSIX
-> PermissionSetProvisioningStatusMetadata
PermissionSetProvisioningStatusMetadata'
{ $sel:requestId:PermissionSetProvisioningStatusMetadata' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:PermissionSetProvisioningStatusMetadata' :: Maybe StatusValues
status = Maybe StatusValues
forall a. Maybe a
Prelude.Nothing,
$sel:createdDate:PermissionSetProvisioningStatusMetadata' :: Maybe POSIX
createdDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
}
permissionSetProvisioningStatusMetadata_requestId :: Lens.Lens' PermissionSetProvisioningStatusMetadata (Prelude.Maybe Prelude.Text)
permissionSetProvisioningStatusMetadata_requestId :: (Maybe Text -> f (Maybe Text))
-> PermissionSetProvisioningStatusMetadata
-> f PermissionSetProvisioningStatusMetadata
permissionSetProvisioningStatusMetadata_requestId = (PermissionSetProvisioningStatusMetadata -> Maybe Text)
-> (PermissionSetProvisioningStatusMetadata
-> Maybe Text -> PermissionSetProvisioningStatusMetadata)
-> Lens
PermissionSetProvisioningStatusMetadata
PermissionSetProvisioningStatusMetadata
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PermissionSetProvisioningStatusMetadata' {Maybe Text
requestId :: Maybe Text
$sel:requestId:PermissionSetProvisioningStatusMetadata' :: PermissionSetProvisioningStatusMetadata -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: PermissionSetProvisioningStatusMetadata
s@PermissionSetProvisioningStatusMetadata' {} Maybe Text
a -> PermissionSetProvisioningStatusMetadata
s {$sel:requestId:PermissionSetProvisioningStatusMetadata' :: Maybe Text
requestId = Maybe Text
a} :: PermissionSetProvisioningStatusMetadata)
permissionSetProvisioningStatusMetadata_status :: Lens.Lens' PermissionSetProvisioningStatusMetadata (Prelude.Maybe StatusValues)
permissionSetProvisioningStatusMetadata_status :: (Maybe StatusValues -> f (Maybe StatusValues))
-> PermissionSetProvisioningStatusMetadata
-> f PermissionSetProvisioningStatusMetadata
permissionSetProvisioningStatusMetadata_status = (PermissionSetProvisioningStatusMetadata -> Maybe StatusValues)
-> (PermissionSetProvisioningStatusMetadata
-> Maybe StatusValues -> PermissionSetProvisioningStatusMetadata)
-> Lens
PermissionSetProvisioningStatusMetadata
PermissionSetProvisioningStatusMetadata
(Maybe StatusValues)
(Maybe StatusValues)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PermissionSetProvisioningStatusMetadata' {Maybe StatusValues
status :: Maybe StatusValues
$sel:status:PermissionSetProvisioningStatusMetadata' :: PermissionSetProvisioningStatusMetadata -> Maybe StatusValues
status} -> Maybe StatusValues
status) (\s :: PermissionSetProvisioningStatusMetadata
s@PermissionSetProvisioningStatusMetadata' {} Maybe StatusValues
a -> PermissionSetProvisioningStatusMetadata
s {$sel:status:PermissionSetProvisioningStatusMetadata' :: Maybe StatusValues
status = Maybe StatusValues
a} :: PermissionSetProvisioningStatusMetadata)
permissionSetProvisioningStatusMetadata_createdDate :: Lens.Lens' PermissionSetProvisioningStatusMetadata (Prelude.Maybe Prelude.UTCTime)
permissionSetProvisioningStatusMetadata_createdDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PermissionSetProvisioningStatusMetadata
-> f PermissionSetProvisioningStatusMetadata
permissionSetProvisioningStatusMetadata_createdDate = (PermissionSetProvisioningStatusMetadata -> Maybe POSIX)
-> (PermissionSetProvisioningStatusMetadata
-> Maybe POSIX -> PermissionSetProvisioningStatusMetadata)
-> Lens
PermissionSetProvisioningStatusMetadata
PermissionSetProvisioningStatusMetadata
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PermissionSetProvisioningStatusMetadata' {Maybe POSIX
createdDate :: Maybe POSIX
$sel:createdDate:PermissionSetProvisioningStatusMetadata' :: PermissionSetProvisioningStatusMetadata -> Maybe POSIX
createdDate} -> Maybe POSIX
createdDate) (\s :: PermissionSetProvisioningStatusMetadata
s@PermissionSetProvisioningStatusMetadata' {} Maybe POSIX
a -> PermissionSetProvisioningStatusMetadata
s {$sel:createdDate:PermissionSetProvisioningStatusMetadata' :: Maybe POSIX
createdDate = Maybe POSIX
a} :: PermissionSetProvisioningStatusMetadata) ((Maybe POSIX -> f (Maybe POSIX))
-> PermissionSetProvisioningStatusMetadata
-> f PermissionSetProvisioningStatusMetadata)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PermissionSetProvisioningStatusMetadata
-> f PermissionSetProvisioningStatusMetadata
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
instance
Core.FromJSON
PermissionSetProvisioningStatusMetadata
where
parseJSON :: Value -> Parser PermissionSetProvisioningStatusMetadata
parseJSON =
String
-> (Object -> Parser PermissionSetProvisioningStatusMetadata)
-> Value
-> Parser PermissionSetProvisioningStatusMetadata
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"PermissionSetProvisioningStatusMetadata"
( \Object
x ->
Maybe Text
-> Maybe StatusValues
-> Maybe POSIX
-> PermissionSetProvisioningStatusMetadata
PermissionSetProvisioningStatusMetadata'
(Maybe Text
-> Maybe StatusValues
-> Maybe POSIX
-> PermissionSetProvisioningStatusMetadata)
-> Parser (Maybe Text)
-> Parser
(Maybe StatusValues
-> Maybe POSIX -> PermissionSetProvisioningStatusMetadata)
forall (f :: * -> *) a b. Functor 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
"RequestId")
Parser
(Maybe StatusValues
-> Maybe POSIX -> PermissionSetProvisioningStatusMetadata)
-> Parser (Maybe StatusValues)
-> Parser (Maybe POSIX -> PermissionSetProvisioningStatusMetadata)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe StatusValues)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Status")
Parser (Maybe POSIX -> PermissionSetProvisioningStatusMetadata)
-> Parser (Maybe POSIX)
-> Parser PermissionSetProvisioningStatusMetadata
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
"CreatedDate")
)
instance
Prelude.Hashable
PermissionSetProvisioningStatusMetadata
instance
Prelude.NFData
PermissionSetProvisioningStatusMetadata