{-# 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.ElasticBeanstalk.Types.ManagedActionHistoryItem
-- 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.ElasticBeanstalk.Types.ManagedActionHistoryItem where

import qualified Amazonka.Core as Core
import Amazonka.ElasticBeanstalk.Types.ActionHistoryStatus
import Amazonka.ElasticBeanstalk.Types.ActionType
import Amazonka.ElasticBeanstalk.Types.FailureType
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | The record of a completed or failed managed action.
--
-- /See:/ 'newManagedActionHistoryItem' smart constructor.
data ManagedActionHistoryItem = ManagedActionHistoryItem'
  { -- | The status of the action.
    ManagedActionHistoryItem -> Maybe ActionHistoryStatus
status :: Prelude.Maybe ActionHistoryStatus,
    -- | If the action failed, the type of failure.
    ManagedActionHistoryItem -> Maybe FailureType
failureType :: Prelude.Maybe FailureType,
    -- | A unique identifier for the managed action.
    ManagedActionHistoryItem -> Maybe Text
actionId :: Prelude.Maybe Prelude.Text,
    -- | If the action failed, a description of the failure.
    ManagedActionHistoryItem -> Maybe Text
failureDescription :: Prelude.Maybe Prelude.Text,
    -- | The date and time that the action finished executing.
    ManagedActionHistoryItem -> Maybe ISO8601
finishedTime :: Prelude.Maybe Core.ISO8601,
    -- | A description of the managed action.
    ManagedActionHistoryItem -> Maybe Text
actionDescription :: Prelude.Maybe Prelude.Text,
    -- | The date and time that the action started executing.
    ManagedActionHistoryItem -> Maybe ISO8601
executedTime :: Prelude.Maybe Core.ISO8601,
    -- | The type of the managed action.
    ManagedActionHistoryItem -> Maybe ActionType
actionType :: Prelude.Maybe ActionType
  }
  deriving (ManagedActionHistoryItem -> ManagedActionHistoryItem -> Bool
(ManagedActionHistoryItem -> ManagedActionHistoryItem -> Bool)
-> (ManagedActionHistoryItem -> ManagedActionHistoryItem -> Bool)
-> Eq ManagedActionHistoryItem
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ManagedActionHistoryItem -> ManagedActionHistoryItem -> Bool
$c/= :: ManagedActionHistoryItem -> ManagedActionHistoryItem -> Bool
== :: ManagedActionHistoryItem -> ManagedActionHistoryItem -> Bool
$c== :: ManagedActionHistoryItem -> ManagedActionHistoryItem -> Bool
Prelude.Eq, ReadPrec [ManagedActionHistoryItem]
ReadPrec ManagedActionHistoryItem
Int -> ReadS ManagedActionHistoryItem
ReadS [ManagedActionHistoryItem]
(Int -> ReadS ManagedActionHistoryItem)
-> ReadS [ManagedActionHistoryItem]
-> ReadPrec ManagedActionHistoryItem
-> ReadPrec [ManagedActionHistoryItem]
-> Read ManagedActionHistoryItem
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ManagedActionHistoryItem]
$creadListPrec :: ReadPrec [ManagedActionHistoryItem]
readPrec :: ReadPrec ManagedActionHistoryItem
$creadPrec :: ReadPrec ManagedActionHistoryItem
readList :: ReadS [ManagedActionHistoryItem]
$creadList :: ReadS [ManagedActionHistoryItem]
readsPrec :: Int -> ReadS ManagedActionHistoryItem
$creadsPrec :: Int -> ReadS ManagedActionHistoryItem
Prelude.Read, Int -> ManagedActionHistoryItem -> ShowS
[ManagedActionHistoryItem] -> ShowS
ManagedActionHistoryItem -> String
(Int -> ManagedActionHistoryItem -> ShowS)
-> (ManagedActionHistoryItem -> String)
-> ([ManagedActionHistoryItem] -> ShowS)
-> Show ManagedActionHistoryItem
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ManagedActionHistoryItem] -> ShowS
$cshowList :: [ManagedActionHistoryItem] -> ShowS
show :: ManagedActionHistoryItem -> String
$cshow :: ManagedActionHistoryItem -> String
showsPrec :: Int -> ManagedActionHistoryItem -> ShowS
$cshowsPrec :: Int -> ManagedActionHistoryItem -> ShowS
Prelude.Show, (forall x.
 ManagedActionHistoryItem -> Rep ManagedActionHistoryItem x)
