{-# 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.SSM.Types.InventoryDeletionStatusItem
-- 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.SSM.Types.InventoryDeletionStatusItem where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SSM.Types.InventoryDeletionStatus
import Amazonka.SSM.Types.InventoryDeletionSummary

-- | Status information returned by the @DeleteInventory@ operation.
--
-- /See:/ 'newInventoryDeletionStatusItem' smart constructor.
data InventoryDeletionStatusItem = InventoryDeletionStatusItem'
  { -- | The name of the inventory data type.
    InventoryDeletionStatusItem -> Maybe Text
typeName :: Prelude.Maybe Prelude.Text,
    -- | The UTC timestamp of when the last status report.
    InventoryDeletionStatusItem -> Maybe POSIX
lastStatusUpdateTime :: Prelude.Maybe Core.POSIX,
    -- | Information about the status.
    InventoryDeletionStatusItem -> Maybe Text
lastStatusMessage :: Prelude.Maybe Prelude.Text,
    -- | Information about the delete operation. For more information about this
    -- summary, see
    -- <https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete Understanding the delete inventory summary>
    -- in the /Amazon Web Services Systems Manager User Guide/.
    InventoryDeletionStatusItem -> Maybe InventoryDeletionSummary
deletionSummary :: Prelude.Maybe InventoryDeletionSummary,
    -- | The status of the operation. Possible values are InProgress and
    -- Complete.
    InventoryDeletionStatusItem -> Maybe InventoryDeletionStatus
lastStatus :: Prelude.Maybe InventoryDeletionStatus,
    -- | The UTC timestamp when the delete operation started.
    InventoryDeletionStatusItem -> Maybe POSIX
deletionStartTime :: Prelude.Maybe Core.POSIX,
    -- | The deletion ID returned by the @DeleteInventory@ operation.
    InventoryDeletionStatusItem -> Maybe Text
deletionId :: Prelude.Maybe Prelude.Text
  }
  deriving (InventoryDeletionStatusItem -> InventoryDeletionStatusItem -> Bool
(InventoryDeletionStatusItem
 -> InventoryDeletionStatusItem -> Bool)
-> (InventoryDeletionStatusItem
    -> InventoryDeletionStatusItem -> Bool)
-> Eq InventoryDeletionStatusItem
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: InventoryDeletionStatusItem -> InventoryDeletionStatusItem -> Bool
$c/= :: InventoryDeletionStatusItem -> InventoryDeletionStatusItem -> Bool
== :: InventoryDeletionStatusItem -> InventoryDeletionStatusItem -> Bool
$c== :: InventoryDeletionStatusItem -> InventoryDeletionStatusItem -> Bool
Prelude.Eq, ReadPrec [InventoryDeletionStatusItem]
ReadPrec InventoryDeletionStatusItem
Int -> ReadS InventoryDeletionStatusItem
ReadS [InventoryDeletionStatusItem]
(Int -> ReadS InventoryDeletionStatusItem)
-> ReadS [InventoryDeletionStatusItem]
-> ReadPrec InventoryDeletionStatusItem
-> ReadPrec [InventoryDeletionStatusItem]
-> Read InventoryDeletionStatusItem
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [InventoryDeletionStatusItem]
$creadListPrec :: ReadPrec [InventoryDeletionStatusItem]
readPrec :: ReadPrec InventoryDeletionStatusItem
$creadPrec :: ReadPrec InventoryDeletionStatusItem
readList :: ReadS [InventoryDeletionStatusItem]
$creadList :: ReadS [InventoryDeletionStatusItem]
readsPrec :: Int -> ReadS InventoryDeletionStatusItem
$creadsPrec :: Int -> ReadS InventoryDeletionStatusItem
Prelude.Read, Int -> InventoryDeletionStatusItem -> ShowS
[InventoryDeletionStatusItem] -> ShowS
InventoryDeletionStatusItem -> String
(Int -> InventoryDeletionStatusItem -> ShowS)
-> (InventoryDeletionStatusItem -> String)
-> ([InventoryDeletionStatusItem] -> ShowS)
-> Show InventoryDeletionStatusItem
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [InventoryDeletionStatusItem] -> ShowS
$cshowList :: [InventoryDeletionStatusItem] -> ShowS
show :: InventoryDeletionStatusItem -> String
$cshow :: InventoryDeletionStatusItem -> String
showsPrec :: Int -> InventoryDeletionStatusItem -> ShowS
$cshowsPrec :: Int -> InventoryDeletionStatusItem -> ShowS
Prelude.Show, (forall x.
 InventoryDeletionStatusItem -> Rep InventoryDeletionStatusItem x)
-> (forall x.
    Rep InventoryDeletionStatusItem x -> InventoryDeletionStatusItem)
-> Generic InventoryDeletionStatusItem
forall x.
Rep InventoryDeletionStatusItem x -> InventoryDeletionStatusItem
forall x.
InventoryDeletionStatusItem -> Rep InventoryDeletionStatusItem x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep InventoryDeletionStatusItem x -> InventoryDeletionStatusItem
$cfrom :: forall x.
InventoryDeletionStatusItem -> Rep InventoryDeletionStatusItem x
Prelude.Generic)

-- |
-- Create a value of 'InventoryDeletionStatusItem' 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:
--
-- 'typeName', 'inventoryDeletionStatusItem_typeName' - The name of the inventory data type.
--
-- 'lastStatusUpdateTime', 'inventoryDeletionStatusItem_lastStatusUpdateTime' - The UTC timestamp of when the last status report.
--
-- 'lastStatusMessage', 'inventoryDeletionStatusItem_lastStatusMessage' - Information about the status.
--
-- 'deletionSummary', 'inventoryDeletionStatusItem_deletionSummary' - Information about the delete operation. For more information about this
-- summary, see
-- <https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete Understanding the delete inventory summary>
-- in the /Amazon Web Services Systems Manager User Guide/.
--
-- 'lastStatus', 'inventoryDeletionStatusItem_lastStatus' - The status of the operation. Possible values are InProgress and
-- Complete.
--
-- 'deletionStartTime', 'inventoryDeletionStatusItem_deletionStartTime' - The UTC timestamp when the delete operation started.
--
-- 'deletionId', 'inventoryDeletionStatusItem_deletionId' - The deletion ID returned by the @DeleteInventory@ operation.
newInventoryDeletionStatusItem ::
  InventoryDeletionStatusItem
newInventoryDeletionStatusItem :: InventoryDeletionStatusItem
newInventoryDeletionStatusItem =
  InventoryDeletionStatusItem' :: Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe InventoryDeletionSummary
-> Maybe InventoryDeletionStatus
-> Maybe POSIX
-> Maybe Text
-> InventoryDeletionStatusItem
InventoryDeletionStatusItem'
    { $sel:typeName:InventoryDeletionStatusItem' :: Maybe Text
typeName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:lastStatusUpdateTime:InventoryDeletionStatusItem' :: Maybe POSIX
lastStatusUpdateTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:lastStatusMessage:InventoryDeletionStatusItem' :: Maybe Text
lastStatusMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:deletionSummary:InventoryDeletionStatusItem' :: Maybe InventoryDeletionSummary
deletionSummary = Maybe InventoryDeletionSummary
forall a. Maybe a
Prelude.Nothing,
      $sel:lastStatus:InventoryDeletionStatusItem' :: Maybe InventoryDeletionStatus
lastStatus = Maybe InventoryDeletionStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:deletionStartTime:InventoryDeletionStatusItem' :: Maybe POSIX
deletionStartTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:deletionId:InventoryDeletionStatusItem' :: Maybe Text
deletionId = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The name of the inventory data type.
inventoryDeletionStatusItem_typeName :: Lens.Lens' InventoryDeletionStatusItem (Prelude.Maybe Prelude.Text)
inventoryDeletionStatusItem_typeName :: (Maybe Text -> f (Maybe Text))
-> InventoryDeletionStatusItem -> f InventoryDeletionStatusItem
inventoryDeletionStatusItem_typeName = (InventoryDeletionStatusItem -> Maybe Text)
-> (InventoryDeletionStatusItem
    -> Maybe Text -> InventoryDeletionStatusItem)
-> Lens
     InventoryDeletionStatusItem
     InventoryDeletionStatusItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InventoryDeletionStatusItem' {Maybe Text
typeName :: Maybe Text
$sel:typeName:InventoryDeletionStatusItem' :: InventoryDeletionStatusItem -> Maybe Text
typeName} -> Maybe Text
typeName) (\s :: InventoryDeletionStatusItem
s@InventoryDeletionStatusItem' {} Maybe Text
a -> InventoryDeletionStatusItem
s {$sel:typeName:InventoryDeletionStatusItem' :: Maybe Text
typeName = Maybe Text
a} :: InventoryDeletionStatusItem)

