{-# 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.AggregatedSourceStatus
-- 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.AggregatedSourceStatus where

import Amazonka.Config.Types.AggregatedSourceStatusType
import Amazonka.Config.Types.AggregatedSourceType
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The current sync status between the source and the aggregator account.
--
-- /See:/ 'newAggregatedSourceStatus' smart constructor.
data AggregatedSourceStatus = AggregatedSourceStatus'
  { -- | The error code that Config returned when the source account aggregation
    -- last failed.
    AggregatedSourceStatus -> Maybe Text
lastErrorCode :: Prelude.Maybe Prelude.Text,
    -- | Filters the last updated status type.
    --
    -- -   Valid value FAILED indicates errors while moving data.
    --
    -- -   Valid value SUCCEEDED indicates the data was successfully moved.
    --
    -- -   Valid value OUTDATED indicates the data is not the most recent.
    AggregatedSourceStatus -> Maybe AggregatedSourceStatusType
lastUpdateStatus :: Prelude.Maybe AggregatedSourceStatusType,
    -- | The source account or an organization.
    AggregatedSourceStatus -> Maybe AggregatedSourceType
sourceType :: Prelude.Maybe AggregatedSourceType,
    -- | The source account ID or an organization.
    AggregatedSourceStatus -> Maybe Text
sourceId :: Prelude.Maybe Prelude.Text,
    -- | The message indicating that the source account aggregation failed due to
    -- an error.
    AggregatedSourceStatus -> Maybe Text
lastErrorMessage :: Prelude.Maybe Prelude.Text,
    -- | The region authorized to collect aggregated data.
    AggregatedSourceStatus -> Maybe Text
awsRegion :: Prelude.Maybe Prelude.Text,
    -- | The time of the last update.
    AggregatedSourceStatus -> Maybe POSIX
lastUpdateTime :: Prelude.Maybe Core.POSIX
  }
  deriving (AggregatedSourceStatus -> AggregatedSourceStatus -> Bool
(AggregatedSourceStatus -> AggregatedSourceStatus -> Bool)
-> (AggregatedSourceStatus -> AggregatedSourceStatus -> Bool)
-> Eq AggregatedSourceStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AggregatedSourceStatus -> AggregatedSourceStatus -> Bool
$c/= :: AggregatedSourceStatus -> AggregatedSourceStatus -> Bool
== :: AggregatedSourceStatus -> AggregatedSourceStatus -> Bool
$c== :: AggregatedSourceStatus -> AggregatedSourceStatus -> Bool
Prelude.Eq, ReadPrec [AggregatedSourceStatus]
ReadPrec AggregatedSourceStatus
Int -> ReadS AggregatedSourceStatus
ReadS [AggregatedSourceStatus]
(Int -> ReadS AggregatedSourceStatus)
-> ReadS [AggregatedSourceStatus]
-> ReadPrec AggregatedSourceStatus
-> ReadPrec [AggregatedSourceStatus]
-> Read AggregatedSourceStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AggregatedSourceStatus]
$creadListPrec :: ReadPrec [AggregatedSourceStatus]
readPrec :: ReadPrec AggregatedSourceStatus
$creadPrec :: ReadPrec AggregatedSourceStatus
readList :: ReadS [AggregatedSourceStatus]
$creadList :: ReadS [AggregatedSourceStatus]
readsPrec :: Int -> ReadS AggregatedSourceStatus
$creadsPrec :: Int -> ReadS AggregatedSourceStatus
Prelude.Read, Int -> AggregatedSourceStatus -> ShowS
[AggregatedSourceStatus] -> ShowS
AggregatedSourceStatus -> String
(Int -> AggregatedSourceStatus -> ShowS)
-> (AggregatedSourceStatus -> String)
-> ([AggregatedSourceStatus] -> ShowS)
-> Show AggregatedSourceStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AggregatedSourceStatus] -> ShowS
$cshowList :: [AggregatedSourceStatus] -> ShowS
show :: AggregatedSourceStatus -> String
$cshow :: AggregatedSourceStatus -> String
showsPrec :: Int -> AggregatedSourceStatus -> ShowS
$cshowsPrec :: Int -> AggregatedSourceStatus -> ShowS
Prelude.Show, (forall x. AggregatedSourceStatus -> Rep AggregatedSourceStatus x)
-> (forall x.
    Rep AggregatedSourceStatus x -> AggregatedSourceStatus)
-> Generic AggregatedSourceStatus
forall x. Rep AggregatedSourceStatus x -> AggregatedSourceStatus
forall x. AggregatedSourceStatus -> Rep AggregatedSourceStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AggregatedSourceStatus x -> AggregatedSourceStatus
$cfrom :: forall x. AggregatedSourceStatus -> Rep AggregatedSourceStatus x
Prelude.Generic)