-> (forall x.
    Rep ManagedActionHistoryItem x -> ManagedActionHistoryItem)
-> Generic ManagedActionHistoryItem
forall x.
Rep ManagedActionHistoryItem x -> ManagedActionHistoryItem
forall x.
ManagedActionHistoryItem -> Rep ManagedActionHistoryItem x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ManagedActionHistoryItem x -> ManagedActionHistoryItem
$cfrom :: forall x.
ManagedActionHistoryItem -> Rep ManagedActionHistoryItem x
Prelude.Generic)

-- |
-- Create a value of 'ManagedActionHistoryItem' 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:
--
-- 'status', 'managedActionHistoryItem_status' - The status of the action.
--
-- 'failureType', 'managedActionHistoryItem_failureType' - If the action failed, the type of failure.
--
-- 'actionId', 'managedActionHistoryItem_actionId' - A unique identifier for the managed action.
--
-- 'failureDescription', 'managedActionHistoryItem_failureDescription' - If the action failed, a description of the failure.
--
-- 'finishedTime', 'managedActionHistoryItem_finishedTime' - The date and time that the action finished executing.
--
-- 'actionDescription', 'managedActionHistoryItem_actionDescription' - A description of the managed action.
--
-- 'executedTime', 'managedActionHistoryItem_executedTime' - The date and time that the action started executing.
--
-- 'actionType', 'managedActionHistoryItem_actionType' - The type of the managed action.
newManagedActionHistoryItem ::
  ManagedActionHistoryItem
newManagedActionHistoryItem :: ManagedActionHistoryItem
newManagedActionHistoryItem =
  ManagedActionHistoryItem' :: Maybe ActionHistoryStatus
-> Maybe FailureType
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe ISO8601
-> Maybe ActionType
-> ManagedActionHistoryItem
ManagedActionHistoryItem'
    { $sel:status:ManagedActionHistoryItem' :: Maybe ActionHistoryStatus
status = Maybe ActionHistoryStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:failureType:ManagedActionHistoryItem' :: Maybe FailureType
failureType = Maybe FailureType
forall a. Maybe a
Prelude.Nothing,
      $sel:actionId:ManagedActionHistoryItem' :: Maybe Text
actionId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:failureDescription:ManagedActionHistoryItem' :: Maybe Text
failureDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:finishedTime:ManagedActionHistoryItem' :: Maybe ISO8601
finishedTime = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
      $sel:actionDescription:ManagedActionHistoryItem' :: Maybe Text
actionDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:executedTime:ManagedActionHistoryItem' :: Maybe ISO8601
executedTime = Maybe ISO8601
forall a. Maybe a
Prelude.Nothing,
      $sel:actionType:ManagedActionHistoryItem' :: Maybe ActionType
actionType = Maybe ActionType
forall a. Maybe a
Prelude.Nothing
    }

-- | The status of the action.
managedActionHistoryItem_status :: Lens.Lens' ManagedActionHistoryItem (Prelude.Maybe ActionHistoryStatus)
managedActionHistoryItem_status :: (Maybe ActionHistoryStatus -> f (Maybe ActionHistoryStatus))
-> ManagedActionHistoryItem -> f ManagedActionHistoryItem
managedActionHistoryItem_status = (ManagedActionHistoryItem -> Maybe ActionHistoryStatus)
-> (ManagedActionHistoryItem
    -> Maybe ActionHistoryStatus -> ManagedActionHistoryItem)
-> Lens
     ManagedActionHistoryItem
     ManagedActionHistoryItem
     (Maybe ActionHistoryStatus)
     (Maybe ActionHistoryStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ManagedActionHistoryItem' {Maybe ActionHistoryStatus
status :: Maybe ActionHistoryStatus
$sel:status:ManagedActionHistoryItem' :: ManagedActionHistoryItem -> Maybe ActionHistoryStatus
status} -> Maybe ActionHistoryStatus
status) (\s :: ManagedActionHistoryItem
s@ManagedActionHistoryItem' {} Maybe ActionHistoryStatus
a -> ManagedActionHistoryItem
s {$sel:status:ManagedActionHistoryItem' :: Maybe ActionHistoryStatus
status = Maybe ActionHistoryStatus
a} :: ManagedActionHistoryItem)

