{-# 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.StepFunctions.Types.ActivityTimedOutEventDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ActivityTimedOutEventDetails = ActivityTimedOutEventDetails'
{
ActivityTimedOutEventDetails -> Maybe (Sensitive Text)
error :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ActivityTimedOutEventDetails -> Maybe (Sensitive Text)
cause :: Prelude.Maybe (Core.Sensitive Prelude.Text)
}
deriving (ActivityTimedOutEventDetails
-> ActivityTimedOutEventDetails -> Bool
(ActivityTimedOutEventDetails
-> ActivityTimedOutEventDetails -> Bool)
-> (ActivityTimedOutEventDetails
-> ActivityTimedOutEventDetails -> Bool)
-> Eq ActivityTimedOutEventDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ActivityTimedOutEventDetails
-> ActivityTimedOutEventDetails -> Bool
$c/= :: ActivityTimedOutEventDetails
-> ActivityTimedOutEventDetails -> Bool
== :: ActivityTimedOutEventDetails
-> ActivityTimedOutEventDetails -> Bool
$c== :: ActivityTimedOutEventDetails
-> ActivityTimedOutEventDetails -> Bool
Prelude.Eq, Int -> ActivityTimedOutEventDetails -> ShowS
[ActivityTimedOutEventDetails] -> ShowS
ActivityTimedOutEventDetails -> String
(Int -> ActivityTimedOutEventDetails -> ShowS)
-> (ActivityTimedOutEventDetails -> String)
-> ([ActivityTimedOutEventDetails] -> ShowS)
-> Show ActivityTimedOutEventDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ActivityTimedOutEventDetails] -> ShowS
$cshowList :: [ActivityTimedOutEventDetails] -> ShowS
show :: ActivityTimedOutEventDetails -> String
$cshow :: ActivityTimedOutEventDetails -> String
showsPrec :: Int -> ActivityTimedOutEventDetails -> ShowS
$cshowsPrec :: Int -> ActivityTimedOutEventDetails -> ShowS
Prelude.Show, (forall x.
ActivityTimedOutEventDetails -> Rep ActivityTimedOutEventDetails x)
-> (forall x.
Rep ActivityTimedOutEventDetails x -> ActivityTimedOutEventDetails)
-> Generic ActivityTimedOutEventDetails
forall x.
Rep ActivityTimedOutEventDetails x -> ActivityTimedOutEventDetails
forall x.
ActivityTimedOutEventDetails -> Rep ActivityTimedOutEventDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ActivityTimedOutEventDetails x -> ActivityTimedOutEventDetails
$cfrom :: forall x.
ActivityTimedOutEventDetails -> Rep ActivityTimedOutEventDetails x
Prelude.Generic)
newActivityTimedOutEventDetails ::
ActivityTimedOutEventDetails
newActivityTimedOutEventDetails :: ActivityTimedOutEventDetails
newActivityTimedOutEventDetails =
ActivityTimedOutEventDetails' :: Maybe (Sensitive Text)
-> Maybe (Sensitive Text) -> ActivityTimedOutEventDetails
ActivityTimedOutEventDetails'
{ $sel:error:ActivityTimedOutEventDetails' :: Maybe (Sensitive Text)
error =
Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:cause:ActivityTimedOutEventDetails' :: Maybe (Sensitive Text)
cause = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing
}
activityTimedOutEventDetails_error :: Lens.Lens' ActivityTimedOutEventDetails (Prelude.Maybe Prelude.Text)
activityTimedOutEventDetails_error :: (Maybe Text -> f (Maybe Text))
-> ActivityTimedOutEventDetails -> f ActivityTimedOutEventDetails
activityTimedOutEventDetails_error = (ActivityTimedOutEventDetails -> Maybe (Sensitive Text))
-> (ActivityTimedOutEventDetails
-> Maybe (Sensitive Text) -> ActivityTimedOutEventDetails)
-> Lens
ActivityTimedOutEventDetails
ActivityTimedOutEventDetails
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTimedOutEventDetails' {Maybe (Sensitive Text)
error :: Maybe (Sensitive Text)
$sel:error:ActivityTimedOutEventDetails' :: ActivityTimedOutEventDetails -> Maybe (Sensitive Text)
error} -> Maybe (Sensitive Text)
error) (\s :: ActivityTimedOutEventDetails
s@ActivityTimedOutEventDetails' {} Maybe (Sensitive Text)
a -> ActivityTimedOutEventDetails
s {$sel:error:ActivityTimedOutEventDetails' :: Maybe (Sensitive Text)
error = Maybe (Sensitive Text)
a} :: ActivityTimedOutEventDetails) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ActivityTimedOutEventDetails -> f ActivityTimedOutEventDetails)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ActivityTimedOutEventDetails
-> f ActivityTimedOutEventDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
activityTimedOutEventDetails_cause :: Lens.Lens' ActivityTimedOutEventDetails (Prelude.Maybe Prelude.Text)
activityTimedOutEventDetails_cause :: (Maybe Text -> f (Maybe Text))
-> ActivityTimedOutEventDetails -> f ActivityTimedOutEventDetails
activityTimedOutEventDetails_cause = (ActivityTimedOutEventDetails -> Maybe (Sensitive Text))
-> (ActivityTimedOutEventDetails
-> Maybe (Sensitive Text) -> ActivityTimedOutEventDetails)
-> Lens
ActivityTimedOutEventDetails
ActivityTimedOutEventDetails
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ActivityTimedOutEventDetails' {Maybe (Sensitive Text)
cause :: Maybe (Sensitive Text)
$sel:cause:ActivityTimedOutEventDetails' :: ActivityTimedOutEventDetails -> Maybe (Sensitive Text)
cause} -> Maybe (Sensitive Text)
cause) (\s :: ActivityTimedOutEventDetails
s@ActivityTimedOutEventDetails' {} Maybe (Sensitive Text)
a -> ActivityTimedOutEventDetails
s {$sel:cause:ActivityTimedOutEventDetails' :: Maybe (Sensitive Text)
cause = Maybe (Sensitive Text)
a} :: ActivityTimedOutEventDetails) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ActivityTimedOutEventDetails -> f ActivityTimedOutEventDetails)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ActivityTimedOutEventDetails
-> f ActivityTimedOutEventDetails
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
instance Core.FromJSON ActivityTimedOutEventDetails where
parseJSON :: Value -> Parser ActivityTimedOutEventDetails
parseJSON =
String
-> (Object -> Parser ActivityTimedOutEventDetails)
-> Value
-> Parser ActivityTimedOutEventDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ActivityTimedOutEventDetails"
( \Object
x ->
Maybe (Sensitive Text)
-> Maybe (Sensitive Text) -> ActivityTimedOutEventDetails
ActivityTimedOutEventDetails'
(Maybe (Sensitive Text)
-> Maybe (Sensitive Text) -> ActivityTimedOutEventDetails)
-> Parser (Maybe (Sensitive Text))
-> Parser (Maybe (Sensitive Text) -> ActivityTimedOutEventDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"error")
Parser (Maybe (Sensitive Text) -> ActivityTimedOutEventDetails)
-> Parser (Maybe (Sensitive Text))
-> Parser ActivityTimedOutEventDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"cause")
)
instance
Prelude.Hashable
ActivityTimedOutEventDetails
instance Prelude.NFData ActivityTimedOutEventDetails