{-# 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.Config.Types.OrganizationConformancePackDetailedStatus where
import Amazonka.Config.Types.OrganizationResourceDetailedStatus
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data OrganizationConformancePackDetailedStatus = OrganizationConformancePackDetailedStatus'
{
OrganizationConformancePackDetailedStatus -> Maybe Text
errorCode :: Prelude.Maybe Prelude.Text,
OrganizationConformancePackDetailedStatus -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
OrganizationConformancePackDetailedStatus -> Maybe POSIX
lastUpdateTime :: Prelude.Maybe Core.POSIX,
OrganizationConformancePackDetailedStatus -> Text
accountId :: Prelude.Text,
OrganizationConformancePackDetailedStatus -> Text
conformancePackName :: Prelude.Text,
OrganizationConformancePackDetailedStatus
-> OrganizationResourceDetailedStatus
status :: OrganizationResourceDetailedStatus
}
deriving (OrganizationConformancePackDetailedStatus
-> OrganizationConformancePackDetailedStatus -> Bool
(OrganizationConformancePackDetailedStatus
-> OrganizationConformancePackDetailedStatus -> Bool)
-> (OrganizationConformancePackDetailedStatus
-> OrganizationConformancePackDetailedStatus -> Bool)
-> Eq OrganizationConformancePackDetailedStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: OrganizationConformancePackDetailedStatus
-> OrganizationConformancePackDetailedStatus -> Bool
$c/= :: OrganizationConformancePackDetailedStatus
-> OrganizationConformancePackDetailedStatus -> Bool
== :: OrganizationConformancePackDetailedStatus
-> OrganizationConformancePackDetailedStatus -> Bool
$c== :: OrganizationConformancePackDetailedStatus
-> OrganizationConformancePackDetailedStatus -> Bool
Prelude.Eq, ReadPrec [OrganizationConformancePackDetailedStatus]
ReadPrec OrganizationConformancePackDetailedStatus
Int -> ReadS OrganizationConformancePackDetailedStatus
ReadS [OrganizationConformancePackDetailedStatus]
(Int -> ReadS OrganizationConformancePackDetailedStatus)
-> ReadS [OrganizationConformancePackDetailedStatus]
-> ReadPrec OrganizationConformancePackDetailedStatus
-> ReadPrec [OrganizationConformancePackDetailedStatus]
-> Read OrganizationConformancePackDetailedStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [OrganizationConformancePackDetailedStatus]
$creadListPrec :: ReadPrec [OrganizationConformancePackDetailedStatus]
readPrec :: ReadPrec OrganizationConformancePackDetailedStatus
$creadPrec :: ReadPrec OrganizationConformancePackDetailedStatus
readList :: ReadS [OrganizationConformancePackDetailedStatus]
$creadList :: ReadS [OrganizationConformancePackDetailedStatus]
readsPrec :: Int -> ReadS OrganizationConformancePackDetailedStatus
$creadsPrec :: Int -> ReadS OrganizationConformancePackDetailedStatus
Prelude.Read, Int -> OrganizationConformancePackDetailedStatus -> ShowS
[OrganizationConformancePackDetailedStatus] -> ShowS
OrganizationConformancePackDetailedStatus -> String
(Int -> OrganizationConformancePackDetailedStatus -> ShowS)
-> (OrganizationConformancePackDetailedStatus -> String)
-> ([OrganizationConformancePackDetailedStatus] -> ShowS)
-> Show OrganizationConformancePackDetailedStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [OrganizationConformancePackDetailedStatus] -> ShowS
$cshowList :: [OrganizationConformancePackDetailedStatus] -> ShowS
show :: OrganizationConformancePackDetailedStatus -> String
$cshow :: OrganizationConformancePackDetailedStatus -> String
showsPrec :: Int -> OrganizationConformancePackDetailedStatus -> ShowS
$cshowsPrec :: Int -> OrganizationConformancePackDetailedStatus -> ShowS
Prelude.Show, (forall x.
OrganizationConformancePackDetailedStatus
-> Rep OrganizationConformancePackDetailedStatus x)
-> (forall x.
Rep OrganizationConformancePackDetailedStatus x
-> OrganizationConformancePackDetailedStatus)
-> Generic OrganizationConformancePackDetailedStatus
forall x.
Rep OrganizationConformancePackDetailedStatus x
-> OrganizationConformancePackDetailedStatus
forall x.
OrganizationConformancePackDetailedStatus
-> Rep OrganizationConformancePackDetailedStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep OrganizationConformancePackDetailedStatus x
-> OrganizationConformancePackDetailedStatus
$cfrom :: forall x.
OrganizationConformancePackDetailedStatus
-> Rep OrganizationConformancePackDetailedStatus x
Prelude.Generic)
newOrganizationConformancePackDetailedStatus ::
Prelude.Text ->
Prelude.Text ->
OrganizationResourceDetailedStatus ->
OrganizationConformancePackDetailedStatus
newOrganizationConformancePackDetailedStatus :: Text
-> Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus
newOrganizationConformancePackDetailedStatus
Text
pAccountId_
Text
pConformancePackName_
OrganizationResourceDetailedStatus
pStatus_ =
OrganizationConformancePackDetailedStatus' :: Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Text
-> Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus
OrganizationConformancePackDetailedStatus'
{ $sel:errorCode:OrganizationConformancePackDetailedStatus' :: Maybe Text
errorCode =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:errorMessage:OrganizationConformancePackDetailedStatus' :: Maybe Text
errorMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdateTime:OrganizationConformancePackDetailedStatus' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:accountId:OrganizationConformancePackDetailedStatus' :: Text
accountId = Text
pAccountId_,
$sel:conformancePackName:OrganizationConformancePackDetailedStatus' :: Text
conformancePackName =
Text
pConformancePackName_,
$sel:status:OrganizationConformancePackDetailedStatus' :: OrganizationResourceDetailedStatus
status = OrganizationResourceDetailedStatus
pStatus_
}
organizationConformancePackDetailedStatus_errorCode :: Lens.Lens' OrganizationConformancePackDetailedStatus (Prelude.Maybe Prelude.Text)
organizationConformancePackDetailedStatus_errorCode :: (Maybe Text -> f (Maybe Text))
-> OrganizationConformancePackDetailedStatus
-> f OrganizationConformancePackDetailedStatus
organizationConformancePackDetailedStatus_errorCode = (OrganizationConformancePackDetailedStatus -> Maybe Text)
-> (OrganizationConformancePackDetailedStatus
-> Maybe Text -> OrganizationConformancePackDetailedStatus)
-> Lens
OrganizationConformancePackDetailedStatus
OrganizationConformancePackDetailedStatus
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrganizationConformancePackDetailedStatus' {Maybe Text
errorCode :: Maybe Text
$sel:errorCode:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Maybe Text
errorCode} -> Maybe Text
errorCode) (\s :: OrganizationConformancePackDetailedStatus
s@OrganizationConformancePackDetailedStatus' {} Maybe Text
a -> OrganizationConformancePackDetailedStatus
s {$sel:errorCode:OrganizationConformancePackDetailedStatus' :: Maybe Text
errorCode = Maybe Text
a} :: OrganizationConformancePackDetailedStatus)
organizationConformancePackDetailedStatus_errorMessage :: Lens.Lens' OrganizationConformancePackDetailedStatus (Prelude.Maybe Prelude.Text)
organizationConformancePackDetailedStatus_errorMessage :: (Maybe Text -> f (Maybe Text))
-> OrganizationConformancePackDetailedStatus
-> f OrganizationConformancePackDetailedStatus
organizationConformancePackDetailedStatus_errorMessage = (OrganizationConformancePackDetailedStatus -> Maybe Text)
-> (OrganizationConformancePackDetailedStatus
-> Maybe Text -> OrganizationConformancePackDetailedStatus)
-> Lens
OrganizationConformancePackDetailedStatus
OrganizationConformancePackDetailedStatus
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrganizationConformancePackDetailedStatus' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: OrganizationConformancePackDetailedStatus
s@OrganizationConformancePackDetailedStatus' {} Maybe Text
a -> OrganizationConformancePackDetailedStatus
s {$sel:errorMessage:OrganizationConformancePackDetailedStatus' :: Maybe Text
errorMessage = Maybe Text
a} :: OrganizationConformancePackDetailedStatus)
organizationConformancePackDetailedStatus_lastUpdateTime :: Lens.Lens' OrganizationConformancePackDetailedStatus (Prelude.Maybe Prelude.UTCTime)
organizationConformancePackDetailedStatus_lastUpdateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> OrganizationConformancePackDetailedStatus
-> f OrganizationConformancePackDetailedStatus
organizationConformancePackDetailedStatus_lastUpdateTime = (OrganizationConformancePackDetailedStatus -> Maybe POSIX)
-> (OrganizationConformancePackDetailedStatus
-> Maybe POSIX -> OrganizationConformancePackDetailedStatus)
-> Lens
OrganizationConformancePackDetailedStatus
OrganizationConformancePackDetailedStatus
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrganizationConformancePackDetailedStatus' {Maybe POSIX
lastUpdateTime :: Maybe POSIX
$sel:lastUpdateTime:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Maybe POSIX
lastUpdateTime} -> Maybe POSIX
lastUpdateTime) (\s :: OrganizationConformancePackDetailedStatus
s@OrganizationConformancePackDetailedStatus' {} Maybe POSIX
a -> OrganizationConformancePackDetailedStatus
s {$sel:lastUpdateTime:OrganizationConformancePackDetailedStatus' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
a} :: OrganizationConformancePackDetailedStatus) ((Maybe POSIX -> f (Maybe POSIX))
-> OrganizationConformancePackDetailedStatus
-> f OrganizationConformancePackDetailedStatus)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> OrganizationConformancePackDetailedStatus
-> f OrganizationConformancePackDetailedStatus
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
organizationConformancePackDetailedStatus_accountId :: Lens.Lens' OrganizationConformancePackDetailedStatus Prelude.Text
organizationConformancePackDetailedStatus_accountId :: (Text -> f Text)
-> OrganizationConformancePackDetailedStatus
-> f OrganizationConformancePackDetailedStatus
organizationConformancePackDetailedStatus_accountId = (OrganizationConformancePackDetailedStatus -> Text)
-> (OrganizationConformancePackDetailedStatus
-> Text -> OrganizationConformancePackDetailedStatus)
-> Lens
OrganizationConformancePackDetailedStatus
OrganizationConformancePackDetailedStatus
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrganizationConformancePackDetailedStatus' {Text
accountId :: Text
$sel:accountId:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Text
accountId} -> Text
accountId) (\s :: OrganizationConformancePackDetailedStatus
s@OrganizationConformancePackDetailedStatus' {} Text
a -> OrganizationConformancePackDetailedStatus
s {$sel:accountId:OrganizationConformancePackDetailedStatus' :: Text
accountId = Text
a} :: OrganizationConformancePackDetailedStatus)
organizationConformancePackDetailedStatus_conformancePackName :: Lens.Lens' OrganizationConformancePackDetailedStatus Prelude.Text
organizationConformancePackDetailedStatus_conformancePackName :: (Text -> f Text)
-> OrganizationConformancePackDetailedStatus
-> f OrganizationConformancePackDetailedStatus
organizationConformancePackDetailedStatus_conformancePackName = (OrganizationConformancePackDetailedStatus -> Text)
-> (OrganizationConformancePackDetailedStatus
-> Text -> OrganizationConformancePackDetailedStatus)
-> Lens
OrganizationConformancePackDetailedStatus
OrganizationConformancePackDetailedStatus
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrganizationConformancePackDetailedStatus' {Text
conformancePackName :: Text
$sel:conformancePackName:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Text
conformancePackName} -> Text
conformancePackName) (\s :: OrganizationConformancePackDetailedStatus
s@OrganizationConformancePackDetailedStatus' {} Text
a -> OrganizationConformancePackDetailedStatus
s {$sel:conformancePackName:OrganizationConformancePackDetailedStatus' :: Text
conformancePackName = Text
a} :: OrganizationConformancePackDetailedStatus)
organizationConformancePackDetailedStatus_status :: Lens.Lens' OrganizationConformancePackDetailedStatus OrganizationResourceDetailedStatus
organizationConformancePackDetailedStatus_status :: (OrganizationResourceDetailedStatus
-> f OrganizationResourceDetailedStatus)
-> OrganizationConformancePackDetailedStatus
-> f OrganizationConformancePackDetailedStatus
organizationConformancePackDetailedStatus_status = (OrganizationConformancePackDetailedStatus
-> OrganizationResourceDetailedStatus)
-> (OrganizationConformancePackDetailedStatus
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus)
-> Lens
OrganizationConformancePackDetailedStatus
OrganizationConformancePackDetailedStatus
OrganizationResourceDetailedStatus
OrganizationResourceDetailedStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\OrganizationConformancePackDetailedStatus' {OrganizationResourceDetailedStatus
status :: OrganizationResourceDetailedStatus
$sel:status:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus
-> OrganizationResourceDetailedStatus
status} -> OrganizationResourceDetailedStatus
status) (\s :: OrganizationConformancePackDetailedStatus
s@OrganizationConformancePackDetailedStatus' {} OrganizationResourceDetailedStatus
a -> OrganizationConformancePackDetailedStatus
s {$sel:status:OrganizationConformancePackDetailedStatus' :: OrganizationResourceDetailedStatus
status = OrganizationResourceDetailedStatus
a} :: OrganizationConformancePackDetailedStatus)
instance
Core.FromJSON
OrganizationConformancePackDetailedStatus
where
parseJSON :: Value -> Parser OrganizationConformancePackDetailedStatus
parseJSON =
String
-> (Object -> Parser OrganizationConformancePackDetailedStatus)
-> Value
-> Parser OrganizationConformancePackDetailedStatus
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"OrganizationConformancePackDetailedStatus"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Text
-> Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus
OrganizationConformancePackDetailedStatus'
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Text
-> Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Text
-> Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus)
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
"ErrorCode")
Parser
(Maybe Text
-> Maybe POSIX
-> Text
-> Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Text
-> Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus)
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
"ErrorMessage")
Parser
(Maybe POSIX
-> Text
-> Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus)
-> Parser (Maybe POSIX)
-> Parser
(Text
-> Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus)
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
"LastUpdateTime")
Parser
(Text
-> Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus)
-> Parser Text
-> Parser
(Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"AccountId")
Parser
(Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus)
-> Parser Text
-> Parser
(OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"ConformancePackName")
Parser
(OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus)
-> Parser OrganizationResourceDetailedStatus
-> Parser OrganizationConformancePackDetailedStatus
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser OrganizationResourceDetailedStatus
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"Status")
)
instance
Prelude.Hashable
OrganizationConformancePackDetailedStatus
instance
Prelude.NFData
OrganizationConformancePackDetailedStatus