{-# 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.Config.Types.OrganizationConformancePackDetailedStatus
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | Organization conformance pack creation or deletion status in each member
-- account. This includes the name of the conformance pack, the status,
-- error code and error message when the conformance pack creation or
-- deletion failed.
--
-- /See:/ 'newOrganizationConformancePackDetailedStatus' smart constructor.
data OrganizationConformancePackDetailedStatus = OrganizationConformancePackDetailedStatus'
  { -- | An error code that is returned when conformance pack creation or
    -- deletion failed in the member account.
    OrganizationConformancePackDetailedStatus -> Maybe Text
errorCode :: Prelude.Maybe Prelude.Text,
    -- | An error message indicating that conformance pack account creation or
    -- deletion has failed due to an error in the member account.
    OrganizationConformancePackDetailedStatus -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
    -- | The timestamp of the last status update.
    OrganizationConformancePackDetailedStatus -> Maybe POSIX
lastUpdateTime :: Prelude.Maybe Core.POSIX,
    -- | The 12-digit account ID of a member account.
    OrganizationConformancePackDetailedStatus -> Text
accountId :: Prelude.Text,
    -- | The name of conformance pack deployed in the member account.
    OrganizationConformancePackDetailedStatus -> Text
conformancePackName :: Prelude.Text,
    -- | Indicates deployment status for conformance pack in a member account.
    -- When master account calls @PutOrganizationConformancePack@ action for
    -- the first time, conformance pack status is created in the member
    -- account. When master account calls @PutOrganizationConformancePack@
    -- action for the second time, conformance pack status is updated in the
    -- member account. Conformance pack status is deleted when the master
    -- account deletes @OrganizationConformancePack@ and disables service
    -- access for @config-multiaccountsetup.amazonaws.com@.
    --
    -- Config sets the state of the conformance pack to:
    --
    -- -   @CREATE_SUCCESSFUL@ when conformance pack has been created in the
    --     member account.
    --
    -- -   @CREATE_IN_PROGRESS@ when conformance pack is being created in the
    --     member account.
    --
    -- -   @CREATE_FAILED@ when conformance pack creation has failed in the
    --     member account.
    --
    -- -   @DELETE_FAILED@ when conformance pack deletion has failed in the
    --     member account.
    --
    -- -   @DELETE_IN_PROGRESS@ when conformance pack is being deleted in the
    --     member account.
    --
    -- -   @DELETE_SUCCESSFUL@ when conformance pack has been deleted in the
    --     member account.
    --
    -- -   @UPDATE_SUCCESSFUL@ when conformance pack has been updated in the
    --     member account.
    --
    -- -   @UPDATE_IN_PROGRESS@ when conformance pack is being updated in the
    --     member account.
    --
    -- -   @UPDATE_FAILED@ when conformance pack deletion has failed in the
    --     member account.
    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)

-- |
-- Create a value of 'OrganizationConformancePackDetailedStatus' 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:
--
-- 'errorCode', 'organizationConformancePackDetailedStatus_errorCode' - An error code that is returned when conformance pack creation or
-- deletion failed in the member account.
--
-- 'errorMessage', 'organizationConformancePackDetailedStatus_errorMessage' - An error message indicating that conformance pack account creation or
-- deletion has failed due to an error in the member account.
--
-- 'lastUpdateTime', 'organizationConformancePackDetailedStatus_lastUpdateTime' - The timestamp of the last status update.
--
-- 'accountId', 'organizationConformancePackDetailedStatus_accountId' - The 12-digit account ID of a member account.
--
-- 'conformancePackName', 'organizationConformancePackDetailedStatus_conformancePackName' - The name of conformance pack deployed in the member account.
--
-- 'status', 'organizationConformancePackDetailedStatus_status' - Indicates deployment status for conformance pack in a member account.
-- When master account calls @PutOrganizationConformancePack@ action for
-- the first time, conformance pack status is created in the member
-- account. When master account calls @PutOrganizationConformancePack@
-- action for the second time, conformance pack status is updated in the
-- member account. Conformance pack status is deleted when the master
-- account deletes @OrganizationConformancePack@ and disables service
-- access for @config-multiaccountsetup.amazonaws.com@.
--
-- Config sets the state of the conformance pack to:
--
-- -   @CREATE_SUCCESSFUL@ when conformance pack has been created in the
--     member account.
--
-- -   @CREATE_IN_PROGRESS@ when conformance pack is being created in the
--     member account.
--
-- -   @CREATE_FAILED@ when conformance pack creation has failed in the
--     member account.
--
-- -   @DELETE_FAILED@ when conformance pack deletion has failed in the
--     member account.
--
-- -   @DELETE_IN_PROGRESS@ when conformance pack is being deleted in the
--     member account.
--
-- -   @DELETE_SUCCESSFUL@ when conformance pack has been deleted in the
--     member account.
--
-- -   @UPDATE_SUCCESSFUL@ when conformance pack has been updated in the
--     member account.
--
-- -   @UPDATE_IN_PROGRESS@ when conformance pack is being updated in the
--     member account.
--
-- -   @UPDATE_FAILED@ when conformance pack deletion has failed in the
--     member account.
newOrganizationConformancePackDetailedStatus ::
  -- | 'accountId'
  Prelude.Text ->
  -- | 'conformancePackName'
  Prelude.Text ->
  -- | 'status'
  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_
      }

-- | An error code that is returned when conformance pack creation or
-- deletion failed in the member account.
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)

-- | An error message indicating that conformance pack account creation or
-- deletion has failed due to an error in the member account.
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)

-- | The timestamp of the last status update.
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

-- | The 12-digit account ID of a member account.
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)

-- | The name of conformance pack deployed in the member account.
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)

-- | Indicates deployment status for conformance pack in a member account.
-- When master account calls @PutOrganizationConformancePack@ action for
-- the first time, conformance pack status is created in the member
-- account. When master account calls @PutOrganizationConformancePack@
-- action for the second time, conformance pack status is updated in the
-- member account. Conformance pack status is deleted when the master
-- account deletes @OrganizationConformancePack@ and disables service
-- access for @config-multiaccountsetup.amazonaws.com@.
--
-- Config sets the state of the conformance pack to:
--
-- -   @CREATE_SUCCESSFUL@ when conformance pack has been created in the
--     member account.
--
-- -   @CREATE_IN_PROGRESS@ when conformance pack is being created in the
--     member account.
--
-- -   @CREATE_FAILED@ when conformance pack creation has failed in the
--     member account.
--
-- -   @DELETE_FAILED@ when conformance pack deletion has failed in the
--     member account.
--
-- -   @DELETE_IN_PROGRESS@ when conformance pack is being deleted in the
--     member account.
--
-- -   @DELETE_SUCCESSFUL@ when conformance pack has been deleted in the
--     member account.
--
-- -   @UPDATE_SUCCESSFUL@ when conformance pack has been updated in the
--     member account.
--
-- -   @UPDATE_IN_PROGRESS@ when conformance pack is being updated in the
--     member account.
--
-- -   @UPDATE_FAILED@ when conformance pack deletion has failed in the
--     member account.
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