-- | The UTC timestamp of when the last status report.
inventoryDeletionStatusItem_lastStatusUpdateTime :: Lens.Lens' InventoryDeletionStatusItem (Prelude.Maybe Prelude.UTCTime)
inventoryDeletionStatusItem_lastStatusUpdateTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> InventoryDeletionStatusItem -> f InventoryDeletionStatusItem
inventoryDeletionStatusItem_lastStatusUpdateTime = (InventoryDeletionStatusItem -> Maybe POSIX)
-> (InventoryDeletionStatusItem
    -> Maybe POSIX -> InventoryDeletionStatusItem)
-> Lens
     InventoryDeletionStatusItem
     InventoryDeletionStatusItem
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InventoryDeletionStatusItem' {Maybe POSIX
lastStatusUpdateTime :: Maybe POSIX
$sel:lastStatusUpdateTime:InventoryDeletionStatusItem' :: InventoryDeletionStatusItem -> Maybe POSIX
lastStatusUpdateTime} -> Maybe POSIX
lastStatusUpdateTime) (\s :: InventoryDeletionStatusItem
s@InventoryDeletionStatusItem' {} Maybe POSIX
a -> InventoryDeletionStatusItem
s {$sel:lastStatusUpdateTime:InventoryDeletionStatusItem' :: Maybe POSIX
lastStatusUpdateTime = Maybe POSIX
a} :: InventoryDeletionStatusItem) ((Maybe POSIX -> f (Maybe POSIX))
 -> InventoryDeletionStatusItem -> f InventoryDeletionStatusItem)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> InventoryDeletionStatusItem