-- | If the action failed, the type of failure.
managedActionHistoryItem_failureType :: Lens.Lens' ManagedActionHistoryItem (Prelude.Maybe FailureType)
managedActionHistoryItem_failureType :: (Maybe FailureType -> f (Maybe FailureType))
-> ManagedActionHistoryItem -> f ManagedActionHistoryItem
managedActionHistoryItem_failureType = (ManagedActionHistoryItem -> Maybe FailureType)
-> (ManagedActionHistoryItem
    -> Maybe FailureType -> ManagedActionHistoryItem)
-> Lens
     ManagedActionHistoryItem
     ManagedActionHistoryItem
     (Maybe FailureType)
     (Maybe FailureType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ManagedActionHistoryItem' {Maybe FailureType
failureType :: Maybe FailureType
$sel:failureType:ManagedActionHistoryItem' :: ManagedActionHistoryItem -> Maybe FailureType
failureType} -> Maybe FailureType
failureType) (\s :: ManagedActionHistoryItem
s@ManagedActionHistoryItem' {} Maybe FailureType
a -> ManagedActionHistoryItem
s {$sel:failureType:ManagedActionHistoryItem' :: Maybe FailureType
failureType = Maybe FailureType
a} :: ManagedActionHistoryItem)

-- | A unique identifier for the managed action.
managedActionHistoryItem_actionId :: Lens.Lens' ManagedActionHistoryItem (Prelude.Maybe Prelude.Text)
managedActionHistoryItem_actionId :: (Maybe Text -> f (Maybe Text))
-> ManagedActionHistoryItem -> f ManagedActionHistoryItem
managedActionHistoryItem_actionId = (ManagedActionHistoryItem -> Maybe Text)
-> (ManagedActionHistoryItem
    -> Maybe Text -> ManagedActionHistoryItem)
-> Lens
     ManagedActionHistoryItem
     ManagedActionHistoryItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ManagedActionHistoryItem' {Maybe Text
actionId :: Maybe Text
$sel:actionId:ManagedActionHistoryItem' :: ManagedActionHistoryItem -> Maybe Text
actionId} -> Maybe Text
actionId) (\s :: ManagedActionHistoryItem
s@ManagedActionHistoryItem' {} Maybe Text
a -> ManagedActionHistoryItem
s {$sel:actionId:ManagedActionHistoryItem' :: Maybe Text
actionId = Maybe Text
a} :: ManagedActionHistoryItem)

-- | If the action failed, a description of the failure.
managedActionHistoryItem_failureDescription :: Lens.Lens' ManagedActionHistoryItem (Prelude.Maybe Prelude.Text)
managedActionHistoryItem_failureDescription :: (Maybe Text -> f (Maybe Text))
-> ManagedActionHistoryItem -> f ManagedActionHistoryItem
managedActionHistoryItem_failureDescription = (ManagedActionHistoryItem -> Maybe Text)
-> (ManagedActionHistoryItem
    -> Maybe Text -> ManagedActionHistoryItem)
-> Lens
     ManagedActionHistoryItem
     ManagedActionHistoryItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ManagedActionHistoryItem' {Maybe Text
failureDescription :: Maybe Text
$sel:failureDescription:ManagedActionHistoryItem' :: ManagedActionHistoryItem -> Maybe Text
failureDescription} -> Maybe Text
failureDescription) (\s :: ManagedActionHistoryItem
s@ManagedActionHistoryItem' {} Maybe Text
a -> ManagedActionHistoryItem
s {$sel:failureDescription:ManagedActionHistoryItem' :: Maybe Text
failureDescription = Maybe Text
a} :: ManagedActionHistoryItem)

-- | The date and time that the action finished executing.
managedActionHistoryItem_finishedTime :: Lens.Lens' ManagedActionHistoryItem (Prelude.Maybe Prelude.UTCTime)
managedActionHistoryItem_finishedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ManagedActionHistoryItem -> f ManagedActionHistoryItem
managedActionHistoryItem_finishedTime = (ManagedActionHistoryItem -> Maybe ISO8601)
-> (ManagedActionHistoryItem
    -> Maybe ISO8601 -> ManagedActionHistoryItem)
