{-# 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.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
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 Data.POSIX,
OrganizationConformancePackDetailedStatus -> Text
accountId :: Prelude.Text,
OrganizationConformancePackDetailedStatus -> Text
conformancePackName :: Prelude.Text,
OrganizationConformancePackDetailedStatus
-> OrganizationResourceDetailedStatus
status :: OrganizationResourceDetailedStatus
}
deriving (OrganizationConformancePackDetailedStatus
-> OrganizationConformancePackDetailedStatus -> Bool
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]
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
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.
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'
{ $sel:errorCode:OrganizationConformancePackDetailedStatus' :: Maybe Text
errorCode =
forall a. Maybe a
Prelude.Nothing,
$sel:errorMessage:OrganizationConformancePackDetailedStatus' :: Maybe Text
errorMessage = forall a. Maybe a
Prelude.Nothing,
$sel:lastUpdateTime:OrganizationConformancePackDetailedStatus' :: Maybe POSIX
lastUpdateTime = 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 :: Lens' OrganizationConformancePackDetailedStatus (Maybe Text)
organizationConformancePackDetailedStatus_errorCode = 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 :: Lens' OrganizationConformancePackDetailedStatus (Maybe Text)
organizationConformancePackDetailedStatus_errorMessage = 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 :: Lens' OrganizationConformancePackDetailedStatus (Maybe UTCTime)
organizationConformancePackDetailedStatus_lastUpdateTime = 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) 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
organizationConformancePackDetailedStatus_accountId :: Lens.Lens' OrganizationConformancePackDetailedStatus Prelude.Text
organizationConformancePackDetailedStatus_accountId :: Lens' OrganizationConformancePackDetailedStatus Text
organizationConformancePackDetailedStatus_accountId = 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 :: Lens' OrganizationConformancePackDetailedStatus Text
organizationConformancePackDetailedStatus_conformancePackName = 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 :: Lens'
OrganizationConformancePackDetailedStatus
OrganizationResourceDetailedStatus
organizationConformancePackDetailedStatus_status = 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
Data.FromJSON
OrganizationConformancePackDetailedStatus
where
parseJSON :: Value -> Parser OrganizationConformancePackDetailedStatus
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"OrganizationConformancePackDetailedStatus"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Text
-> Text
-> OrganizationResourceDetailedStatus
-> OrganizationConformancePackDetailedStatus
OrganizationConformancePackDetailedStatus'
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
"ErrorCode")
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
"ErrorMessage")
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
"LastUpdateTime")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"AccountId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"ConformancePackName")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"Status")
)
instance
Prelude.Hashable
OrganizationConformancePackDetailedStatus
where
hashWithSalt :: Int -> OrganizationConformancePackDetailedStatus -> Int
hashWithSalt
Int
_salt
OrganizationConformancePackDetailedStatus' {Maybe Text
Maybe POSIX
Text
OrganizationResourceDetailedStatus
status :: OrganizationResourceDetailedStatus
conformancePackName :: Text
accountId :: Text
lastUpdateTime :: Maybe POSIX
errorMessage :: Maybe Text
errorCode :: Maybe Text
$sel:status:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus
-> OrganizationResourceDetailedStatus
$sel:conformancePackName:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Text
$sel:accountId:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Text
$sel:lastUpdateTime:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Maybe POSIX
$sel:errorMessage:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Maybe Text
$sel:errorCode:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
errorCode
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
errorMessage
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdateTime
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
accountId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
conformancePackName
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` OrganizationResourceDetailedStatus
status
instance
Prelude.NFData
OrganizationConformancePackDetailedStatus
where
rnf :: OrganizationConformancePackDetailedStatus -> ()
rnf OrganizationConformancePackDetailedStatus' {Maybe Text
Maybe POSIX
Text
OrganizationResourceDetailedStatus
status :: OrganizationResourceDetailedStatus
conformancePackName :: Text
accountId :: Text
lastUpdateTime :: Maybe POSIX
errorMessage :: Maybe Text
errorCode :: Maybe Text
$sel:status:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus
-> OrganizationResourceDetailedStatus
$sel:conformancePackName:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Text
$sel:accountId:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Text
$sel:lastUpdateTime:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Maybe POSIX
$sel:errorMessage:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Maybe Text
$sel:errorCode:OrganizationConformancePackDetailedStatus' :: OrganizationConformancePackDetailedStatus -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
errorCode
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
errorMessage
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdateTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
accountId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
conformancePackName
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf OrganizationResourceDetailedStatus
status