-> f InventoryDeletionStatusItem
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

-- | Information about the status.
inventoryDeletionStatusItem_lastStatusMessage :: Lens.Lens' InventoryDeletionStatusItem (Prelude.Maybe Prelude.Text)
inventoryDeletionStatusItem_lastStatusMessage :: (Maybe Text -> f (Maybe Text))
-> InventoryDeletionStatusItem -> f InventoryDeletionStatusItem
inventoryDeletionStatusItem_lastStatusMessage = (InventoryDeletionStatusItem -> Maybe Text)
-> (InventoryDeletionStatusItem
    -> Maybe Text -> InventoryDeletionStatusItem)
-> Lens
     InventoryDeletionStatusItem
     InventoryDeletionStatusItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InventoryDeletionStatusItem' {Maybe Text
lastStatusMessage :: Maybe Text
$sel:lastStatusMessage:InventoryDeletionStatusItem' :: InventoryDeletionStatusItem -> Maybe Text
lastStatusMessage} -> Maybe Text
lastStatusMessage) (\s :: InventoryDeletionStatusItem
s@InventoryDeletionStatusItem' {} Maybe Text
a -> InventoryDeletionStatusItem
s {$sel:lastStatusMessage:InventoryDeletionStatusItem' :: Maybe Text
lastStatusMessage = Maybe Text
a} :: InventoryDeletionStatusItem)

-- | Information about the delete operation. For more information about this
-- summary, see
-- <https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-inventory-custom.html#sysman-inventory-delete Understanding the delete inventory summary>
-- in the /Amazon Web Services Systems Manager User Guide/.
inventoryDeletionStatusItem_deletionSummary :: Lens.Lens' InventoryDeletionStatusItem (Prelude.Maybe InventoryDeletionSummary)
inventoryDeletionStatusItem_deletionSummary :: (Maybe InventoryDeletionSummary
 -> f (Maybe InventoryDeletionSummary))
-> InventoryDeletionStatusItem -> f InventoryDeletionStatusItem
inventoryDeletionStatusItem_deletionSummary = (InventoryDeletionStatusItem -> Maybe InventoryDeletionSummary)
-> (InventoryDeletionStatusItem
    -> Maybe InventoryDeletionSummary -> InventoryDeletionStatusItem)
-> Lens
     InventoryDeletionStatusItem
     InventoryDeletionStatusItem
     (Maybe InventoryDeletionSummary)
     (Maybe InventoryDeletionSummary)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InventoryDeletionStatusItem' {Maybe InventoryDeletionSummary
