{-# 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.SWF.DescribeWorkflowExecution
(
DescribeWorkflowExecution (..),
newDescribeWorkflowExecution,
describeWorkflowExecution_domain,
describeWorkflowExecution_execution,
DescribeWorkflowExecutionResponse (..),
newDescribeWorkflowExecutionResponse,
describeWorkflowExecutionResponse_latestActivityTaskTimestamp,
describeWorkflowExecutionResponse_latestExecutionContext,
describeWorkflowExecutionResponse_httpStatus,
describeWorkflowExecutionResponse_executionInfo,
describeWorkflowExecutionResponse_executionConfiguration,
describeWorkflowExecutionResponse_openCounts,
)
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.SWF.Types
data DescribeWorkflowExecution = DescribeWorkflowExecution'
{
DescribeWorkflowExecution -> Text
domain :: Prelude.Text,
DescribeWorkflowExecution -> WorkflowExecution
execution :: WorkflowExecution
}
deriving (DescribeWorkflowExecution -> DescribeWorkflowExecution -> Bool
(DescribeWorkflowExecution -> DescribeWorkflowExecution -> Bool)
-> (DescribeWorkflowExecution -> DescribeWorkflowExecution -> Bool)
-> Eq DescribeWorkflowExecution
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorkflowExecution -> DescribeWorkflowExecution -> Bool
$c/= :: DescribeWorkflowExecution -> DescribeWorkflowExecution -> Bool
== :: DescribeWorkflowExecution -> DescribeWorkflowExecution -> Bool
$c== :: DescribeWorkflowExecution -> DescribeWorkflowExecution -> Bool
Prelude.Eq, ReadPrec [DescribeWorkflowExecution]
ReadPrec DescribeWorkflowExecution
Int -> ReadS DescribeWorkflowExecution
ReadS [DescribeWorkflowExecution]
(Int -> ReadS DescribeWorkflowExecution)
-> ReadS [DescribeWorkflowExecution]
-> ReadPrec DescribeWorkflowExecution
-> ReadPrec [DescribeWorkflowExecution]
-> Read DescribeWorkflowExecution
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorkflowExecution]
$creadListPrec :: ReadPrec [DescribeWorkflowExecution]
readPrec :: ReadPrec DescribeWorkflowExecution
$creadPrec :: ReadPrec DescribeWorkflowExecution
readList :: ReadS [DescribeWorkflowExecution]
$creadList :: ReadS [DescribeWorkflowExecution]
readsPrec :: Int -> ReadS DescribeWorkflowExecution
$creadsPrec :: Int -> ReadS DescribeWorkflowExecution
Prelude.Read, Int -> DescribeWorkflowExecution -> ShowS
[DescribeWorkflowExecution] -> ShowS
DescribeWorkflowExecution -> String
(Int -> DescribeWorkflowExecution -> ShowS)
-> (DescribeWorkflowExecution -> String)
-> ([DescribeWorkflowExecution] -> ShowS)
-> Show DescribeWorkflowExecution
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorkflowExecution] -> ShowS
$cshowList :: [DescribeWorkflowExecution] -> ShowS
show :: DescribeWorkflowExecution -> String
$cshow :: DescribeWorkflowExecution -> String
showsPrec :: Int -> DescribeWorkflowExecution -> ShowS
$cshowsPrec :: Int -> DescribeWorkflowExecution -> ShowS
Prelude.Show, (forall x.
DescribeWorkflowExecution -> Rep DescribeWorkflowExecution x)
-> (forall x.
Rep DescribeWorkflowExecution x -> DescribeWorkflowExecution)
-> Generic DescribeWorkflowExecution
forall x.
Rep DescribeWorkflowExecution x -> DescribeWorkflowExecution
forall x.
DescribeWorkflowExecution -> Rep DescribeWorkflowExecution x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeWorkflowExecution x -> DescribeWorkflowExecution
$cfrom :: forall x.
DescribeWorkflowExecution -> Rep DescribeWorkflowExecution x
Prelude.Generic)
newDescribeWorkflowExecution ::
Prelude.Text ->
WorkflowExecution ->
DescribeWorkflowExecution
newDescribeWorkflowExecution :: Text -> WorkflowExecution -> DescribeWorkflowExecution
newDescribeWorkflowExecution Text
pDomain_ WorkflowExecution
pExecution_ =
DescribeWorkflowExecution' :: Text -> WorkflowExecution -> DescribeWorkflowExecution
DescribeWorkflowExecution'
{ $sel:domain:DescribeWorkflowExecution' :: Text
domain = Text
pDomain_,
$sel:execution:DescribeWorkflowExecution' :: WorkflowExecution
execution = WorkflowExecution
pExecution_
}
describeWorkflowExecution_domain :: Lens.Lens' DescribeWorkflowExecution Prelude.Text
describeWorkflowExecution_domain :: (Text -> f Text)
-> DescribeWorkflowExecution -> f DescribeWorkflowExecution
describeWorkflowExecution_domain = (DescribeWorkflowExecution -> Text)
-> (DescribeWorkflowExecution -> Text -> DescribeWorkflowExecution)
-> Lens
DescribeWorkflowExecution DescribeWorkflowExecution Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkflowExecution' {Text
domain :: Text
$sel:domain:DescribeWorkflowExecution' :: DescribeWorkflowExecution -> Text
domain} -> Text
domain) (\s :: DescribeWorkflowExecution
s@DescribeWorkflowExecution' {} Text
a -> DescribeWorkflowExecution
s {$sel:domain:DescribeWorkflowExecution' :: Text
domain = Text
a} :: DescribeWorkflowExecution)
describeWorkflowExecution_execution :: Lens.Lens' DescribeWorkflowExecution WorkflowExecution
describeWorkflowExecution_execution :: (WorkflowExecution -> f WorkflowExecution)
-> DescribeWorkflowExecution -> f DescribeWorkflowExecution
describeWorkflowExecution_execution = (DescribeWorkflowExecution -> WorkflowExecution)
-> (DescribeWorkflowExecution
-> WorkflowExecution -> DescribeWorkflowExecution)
-> Lens
DescribeWorkflowExecution
DescribeWorkflowExecution
WorkflowExecution
WorkflowExecution
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkflowExecution' {WorkflowExecution
execution :: WorkflowExecution
$sel:execution:DescribeWorkflowExecution' :: DescribeWorkflowExecution -> WorkflowExecution
execution} -> WorkflowExecution
execution) (\s :: DescribeWorkflowExecution
s@DescribeWorkflowExecution' {} WorkflowExecution
a -> DescribeWorkflowExecution
s {$sel:execution:DescribeWorkflowExecution' :: WorkflowExecution
execution = WorkflowExecution
a} :: DescribeWorkflowExecution)
instance Core.AWSRequest DescribeWorkflowExecution where
type
AWSResponse DescribeWorkflowExecution =
DescribeWorkflowExecutionResponse
request :: DescribeWorkflowExecution -> Request DescribeWorkflowExecution
request = Service
-> DescribeWorkflowExecution -> Request DescribeWorkflowExecution
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeWorkflowExecution
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeWorkflowExecution)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeWorkflowExecution))
-> Logger
-> Service
-> Proxy DescribeWorkflowExecution
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeWorkflowExecution)))
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 Text
-> Int
-> WorkflowExecutionInfo
-> WorkflowExecutionConfiguration
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse
DescribeWorkflowExecutionResponse'
(Maybe POSIX
-> Maybe Text
-> Int
-> WorkflowExecutionInfo
-> WorkflowExecutionConfiguration
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Int
-> WorkflowExecutionInfo
-> WorkflowExecutionConfiguration
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse)
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
"latestActivityTaskTimestamp")
Either
String
(Maybe Text
-> Int
-> WorkflowExecutionInfo
-> WorkflowExecutionConfiguration
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse)
-> Either String (Maybe Text)
-> Either
String
(Int
-> WorkflowExecutionInfo
-> WorkflowExecutionConfiguration
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse)
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
"latestExecutionContext")
Either
String
(Int
-> WorkflowExecutionInfo
-> WorkflowExecutionConfiguration
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse)
-> Either String Int
-> Either
String
(WorkflowExecutionInfo
-> WorkflowExecutionConfiguration
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse)
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
(WorkflowExecutionInfo
-> WorkflowExecutionConfiguration
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse)
-> Either String WorkflowExecutionInfo
-> Either
String
(WorkflowExecutionConfiguration
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String WorkflowExecutionInfo
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"executionInfo")
Either
String
(WorkflowExecutionConfiguration
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse)
-> Either String WorkflowExecutionConfiguration
-> Either
String
(WorkflowExecutionOpenCounts -> DescribeWorkflowExecutionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String WorkflowExecutionConfiguration
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"executionConfiguration")
Either
String
(WorkflowExecutionOpenCounts -> DescribeWorkflowExecutionResponse)
-> Either String WorkflowExecutionOpenCounts
-> Either String DescribeWorkflowExecutionResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String WorkflowExecutionOpenCounts
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"openCounts")
)
instance Prelude.Hashable DescribeWorkflowExecution
instance Prelude.NFData DescribeWorkflowExecution
instance Core.ToHeaders DescribeWorkflowExecution where
toHeaders :: DescribeWorkflowExecution -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeWorkflowExecution -> 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
"SimpleWorkflowService.DescribeWorkflowExecution" ::
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 DescribeWorkflowExecution where
toJSON :: DescribeWorkflowExecution -> Value
toJSON DescribeWorkflowExecution' {Text
WorkflowExecution
execution :: WorkflowExecution
domain :: Text
$sel:execution:DescribeWorkflowExecution' :: DescribeWorkflowExecution -> WorkflowExecution
$sel:domain:DescribeWorkflowExecution' :: DescribeWorkflowExecution -> 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
"domain" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
domain),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"execution" Text -> WorkflowExecution -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= WorkflowExecution
execution)
]
)
instance Core.ToPath DescribeWorkflowExecution where
toPath :: DescribeWorkflowExecution -> ByteString
toPath = ByteString -> DescribeWorkflowExecution -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeWorkflowExecution where
toQuery :: DescribeWorkflowExecution -> QueryString
toQuery = QueryString -> DescribeWorkflowExecution -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeWorkflowExecutionResponse = DescribeWorkflowExecutionResponse'
{
DescribeWorkflowExecutionResponse -> Maybe POSIX
latestActivityTaskTimestamp :: Prelude.Maybe Core.POSIX,
DescribeWorkflowExecutionResponse -> Maybe Text
latestExecutionContext :: Prelude.Maybe Prelude.Text,
DescribeWorkflowExecutionResponse -> Int
httpStatus :: Prelude.Int,
DescribeWorkflowExecutionResponse -> WorkflowExecutionInfo
executionInfo :: WorkflowExecutionInfo,
DescribeWorkflowExecutionResponse -> WorkflowExecutionConfiguration
executionConfiguration :: WorkflowExecutionConfiguration,
DescribeWorkflowExecutionResponse -> WorkflowExecutionOpenCounts
openCounts :: WorkflowExecutionOpenCounts
}
deriving (DescribeWorkflowExecutionResponse
-> DescribeWorkflowExecutionResponse -> Bool
(DescribeWorkflowExecutionResponse
-> DescribeWorkflowExecutionResponse -> Bool)
-> (DescribeWorkflowExecutionResponse
-> DescribeWorkflowExecutionResponse -> Bool)
-> Eq DescribeWorkflowExecutionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeWorkflowExecutionResponse
-> DescribeWorkflowExecutionResponse -> Bool
$c/= :: DescribeWorkflowExecutionResponse
-> DescribeWorkflowExecutionResponse -> Bool
== :: DescribeWorkflowExecutionResponse
-> DescribeWorkflowExecutionResponse -> Bool
$c== :: DescribeWorkflowExecutionResponse
-> DescribeWorkflowExecutionResponse -> Bool
Prelude.Eq, ReadPrec [DescribeWorkflowExecutionResponse]
ReadPrec DescribeWorkflowExecutionResponse
Int -> ReadS DescribeWorkflowExecutionResponse
ReadS [DescribeWorkflowExecutionResponse]
(Int -> ReadS DescribeWorkflowExecutionResponse)
-> ReadS [DescribeWorkflowExecutionResponse]
-> ReadPrec DescribeWorkflowExecutionResponse
-> ReadPrec [DescribeWorkflowExecutionResponse]
-> Read DescribeWorkflowExecutionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeWorkflowExecutionResponse]
$creadListPrec :: ReadPrec [DescribeWorkflowExecutionResponse]
readPrec :: ReadPrec DescribeWorkflowExecutionResponse
$creadPrec :: ReadPrec DescribeWorkflowExecutionResponse
readList :: ReadS [DescribeWorkflowExecutionResponse]
$creadList :: ReadS [DescribeWorkflowExecutionResponse]
readsPrec :: Int -> ReadS DescribeWorkflowExecutionResponse
$creadsPrec :: Int -> ReadS DescribeWorkflowExecutionResponse
Prelude.Read, Int -> DescribeWorkflowExecutionResponse -> ShowS
[DescribeWorkflowExecutionResponse] -> ShowS
DescribeWorkflowExecutionResponse -> String
(Int -> DescribeWorkflowExecutionResponse -> ShowS)
-> (DescribeWorkflowExecutionResponse -> String)
-> ([DescribeWorkflowExecutionResponse] -> ShowS)
-> Show DescribeWorkflowExecutionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeWorkflowExecutionResponse] -> ShowS
$cshowList :: [DescribeWorkflowExecutionResponse] -> ShowS
show :: DescribeWorkflowExecutionResponse -> String
$cshow :: DescribeWorkflowExecutionResponse -> String
showsPrec :: Int -> DescribeWorkflowExecutionResponse -> ShowS
$cshowsPrec :: Int -> DescribeWorkflowExecutionResponse -> ShowS
Prelude.Show, (forall x.
DescribeWorkflowExecutionResponse
-> Rep DescribeWorkflowExecutionResponse x)
-> (forall x.
Rep DescribeWorkflowExecutionResponse x
-> DescribeWorkflowExecutionResponse)
-> Generic DescribeWorkflowExecutionResponse
forall x.
Rep DescribeWorkflowExecutionResponse x
-> DescribeWorkflowExecutionResponse
forall x.
DescribeWorkflowExecutionResponse
-> Rep DescribeWorkflowExecutionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeWorkflowExecutionResponse x
-> DescribeWorkflowExecutionResponse
$cfrom :: forall x.
DescribeWorkflowExecutionResponse
-> Rep DescribeWorkflowExecutionResponse x
Prelude.Generic)
newDescribeWorkflowExecutionResponse ::
Prelude.Int ->
WorkflowExecutionInfo ->
WorkflowExecutionConfiguration ->
WorkflowExecutionOpenCounts ->
DescribeWorkflowExecutionResponse
newDescribeWorkflowExecutionResponse :: Int
-> WorkflowExecutionInfo
-> WorkflowExecutionConfiguration
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse
newDescribeWorkflowExecutionResponse
Int
pHttpStatus_
WorkflowExecutionInfo
pExecutionInfo_
WorkflowExecutionConfiguration
pExecutionConfiguration_
WorkflowExecutionOpenCounts
pOpenCounts_ =
DescribeWorkflowExecutionResponse' :: Maybe POSIX
-> Maybe Text
-> Int
-> WorkflowExecutionInfo
-> WorkflowExecutionConfiguration
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse
DescribeWorkflowExecutionResponse'
{ $sel:latestActivityTaskTimestamp:DescribeWorkflowExecutionResponse' :: Maybe POSIX
latestActivityTaskTimestamp =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:latestExecutionContext:DescribeWorkflowExecutionResponse' :: Maybe Text
latestExecutionContext = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeWorkflowExecutionResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:executionInfo:DescribeWorkflowExecutionResponse' :: WorkflowExecutionInfo
executionInfo = WorkflowExecutionInfo
pExecutionInfo_,
$sel:executionConfiguration:DescribeWorkflowExecutionResponse' :: WorkflowExecutionConfiguration
executionConfiguration =
WorkflowExecutionConfiguration
pExecutionConfiguration_,
$sel:openCounts:DescribeWorkflowExecutionResponse' :: WorkflowExecutionOpenCounts
openCounts = WorkflowExecutionOpenCounts
pOpenCounts_
}
describeWorkflowExecutionResponse_latestActivityTaskTimestamp :: Lens.Lens' DescribeWorkflowExecutionResponse (Prelude.Maybe Prelude.UTCTime)
describeWorkflowExecutionResponse_latestActivityTaskTimestamp :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeWorkflowExecutionResponse
-> f DescribeWorkflowExecutionResponse
describeWorkflowExecutionResponse_latestActivityTaskTimestamp = (DescribeWorkflowExecutionResponse -> Maybe POSIX)
-> (DescribeWorkflowExecutionResponse
-> Maybe POSIX -> DescribeWorkflowExecutionResponse)
-> Lens
DescribeWorkflowExecutionResponse
DescribeWorkflowExecutionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkflowExecutionResponse' {Maybe POSIX
latestActivityTaskTimestamp :: Maybe POSIX
$sel:latestActivityTaskTimestamp:DescribeWorkflowExecutionResponse' :: DescribeWorkflowExecutionResponse -> Maybe POSIX
latestActivityTaskTimestamp} -> Maybe POSIX
latestActivityTaskTimestamp) (\s :: DescribeWorkflowExecutionResponse
s@DescribeWorkflowExecutionResponse' {} Maybe POSIX
a -> DescribeWorkflowExecutionResponse
s {$sel:latestActivityTaskTimestamp:DescribeWorkflowExecutionResponse' :: Maybe POSIX
latestActivityTaskTimestamp = Maybe POSIX
a} :: DescribeWorkflowExecutionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeWorkflowExecutionResponse
-> f DescribeWorkflowExecutionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeWorkflowExecutionResponse
-> f DescribeWorkflowExecutionResponse
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
describeWorkflowExecutionResponse_latestExecutionContext :: Lens.Lens' DescribeWorkflowExecutionResponse (Prelude.Maybe Prelude.Text)
describeWorkflowExecutionResponse_latestExecutionContext :: (Maybe Text -> f (Maybe Text))
-> DescribeWorkflowExecutionResponse
-> f DescribeWorkflowExecutionResponse
describeWorkflowExecutionResponse_latestExecutionContext = (DescribeWorkflowExecutionResponse -> Maybe Text)
-> (DescribeWorkflowExecutionResponse
-> Maybe Text -> DescribeWorkflowExecutionResponse)
-> Lens
DescribeWorkflowExecutionResponse
DescribeWorkflowExecutionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkflowExecutionResponse' {Maybe Text
latestExecutionContext :: Maybe Text
$sel:latestExecutionContext:DescribeWorkflowExecutionResponse' :: DescribeWorkflowExecutionResponse -> Maybe Text
latestExecutionContext} -> Maybe Text
latestExecutionContext) (\s :: DescribeWorkflowExecutionResponse
s@DescribeWorkflowExecutionResponse' {} Maybe Text
a -> DescribeWorkflowExecutionResponse
s {$sel:latestExecutionContext:DescribeWorkflowExecutionResponse' :: Maybe Text
latestExecutionContext = Maybe Text
a} :: DescribeWorkflowExecutionResponse)
describeWorkflowExecutionResponse_httpStatus :: Lens.Lens' DescribeWorkflowExecutionResponse Prelude.Int
describeWorkflowExecutionResponse_httpStatus :: (Int -> f Int)
-> DescribeWorkflowExecutionResponse
-> f DescribeWorkflowExecutionResponse
describeWorkflowExecutionResponse_httpStatus = (DescribeWorkflowExecutionResponse -> Int)
-> (DescribeWorkflowExecutionResponse
-> Int -> DescribeWorkflowExecutionResponse)
-> Lens
DescribeWorkflowExecutionResponse
DescribeWorkflowExecutionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkflowExecutionResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeWorkflowExecutionResponse' :: DescribeWorkflowExecutionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeWorkflowExecutionResponse
s@DescribeWorkflowExecutionResponse' {} Int
a -> DescribeWorkflowExecutionResponse
s {$sel:httpStatus:DescribeWorkflowExecutionResponse' :: Int
httpStatus = Int
a} :: DescribeWorkflowExecutionResponse)
describeWorkflowExecutionResponse_executionInfo :: Lens.Lens' DescribeWorkflowExecutionResponse WorkflowExecutionInfo
describeWorkflowExecutionResponse_executionInfo :: (WorkflowExecutionInfo -> f WorkflowExecutionInfo)
-> DescribeWorkflowExecutionResponse
-> f DescribeWorkflowExecutionResponse
describeWorkflowExecutionResponse_executionInfo = (DescribeWorkflowExecutionResponse -> WorkflowExecutionInfo)
-> (DescribeWorkflowExecutionResponse
-> WorkflowExecutionInfo -> DescribeWorkflowExecutionResponse)
-> Lens
DescribeWorkflowExecutionResponse
DescribeWorkflowExecutionResponse
WorkflowExecutionInfo
WorkflowExecutionInfo
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkflowExecutionResponse' {WorkflowExecutionInfo
executionInfo :: WorkflowExecutionInfo
$sel:executionInfo:DescribeWorkflowExecutionResponse' :: DescribeWorkflowExecutionResponse -> WorkflowExecutionInfo
executionInfo} -> WorkflowExecutionInfo
executionInfo) (\s :: DescribeWorkflowExecutionResponse
s@DescribeWorkflowExecutionResponse' {} WorkflowExecutionInfo
a -> DescribeWorkflowExecutionResponse
s {$sel:executionInfo:DescribeWorkflowExecutionResponse' :: WorkflowExecutionInfo
executionInfo = WorkflowExecutionInfo
a} :: DescribeWorkflowExecutionResponse)
describeWorkflowExecutionResponse_executionConfiguration :: Lens.Lens' DescribeWorkflowExecutionResponse WorkflowExecutionConfiguration
describeWorkflowExecutionResponse_executionConfiguration :: (WorkflowExecutionConfiguration
-> f WorkflowExecutionConfiguration)
-> DescribeWorkflowExecutionResponse
-> f DescribeWorkflowExecutionResponse
describeWorkflowExecutionResponse_executionConfiguration = (DescribeWorkflowExecutionResponse
-> WorkflowExecutionConfiguration)
-> (DescribeWorkflowExecutionResponse
-> WorkflowExecutionConfiguration
-> DescribeWorkflowExecutionResponse)
-> Lens
DescribeWorkflowExecutionResponse
DescribeWorkflowExecutionResponse
WorkflowExecutionConfiguration
WorkflowExecutionConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkflowExecutionResponse' {WorkflowExecutionConfiguration
executionConfiguration :: WorkflowExecutionConfiguration
$sel:executionConfiguration:DescribeWorkflowExecutionResponse' :: DescribeWorkflowExecutionResponse -> WorkflowExecutionConfiguration
executionConfiguration} -> WorkflowExecutionConfiguration
executionConfiguration) (\s :: DescribeWorkflowExecutionResponse
s@DescribeWorkflowExecutionResponse' {} WorkflowExecutionConfiguration
a -> DescribeWorkflowExecutionResponse
s {$sel:executionConfiguration:DescribeWorkflowExecutionResponse' :: WorkflowExecutionConfiguration
executionConfiguration = WorkflowExecutionConfiguration
a} :: DescribeWorkflowExecutionResponse)
describeWorkflowExecutionResponse_openCounts :: Lens.Lens' DescribeWorkflowExecutionResponse WorkflowExecutionOpenCounts
describeWorkflowExecutionResponse_openCounts :: (WorkflowExecutionOpenCounts -> f WorkflowExecutionOpenCounts)
-> DescribeWorkflowExecutionResponse
-> f DescribeWorkflowExecutionResponse
describeWorkflowExecutionResponse_openCounts = (DescribeWorkflowExecutionResponse -> WorkflowExecutionOpenCounts)
-> (DescribeWorkflowExecutionResponse
-> WorkflowExecutionOpenCounts
-> DescribeWorkflowExecutionResponse)
-> Lens
DescribeWorkflowExecutionResponse
DescribeWorkflowExecutionResponse
WorkflowExecutionOpenCounts
WorkflowExecutionOpenCounts
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeWorkflowExecutionResponse' {WorkflowExecutionOpenCounts
openCounts :: WorkflowExecutionOpenCounts
$sel:openCounts:DescribeWorkflowExecutionResponse' :: DescribeWorkflowExecutionResponse -> WorkflowExecutionOpenCounts
openCounts} -> WorkflowExecutionOpenCounts
openCounts) (\s :: DescribeWorkflowExecutionResponse
s@DescribeWorkflowExecutionResponse' {} WorkflowExecutionOpenCounts
a -> DescribeWorkflowExecutionResponse
s {$sel:openCounts:DescribeWorkflowExecutionResponse' :: WorkflowExecutionOpenCounts
openCounts = WorkflowExecutionOpenCounts
a} :: DescribeWorkflowExecutionResponse)
instance
Prelude.NFData
DescribeWorkflowExecutionResponse