{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.StepFunctions.DescribeExecution
(
DescribeExecution (..),
newDescribeExecution,
describeExecution_executionArn,
DescribeExecutionResponse (..),
newDescribeExecutionResponse,
describeExecutionResponse_stopDate,
describeExecutionResponse_inputDetails,
describeExecutionResponse_input,
describeExecutionResponse_name,
describeExecutionResponse_output,
describeExecutionResponse_outputDetails,
describeExecutionResponse_traceHeader,
describeExecutionResponse_httpStatus,
describeExecutionResponse_executionArn,
describeExecutionResponse_stateMachineArn,
describeExecutionResponse_status,
describeExecutionResponse_startDate,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.StepFunctions.Types
data DescribeExecution = DescribeExecution'
{
DescribeExecution -> Text
executionArn :: Prelude.Text
}
deriving (DescribeExecution -> DescribeExecution -> Bool
(DescribeExecution -> DescribeExecution -> Bool)
-> (DescribeExecution -> DescribeExecution -> Bool)
-> Eq DescribeExecution
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeExecution -> DescribeExecution -> Bool
$c/= :: DescribeExecution -> DescribeExecution -> Bool
== :: DescribeExecution -> DescribeExecution -> Bool
$c== :: DescribeExecution -> DescribeExecution -> Bool
Prelude.Eq, ReadPrec [DescribeExecution]
ReadPrec DescribeExecution
Int -> ReadS DescribeExecution
ReadS [DescribeExecution]
(Int -> ReadS DescribeExecution)
-> ReadS [DescribeExecution]
-> ReadPrec DescribeExecution
-> ReadPrec [DescribeExecution]
-> Read DescribeExecution
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeExecution]
$creadListPrec :: ReadPrec [DescribeExecution]
readPrec :: ReadPrec DescribeExecution
$creadPrec :: ReadPrec DescribeExecution
readList :: ReadS [DescribeExecution]
$creadList :: ReadS [DescribeExecution]
readsPrec :: Int -> ReadS DescribeExecution
$creadsPrec :: Int -> ReadS DescribeExecution
Prelude.Read, Int -> DescribeExecution -> ShowS
[DescribeExecution] -> ShowS
DescribeExecution -> String
(Int -> DescribeExecution -> ShowS)
-> (DescribeExecution -> String)
-> ([DescribeExecution] -> ShowS)
-> Show DescribeExecution
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeExecution] -> ShowS
$cshowList :: [DescribeExecution] -> ShowS
show :: DescribeExecution -> String
$cshow :: DescribeExecution -> String
showsPrec :: Int -> DescribeExecution -> ShowS
$cshowsPrec :: Int -> DescribeExecution -> ShowS
Prelude.Show, (forall x. DescribeExecution -> Rep DescribeExecution x)
-> (forall x. Rep DescribeExecution x -> DescribeExecution)
-> Generic DescribeExecution
forall x. Rep DescribeExecution x -> DescribeExecution
forall x. DescribeExecution -> Rep DescribeExecution x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeExecution x -> DescribeExecution
$cfrom :: forall x. DescribeExecution -> Rep DescribeExecution x
Prelude.Generic)
newDescribeExecution ::
Prelude.Text ->
DescribeExecution
newDescribeExecution :: Text -> DescribeExecution
newDescribeExecution Text
pExecutionArn_ =
DescribeExecution' :: Text -> DescribeExecution
DescribeExecution' {$sel:executionArn:DescribeExecution' :: Text
executionArn = Text
pExecutionArn_}
describeExecution_executionArn :: Lens.Lens' DescribeExecution Prelude.Text
describeExecution_executionArn :: (Text -> f Text) -> DescribeExecution -> f DescribeExecution
describeExecution_executionArn = (DescribeExecution -> Text)
-> (DescribeExecution -> Text -> DescribeExecution)
-> Lens DescribeExecution DescribeExecution Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecution' {Text
executionArn :: Text
$sel:executionArn:DescribeExecution' :: DescribeExecution -> Text
executionArn} -> Text
executionArn) (\s :: DescribeExecution
s@DescribeExecution' {} Text
a -> DescribeExecution
s {$sel:executionArn:DescribeExecution' :: Text
executionArn = Text
a} :: DescribeExecution)
instance Core.AWSRequest DescribeExecution where
type
AWSResponse DescribeExecution =
DescribeExecutionResponse
request :: DescribeExecution -> Request DescribeExecution
request = Service -> DescribeExecution -> Request DescribeExecution
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeExecution
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeExecution)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeExecution))
-> Logger
-> Service
-> Proxy DescribeExecution
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeExecution)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe POSIX
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse
DescribeExecutionResponse'
(Maybe POSIX
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe CloudWatchEventsExecutionDataDetails
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"stopDate")
Either
String
(Maybe CloudWatchEventsExecutionDataDetails
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
-> Either String (Maybe CloudWatchEventsExecutionDataDetails)
-> Either
String
(Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe CloudWatchEventsExecutionDataDetails)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"inputDetails")
Either
String
(Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"input")
Either
String
(Maybe Text
-> Maybe (Sensitive Text)
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (Sensitive Text)
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"name")
Either
String
(Maybe (Sensitive Text)
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
-> Either String (Maybe (Sensitive Text))
-> Either
String
(Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"output")
Either
String
(Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
-> Either String (Maybe CloudWatchEventsExecutionDataDetails)
-> Either
String
(Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text
-> Either String (Maybe CloudWatchEventsExecutionDataDetails)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"outputDetails")
Either
String
(Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"traceHeader")
Either
String
(Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse)
-> Either String Int
-> Either
String
(Text
-> Text -> ExecutionStatus -> POSIX -> DescribeExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
Either
String
(Text
-> Text -> ExecutionStatus -> POSIX -> DescribeExecutionResponse)
-> Either String Text
-> Either
String
(Text -> ExecutionStatus -> POSIX -> DescribeExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"executionArn")
Either
String
(Text -> ExecutionStatus -> POSIX -> DescribeExecutionResponse)
-> Either String Text
-> Either
String (ExecutionStatus -> POSIX -> DescribeExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"stateMachineArn")
Either
String (ExecutionStatus -> POSIX -> DescribeExecutionResponse)
-> Either String ExecutionStatus
-> Either String (POSIX -> DescribeExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String ExecutionStatus
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"status")
Either String (POSIX -> DescribeExecutionResponse)
-> Either String POSIX -> Either String DescribeExecutionResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String POSIX
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"startDate")
)
instance Prelude.Hashable DescribeExecution
instance Prelude.NFData DescribeExecution
instance Core.ToHeaders DescribeExecution where
toHeaders :: DescribeExecution -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeExecution -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSStepFunctions.DescribeExecution" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON DescribeExecution where
toJSON :: DescribeExecution -> Value
toJSON DescribeExecution' {Text
executionArn :: Text
$sel:executionArn:DescribeExecution' :: DescribeExecution -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"executionArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
executionArn)]
)
instance Core.ToPath DescribeExecution where
toPath :: DescribeExecution -> ByteString
toPath = ByteString -> DescribeExecution -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeExecution where
toQuery :: DescribeExecution -> QueryString
toQuery = QueryString -> DescribeExecution -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeExecutionResponse = DescribeExecutionResponse'
{
DescribeExecutionResponse -> Maybe POSIX
stopDate :: Prelude.Maybe Core.POSIX,
DescribeExecutionResponse
-> Maybe CloudWatchEventsExecutionDataDetails
inputDetails :: Prelude.Maybe CloudWatchEventsExecutionDataDetails,
DescribeExecutionResponse -> Maybe (Sensitive Text)
input :: Prelude.Maybe (Core.Sensitive Prelude.Text),
DescribeExecutionResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
DescribeExecutionResponse -> Maybe (Sensitive Text)
output :: Prelude.Maybe (Core.Sensitive Prelude.Text),
DescribeExecutionResponse
-> Maybe CloudWatchEventsExecutionDataDetails
outputDetails :: Prelude.Maybe CloudWatchEventsExecutionDataDetails,
:: Prelude.Maybe Prelude.Text,
DescribeExecutionResponse -> Int
httpStatus :: Prelude.Int,
DescribeExecutionResponse -> Text
executionArn :: Prelude.Text,
DescribeExecutionResponse -> Text
stateMachineArn :: Prelude.Text,
DescribeExecutionResponse -> ExecutionStatus
status :: ExecutionStatus,
DescribeExecutionResponse -> POSIX
startDate :: Core.POSIX
}
deriving (DescribeExecutionResponse -> DescribeExecutionResponse -> Bool
(DescribeExecutionResponse -> DescribeExecutionResponse -> Bool)
-> (DescribeExecutionResponse -> DescribeExecutionResponse -> Bool)
-> Eq DescribeExecutionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeExecutionResponse -> DescribeExecutionResponse -> Bool
$c/= :: DescribeExecutionResponse -> DescribeExecutionResponse -> Bool
== :: DescribeExecutionResponse -> DescribeExecutionResponse -> Bool
$c== :: DescribeExecutionResponse -> DescribeExecutionResponse -> Bool
Prelude.Eq, Int -> DescribeExecutionResponse -> ShowS
[DescribeExecutionResponse] -> ShowS
DescribeExecutionResponse -> String
(Int -> DescribeExecutionResponse -> ShowS)
-> (DescribeExecutionResponse -> String)
-> ([DescribeExecutionResponse] -> ShowS)
-> Show DescribeExecutionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeExecutionResponse] -> ShowS
$cshowList :: [DescribeExecutionResponse] -> ShowS
show :: DescribeExecutionResponse -> String
$cshow :: DescribeExecutionResponse -> String
showsPrec :: Int -> DescribeExecutionResponse -> ShowS
$cshowsPrec :: Int -> DescribeExecutionResponse -> ShowS
Prelude.Show, (forall x.
DescribeExecutionResponse -> Rep DescribeExecutionResponse x)
-> (forall x.
Rep DescribeExecutionResponse x -> DescribeExecutionResponse)
-> Generic DescribeExecutionResponse
forall x.
Rep DescribeExecutionResponse x -> DescribeExecutionResponse
forall x.
DescribeExecutionResponse -> Rep DescribeExecutionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeExecutionResponse x -> DescribeExecutionResponse
$cfrom :: forall x.
DescribeExecutionResponse -> Rep DescribeExecutionResponse x
Prelude.Generic)
newDescribeExecutionResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
ExecutionStatus ->
Prelude.UTCTime ->
DescribeExecutionResponse
newDescribeExecutionResponse :: Int
-> Text
-> Text
-> ExecutionStatus
-> UTCTime
-> DescribeExecutionResponse
newDescribeExecutionResponse
Int
pHttpStatus_
Text
pExecutionArn_
Text
pStateMachineArn_
ExecutionStatus
pStatus_
UTCTime
pStartDate_ =
DescribeExecutionResponse' :: Maybe POSIX
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe CloudWatchEventsExecutionDataDetails
-> Maybe Text
-> Int
-> Text
-> Text
-> ExecutionStatus
-> POSIX
-> DescribeExecutionResponse
DescribeExecutionResponse'
{ $sel:stopDate:DescribeExecutionResponse' :: Maybe POSIX
stopDate =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:inputDetails:DescribeExecutionResponse' :: Maybe CloudWatchEventsExecutionDataDetails
inputDetails = Maybe CloudWatchEventsExecutionDataDetails
forall a. Maybe a
Prelude.Nothing,
$sel:input:DescribeExecutionResponse' :: Maybe (Sensitive Text)
input = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:name:DescribeExecutionResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:output:DescribeExecutionResponse' :: Maybe (Sensitive Text)
output = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:outputDetails:DescribeExecutionResponse' :: Maybe CloudWatchEventsExecutionDataDetails
outputDetails = Maybe CloudWatchEventsExecutionDataDetails
forall a. Maybe a
Prelude.Nothing,
$sel:traceHeader:DescribeExecutionResponse' :: Maybe Text
traceHeader = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeExecutionResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:executionArn:DescribeExecutionResponse' :: Text
executionArn = Text
pExecutionArn_,
$sel:stateMachineArn:DescribeExecutionResponse' :: Text
stateMachineArn = Text
pStateMachineArn_,
$sel:status:DescribeExecutionResponse' :: ExecutionStatus
status = ExecutionStatus
pStatus_,
$sel:startDate:DescribeExecutionResponse' :: POSIX
startDate = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pStartDate_
}
describeExecutionResponse_stopDate :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe Prelude.UTCTime)
describeExecutionResponse_stopDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_stopDate = (DescribeExecutionResponse -> Maybe POSIX)
-> (DescribeExecutionResponse
-> Maybe POSIX -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe POSIX
stopDate :: Maybe POSIX
$sel:stopDate:DescribeExecutionResponse' :: DescribeExecutionResponse -> Maybe POSIX
stopDate} -> Maybe POSIX
stopDate) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe POSIX
a -> DescribeExecutionResponse
s {$sel:stopDate:DescribeExecutionResponse' :: Maybe POSIX
stopDate = Maybe POSIX
a} :: DescribeExecutionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeExecutionResponse -> f DescribeExecutionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeExecutionResponse
-> f DescribeExecutionResponse
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
describeExecutionResponse_inputDetails :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe CloudWatchEventsExecutionDataDetails)
describeExecutionResponse_inputDetails :: (Maybe CloudWatchEventsExecutionDataDetails
-> f (Maybe CloudWatchEventsExecutionDataDetails))
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_inputDetails = (DescribeExecutionResponse
-> Maybe CloudWatchEventsExecutionDataDetails)
-> (DescribeExecutionResponse
-> Maybe CloudWatchEventsExecutionDataDetails
-> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe CloudWatchEventsExecutionDataDetails)
(Maybe CloudWatchEventsExecutionDataDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe CloudWatchEventsExecutionDataDetails
inputDetails :: Maybe CloudWatchEventsExecutionDataDetails
$sel:inputDetails:DescribeExecutionResponse' :: DescribeExecutionResponse
-> Maybe CloudWatchEventsExecutionDataDetails
inputDetails} -> Maybe CloudWatchEventsExecutionDataDetails
inputDetails) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe CloudWatchEventsExecutionDataDetails
a -> DescribeExecutionResponse
s {$sel:inputDetails:DescribeExecutionResponse' :: Maybe CloudWatchEventsExecutionDataDetails
inputDetails = Maybe CloudWatchEventsExecutionDataDetails
a} :: DescribeExecutionResponse)
describeExecutionResponse_input :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe Prelude.Text)
describeExecutionResponse_input :: (Maybe Text -> f (Maybe Text))
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_input = (DescribeExecutionResponse -> Maybe (Sensitive Text))
-> (DescribeExecutionResponse
-> Maybe (Sensitive Text) -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe (Sensitive Text)
input :: Maybe (Sensitive Text)
$sel:input:DescribeExecutionResponse' :: DescribeExecutionResponse -> Maybe (Sensitive Text)
input} -> Maybe (Sensitive Text)
input) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe (Sensitive Text)
a -> DescribeExecutionResponse
s {$sel:input:DescribeExecutionResponse' :: Maybe (Sensitive Text)
input = Maybe (Sensitive Text)
a} :: DescribeExecutionResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> DescribeExecutionResponse -> f DescribeExecutionResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> DescribeExecutionResponse
-> f DescribeExecutionResponse
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
describeExecutionResponse_name :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe Prelude.Text)
describeExecutionResponse_name :: (Maybe Text -> f (Maybe Text))
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_name = (DescribeExecutionResponse -> Maybe Text)
-> (DescribeExecutionResponse
-> Maybe Text -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe Text
name :: Maybe Text
$sel:name:DescribeExecutionResponse' :: DescribeExecutionResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe Text
a -> DescribeExecutionResponse
s {$sel:name:DescribeExecutionResponse' :: Maybe Text
name = Maybe Text
a} :: DescribeExecutionResponse)
describeExecutionResponse_output :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe Prelude.Text)
describeExecutionResponse_output :: (Maybe Text -> f (Maybe Text))
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_output = (DescribeExecutionResponse -> Maybe (Sensitive Text))
-> (DescribeExecutionResponse
-> Maybe (Sensitive Text) -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe (Sensitive Text)
output :: Maybe (Sensitive Text)
$sel:output:DescribeExecutionResponse' :: DescribeExecutionResponse -> Maybe (Sensitive Text)
output} -> Maybe (Sensitive Text)
output) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe (Sensitive Text)
a -> DescribeExecutionResponse
s {$sel:output:DescribeExecutionResponse' :: Maybe (Sensitive Text)
output = Maybe (Sensitive Text)
a} :: DescribeExecutionResponse) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> DescribeExecutionResponse -> f DescribeExecutionResponse)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> DescribeExecutionResponse
-> f DescribeExecutionResponse
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
describeExecutionResponse_outputDetails :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe CloudWatchEventsExecutionDataDetails)
describeExecutionResponse_outputDetails :: (Maybe CloudWatchEventsExecutionDataDetails
-> f (Maybe CloudWatchEventsExecutionDataDetails))
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_outputDetails = (DescribeExecutionResponse
-> Maybe CloudWatchEventsExecutionDataDetails)
-> (DescribeExecutionResponse
-> Maybe CloudWatchEventsExecutionDataDetails
-> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe CloudWatchEventsExecutionDataDetails)
(Maybe CloudWatchEventsExecutionDataDetails)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe CloudWatchEventsExecutionDataDetails
outputDetails :: Maybe CloudWatchEventsExecutionDataDetails
$sel:outputDetails:DescribeExecutionResponse' :: DescribeExecutionResponse
-> Maybe CloudWatchEventsExecutionDataDetails
outputDetails} -> Maybe CloudWatchEventsExecutionDataDetails
outputDetails) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe CloudWatchEventsExecutionDataDetails
a -> DescribeExecutionResponse
s {$sel:outputDetails:DescribeExecutionResponse' :: Maybe CloudWatchEventsExecutionDataDetails
outputDetails = Maybe CloudWatchEventsExecutionDataDetails
a} :: DescribeExecutionResponse)
describeExecutionResponse_traceHeader :: Lens.Lens' DescribeExecutionResponse (Prelude.Maybe Prelude.Text)
= (DescribeExecutionResponse -> Maybe Text)
-> (DescribeExecutionResponse
-> Maybe Text -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Maybe Text
traceHeader :: Maybe Text
$sel:traceHeader:DescribeExecutionResponse' :: DescribeExecutionResponse -> Maybe Text
traceHeader} -> Maybe Text
traceHeader) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Maybe Text
a -> DescribeExecutionResponse
s {$sel:traceHeader:DescribeExecutionResponse' :: Maybe Text
traceHeader = Maybe Text
a} :: DescribeExecutionResponse)
describeExecutionResponse_httpStatus :: Lens.Lens' DescribeExecutionResponse Prelude.Int
describeExecutionResponse_httpStatus :: (Int -> f Int)
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_httpStatus = (DescribeExecutionResponse -> Int)
-> (DescribeExecutionResponse -> Int -> DescribeExecutionResponse)
-> Lens DescribeExecutionResponse DescribeExecutionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeExecutionResponse' :: DescribeExecutionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Int
a -> DescribeExecutionResponse
s {$sel:httpStatus:DescribeExecutionResponse' :: Int
httpStatus = Int
a} :: DescribeExecutionResponse)
describeExecutionResponse_executionArn :: Lens.Lens' DescribeExecutionResponse Prelude.Text
describeExecutionResponse_executionArn :: (Text -> f Text)
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_executionArn = (DescribeExecutionResponse -> Text)
-> (DescribeExecutionResponse -> Text -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse DescribeExecutionResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Text
executionArn :: Text
$sel:executionArn:DescribeExecutionResponse' :: DescribeExecutionResponse -> Text
executionArn} -> Text
executionArn) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Text
a -> DescribeExecutionResponse
s {$sel:executionArn:DescribeExecutionResponse' :: Text
executionArn = Text
a} :: DescribeExecutionResponse)
describeExecutionResponse_stateMachineArn :: Lens.Lens' DescribeExecutionResponse Prelude.Text
describeExecutionResponse_stateMachineArn :: (Text -> f Text)
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_stateMachineArn = (DescribeExecutionResponse -> Text)
-> (DescribeExecutionResponse -> Text -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse DescribeExecutionResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {Text
stateMachineArn :: Text
$sel:stateMachineArn:DescribeExecutionResponse' :: DescribeExecutionResponse -> Text
stateMachineArn} -> Text
stateMachineArn) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} Text
a -> DescribeExecutionResponse
s {$sel:stateMachineArn:DescribeExecutionResponse' :: Text
stateMachineArn = Text
a} :: DescribeExecutionResponse)
describeExecutionResponse_status :: Lens.Lens' DescribeExecutionResponse ExecutionStatus
describeExecutionResponse_status :: (ExecutionStatus -> f ExecutionStatus)
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_status = (DescribeExecutionResponse -> ExecutionStatus)
-> (DescribeExecutionResponse
-> ExecutionStatus -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse
DescribeExecutionResponse
ExecutionStatus
ExecutionStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {ExecutionStatus
status :: ExecutionStatus
$sel:status:DescribeExecutionResponse' :: DescribeExecutionResponse -> ExecutionStatus
status} -> ExecutionStatus
status) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} ExecutionStatus
a -> DescribeExecutionResponse
s {$sel:status:DescribeExecutionResponse' :: ExecutionStatus
status = ExecutionStatus
a} :: DescribeExecutionResponse)
describeExecutionResponse_startDate :: Lens.Lens' DescribeExecutionResponse Prelude.UTCTime
describeExecutionResponse_startDate :: (UTCTime -> f UTCTime)
-> DescribeExecutionResponse -> f DescribeExecutionResponse
describeExecutionResponse_startDate = (DescribeExecutionResponse -> POSIX)
-> (DescribeExecutionResponse
-> POSIX -> DescribeExecutionResponse)
-> Lens
DescribeExecutionResponse DescribeExecutionResponse POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeExecutionResponse' {POSIX
startDate :: POSIX
$sel:startDate:DescribeExecutionResponse' :: DescribeExecutionResponse -> POSIX
startDate} -> POSIX
startDate) (\s :: DescribeExecutionResponse
s@DescribeExecutionResponse' {} POSIX
a -> DescribeExecutionResponse
s {$sel:startDate:DescribeExecutionResponse' :: POSIX
startDate = POSIX
a} :: DescribeExecutionResponse) ((POSIX -> f POSIX)
-> DescribeExecutionResponse -> f DescribeExecutionResponse)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> DescribeExecutionResponse
-> f DescribeExecutionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
instance Prelude.NFData DescribeExecutionResponse