deletionSummary :: Maybe InventoryDeletionSummary
$sel:deletionSummary:InventoryDeletionStatusItem' :: InventoryDeletionStatusItem -> Maybe InventoryDeletionSummary
deletionSummary} -> Maybe InventoryDeletionSummary
deletionSummary) (\s :: InventoryDeletionStatusItem
s@InventoryDeletionStatusItem' {} Maybe InventoryDeletionSummary
a -> InventoryDeletionStatusItem
s {$sel:deletionSummary:InventoryDeletionStatusItem' :: Maybe InventoryDeletionSummary
deletionSummary = Maybe InventoryDeletionSummary
a} :: InventoryDeletionStatusItem)

-- | The status of the operation. Possible values are InProgress and
-- Complete.
inventoryDeletionStatusItem_lastStatus :: Lens.Lens' InventoryDeletionStatusItem (Prelude.Maybe InventoryDeletionStatus)
inventoryDeletionStatusItem_lastStatus :: (Maybe InventoryDeletionStatus
 -> f (Maybe InventoryDeletionStatus))
-> InventoryDeletionStatusItem -> f InventoryDeletionStatusItem
inventoryDeletionStatusItem_lastStatus = (InventoryDeletionStatusItem -> Maybe InventoryDeletionStatus)
-> (InventoryDeletionStatusItem
    -> Maybe InventoryDeletionStatus -> InventoryDeletionStatusItem)
-> Lens
     InventoryDeletionStatusItem
     InventoryDeletionStatusItem
     (Maybe InventoryDeletionStatus)
     (Maybe InventoryDeletionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InventoryDeletionStatusItem' {Maybe InventoryDeletionStatus
lastStatus :: Maybe InventoryDeletionStatus
$sel:lastStatus:InventoryDeletionStatusItem' :: InventoryDeletionStatusItem -> Maybe InventoryDeletionStatus
lastStatus} -> Maybe InventoryDeletionStatus
lastStatus) (\s :: InventoryDeletionStatusItem
s@InventoryDeletionStatusItem' {} Maybe InventoryDeletionStatus
a -> InventoryDeletionStatusItem
s {$sel:lastStatus:InventoryDeletionStatusItem' :: Maybe InventoryDeletionStatus
lastStatus = Maybe InventoryDeletionStatus
a} :: InventoryDeletionStatusItem)

-- | The UTC timestamp when the delete operation started.
inventoryDeletionStatusItem_deletionStartTime :: Lens.Lens' InventoryDeletionStatusItem (Prelude.Maybe Prelude.UTCTime)
inventoryDeletionStatusItem_deletionStartTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> InventoryDeletionStatusItem -> f InventoryDeletionStatusItem
inventoryDeletionStatusItem_deletionStartTime = (InventoryDeletionStatusItem -> Maybe POSIX)
-> (InventoryDeletionStatusItem
    -> Maybe POSIX -> InventoryDeletionStatusItem)
-> Lens
     InventoryDeletionStatusItem
     InventoryDeletionStatusItem
     (Maybe POSIX)
     (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InventoryDeletionStatusItem' {Maybe POSIX
deletionStartTime :: Maybe POSIX
$sel:deletionStartTime:InventoryDeletionStatusItem' :: InventoryDeletionStatusItem -> Maybe POSIX
deletionStartTime} -> Maybe POSIX
deletionStartTime) (\s :: InventoryDeletionStatusItem
s@InventoryDeletionStatusItem' {} Maybe POSIX
a -> InventoryDeletionStatusItem
s {$sel:deletionStartTime:InventoryDeletionStatusItem' :: Maybe POSIX
deletionStartTime = Maybe POSIX
a} :: InventoryDeletionStatusItem) ((Maybe POSIX -> f (Maybe POSIX))
 -> InventoryDeletionStatusItem -> f InventoryDeletionStatusItem)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> InventoryDeletionStatusItem
