{-# 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.Glue.GetWorkflowRuns
(
GetWorkflowRuns (..),
newGetWorkflowRuns,
getWorkflowRuns_includeGraph,
getWorkflowRuns_nextToken,
getWorkflowRuns_maxResults,
getWorkflowRuns_name,
GetWorkflowRunsResponse (..),
newGetWorkflowRunsResponse,
getWorkflowRunsResponse_runs,
getWorkflowRunsResponse_nextToken,
getWorkflowRunsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Glue.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetWorkflowRuns = GetWorkflowRuns'
{
GetWorkflowRuns -> Maybe Bool
includeGraph :: Prelude.Maybe Prelude.Bool,
GetWorkflowRuns -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetWorkflowRuns -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
GetWorkflowRuns -> Text
name :: Prelude.Text
}
deriving (GetWorkflowRuns -> GetWorkflowRuns -> Bool
(GetWorkflowRuns -> GetWorkflowRuns -> Bool)
-> (GetWorkflowRuns -> GetWorkflowRuns -> Bool)
-> Eq GetWorkflowRuns
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetWorkflowRuns -> GetWorkflowRuns -> Bool
$c/= :: GetWorkflowRuns -> GetWorkflowRuns -> Bool
== :: GetWorkflowRuns -> GetWorkflowRuns -> Bool
$c== :: GetWorkflowRuns -> GetWorkflowRuns -> Bool
Prelude.Eq, ReadPrec [GetWorkflowRuns]
ReadPrec GetWorkflowRuns
Int -> ReadS GetWorkflowRuns
ReadS [GetWorkflowRuns]
(Int -> ReadS GetWorkflowRuns)
-> ReadS [GetWorkflowRuns]
-> ReadPrec GetWorkflowRuns
-> ReadPrec [GetWorkflowRuns]
-> Read GetWorkflowRuns
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetWorkflowRuns]
$creadListPrec :: ReadPrec [GetWorkflowRuns]
readPrec :: ReadPrec GetWorkflowRuns
$creadPrec :: ReadPrec GetWorkflowRuns
readList :: ReadS [GetWorkflowRuns]
$creadList :: ReadS [GetWorkflowRuns]
readsPrec :: Int -> ReadS GetWorkflowRuns
$creadsPrec :: Int -> ReadS GetWorkflowRuns
Prelude.Read, Int -> GetWorkflowRuns -> ShowS
[GetWorkflowRuns] -> ShowS
GetWorkflowRuns -> String
(Int -> GetWorkflowRuns -> ShowS)
-> (GetWorkflowRuns -> String)
-> ([GetWorkflowRuns] -> ShowS)
-> Show GetWorkflowRuns
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetWorkflowRuns] -> ShowS
$cshowList :: [GetWorkflowRuns] -> ShowS
show :: GetWorkflowRuns -> String
$cshow :: GetWorkflowRuns -> String
showsPrec :: Int -> GetWorkflowRuns -> ShowS
$cshowsPrec :: Int -> GetWorkflowRuns -> ShowS
Prelude.Show, (forall x. GetWorkflowRuns -> Rep GetWorkflowRuns x)
-> (forall x. Rep GetWorkflowRuns x -> GetWorkflowRuns)
-> Generic GetWorkflowRuns
forall x. Rep GetWorkflowRuns x -> GetWorkflowRuns
forall x. GetWorkflowRuns -> Rep GetWorkflowRuns x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetWorkflowRuns x -> GetWorkflowRuns
$cfrom :: forall x. GetWorkflowRuns -> Rep GetWorkflowRuns x
Prelude.Generic)
newGetWorkflowRuns ::
Prelude.Text ->
GetWorkflowRuns
newGetWorkflowRuns :: Text -> GetWorkflowRuns
newGetWorkflowRuns Text
pName_ =
GetWorkflowRuns' :: Maybe Bool
-> Maybe Text -> Maybe Natural -> Text -> GetWorkflowRuns
GetWorkflowRuns'
{ $sel:includeGraph:GetWorkflowRuns' :: Maybe Bool
includeGraph = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetWorkflowRuns' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetWorkflowRuns' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:name:GetWorkflowRuns' :: Text
name = Text
pName_
}
getWorkflowRuns_includeGraph :: Lens.Lens' GetWorkflowRuns (Prelude.Maybe Prelude.Bool)
getWorkflowRuns_includeGraph :: (Maybe Bool -> f (Maybe Bool))
-> GetWorkflowRuns -> f GetWorkflowRuns
getWorkflowRuns_includeGraph = (GetWorkflowRuns -> Maybe Bool)
-> (GetWorkflowRuns -> Maybe Bool -> GetWorkflowRuns)
-> Lens GetWorkflowRuns GetWorkflowRuns (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWorkflowRuns' {Maybe Bool
includeGraph :: Maybe Bool
$sel:includeGraph:GetWorkflowRuns' :: GetWorkflowRuns -> Maybe Bool
includeGraph} -> Maybe Bool
includeGraph) (\s :: GetWorkflowRuns
s@GetWorkflowRuns' {} Maybe Bool
a -> GetWorkflowRuns
s {$sel:includeGraph:GetWorkflowRuns' :: Maybe Bool
includeGraph = Maybe Bool
a} :: GetWorkflowRuns)
getWorkflowRuns_nextToken :: Lens.Lens' GetWorkflowRuns (Prelude.Maybe Prelude.Text)
getWorkflowRuns_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetWorkflowRuns -> f GetWorkflowRuns
getWorkflowRuns_nextToken = (GetWorkflowRuns -> Maybe Text)
-> (GetWorkflowRuns -> Maybe Text -> GetWorkflowRuns)
-> Lens GetWorkflowRuns GetWorkflowRuns (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWorkflowRuns' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetWorkflowRuns' :: GetWorkflowRuns -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetWorkflowRuns
s@GetWorkflowRuns' {} Maybe Text
a -> GetWorkflowRuns
s {$sel:nextToken:GetWorkflowRuns' :: Maybe Text
nextToken = Maybe Text
a} :: GetWorkflowRuns)
getWorkflowRuns_maxResults :: Lens.Lens' GetWorkflowRuns (Prelude.Maybe Prelude.Natural)
getWorkflowRuns_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> GetWorkflowRuns -> f GetWorkflowRuns
getWorkflowRuns_maxResults = (GetWorkflowRuns -> Maybe Natural)
-> (GetWorkflowRuns -> Maybe Natural -> GetWorkflowRuns)
-> Lens
GetWorkflowRuns GetWorkflowRuns (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWorkflowRuns' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:GetWorkflowRuns' :: GetWorkflowRuns -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: GetWorkflowRuns
s@GetWorkflowRuns' {} Maybe Natural
a -> GetWorkflowRuns
s {$sel:maxResults:GetWorkflowRuns' :: Maybe Natural
maxResults = Maybe Natural
a} :: GetWorkflowRuns)
getWorkflowRuns_name :: Lens.Lens' GetWorkflowRuns Prelude.Text
getWorkflowRuns_name :: (Text -> f Text) -> GetWorkflowRuns -> f GetWorkflowRuns
getWorkflowRuns_name = (GetWorkflowRuns -> Text)
-> (GetWorkflowRuns -> Text -> GetWorkflowRuns)
-> Lens GetWorkflowRuns GetWorkflowRuns Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWorkflowRuns' {Text
name :: Text
$sel:name:GetWorkflowRuns' :: GetWorkflowRuns -> Text
name} -> Text
name) (\s :: GetWorkflowRuns
s@GetWorkflowRuns' {} Text
a -> GetWorkflowRuns
s {$sel:name:GetWorkflowRuns' :: Text
name = Text
a} :: GetWorkflowRuns)
instance Core.AWSRequest GetWorkflowRuns where
type
AWSResponse GetWorkflowRuns =
GetWorkflowRunsResponse
request :: GetWorkflowRuns -> Request GetWorkflowRuns
request = Service -> GetWorkflowRuns -> Request GetWorkflowRuns
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetWorkflowRuns
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetWorkflowRuns)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetWorkflowRuns))
-> Logger
-> Service
-> Proxy GetWorkflowRuns
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetWorkflowRuns)))
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 (NonEmpty WorkflowRun)
-> Maybe Text -> Int -> GetWorkflowRunsResponse
GetWorkflowRunsResponse'
(Maybe (NonEmpty WorkflowRun)
-> Maybe Text -> Int -> GetWorkflowRunsResponse)
-> Either String (Maybe (NonEmpty WorkflowRun))
-> Either String (Maybe Text -> Int -> GetWorkflowRunsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (NonEmpty WorkflowRun))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Runs")
Either String (Maybe Text -> Int -> GetWorkflowRunsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetWorkflowRunsResponse)
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
"NextToken")
Either String (Int -> GetWorkflowRunsResponse)
-> Either String Int -> Either String GetWorkflowRunsResponse
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))
)
instance Prelude.Hashable GetWorkflowRuns
instance Prelude.NFData GetWorkflowRuns
instance Core.ToHeaders GetWorkflowRuns where
toHeaders :: GetWorkflowRuns -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetWorkflowRuns -> 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
"AWSGlue.GetWorkflowRuns" :: Prelude.ByteString),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON GetWorkflowRuns where
toJSON :: GetWorkflowRuns -> Value
toJSON GetWorkflowRuns' {Maybe Bool
Maybe Natural
Maybe Text
Text
name :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
includeGraph :: Maybe Bool
$sel:name:GetWorkflowRuns' :: GetWorkflowRuns -> Text
$sel:maxResults:GetWorkflowRuns' :: GetWorkflowRuns -> Maybe Natural
$sel:nextToken:GetWorkflowRuns' :: GetWorkflowRuns -> Maybe Text
$sel:includeGraph:GetWorkflowRuns' :: GetWorkflowRuns -> Maybe Bool
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"IncludeGraph" 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
includeGraph,
(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
"Name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)
]
)
instance Core.ToPath GetWorkflowRuns where
toPath :: GetWorkflowRuns -> ByteString
toPath = ByteString -> GetWorkflowRuns -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetWorkflowRuns where
toQuery :: GetWorkflowRuns -> QueryString
toQuery = QueryString -> GetWorkflowRuns -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetWorkflowRunsResponse = GetWorkflowRunsResponse'
{
GetWorkflowRunsResponse -> Maybe (NonEmpty WorkflowRun)
runs :: Prelude.Maybe (Prelude.NonEmpty WorkflowRun),
GetWorkflowRunsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetWorkflowRunsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetWorkflowRunsResponse -> GetWorkflowRunsResponse -> Bool
(GetWorkflowRunsResponse -> GetWorkflowRunsResponse -> Bool)
-> (GetWorkflowRunsResponse -> GetWorkflowRunsResponse -> Bool)
-> Eq GetWorkflowRunsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetWorkflowRunsResponse -> GetWorkflowRunsResponse -> Bool
$c/= :: GetWorkflowRunsResponse -> GetWorkflowRunsResponse -> Bool
== :: GetWorkflowRunsResponse -> GetWorkflowRunsResponse -> Bool
$c== :: GetWorkflowRunsResponse -> GetWorkflowRunsResponse -> Bool
Prelude.Eq, ReadPrec [GetWorkflowRunsResponse]
ReadPrec GetWorkflowRunsResponse
Int -> ReadS GetWorkflowRunsResponse
ReadS [GetWorkflowRunsResponse]
(Int -> ReadS GetWorkflowRunsResponse)
-> ReadS [GetWorkflowRunsResponse]
-> ReadPrec GetWorkflowRunsResponse
-> ReadPrec [GetWorkflowRunsResponse]
-> Read GetWorkflowRunsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetWorkflowRunsResponse]
$creadListPrec :: ReadPrec [GetWorkflowRunsResponse]
readPrec :: ReadPrec GetWorkflowRunsResponse
$creadPrec :: ReadPrec GetWorkflowRunsResponse
readList :: ReadS [GetWorkflowRunsResponse]
$creadList :: ReadS [GetWorkflowRunsResponse]
readsPrec :: Int -> ReadS GetWorkflowRunsResponse
$creadsPrec :: Int -> ReadS GetWorkflowRunsResponse
Prelude.Read, Int -> GetWorkflowRunsResponse -> ShowS
[GetWorkflowRunsResponse] -> ShowS
GetWorkflowRunsResponse -> String
(Int -> GetWorkflowRunsResponse -> ShowS)
-> (GetWorkflowRunsResponse -> String)
-> ([GetWorkflowRunsResponse] -> ShowS)
-> Show GetWorkflowRunsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetWorkflowRunsResponse] -> ShowS
$cshowList :: [GetWorkflowRunsResponse] -> ShowS
show :: GetWorkflowRunsResponse -> String
$cshow :: GetWorkflowRunsResponse -> String
showsPrec :: Int -> GetWorkflowRunsResponse -> ShowS
$cshowsPrec :: Int -> GetWorkflowRunsResponse -> ShowS
Prelude.Show, (forall x.
GetWorkflowRunsResponse -> Rep GetWorkflowRunsResponse x)
-> (forall x.
Rep GetWorkflowRunsResponse x -> GetWorkflowRunsResponse)
-> Generic GetWorkflowRunsResponse
forall x. Rep GetWorkflowRunsResponse x -> GetWorkflowRunsResponse
forall x. GetWorkflowRunsResponse -> Rep GetWorkflowRunsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetWorkflowRunsResponse x -> GetWorkflowRunsResponse
$cfrom :: forall x. GetWorkflowRunsResponse -> Rep GetWorkflowRunsResponse x
Prelude.Generic)
newGetWorkflowRunsResponse ::
Prelude.Int ->
GetWorkflowRunsResponse
newGetWorkflowRunsResponse :: Int -> GetWorkflowRunsResponse
newGetWorkflowRunsResponse Int
pHttpStatus_ =
GetWorkflowRunsResponse' :: Maybe (NonEmpty WorkflowRun)
-> Maybe Text -> Int -> GetWorkflowRunsResponse
GetWorkflowRunsResponse'
{ $sel:runs:GetWorkflowRunsResponse' :: Maybe (NonEmpty WorkflowRun)
runs = Maybe (NonEmpty WorkflowRun)
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetWorkflowRunsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetWorkflowRunsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getWorkflowRunsResponse_runs :: Lens.Lens' GetWorkflowRunsResponse (Prelude.Maybe (Prelude.NonEmpty WorkflowRun))
getWorkflowRunsResponse_runs :: (Maybe (NonEmpty WorkflowRun) -> f (Maybe (NonEmpty WorkflowRun)))
-> GetWorkflowRunsResponse -> f GetWorkflowRunsResponse
getWorkflowRunsResponse_runs = (GetWorkflowRunsResponse -> Maybe (NonEmpty WorkflowRun))
-> (GetWorkflowRunsResponse
-> Maybe (NonEmpty WorkflowRun) -> GetWorkflowRunsResponse)
-> Lens
GetWorkflowRunsResponse
GetWorkflowRunsResponse
(Maybe (NonEmpty WorkflowRun))
(Maybe (NonEmpty WorkflowRun))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWorkflowRunsResponse' {Maybe (NonEmpty WorkflowRun)
runs :: Maybe (NonEmpty WorkflowRun)
$sel:runs:GetWorkflowRunsResponse' :: GetWorkflowRunsResponse -> Maybe (NonEmpty WorkflowRun)
runs} -> Maybe (NonEmpty WorkflowRun)
runs) (\s :: GetWorkflowRunsResponse
s@GetWorkflowRunsResponse' {} Maybe (NonEmpty WorkflowRun)
a -> GetWorkflowRunsResponse
s {$sel:runs:GetWorkflowRunsResponse' :: Maybe (NonEmpty WorkflowRun)
runs = Maybe (NonEmpty WorkflowRun)
a} :: GetWorkflowRunsResponse) ((Maybe (NonEmpty WorkflowRun) -> f (Maybe (NonEmpty WorkflowRun)))
-> GetWorkflowRunsResponse -> f GetWorkflowRunsResponse)
-> ((Maybe (NonEmpty WorkflowRun)
-> f (Maybe (NonEmpty WorkflowRun)))
-> Maybe (NonEmpty WorkflowRun)
-> f (Maybe (NonEmpty WorkflowRun)))
-> (Maybe (NonEmpty WorkflowRun)
-> f (Maybe (NonEmpty WorkflowRun)))
-> GetWorkflowRunsResponse
-> f GetWorkflowRunsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty WorkflowRun)
(NonEmpty WorkflowRun)
(NonEmpty WorkflowRun)
(NonEmpty WorkflowRun)
-> Iso
(Maybe (NonEmpty WorkflowRun))
(Maybe (NonEmpty WorkflowRun))
(Maybe (NonEmpty WorkflowRun))
(Maybe (NonEmpty WorkflowRun))
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
(NonEmpty WorkflowRun)
(NonEmpty WorkflowRun)
(NonEmpty WorkflowRun)
(NonEmpty WorkflowRun)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getWorkflowRunsResponse_nextToken :: Lens.Lens' GetWorkflowRunsResponse (Prelude.Maybe Prelude.Text)
getWorkflowRunsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetWorkflowRunsResponse -> f GetWorkflowRunsResponse
getWorkflowRunsResponse_nextToken = (GetWorkflowRunsResponse -> Maybe Text)
-> (GetWorkflowRunsResponse
-> Maybe Text -> GetWorkflowRunsResponse)
-> Lens
GetWorkflowRunsResponse
GetWorkflowRunsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWorkflowRunsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetWorkflowRunsResponse' :: GetWorkflowRunsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetWorkflowRunsResponse
s@GetWorkflowRunsResponse' {} Maybe Text
a -> GetWorkflowRunsResponse
s {$sel:nextToken:GetWorkflowRunsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetWorkflowRunsResponse)
getWorkflowRunsResponse_httpStatus :: Lens.Lens' GetWorkflowRunsResponse Prelude.Int
getWorkflowRunsResponse_httpStatus :: (Int -> f Int)
-> GetWorkflowRunsResponse -> f GetWorkflowRunsResponse
getWorkflowRunsResponse_httpStatus = (GetWorkflowRunsResponse -> Int)
-> (GetWorkflowRunsResponse -> Int -> GetWorkflowRunsResponse)
-> Lens GetWorkflowRunsResponse GetWorkflowRunsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetWorkflowRunsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetWorkflowRunsResponse' :: GetWorkflowRunsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetWorkflowRunsResponse
s@GetWorkflowRunsResponse' {} Int
a -> GetWorkflowRunsResponse
s {$sel:httpStatus:GetWorkflowRunsResponse' :: Int
httpStatus = Int
a} :: GetWorkflowRunsResponse)
instance Prelude.NFData GetWorkflowRunsResponse