-> Lens
     ManagedActionHistoryItem
     ManagedActionHistoryItem
     (Maybe ISO8601)
     (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ManagedActionHistoryItem' {Maybe ISO8601
finishedTime :: Maybe ISO8601
$sel:finishedTime:ManagedActionHistoryItem' :: ManagedActionHistoryItem -> Maybe ISO8601
finishedTime} -> Maybe ISO8601
finishedTime) (\s :: ManagedActionHistoryItem
s@ManagedActionHistoryItem' {} Maybe ISO8601
a -> ManagedActionHistoryItem
s {$sel:finishedTime:ManagedActionHistoryItem' :: Maybe ISO8601
finishedTime = Maybe ISO8601
a} :: ManagedActionHistoryItem) ((Maybe ISO8601 -> f (Maybe ISO8601))
 -> ManagedActionHistoryItem -> f ManagedActionHistoryItem)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ManagedActionHistoryItem
-> f ManagedActionHistoryItem
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
     (Maybe ISO8601) (Maybe ISO8601) (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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | A description of the managed action.
managedActionHistoryItem_actionDescription :: Lens.Lens' ManagedActionHistoryItem (Prelude.Maybe Prelude.Text)
managedActionHistoryItem_actionDescription :: (Maybe Text -> f (Maybe Text))
-> ManagedActionHistoryItem -> f ManagedActionHistoryItem
managedActionHistoryItem_actionDescription = (ManagedActionHistoryItem -> Maybe Text)
-> (ManagedActionHistoryItem
    -> Maybe Text -> ManagedActionHistoryItem)
-> Lens
     ManagedActionHistoryItem
     ManagedActionHistoryItem
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ManagedActionHistoryItem' {Maybe Text
actionDescription :: Maybe Text
$sel:actionDescription:ManagedActionHistoryItem' :: ManagedActionHistoryItem -> Maybe Text
actionDescription} -> Maybe Text
actionDescription) (\s :: ManagedActionHistoryItem
s@ManagedActionHistoryItem' {} Maybe Text
a -> ManagedActionHistoryItem
s {$sel:actionDescription:ManagedActionHistoryItem' :: Maybe Text
actionDescription = Maybe Text
a} :: ManagedActionHistoryItem)

-- | The date and time that the action started executing.
managedActionHistoryItem_executedTime :: Lens.Lens' ManagedActionHistoryItem (Prelude.Maybe Prelude.UTCTime)
managedActionHistoryItem_executedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ManagedActionHistoryItem -> f ManagedActionHistoryItem
managedActionHistoryItem_executedTime = (ManagedActionHistoryItem -> Maybe ISO8601)
-> (ManagedActionHistoryItem
    -> Maybe ISO8601 -> ManagedActionHistoryItem)
-> Lens
     ManagedActionHistoryItem
     ManagedActionHistoryItem
     (Maybe ISO8601)
     (Maybe ISO8601)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ManagedActionHistoryItem' {Maybe ISO8601
executedTime :: Maybe ISO8601
$sel:executedTime:ManagedActionHistoryItem' :: ManagedActionHistoryItem -> Maybe ISO8601
executedTime} -> Maybe ISO8601
executedTime) (\s :: ManagedActionHistoryItem
s@ManagedActionHistoryItem' {} Maybe ISO8601
a -> ManagedActionHistoryItem
s {$sel:executedTime:ManagedActionHistoryItem' :: Maybe ISO8601
executedTime = Maybe ISO8601
a} :: ManagedActionHistoryItem) ((Maybe ISO8601 -> f (Maybe ISO8601))
 -> ManagedActionHistoryItem -> f ManagedActionHistoryItem)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe ISO8601 -> f (Maybe ISO8601))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ManagedActionHistoryItem
