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