{-# 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.GetExecutionHistory
(
GetExecutionHistory (..),
newGetExecutionHistory,
getExecutionHistory_reverseOrder,
getExecutionHistory_includeExecutionData,
getExecutionHistory_nextToken,
getExecutionHistory_maxResults,
getExecutionHistory_executionArn,
GetExecutionHistoryResponse (..),
newGetExecutionHistoryResponse,
getExecutionHistoryResponse_nextToken,
getExecutionHistoryResponse_httpStatus,
getExecutionHistoryResponse_events,
)
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 GetExecutionHistory = GetExecutionHistory'
{
GetExecutionHistory -> Maybe Bool
reverseOrder :: Prelude.Maybe Prelude.Bool,
GetExecutionHistory -> Maybe Bool
includeExecutionData :: Prelude.Maybe Prelude.Bool,
GetExecutionHistory -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetExecutionHistory -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetExecutionHistory -> Text
executionArn :: Prelude.Text
}
deriving (GetExecutionHistory -> GetExecutionHistory -> Bool
(GetExecutionHistory -> GetExecutionHistory -> Bool)
-> (GetExecutionHistory -> GetExecutionHistory -> Bool)
-> Eq GetExecutionHistory
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetExecutionHistory -> GetExecutionHistory -> Bool
$c/= :: GetExecutionHistory -> GetExecutionHistory -> Bool
== :: GetExecutionHistory -> GetExecutionHistory -> Bool
$c== :: GetExecutionHistory -> GetExecutionHistory -> Bool
Prelude.Eq, ReadPrec [GetExecutionHistory]
ReadPrec GetExecutionHistory
Int -> ReadS GetExecutionHistory
ReadS [GetExecutionHistory]
(Int -> ReadS GetExecutionHistory)
-> ReadS [GetExecutionHistory]
-> ReadPrec GetExecutionHistory
-> ReadPrec [GetExecutionHistory]
-> Read GetExecutionHistory
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetExecutionHistory]
$creadListPrec :: ReadPrec [GetExecutionHistory]
readPrec :: ReadPrec GetExecutionHistory
$creadPrec :: ReadPrec GetExecutionHistory
readList :: ReadS [GetExecutionHistory]
$creadList :: ReadS [GetExecutionHistory]
readsPrec :: Int -> ReadS GetExecutionHistory
$creadsPrec :: Int -> ReadS GetExecutionHistory
Prelude.Read, Int -> GetExecutionHistory -> ShowS
[GetExecutionHistory] -> ShowS
GetExecutionHistory -> String
(Int -> GetExecutionHistory -> ShowS)
-> (GetExecutionHistory -> String)
-> ([GetExecutionHistory] -> ShowS)
-> Show GetExecutionHistory
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetExecutionHistory] -> ShowS
$cshowList :: [GetExecutionHistory] -> ShowS
show :: GetExecutionHistory -> String
$cshow :: GetExecutionHistory -> String
showsPrec :: Int -> GetExecutionHistory -> ShowS
$cshowsPrec :: Int -> GetExecutionHistory -> ShowS
Prelude.Show, (forall x. GetExecutionHistory -> Rep GetExecutionHistory x)
-> (forall x. Rep GetExecutionHistory x -> GetExecutionHistory)
-> Generic GetExecutionHistory
forall x. Rep GetExecutionHistory x -> GetExecutionHistory
forall x. GetExecutionHistory -> Rep GetExecutionHistory x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetExecutionHistory x -> GetExecutionHistory
$cfrom :: forall x. GetExecutionHistory -> Rep GetExecutionHistory x
Prelude.Generic)
newGetExecutionHistory ::
Prelude.Text ->
GetExecutionHistory
newGetExecutionHistory :: Text -> GetExecutionHistory
newGetExecutionHistory Text
pExecutionArn_ =
GetExecutionHistory' :: Maybe Bool
-> Maybe Bool
-> Maybe Text
-> Maybe Natural
-> Text
-> GetExecutionHistory
GetExecutionHistory'
{ $sel:reverseOrder:GetExecutionHistory' :: Maybe Bool
reverseOrder =
Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:includeExecutionData:GetExecutionHistory' :: Maybe Bool
includeExecutionData = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetExecutionHistory' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetExecutionHistory' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:executionArn:GetExecutionHistory' :: Text
executionArn = Text
pExecutionArn_
}
getExecutionHistory_reverseOrder :: Lens.Lens' GetExecutionHistory (Prelude.Maybe Prelude.Bool)
getExecutionHistory_reverseOrder :: (Maybe Bool -> f (Maybe Bool))
-> GetExecutionHistory -> f GetExecutionHistory
getExecutionHistory_reverseOrder = (GetExecutionHistory -> Maybe Bool)
-> (GetExecutionHistory -> Maybe Bool -> GetExecutionHistory)
-> Lens
GetExecutionHistory GetExecutionHistory (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExecutionHistory' {Maybe Bool
reverseOrder :: Maybe Bool
$sel:reverseOrder:GetExecutionHistory' :: GetExecutionHistory -> Maybe Bool
reverseOrder} -> Maybe Bool
reverseOrder) (\s :: GetExecutionHistory
s@GetExecutionHistory' {} Maybe Bool
a -> GetExecutionHistory
s {$sel:reverseOrder:GetExecutionHistory' :: Maybe Bool
reverseOrder = Maybe Bool
a} :: GetExecutionHistory)
getExecutionHistory_includeExecutionData :: Lens.Lens' GetExecutionHistory (Prelude.Maybe Prelude.Bool)
getExecutionHistory_includeExecutionData :: (Maybe Bool -> f (Maybe Bool))
-> GetExecutionHistory -> f GetExecutionHistory
getExecutionHistory_includeExecutionData = (GetExecutionHistory -> Maybe Bool)
-> (GetExecutionHistory -> Maybe Bool -> GetExecutionHistory)
-> Lens
GetExecutionHistory GetExecutionHistory (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExecutionHistory' {Maybe Bool
includeExecutionData :: Maybe Bool
$sel:includeExecutionData:GetExecutionHistory' :: GetExecutionHistory -> Maybe Bool
includeExecutionData} -> Maybe Bool
includeExecutionData) (\s :: GetExecutionHistory
s@GetExecutionHistory' {} Maybe Bool
a -> GetExecutionHistory
s {$sel:includeExecutionData:GetExecutionHistory' :: Maybe Bool
includeExecutionData = Maybe Bool
a} :: GetExecutionHistory)
getExecutionHistory_nextToken :: Lens.Lens' GetExecutionHistory (Prelude.Maybe Prelude.Text)
getExecutionHistory_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetExecutionHistory -> f GetExecutionHistory
getExecutionHistory_nextToken = (GetExecutionHistory -> Maybe Text)
-> (GetExecutionHistory -> Maybe Text -> GetExecutionHistory)
-> Lens
GetExecutionHistory GetExecutionHistory (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExecutionHistory' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetExecutionHistory' :: GetExecutionHistory -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetExecutionHistory
s@GetExecutionHistory' {} Maybe Text
a -> GetExecutionHistory
s {$sel:nextToken:GetExecutionHistory' :: Maybe Text
nextToken = Maybe Text
a} :: GetExecutionHistory)
getExecutionHistory_maxResults :: Lens.Lens' GetExecutionHistory (Prelude.Maybe Prelude.Natural)
getExecutionHistory_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetExecutionHistory -> f GetExecutionHistory
getExecutionHistory_maxResults = (GetExecutionHistory -> Maybe Natural)
-> (GetExecutionHistory -> Maybe Natural -> GetExecutionHistory)
-> Lens
GetExecutionHistory
GetExecutionHistory
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExecutionHistory' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetExecutionHistory' :: GetExecutionHistory -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetExecutionHistory
s@GetExecutionHistory' {} Maybe Natural
a -> GetExecutionHistory
s {$sel:maxResults:GetExecutionHistory' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetExecutionHistory)
getExecutionHistory_executionArn :: Lens.Lens' GetExecutionHistory Prelude.Text
getExecutionHistory_executionArn :: (Text -> f Text) -> GetExecutionHistory -> f GetExecutionHistory
getExecutionHistory_executionArn = (GetExecutionHistory -> Text)
-> (GetExecutionHistory -> Text -> GetExecutionHistory)
-> Lens GetExecutionHistory GetExecutionHistory Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExecutionHistory' {Text
executionArn :: Text
$sel:executionArn:GetExecutionHistory' :: GetExecutionHistory -> Text
executionArn} -> Text
executionArn) (\s :: GetExecutionHistory
s@GetExecutionHistory' {} Text
a -> GetExecutionHistory
s {$sel:executionArn:GetExecutionHistory' :: Text
executionArn = Text
a} :: GetExecutionHistory)
instance Core.AWSPager GetExecutionHistory where
page :: GetExecutionHistory
-> AWSResponse GetExecutionHistory -> Maybe GetExecutionHistory
page GetExecutionHistory
rq AWSResponse GetExecutionHistory
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetExecutionHistory
GetExecutionHistoryResponse
rs
GetExecutionHistoryResponse
-> Getting (First Text) GetExecutionHistoryResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetExecutionHistoryResponse
-> Const (First Text) GetExecutionHistoryResponse
Lens' GetExecutionHistoryResponse (Maybe Text)
getExecutionHistoryResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetExecutionHistoryResponse
-> Const (First Text) GetExecutionHistoryResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetExecutionHistoryResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetExecutionHistory
forall a. Maybe a
Prelude.Nothing
| [HistoryEvent] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
(AWSResponse GetExecutionHistory
GetExecutionHistoryResponse
rs GetExecutionHistoryResponse
-> Getting
[HistoryEvent] GetExecutionHistoryResponse [HistoryEvent]
-> [HistoryEvent]
forall s a. s -> Getting a s a -> a
Lens.^. Getting [HistoryEvent] GetExecutionHistoryResponse [HistoryEvent]
Lens' GetExecutionHistoryResponse [HistoryEvent]
getExecutionHistoryResponse_events) =
Maybe GetExecutionHistory
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetExecutionHistory -> Maybe GetExecutionHistory
forall a. a -> Maybe a
Prelude.Just (GetExecutionHistory -> Maybe GetExecutionHistory)
-> GetExecutionHistory -> Maybe GetExecutionHistory
forall a b. (a -> b) -> a -> b
Prelude.$
GetExecutionHistory
rq
GetExecutionHistory
-> (GetExecutionHistory -> GetExecutionHistory)
-> GetExecutionHistory
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetExecutionHistory -> Identity GetExecutionHistory
Lens
GetExecutionHistory GetExecutionHistory (Maybe Text) (Maybe Text)
getExecutionHistory_nextToken
((Maybe Text -> Identity (Maybe Text))
-> GetExecutionHistory -> Identity GetExecutionHistory)
-> Maybe Text -> GetExecutionHistory -> GetExecutionHistory
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetExecutionHistory
GetExecutionHistoryResponse
rs
GetExecutionHistoryResponse
-> Getting (First Text) GetExecutionHistoryResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetExecutionHistoryResponse
-> Const (First Text) GetExecutionHistoryResponse
Lens' GetExecutionHistoryResponse (Maybe Text)
getExecutionHistoryResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetExecutionHistoryResponse
-> Const (First Text) GetExecutionHistoryResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetExecutionHistoryResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest GetExecutionHistory where
type
AWSResponse GetExecutionHistory =
GetExecutionHistoryResponse
request :: GetExecutionHistory -> Request GetExecutionHistory
request = Service -> GetExecutionHistory -> Request GetExecutionHistory
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetExecutionHistory
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetExecutionHistory)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetExecutionHistory))
-> Logger
-> Service
-> Proxy GetExecutionHistory
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetExecutionHistory)))
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 Text -> Int -> [HistoryEvent] -> GetExecutionHistoryResponse
GetExecutionHistoryResponse'
(Maybe Text
-> Int -> [HistoryEvent] -> GetExecutionHistoryResponse)
-> Either String (Maybe Text)
-> Either
String (Int -> [HistoryEvent] -> GetExecutionHistoryResponse)
forall (f :: * -> *) a b. Functor 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
"nextToken")
Either
String (Int -> [HistoryEvent] -> GetExecutionHistoryResponse)
-> Either String Int
-> Either String ([HistoryEvent] -> GetExecutionHistoryResponse)
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 ([HistoryEvent] -> GetExecutionHistoryResponse)
-> Either String [HistoryEvent]
-> Either String GetExecutionHistoryResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe [HistoryEvent])
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"events" Either String (Maybe [HistoryEvent])
-> [HistoryEvent] -> Either String [HistoryEvent]
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ [HistoryEvent]
forall a. Monoid a => a
Prelude.mempty)
)
instance Prelude.Hashable GetExecutionHistory
instance Prelude.NFData GetExecutionHistory
instance Core.ToHeaders GetExecutionHistory where
toHeaders :: GetExecutionHistory -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetExecutionHistory -> 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.GetExecutionHistory" ::
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 GetExecutionHistory where
toJSON :: GetExecutionHistory -> Value
toJSON GetExecutionHistory' {Maybe Bool
Maybe Natural
Maybe Text
Text
executionArn :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
includeExecutionData :: Maybe Bool
reverseOrder :: Maybe Bool
$sel:executionArn:GetExecutionHistory' :: GetExecutionHistory -> Text
$sel:maxResults:GetExecutionHistory' :: GetExecutionHistory -> Maybe Natural
$sel:nextToken:GetExecutionHistory' :: GetExecutionHistory -> Maybe Text
$sel:includeExecutionData:GetExecutionHistory' :: GetExecutionHistory -> Maybe Bool
$sel:reverseOrder:GetExecutionHistory' :: GetExecutionHistory -> Maybe Bool
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"reverseOrder" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
reverseOrder,
(Text
"includeExecutionData" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
includeExecutionData,
(Text
"nextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
(Text
"maxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
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 GetExecutionHistory where
toPath :: GetExecutionHistory -> ByteString
toPath = ByteString -> GetExecutionHistory -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetExecutionHistory where
toQuery :: GetExecutionHistory -> QueryString
toQuery = QueryString -> GetExecutionHistory -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetExecutionHistoryResponse = GetExecutionHistoryResponse'
{
GetExecutionHistoryResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetExecutionHistoryResponse -> Int
httpStatus :: Prelude.Int,
GetExecutionHistoryResponse -> [HistoryEvent]
events :: [HistoryEvent]
}
deriving (GetExecutionHistoryResponse -> GetExecutionHistoryResponse -> Bool
(GetExecutionHistoryResponse
-> GetExecutionHistoryResponse -> Bool)
-> (GetExecutionHistoryResponse
-> GetExecutionHistoryResponse -> Bool)
-> Eq GetExecutionHistoryResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetExecutionHistoryResponse -> GetExecutionHistoryResponse -> Bool
$c/= :: GetExecutionHistoryResponse -> GetExecutionHistoryResponse -> Bool
== :: GetExecutionHistoryResponse -> GetExecutionHistoryResponse -> Bool
$c== :: GetExecutionHistoryResponse -> GetExecutionHistoryResponse -> Bool
Prelude.Eq, Int -> GetExecutionHistoryResponse -> ShowS
[GetExecutionHistoryResponse] -> ShowS
GetExecutionHistoryResponse -> String
(Int -> GetExecutionHistoryResponse -> ShowS)
-> (GetExecutionHistoryResponse -> String)
-> ([GetExecutionHistoryResponse] -> ShowS)
-> Show GetExecutionHistoryResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetExecutionHistoryResponse] -> ShowS
$cshowList :: [GetExecutionHistoryResponse] -> ShowS
show :: GetExecutionHistoryResponse -> String
$cshow :: GetExecutionHistoryResponse -> String
showsPrec :: Int -> GetExecutionHistoryResponse -> ShowS
$cshowsPrec :: Int -> GetExecutionHistoryResponse -> ShowS
Prelude.Show, (forall x.
GetExecutionHistoryResponse -> Rep GetExecutionHistoryResponse x)
-> (forall x.
Rep GetExecutionHistoryResponse x -> GetExecutionHistoryResponse)
-> Generic GetExecutionHistoryResponse
forall x.
Rep GetExecutionHistoryResponse x -> GetExecutionHistoryResponse
forall x.
GetExecutionHistoryResponse -> Rep GetExecutionHistoryResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetExecutionHistoryResponse x -> GetExecutionHistoryResponse
$cfrom :: forall x.
GetExecutionHistoryResponse -> Rep GetExecutionHistoryResponse x
Prelude.Generic)
newGetExecutionHistoryResponse ::
Prelude.Int ->
GetExecutionHistoryResponse
newGetExecutionHistoryResponse :: Int -> GetExecutionHistoryResponse
newGetExecutionHistoryResponse Int
pHttpStatus_ =
GetExecutionHistoryResponse' :: Maybe Text -> Int -> [HistoryEvent] -> GetExecutionHistoryResponse
GetExecutionHistoryResponse'
{ $sel:nextToken:GetExecutionHistoryResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetExecutionHistoryResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:events:GetExecutionHistoryResponse' :: [HistoryEvent]
events = [HistoryEvent]
forall a. Monoid a => a
Prelude.mempty
}
getExecutionHistoryResponse_nextToken :: Lens.Lens' GetExecutionHistoryResponse (Prelude.Maybe Prelude.Text)
getExecutionHistoryResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetExecutionHistoryResponse -> f GetExecutionHistoryResponse
getExecutionHistoryResponse_nextToken = (GetExecutionHistoryResponse -> Maybe Text)
-> (GetExecutionHistoryResponse
-> Maybe Text -> GetExecutionHistoryResponse)
-> Lens' GetExecutionHistoryResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExecutionHistoryResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetExecutionHistoryResponse' :: GetExecutionHistoryResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetExecutionHistoryResponse
s@GetExecutionHistoryResponse' {} Maybe Text
a -> GetExecutionHistoryResponse
s {$sel:nextToken:GetExecutionHistoryResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetExecutionHistoryResponse)
getExecutionHistoryResponse_httpStatus :: Lens.Lens' GetExecutionHistoryResponse Prelude.Int
getExecutionHistoryResponse_httpStatus :: (Int -> f Int)
-> GetExecutionHistoryResponse -> f GetExecutionHistoryResponse
getExecutionHistoryResponse_httpStatus = (GetExecutionHistoryResponse -> Int)
-> (GetExecutionHistoryResponse
-> Int -> GetExecutionHistoryResponse)
-> Lens
GetExecutionHistoryResponse GetExecutionHistoryResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExecutionHistoryResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetExecutionHistoryResponse' :: GetExecutionHistoryResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetExecutionHistoryResponse
s@GetExecutionHistoryResponse' {} Int
a -> GetExecutionHistoryResponse
s {$sel:httpStatus:GetExecutionHistoryResponse' :: Int
httpStatus = Int
a} :: GetExecutionHistoryResponse)
getExecutionHistoryResponse_events :: Lens.Lens' GetExecutionHistoryResponse [HistoryEvent]
getExecutionHistoryResponse_events :: ([HistoryEvent] -> f [HistoryEvent])
-> GetExecutionHistoryResponse -> f GetExecutionHistoryResponse
getExecutionHistoryResponse_events = (GetExecutionHistoryResponse -> [HistoryEvent])
-> (GetExecutionHistoryResponse
-> [HistoryEvent] -> GetExecutionHistoryResponse)
-> Lens' GetExecutionHistoryResponse [HistoryEvent]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExecutionHistoryResponse' {[HistoryEvent]
events :: [HistoryEvent]
$sel:events:GetExecutionHistoryResponse' :: GetExecutionHistoryResponse -> [HistoryEvent]
events} -> [HistoryEvent]
events) (\s :: GetExecutionHistoryResponse
s@GetExecutionHistoryResponse' {} [HistoryEvent]
a -> GetExecutionHistoryResponse
s {$sel:events:GetExecutionHistoryResponse' :: [HistoryEvent]
events = [HistoryEvent]
a} :: GetExecutionHistoryResponse) (([HistoryEvent] -> f [HistoryEvent])
-> GetExecutionHistoryResponse -> f GetExecutionHistoryResponse)
-> (([HistoryEvent] -> f [HistoryEvent])
-> [HistoryEvent] -> f [HistoryEvent])
-> ([HistoryEvent] -> f [HistoryEvent])
-> GetExecutionHistoryResponse
-> f GetExecutionHistoryResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([HistoryEvent] -> f [HistoryEvent])
-> [HistoryEvent] -> f [HistoryEvent]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Prelude.NFData GetExecutionHistoryResponse