-> f ManagedActionHistoryItem
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso ISO8601 ISO8601 UTCTime UTCTime
-> Iso
     (Maybe ISO8601) (Maybe ISO8601) (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 ISO8601 ISO8601 UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The type of the managed action.
managedActionHistoryItem_actionType :: Lens.Lens' ManagedActionHistoryItem (Prelude.Maybe ActionType)
managedActionHistoryItem_actionType :: (Maybe ActionType -> f (Maybe ActionType))
-> ManagedActionHistoryItem -> f ManagedActionHistoryItem
managedActionHistoryItem_actionType = (ManagedActionHistoryItem -> Maybe ActionType)
-> (ManagedActionHistoryItem
    -> Maybe ActionType -> ManagedActionHistoryItem)
-> Lens
     ManagedActionHistoryItem
     ManagedActionHistoryItem
     (Maybe ActionType)
     (Maybe ActionType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ManagedActionHistoryItem' {Maybe ActionType
actionType :: Maybe ActionType
$sel:actionType:ManagedActionHistoryItem' :: ManagedActionHistoryItem -> Maybe ActionType
actionType} -> Maybe ActionType
actionType) (\s :: ManagedActionHistoryItem
s@ManagedActionHistoryItem' {} Maybe ActionType
a -> ManagedActionHistoryItem
s {$sel:actionType:ManagedActionHistoryItem' :: Maybe ActionType
actionType = Maybe ActionType
a} :: ManagedActionHistoryItem)

instance Core.FromXML ManagedActionHistoryItem where
  parseXML :: [Node] -> Either String ManagedActionHistoryItem
parseXML [Node]
x =
    Maybe ActionHistoryStatus
-> Maybe FailureType
-> Maybe Text
-> Maybe Text
-> Maybe ISO8601
-> Maybe Text
-> Maybe ISO8601
-> Maybe ActionType
-> ManagedActionHistoryItem
ManagedActionHistoryItem'
      (Maybe ActionHistoryStatus
 -> Maybe FailureType
 -> Maybe Text
 -> Maybe Text
 -> Maybe ISO8601
 -> Maybe Text
 -> Maybe ISO8601
 -> Maybe ActionType
 -> ManagedActionHistoryItem)
-> Either String (Maybe ActionHistoryStatus)
-> Either
     String
     (Maybe FailureType
      -> Maybe Text
      -> Maybe Text
      -> Maybe ISO8601
      -> Maybe Text
      -> Maybe ISO8601
      -> Maybe ActionType
      -> ManagedActionHistoryItem)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe ActionHistoryStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Status")
      Either
  String
  (Maybe FailureType
   -> Maybe Text
   -> Maybe Text
   -> Maybe ISO8601
   -> Maybe Text
   -> Maybe ISO8601
   -> Maybe ActionType
   -> ManagedActionHistoryItem)
-> Either String (Maybe FailureType)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe ISO8601
      -> Maybe Text
      -> Maybe ISO8601
      -> Maybe ActionType
      -> ManagedActionHistoryItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe FailureType)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"FailureType")
      Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe ISO8601
   -> Maybe Text
   -> Maybe ISO8601
   -> Maybe ActionType
   -> ManagedActionHistoryItem)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe ISO8601
      -> Maybe Text
      -> Maybe ISO8601
      -> Maybe ActionType
      -> ManagedActionHistoryItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ActionId")
      Either
  String
  (Maybe Text
   -> Maybe ISO8601
   -> Maybe Text
   -> Maybe ISO8601
   -> Maybe ActionType
   -> ManagedActionHistoryItem)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe ISO8601
      -> Maybe Text
      -> Maybe ISO8601
      -> Maybe ActionType
      -> ManagedActionHistoryItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"FailureDescription")
      Either
  String
  (Maybe ISO8601
   -> Maybe Text
   -> Maybe ISO8601
   -> Maybe ActionType
   -> ManagedActionHistoryItem)
-> Either String (Maybe ISO8601)
-> Either
     String
     (Maybe Text
      -> Maybe ISO8601 -> Maybe ActionType -> ManagedActionHistoryItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"FinishedTime")
      Either
  String
  (Maybe Text
   -> Maybe ISO8601 -> Maybe ActionType -> ManagedActionHistoryItem)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe ISO8601 -> Maybe ActionType -> ManagedActionHistoryItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ActionDescription")
      Either
  String
  (Maybe ISO8601 -> Maybe ActionType -> ManagedActionHistoryItem)
-> Either String (Maybe ISO8601)
-> Either String (Maybe ActionType -> ManagedActionHistoryItem)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ISO8601)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ExecutedTime")
      Either String (Maybe ActionType -> ManagedActionHistoryItem)
-> Either String (Maybe ActionType)
-> Either String ManagedActionHistoryItem
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe ActionType)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ActionType")

instance Prelude.Hashable ManagedActionHistoryItem

instance Prelude.NFData ManagedActionHistoryItem