-> f InventoryDeletionStatusItem
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 deletion ID returned by the @DeleteInventory@ operation.
inventoryDeletionStatusItem_deletionId :: Lens.Lens' InventoryDeletionStatusItem (Prelude.Maybe Prelude.Text)
inventoryDeletionStatusItem_deletionId :: (Maybe Text -> f (Maybe Text))
-> InventoryDeletionStatusItem -> f InventoryDeletionStatusItem
inventoryDeletionStatusItem_deletionId = (InventoryDeletionStatusItem -> Maybe Text)
-> (InventoryDeletionStatusItem
    -> Maybe Text -> InventoryDeletionStatusItem)
-> Lens
     InventoryDeletionStatusItem
     InventoryDeletionStatusItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\InventoryDeletionStatusItem' {Maybe Text
deletionId :: Maybe Text
$sel:deletionId:InventoryDeletionStatusItem' :: InventoryDeletionStatusItem -> Maybe Text
deletionId} -> Maybe Text
deletionId) (\s :: InventoryDeletionStatusItem
s@InventoryDeletionStatusItem' {} Maybe Text
a -> InventoryDeletionStatusItem
s {$sel:deletionId:InventoryDeletionStatusItem' :: Maybe Text
deletionId = Maybe Text
a} :: InventoryDeletionStatusItem)

instance Core.FromJSON InventoryDeletionStatusItem where
  parseJSON :: Value -> Parser InventoryDeletionStatusItem
parseJSON =
    String
-> (Object -> Parser InventoryDeletionStatusItem)
-> Value
-> Parser InventoryDeletionStatusItem
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"InventoryDeletionStatusItem"
      ( \Object
x ->
          Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe InventoryDeletionSummary
-> Maybe InventoryDeletionStatus
-> Maybe POSIX
-> Maybe Text
-> InventoryDeletionStatusItem
InventoryDeletionStatusItem'
            (Maybe Text
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe InventoryDeletionSummary
 -> Maybe InventoryDeletionStatus
 -> Maybe POSIX
 -> Maybe Text
 -> InventoryDeletionStatusItem)
-> Parser (Maybe Text)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe InventoryDeletionSummary
      -> Maybe InventoryDeletionStatus
      -> Maybe POSIX
      -> Maybe Text
      -> InventoryDeletionStatusItem)
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
"TypeName")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe InventoryDeletionSummary
   -> Maybe InventoryDeletionStatus
   -> Maybe POSIX
   -> Maybe Text
   -> InventoryDeletionStatusItem)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe InventoryDeletionSummary
      -> Maybe InventoryDeletionStatus
      -> Maybe POSIX
      -> Maybe Text
      -> InventoryDeletionStatusItem)
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
"LastStatusUpdateTime")
            Parser
  (Maybe Text
   -> Maybe InventoryDeletionSummary
   -> Maybe InventoryDeletionStatus
   -> Maybe POSIX
   -> Maybe Text
   -> InventoryDeletionStatusItem)
-> Parser (Maybe Text)
-> Parser
     (Maybe InventoryDeletionSummary
      -> Maybe InventoryDeletionStatus
      -> Maybe POSIX
      -> Maybe Text
      -> InventoryDeletionStatusItem)
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
"LastStatusMessage")
            Parser
  (Maybe InventoryDeletionSummary
   -> Maybe InventoryDeletionStatus
   -> Maybe POSIX
   -> Maybe Text
   -> InventoryDeletionStatusItem)
-> Parser (Maybe InventoryDeletionSummary)
-> Parser
     (Maybe InventoryDeletionStatus
      -> Maybe POSIX -> Maybe Text -> InventoryDeletionStatusItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe InventoryDeletionSummary)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DeletionSummary")
            Parser
  (Maybe InventoryDeletionStatus
   -> Maybe POSIX -> Maybe Text -> InventoryDeletionStatusItem)
-> Parser (Maybe InventoryDeletionStatus)
-> Parser
     (Maybe POSIX -> Maybe Text -> InventoryDeletionStatusItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe InventoryDeletionStatus)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastStatus")
            Parser (Maybe POSIX -> Maybe Text -> InventoryDeletionStatusItem)
-> Parser (Maybe POSIX)
-> Parser (Maybe Text -> InventoryDeletionStatusItem)
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
"DeletionStartTime")
            Parser (Maybe Text -> InventoryDeletionStatusItem)
-> Parser (Maybe Text) -> Parser InventoryDeletionStatusItem
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
"DeletionId")
      )

instance Prelude.Hashable InventoryDeletionStatusItem

instance Prelude.NFData InventoryDeletionStatusItem