-- |
-- Create a value of 'AggregatedSourceStatus' 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:
--
-- 'lastErrorCode', 'aggregatedSourceStatus_lastErrorCode' - The error code that Config returned when the source account aggregation
-- last failed.
--
-- 'lastUpdateStatus', 'aggregatedSourceStatus_lastUpdateStatus' - Filters the last updated status type.
--
-- -   Valid value FAILED indicates errors while moving data.
--
-- -   Valid value SUCCEEDED indicates the data was successfully moved.
--
-- -   Valid value OUTDATED indicates the data is not the most recent.
--
-- 'sourceType', 'aggregatedSourceStatus_sourceType' - The source account or an organization.
--
-- 'sourceId', 'aggregatedSourceStatus_sourceId' - The source account ID or an organization.
--
-- 'lastErrorMessage', 'aggregatedSourceStatus_lastErrorMessage' - The message indicating that the source account aggregation failed due to
-- an error.
--
-- 'awsRegion', 'aggregatedSourceStatus_awsRegion' - The region authorized to collect aggregated data.
--
-- 'lastUpdateTime', 'aggregatedSourceStatus_lastUpdateTime' - The time of the last update.
newAggregatedSourceStatus ::
  AggregatedSourceStatus
newAggregatedSourceStatus :: AggregatedSourceStatus
newAggregatedSourceStatus =
  AggregatedSourceStatus' :: Maybe Text
-> Maybe AggregatedSourceStatusType
-> Maybe AggregatedSourceType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> AggregatedSourceStatus
AggregatedSourceStatus'
    { $sel:lastErrorCode:AggregatedSourceStatus' :: Maybe Text
lastErrorCode =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdateStatus:AggregatedSourceStatus' :: Maybe AggregatedSourceStatusType
lastUpdateStatus = Maybe AggregatedSourceStatusType
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceType:AggregatedSourceStatus' :: Maybe AggregatedSourceType
sourceType = Maybe AggregatedSourceType
forall a. Maybe a
Prelude.Nothing,
      $sel:sourceId:AggregatedSourceStatus' :: Maybe Text
sourceId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastErrorMessage:AggregatedSourceStatus' :: Maybe Text
lastErrorMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:awsRegion:AggregatedSourceStatus' :: Maybe Text
awsRegion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdateTime:AggregatedSourceStatus' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing
    }

-- | The error code that Config returned when the source account aggregation
-- last failed.
aggregatedSourceStatus_lastErrorCode :: Lens.Lens' AggregatedSourceStatus (Prelude.Maybe Prelude.Text)
aggregatedSourceStatus_lastErrorCode :: (Maybe Text -> f (Maybe Text))
-> AggregatedSourceStatus -> f AggregatedSourceStatus
aggregatedSourceStatus_lastErrorCode = (AggregatedSourceStatus -> Maybe Text)
-> (AggregatedSourceStatus -> Maybe Text -> AggregatedSourceStatus)
-> Lens
     AggregatedSourceStatus
     AggregatedSourceStatus
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AggregatedSourceStatus' {Maybe Text
lastErrorCode :: Maybe Text
$sel:lastErrorCode:AggregatedSourceStatus' :: AggregatedSourceStatus -> Maybe Text
lastErrorCode} -> Maybe Text
lastErrorCode) (\s :: AggregatedSourceStatus
s@AggregatedSourceStatus' {} Maybe Text
a -> AggregatedSourceStatus
s {$sel:lastErrorCode:AggregatedSourceStatus' :: Maybe Text
lastErrorCode = Maybe Text
a} :: AggregatedSourceStatus)

-- | Filters the last updated status type.
--
-- -   Valid value FAILED indicates errors while moving data.
--
-- -   Valid value SUCCEEDED indicates the data was successfully moved.
--
-- -   Valid value OUTDATED indicates the data is not the most recent.
aggregatedSourceStatus_lastUpdateStatus :: Lens.Lens' AggregatedSourceStatus (Prelude.Maybe AggregatedSourceStatusType)
aggregatedSourceStatus_lastUpdateStatus :: (Maybe AggregatedSourceStatusType
 -> f (Maybe AggregatedSourceStatusType))
-> AggregatedSourceStatus -> f AggregatedSourceStatus
aggregatedSourceStatus_lastUpdateStatus = (AggregatedSourceStatus -> Maybe AggregatedSourceStatusType)
-> (AggregatedSourceStatus
    -> Maybe AggregatedSourceStatusType -> AggregatedSourceStatus)
