{-# 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.TaskSubmitFailedEventDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data TaskSubmitFailedEventDetails = TaskSubmitFailedEventDetails'
{
TaskSubmitFailedEventDetails -> Maybe (Sensitive Text)
error :: Prelude.Maybe (Core.Sensitive Prelude.Text),
TaskSubmitFailedEventDetails -> Maybe (Sensitive Text)
cause :: Prelude.Maybe (Core.Sensitive Prelude.Text),
TaskSubmitFailedEventDetails -> Text
resourceType :: Prelude.Text,
TaskSubmitFailedEventDetails -> Text
resource :: Prelude.Text
}
deriving (TaskSubmitFailedEventDetails
-> TaskSubmitFailedEventDetails -> Bool
(TaskSubmitFailedEventDetails
-> TaskSubmitFailedEventDetails -> Bool)
-> (TaskSubmitFailedEventDetails
-> TaskSubmitFailedEventDetails -> Bool)
-> Eq TaskSubmitFailedEventDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TaskSubmitFailedEventDetails
-> TaskSubmitFailedEventDetails -> Bool
$c/= :: TaskSubmitFailedEventDetails
-> TaskSubmitFailedEventDetails -> Bool
== :: TaskSubmitFailedEventDetails
-> TaskSubmitFailedEventDetails -> Bool
$c== :: TaskSubmitFailedEventDetails
-> TaskSubmitFailedEventDetails -> Bool
Prelude.Eq, Int -> TaskSubmitFailedEventDetails -> ShowS
[TaskSubmitFailedEventDetails] -> ShowS
TaskSubmitFailedEventDetails -> String
(Int -> TaskSubmitFailedEventDetails -> ShowS)
-> (TaskSubmitFailedEventDetails -> String)
-> ([TaskSubmitFailedEventDetails] -> ShowS)
-> Show TaskSubmitFailedEventDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TaskSubmitFailedEventDetails] -> ShowS
$cshowList :: [TaskSubmitFailedEventDetails] -> ShowS
show :: TaskSubmitFailedEventDetails -> String
$cshow :: TaskSubmitFailedEventDetails -> String
showsPrec :: Int -> TaskSubmitFailedEventDetails -> ShowS
$cshowsPrec :: Int -> TaskSubmitFailedEventDetails -> ShowS
Prelude.Show, (forall x.
TaskSubmitFailedEventDetails -> Rep TaskSubmitFailedEventDetails x)
-> (forall x.
Rep TaskSubmitFailedEventDetails x -> TaskSubmitFailedEventDetails)
-> Generic TaskSubmitFailedEventDetails
forall x.
Rep TaskSubmitFailedEventDetails x -> TaskSubmitFailedEventDetails
forall x.
TaskSubmitFailedEventDetails -> Rep TaskSubmitFailedEventDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep TaskSubmitFailedEventDetails x -> TaskSubmitFailedEventDetails
$cfrom :: forall x.
TaskSubmitFailedEventDetails -> Rep TaskSubmitFailedEventDetails x
Prelude.Generic)
newTaskSubmitFailedEventDetails ::
Prelude.Text ->
Prelude.Text ->
TaskSubmitFailedEventDetails
newTaskSubmitFailedEventDetails :: Text -> Text -> TaskSubmitFailedEventDetails
newTaskSubmitFailedEventDetails
Text
pResourceType_
Text
pResource_ =
TaskSubmitFailedEventDetails' :: Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Text
-> Text
-> TaskSubmitFailedEventDetails
TaskSubmitFailedEventDetails'
{ $sel:error:TaskSubmitFailedEventDetails' :: Maybe (Sensitive Text)
error =
Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:cause:TaskSubmitFailedEventDetails' :: Maybe (Sensitive Text)
cause = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:resourceType:TaskSubmitFailedEventDetails' :: Text
resourceType = Text
pResourceType_,
$sel:resource:TaskSubmitFailedEventDetails' :: Text
resource = Text
pResource_
}
taskSubmitFailedEventDetails_error :: Lens.Lens' TaskSubmitFailedEventDetails (Prelude.Maybe Prelude.Text)
taskSubmitFailedEventDetails_error :: (Maybe Text -> f (Maybe Text))
-> TaskSubmitFailedEventDetails -> f TaskSubmitFailedEventDetails
taskSubmitFailedEventDetails_error = (TaskSubmitFailedEventDetails -> Maybe (Sensitive Text))
-> (TaskSubmitFailedEventDetails
-> Maybe (Sensitive Text) -> TaskSubmitFailedEventDetails)
-> Lens
TaskSubmitFailedEventDetails
TaskSubmitFailedEventDetails
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskSubmitFailedEventDetails' {Maybe (Sensitive Text)
error :: Maybe (Sensitive Text)
$sel:error:TaskSubmitFailedEventDetails' :: TaskSubmitFailedEventDetails -> Maybe (Sensitive Text)
error} -> Maybe (Sensitive Text)
error) (\s :: TaskSubmitFailedEventDetails
s@TaskSubmitFailedEventDetails' {} Maybe (Sensitive Text)
a -> TaskSubmitFailedEventDetails
s {$sel:error:TaskSubmitFailedEventDetails' :: Maybe (Sensitive Text)
error = Maybe (Sensitive Text)
a} :: TaskSubmitFailedEventDetails) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> TaskSubmitFailedEventDetails -> f TaskSubmitFailedEventDetails)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> TaskSubmitFailedEventDetails
-> f TaskSubmitFailedEventDetails
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
taskSubmitFailedEventDetails_cause :: Lens.Lens' TaskSubmitFailedEventDetails (Prelude.Maybe Prelude.Text)
taskSubmitFailedEventDetails_cause :: (Maybe Text -> f (Maybe Text))
-> TaskSubmitFailedEventDetails -> f TaskSubmitFailedEventDetails
taskSubmitFailedEventDetails_cause = (TaskSubmitFailedEventDetails -> Maybe (Sensitive Text))
-> (TaskSubmitFailedEventDetails
-> Maybe (Sensitive Text) -> TaskSubmitFailedEventDetails)
-> Lens
TaskSubmitFailedEventDetails
TaskSubmitFailedEventDetails
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskSubmitFailedEventDetails' {Maybe (Sensitive Text)
cause :: Maybe (Sensitive Text)
$sel:cause:TaskSubmitFailedEventDetails' :: TaskSubmitFailedEventDetails -> Maybe (Sensitive Text)
cause} -> Maybe (Sensitive Text)
cause) (\s :: TaskSubmitFailedEventDetails
s@TaskSubmitFailedEventDetails' {} Maybe (Sensitive Text)
a -> TaskSubmitFailedEventDetails
s {$sel:cause:TaskSubmitFailedEventDetails' :: Maybe (Sensitive Text)
cause = Maybe (Sensitive Text)
a} :: TaskSubmitFailedEventDetails) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> TaskSubmitFailedEventDetails -> f TaskSubmitFailedEventDetails)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> TaskSubmitFailedEventDetails
-> f TaskSubmitFailedEventDetails
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
taskSubmitFailedEventDetails_resourceType :: Lens.Lens' TaskSubmitFailedEventDetails Prelude.Text
taskSubmitFailedEventDetails_resourceType :: (Text -> f Text)
-> TaskSubmitFailedEventDetails -> f TaskSubmitFailedEventDetails
taskSubmitFailedEventDetails_resourceType = (TaskSubmitFailedEventDetails -> Text)
-> (TaskSubmitFailedEventDetails
-> Text -> TaskSubmitFailedEventDetails)
-> Lens
TaskSubmitFailedEventDetails TaskSubmitFailedEventDetails Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskSubmitFailedEventDetails' {Text
resourceType :: Text
$sel:resourceType:TaskSubmitFailedEventDetails' :: TaskSubmitFailedEventDetails -> Text
resourceType} -> Text
resourceType) (\s :: TaskSubmitFailedEventDetails
s@TaskSubmitFailedEventDetails' {} Text
a -> TaskSubmitFailedEventDetails
s {$sel:resourceType:TaskSubmitFailedEventDetails' :: Text
resourceType = Text
a} :: TaskSubmitFailedEventDetails)
taskSubmitFailedEventDetails_resource :: Lens.Lens' TaskSubmitFailedEventDetails Prelude.Text
taskSubmitFailedEventDetails_resource :: (Text -> f Text)
-> TaskSubmitFailedEventDetails -> f TaskSubmitFailedEventDetails
taskSubmitFailedEventDetails_resource = (TaskSubmitFailedEventDetails -> Text)
-> (TaskSubmitFailedEventDetails
-> Text -> TaskSubmitFailedEventDetails)
-> Lens
TaskSubmitFailedEventDetails TaskSubmitFailedEventDetails Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TaskSubmitFailedEventDetails' {Text
resource :: Text
$sel:resource:TaskSubmitFailedEventDetails' :: TaskSubmitFailedEventDetails -> Text
resource} -> Text
resource) (\s :: TaskSubmitFailedEventDetails
s@TaskSubmitFailedEventDetails' {} Text
a -> TaskSubmitFailedEventDetails
s {$sel:resource:TaskSubmitFailedEventDetails' :: Text
resource = Text
a} :: TaskSubmitFailedEventDetails)
instance Core.FromJSON TaskSubmitFailedEventDetails where
parseJSON :: Value -> Parser TaskSubmitFailedEventDetails
parseJSON =
String
-> (Object -> Parser TaskSubmitFailedEventDetails)
-> Value
-> Parser TaskSubmitFailedEventDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"TaskSubmitFailedEventDetails"
( \Object
x ->
Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Text
-> Text
-> TaskSubmitFailedEventDetails
TaskSubmitFailedEventDetails'
(Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Text
-> Text
-> TaskSubmitFailedEventDetails)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe (Sensitive Text)
-> Text -> Text -> TaskSubmitFailedEventDetails)
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)
-> Text -> Text -> TaskSubmitFailedEventDetails)
-> Parser (Maybe (Sensitive Text))
-> Parser (Text -> Text -> TaskSubmitFailedEventDetails)
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")
Parser (Text -> Text -> TaskSubmitFailedEventDetails)
-> Parser Text -> Parser (Text -> TaskSubmitFailedEventDetails)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"resourceType")
Parser (Text -> TaskSubmitFailedEventDetails)
-> Parser Text -> Parser TaskSubmitFailedEventDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"resource")
)
instance
Prelude.Hashable
TaskSubmitFailedEventDetails
instance Prelude.NFData TaskSubmitFailedEventDetails