-> Lens
     AggregatedSourceStatus
     AggregatedSourceStatus
     (Maybe AggregatedSourceStatusType)
     (Maybe AggregatedSourceStatusType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AggregatedSourceStatus' {Maybe AggregatedSourceStatusType
lastUpdateStatus :: Maybe AggregatedSourceStatusType
$sel:lastUpdateStatus:AggregatedSourceStatus' :: AggregatedSourceStatus -> Maybe AggregatedSourceStatusType
lastUpdateStatus} -> Maybe AggregatedSourceStatusType
lastUpdateStatus) (\s :: AggregatedSourceStatus
s@AggregatedSourceStatus' {} Maybe AggregatedSourceStatusType
a -> AggregatedSourceStatus
s {$sel:lastUpdateStatus:AggregatedSourceStatus' :: Maybe AggregatedSourceStatusType
lastUpdateStatus = Maybe AggregatedSourceStatusType
a} :: AggregatedSourceStatus)

-- | The source account or an organization.
aggregatedSourceStatus_sourceType :: Lens.Lens' AggregatedSourceStatus (Prelude.Maybe AggregatedSourceType)
aggregatedSourceStatus_sourceType :: (Maybe AggregatedSourceType -> f (Maybe AggregatedSourceType))
-> AggregatedSourceStatus -> f AggregatedSourceStatus
aggregatedSourceStatus_sourceType = (AggregatedSourceStatus -> Maybe AggregatedSourceType)
-> (AggregatedSourceStatus
    -> Maybe AggregatedSourceType -> AggregatedSourceStatus)
-> Lens
     AggregatedSourceStatus
     AggregatedSourceStatus
     (Maybe AggregatedSourceType)
     (Maybe AggregatedSourceType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AggregatedSourceStatus' {Maybe AggregatedSourceType
sourceType :: Maybe AggregatedSourceType
$sel:sourceType:AggregatedSourceStatus' :: AggregatedSourceStatus -> Maybe AggregatedSourceType
sourceType} -> Maybe AggregatedSourceType
sourceType) (\s :: AggregatedSourceStatus
s@AggregatedSourceStatus' {} Maybe AggregatedSourceType
a -> AggregatedSourceStatus
s {$sel:sourceType:AggregatedSourceStatus' :: Maybe AggregatedSourceType
sourceType = Maybe AggregatedSourceType
a} :: AggregatedSourceStatus)

-- | The source account ID or an organization.
aggregatedSourceStatus_sourceId :: Lens.Lens' AggregatedSourceStatus (Prelude.Maybe Prelude.Text)
aggregatedSourceStatus_sourceId :: (Maybe Text -> f (Maybe Text))
-> AggregatedSourceStatus -> f AggregatedSourceStatus
aggregatedSourceStatus_sourceId = (AggregatedSourceStatus -> Maybe Text)
-> (AggregatedSourceStatus -> Maybe Text -> AggregatedSourceStatus)
-> Lens
     AggregatedSourceStatus
     AggregatedSourceStatus
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AggregatedSourceStatus' {Maybe Text
sourceId :: Maybe Text
$sel:sourceId:AggregatedSourceStatus' :: AggregatedSourceStatus -> Maybe Text
sourceId} -> Maybe Text
sourceId) (\s :: AggregatedSourceStatus
s@AggregatedSourceStatus' {} Maybe Text
a -> AggregatedSourceStatus
s {$sel:sourceId:AggregatedSourceStatus' :: Maybe Text
sourceId = Maybe Text
a} :: AggregatedSourceStatus)

-- | The message indicating that the source account aggregation failed due to
-- an error.
aggregatedSourceStatus_lastErrorMessage :: Lens.Lens' AggregatedSourceStatus (Prelude.Maybe Prelude.Text)
aggregatedSourceStatus_lastErrorMessage :: (Maybe Text -> f (Maybe Text))
-> AggregatedSourceStatus -> f AggregatedSourceStatus
aggregatedSourceStatus_lastErrorMessage = (AggregatedSourceStatus -> Maybe Text)
-> (AggregatedSourceStatus -> Maybe Text -> AggregatedSourceStatus)
-> Lens
     AggregatedSourceStatus
     AggregatedSourceStatus
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AggregatedSourceStatus' {Maybe Text
lastErrorMessage :: Maybe Text
$sel:lastErrorMessage:AggregatedSourceStatus' :: AggregatedSourceStatus -> Maybe Text
lastErrorMessage} -> Maybe Text
lastErrorMessage) (\s :: AggregatedSourceStatus
s@AggregatedSourceStatus' {} Maybe Text
a -> AggregatedSourceStatus
s {$sel:lastErrorMessage:AggregatedSourceStatus' :: Maybe Text
lastErrorMessage = Maybe Text
a} :: AggregatedSourceStatus)

-- | The region authorized to collect aggregated data.
aggregatedSourceStatus_awsRegion :: Lens.Lens' AggregatedSourceStatus (Prelude.Maybe Prelude.Text)
aggregatedSourceStatus_awsRegion :: (Maybe Text -> f (Maybe Text))
-> AggregatedSourceStatus -> f AggregatedSourceStatus
aggregatedSourceStatus_awsRegion = (AggregatedSourceStatus -> Maybe Text)
-> (AggregatedSourceStatus -> Maybe Text -> AggregatedSourceStatus)
-> Lens
     AggregatedSourceStatus
     AggregatedSourceStatus
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AggregatedSourceStatus' {Maybe Text
awsRegion :: Maybe Text
$sel:awsRegion:AggregatedSourceStatus' :: AggregatedSourceStatus -> Maybe Text
awsRegion} -> Maybe Text
awsRegion) (\s :: AggregatedSourceStatus
s@AggregatedSourceStatus' {} Maybe Text
a -> AggregatedSourceStatus
s {$sel:awsRegion:AggregatedSourceStatus' :: Maybe Text
awsRegion = Maybe Text
a} :: AggregatedSourceStatus)

-- | The time of the last update.
aggregatedSourceStatus_lastUpdateTime :: Lens.Lens' AggregatedSourceStatus (Prelude.Maybe Prelude.UTCTime)
aggregatedSourceStatus_lastUpdateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> AggregatedSourceStatus -> f AggregatedSourceStatus
aggregatedSourceStatus_lastUpdateTime = (AggregatedSourceStatus -> Maybe POSIX)
-> (AggregatedSourceStatus
    -> Maybe POSIX -> AggregatedSourceStatus)
-> Lens
     AggregatedSourceStatus
     AggregatedSourceStatus
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AggregatedSourceStatus' {Maybe POSIX
lastUpdateTime :: Maybe POSIX
$sel:lastUpdateTime:AggregatedSourceStatus' :: AggregatedSourceStatus -> Maybe POSIX
lastUpdateTime} -> Maybe POSIX
lastUpdateTime) (\s :: AggregatedSourceStatus
s@AggregatedSourceStatus' {} Maybe POSIX
a -> AggregatedSourceStatus
s {$sel:lastUpdateTime:AggregatedSourceStatus' :: Maybe POSIX
lastUpdateTime = Maybe POSIX
a} :: AggregatedSourceStatus) ((Maybe POSIX -> f (Maybe POSIX))
 -> AggregatedSourceStatus -> f AggregatedSourceStatus)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> AggregatedSourceStatus
-> f AggregatedSourceStatus
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 AggregatedSourceStatus where
  parseJSON :: Value -> Parser AggregatedSourceStatus
parseJSON =
    String
-> (Object -> Parser AggregatedSourceStatus)
-> Value
-> Parser AggregatedSourceStatus
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AggregatedSourceStatus"
      ( \Object
x ->
          Maybe Text
-> Maybe AggregatedSourceStatusType
-> Maybe AggregatedSourceType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> AggregatedSourceStatus
AggregatedSourceStatus'
            (Maybe Text
 -> Maybe AggregatedSourceStatusType
 -> Maybe AggregatedSourceType
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe POSIX
 -> AggregatedSourceStatus)
-> Parser (Maybe Text)
-> Parser
     (Maybe AggregatedSourceStatusType
      -> Maybe AggregatedSourceType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> AggregatedSourceStatus)
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
"LastErrorCode")
            Parser
  (Maybe AggregatedSourceStatusType
   -> Maybe AggregatedSourceType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> AggregatedSourceStatus)
-> Parser (Maybe AggregatedSourceStatusType)
-> Parser
     (Maybe AggregatedSourceType
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> AggregatedSourceStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AggregatedSourceStatusType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastUpdateStatus")
            Parser
  (Maybe AggregatedSourceType
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> AggregatedSourceStatus)
-> Parser (Maybe AggregatedSourceType)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe POSIX
      -> AggregatedSourceStatus)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe AggregatedSourceType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"SourceType")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe POSIX
   -> AggregatedSourceStatus)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe Text -> Maybe POSIX -> AggregatedSourceStatus)
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
"SourceId")
            Parser
  (Maybe Text -> Maybe Text -> Maybe POSIX -> AggregatedSourceStatus)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe POSIX -> AggregatedSourceStatus)
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
"LastErrorMessage")
            Parser (Maybe Text -> Maybe POSIX -> AggregatedSourceStatus)
-> Parser (Maybe Text)
-> Parser (Maybe POSIX -> AggregatedSourceStatus)
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
"AwsRegion")
            Parser (Maybe POSIX -> AggregatedSourceStatus)
-> Parser (Maybe POSIX) -> Parser AggregatedSourceStatus
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")
      )

instance Prelude.Hashable AggregatedSourceStatus

instance Prelude.NFData AggregatedSourceStatus