{-# 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.DataBrew.DescribeJobRun
(
DescribeJobRun (..),
newDescribeJobRun,
describeJobRun_name,
describeJobRun_runId,
DescribeJobRunResponse (..),
newDescribeJobRunResponse,
describeJobRunResponse_completedOn,
describeJobRunResponse_state,
describeJobRunResponse_dataCatalogOutputs,
describeJobRunResponse_startedOn,
describeJobRunResponse_recipeReference,
describeJobRunResponse_profileConfiguration,
describeJobRunResponse_databaseOutputs,
describeJobRunResponse_logGroupName,
describeJobRunResponse_outputs,
describeJobRunResponse_runId,
describeJobRunResponse_executionTime,
describeJobRunResponse_logSubscription,
describeJobRunResponse_startedBy,
describeJobRunResponse_datasetName,
describeJobRunResponse_attempt,
describeJobRunResponse_errorMessage,
describeJobRunResponse_jobSample,
describeJobRunResponse_httpStatus,
describeJobRunResponse_jobName,
)
where
import qualified Amazonka.Core as Core
import Amazonka.DataBrew.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 DescribeJobRun = DescribeJobRun'
{
DescribeJobRun -> Text
name :: Prelude.Text,
DescribeJobRun -> Text
runId :: Prelude.Text
}
deriving (DescribeJobRun -> DescribeJobRun -> Bool
(DescribeJobRun -> DescribeJobRun -> Bool)
-> (DescribeJobRun -> DescribeJobRun -> Bool) -> Eq DescribeJobRun
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeJobRun -> DescribeJobRun -> Bool
$c/= :: DescribeJobRun -> DescribeJobRun -> Bool
== :: DescribeJobRun -> DescribeJobRun -> Bool
$c== :: DescribeJobRun -> DescribeJobRun -> Bool
Prelude.Eq, ReadPrec [DescribeJobRun]
ReadPrec DescribeJobRun
Int -> ReadS DescribeJobRun
ReadS [DescribeJobRun]
(Int -> ReadS DescribeJobRun)
-> ReadS [DescribeJobRun]
-> ReadPrec DescribeJobRun
-> ReadPrec [DescribeJobRun]
-> Read DescribeJobRun
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeJobRun]
$creadListPrec :: ReadPrec [DescribeJobRun]
readPrec :: ReadPrec DescribeJobRun
$creadPrec :: ReadPrec DescribeJobRun
readList :: ReadS [DescribeJobRun]
$creadList :: ReadS [DescribeJobRun]
readsPrec :: Int -> ReadS DescribeJobRun
$creadsPrec :: Int -> ReadS DescribeJobRun
Prelude.Read, Int -> DescribeJobRun -> ShowS
[DescribeJobRun] -> ShowS
DescribeJobRun -> String
(Int -> DescribeJobRun -> ShowS)
-> (DescribeJobRun -> String)
-> ([DescribeJobRun] -> ShowS)
-> Show DescribeJobRun
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeJobRun] -> ShowS
$cshowList :: [DescribeJobRun] -> ShowS
show :: DescribeJobRun -> String
$cshow :: DescribeJobRun -> String
showsPrec :: Int -> DescribeJobRun -> ShowS
$cshowsPrec :: Int -> DescribeJobRun -> ShowS
Prelude.Show, (forall x. DescribeJobRun -> Rep DescribeJobRun x)
-> (forall x. Rep DescribeJobRun x -> DescribeJobRun)
-> Generic DescribeJobRun
forall x. Rep DescribeJobRun x -> DescribeJobRun
forall x. DescribeJobRun -> Rep DescribeJobRun x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeJobRun x -> DescribeJobRun
$cfrom :: forall x. DescribeJobRun -> Rep DescribeJobRun x
Prelude.Generic)
newDescribeJobRun ::
Prelude.Text ->
Prelude.Text ->
DescribeJobRun
newDescribeJobRun :: Text -> Text -> DescribeJobRun
newDescribeJobRun Text
pName_ Text
pRunId_ =
DescribeJobRun' :: Text -> Text -> DescribeJobRun
DescribeJobRun' {$sel:name:DescribeJobRun' :: Text
name = Text
pName_, $sel:runId:DescribeJobRun' :: Text
runId = Text
pRunId_}
describeJobRun_name :: Lens.Lens' DescribeJobRun Prelude.Text
describeJobRun_name :: (Text -> f Text) -> DescribeJobRun -> f DescribeJobRun
describeJobRun_name = (DescribeJobRun -> Text)
-> (DescribeJobRun -> Text -> DescribeJobRun)
-> Lens DescribeJobRun DescribeJobRun Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRun' {Text
name :: Text
$sel:name:DescribeJobRun' :: DescribeJobRun -> Text
name} -> Text
name) (\s :: DescribeJobRun
s@DescribeJobRun' {} Text
a -> DescribeJobRun
s {$sel:name:DescribeJobRun' :: Text
name = Text
a} :: DescribeJobRun)
describeJobRun_runId :: Lens.Lens' DescribeJobRun Prelude.Text
describeJobRun_runId :: (Text -> f Text) -> DescribeJobRun -> f DescribeJobRun
describeJobRun_runId = (DescribeJobRun -> Text)
-> (DescribeJobRun -> Text -> DescribeJobRun)
-> Lens DescribeJobRun DescribeJobRun Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRun' {Text
runId :: Text
$sel:runId:DescribeJobRun' :: DescribeJobRun -> Text
runId} -> Text
runId) (\s :: DescribeJobRun
s@DescribeJobRun' {} Text
a -> DescribeJobRun
s {$sel:runId:DescribeJobRun' :: Text
runId = Text
a} :: DescribeJobRun)
instance Core.AWSRequest DescribeJobRun where
type
AWSResponse DescribeJobRun =
DescribeJobRunResponse
request :: DescribeJobRun -> Request DescribeJobRun
request = Service -> DescribeJobRun -> Request DescribeJobRun
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeJobRun
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeJobRun)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeJobRun))
-> Logger
-> Service
-> Proxy DescribeJobRun
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse DescribeJobRun)))
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 JobRunState
-> Maybe (NonEmpty DataCatalogOutput)
-> Maybe POSIX
-> Maybe RecipeReference
-> Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse
DescribeJobRunResponse'
(Maybe POSIX
-> Maybe JobRunState
-> Maybe (NonEmpty DataCatalogOutput)
-> Maybe POSIX
-> Maybe RecipeReference
-> Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe JobRunState
-> Maybe (NonEmpty DataCatalogOutput)
-> Maybe POSIX
-> Maybe RecipeReference
-> Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
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
"CompletedOn")
Either
String
(Maybe JobRunState
-> Maybe (NonEmpty DataCatalogOutput)
-> Maybe POSIX
-> Maybe RecipeReference
-> Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe JobRunState)
-> Either
String
(Maybe (NonEmpty DataCatalogOutput)
-> Maybe POSIX
-> Maybe RecipeReference
-> Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe JobRunState)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"State")
Either
String
(Maybe (NonEmpty DataCatalogOutput)
-> Maybe POSIX
-> Maybe RecipeReference
-> Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe (NonEmpty DataCatalogOutput))
-> Either
String
(Maybe POSIX
-> Maybe RecipeReference
-> Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (NonEmpty DataCatalogOutput))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DataCatalogOutputs")
Either
String
(Maybe POSIX
-> Maybe RecipeReference
-> Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe RecipeReference
-> Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
forall (f :: * -> *) a b. Applicative f => 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
"StartedOn")
Either
String
(Maybe RecipeReference
-> Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe RecipeReference)
-> Either
String
(Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe RecipeReference)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"RecipeReference")
Either
String
(Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe ProfileConfiguration)
-> Either
String
(Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ProfileConfiguration)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ProfileConfiguration")
Either
String
(Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe (NonEmpty DatabaseOutput))
-> Either
String
(Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (NonEmpty DatabaseOutput))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DatabaseOutputs")
Either
String
(Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
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
"LogGroupName")
Either
String
(Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe (NonEmpty Output))
-> Either
String
(Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (NonEmpty Output))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Outputs")
Either
String
(Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
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
"RunId")
Either
String
(Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe Int)
-> Either
String
(Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ExecutionTime")
Either
String
(Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe LogSubscription)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe LogSubscription)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LogSubscription")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
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
"StartedBy")
Either
String
(Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
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
"DatasetName")
Either
String
(Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse)
-> Either String (Maybe Int)
-> Either
String
(Maybe Text
-> Maybe JobSample -> Int -> Text -> DescribeJobRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Attempt")
Either
String
(Maybe Text
-> Maybe JobSample -> Int -> Text -> DescribeJobRunResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe JobSample -> Int -> Text -> DescribeJobRunResponse)
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
"ErrorMessage")
Either
String (Maybe JobSample -> Int -> Text -> DescribeJobRunResponse)
-> Either String (Maybe JobSample)
-> Either String (Int -> Text -> DescribeJobRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe JobSample)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"JobSample")
Either String (Int -> Text -> DescribeJobRunResponse)
-> Either String Int
-> Either String (Text -> DescribeJobRunResponse)
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 -> DescribeJobRunResponse)
-> Either String Text -> Either String DescribeJobRunResponse
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
"JobName")
)
instance Prelude.Hashable DescribeJobRun
instance Prelude.NFData DescribeJobRun
instance Core.ToHeaders DescribeJobRun where
toHeaders :: DescribeJobRun -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeJobRun -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath DescribeJobRun where
toPath :: DescribeJobRun -> ByteString
toPath DescribeJobRun' {Text
runId :: Text
name :: Text
$sel:runId:DescribeJobRun' :: DescribeJobRun -> Text
$sel:name:DescribeJobRun' :: DescribeJobRun -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/jobs/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
name,
ByteString
"/jobRun/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
runId
]
instance Core.ToQuery DescribeJobRun where
toQuery :: DescribeJobRun -> QueryString
toQuery = QueryString -> DescribeJobRun -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeJobRunResponse = DescribeJobRunResponse'
{
DescribeJobRunResponse -> Maybe POSIX
completedOn :: Prelude.Maybe Core.POSIX,
DescribeJobRunResponse -> Maybe JobRunState
state :: Prelude.Maybe JobRunState,
DescribeJobRunResponse -> Maybe (NonEmpty DataCatalogOutput)
dataCatalogOutputs :: Prelude.Maybe (Prelude.NonEmpty DataCatalogOutput),
DescribeJobRunResponse -> Maybe POSIX
startedOn :: Prelude.Maybe Core.POSIX,
DescribeJobRunResponse -> Maybe RecipeReference
recipeReference :: Prelude.Maybe RecipeReference,
DescribeJobRunResponse -> Maybe ProfileConfiguration
profileConfiguration :: Prelude.Maybe ProfileConfiguration,
DescribeJobRunResponse -> Maybe (NonEmpty DatabaseOutput)
databaseOutputs :: Prelude.Maybe (Prelude.NonEmpty DatabaseOutput),
DescribeJobRunResponse -> Maybe Text
logGroupName :: Prelude.Maybe Prelude.Text,
DescribeJobRunResponse -> Maybe (NonEmpty Output)
outputs :: Prelude.Maybe (Prelude.NonEmpty Output),
DescribeJobRunResponse -> Maybe Text
runId :: Prelude.Maybe Prelude.Text,
DescribeJobRunResponse -> Maybe Int
executionTime :: Prelude.Maybe Prelude.Int,
DescribeJobRunResponse -> Maybe LogSubscription
logSubscription :: Prelude.Maybe LogSubscription,
DescribeJobRunResponse -> Maybe Text
startedBy :: Prelude.Maybe Prelude.Text,
DescribeJobRunResponse -> Maybe Text
datasetName :: Prelude.Maybe Prelude.Text,
DescribeJobRunResponse -> Maybe Int
attempt :: Prelude.Maybe Prelude.Int,
DescribeJobRunResponse -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
DescribeJobRunResponse -> Maybe JobSample
jobSample :: Prelude.Maybe JobSample,
DescribeJobRunResponse -> Int
httpStatus :: Prelude.Int,
DescribeJobRunResponse -> Text
jobName :: Prelude.Text
}
deriving (DescribeJobRunResponse -> DescribeJobRunResponse -> Bool
(DescribeJobRunResponse -> DescribeJobRunResponse -> Bool)
-> (DescribeJobRunResponse -> DescribeJobRunResponse -> Bool)
-> Eq DescribeJobRunResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeJobRunResponse -> DescribeJobRunResponse -> Bool
$c/= :: DescribeJobRunResponse -> DescribeJobRunResponse -> Bool
== :: DescribeJobRunResponse -> DescribeJobRunResponse -> Bool
$c== :: DescribeJobRunResponse -> DescribeJobRunResponse -> Bool
Prelude.Eq, ReadPrec [DescribeJobRunResponse]
ReadPrec DescribeJobRunResponse
Int -> ReadS DescribeJobRunResponse
ReadS [DescribeJobRunResponse]
(Int -> ReadS DescribeJobRunResponse)
-> ReadS [DescribeJobRunResponse]
-> ReadPrec DescribeJobRunResponse
-> ReadPrec [DescribeJobRunResponse]
-> Read DescribeJobRunResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeJobRunResponse]
$creadListPrec :: ReadPrec [DescribeJobRunResponse]
readPrec :: ReadPrec DescribeJobRunResponse
$creadPrec :: ReadPrec DescribeJobRunResponse
readList :: ReadS [DescribeJobRunResponse]
$creadList :: ReadS [DescribeJobRunResponse]
readsPrec :: Int -> ReadS DescribeJobRunResponse
$creadsPrec :: Int -> ReadS DescribeJobRunResponse
Prelude.Read, Int -> DescribeJobRunResponse -> ShowS
[DescribeJobRunResponse] -> ShowS
DescribeJobRunResponse -> String
(Int -> DescribeJobRunResponse -> ShowS)
-> (DescribeJobRunResponse -> String)
-> ([DescribeJobRunResponse] -> ShowS)
-> Show DescribeJobRunResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeJobRunResponse] -> ShowS
$cshowList :: [DescribeJobRunResponse] -> ShowS
show :: DescribeJobRunResponse -> String
$cshow :: DescribeJobRunResponse -> String
showsPrec :: Int -> DescribeJobRunResponse -> ShowS
$cshowsPrec :: Int -> DescribeJobRunResponse -> ShowS
Prelude.Show, (forall x. DescribeJobRunResponse -> Rep DescribeJobRunResponse x)
-> (forall x.
Rep DescribeJobRunResponse x -> DescribeJobRunResponse)
-> Generic DescribeJobRunResponse
forall x. Rep DescribeJobRunResponse x -> DescribeJobRunResponse
forall x. DescribeJobRunResponse -> Rep DescribeJobRunResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeJobRunResponse x -> DescribeJobRunResponse
$cfrom :: forall x. DescribeJobRunResponse -> Rep DescribeJobRunResponse x
Prelude.Generic)
newDescribeJobRunResponse ::
Prelude.Int ->
Prelude.Text ->
DescribeJobRunResponse
newDescribeJobRunResponse :: Int -> Text -> DescribeJobRunResponse
newDescribeJobRunResponse Int
pHttpStatus_ Text
pJobName_ =
DescribeJobRunResponse' :: Maybe POSIX
-> Maybe JobRunState
-> Maybe (NonEmpty DataCatalogOutput)
-> Maybe POSIX
-> Maybe RecipeReference
-> Maybe ProfileConfiguration
-> Maybe (NonEmpty DatabaseOutput)
-> Maybe Text
-> Maybe (NonEmpty Output)
-> Maybe Text
-> Maybe Int
-> Maybe LogSubscription
-> Maybe Text
-> Maybe Text
-> Maybe Int
-> Maybe Text
-> Maybe JobSample
-> Int
-> Text
-> DescribeJobRunResponse
DescribeJobRunResponse'
{ $sel:completedOn:DescribeJobRunResponse' :: Maybe POSIX
completedOn =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:state:DescribeJobRunResponse' :: Maybe JobRunState
state = Maybe JobRunState
forall a. Maybe a
Prelude.Nothing,
$sel:dataCatalogOutputs:DescribeJobRunResponse' :: Maybe (NonEmpty DataCatalogOutput)
dataCatalogOutputs = Maybe (NonEmpty DataCatalogOutput)
forall a. Maybe a
Prelude.Nothing,
$sel:startedOn:DescribeJobRunResponse' :: Maybe POSIX
startedOn = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:recipeReference:DescribeJobRunResponse' :: Maybe RecipeReference
recipeReference = Maybe RecipeReference
forall a. Maybe a
Prelude.Nothing,
$sel:profileConfiguration:DescribeJobRunResponse' :: Maybe ProfileConfiguration
profileConfiguration = Maybe ProfileConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:databaseOutputs:DescribeJobRunResponse' :: Maybe (NonEmpty DatabaseOutput)
databaseOutputs = Maybe (NonEmpty DatabaseOutput)
forall a. Maybe a
Prelude.Nothing,
$sel:logGroupName:DescribeJobRunResponse' :: Maybe Text
logGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:outputs:DescribeJobRunResponse' :: Maybe (NonEmpty Output)
outputs = Maybe (NonEmpty Output)
forall a. Maybe a
Prelude.Nothing,
$sel:runId:DescribeJobRunResponse' :: Maybe Text
runId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:executionTime:DescribeJobRunResponse' :: Maybe Int
executionTime = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:logSubscription:DescribeJobRunResponse' :: Maybe LogSubscription
logSubscription = Maybe LogSubscription
forall a. Maybe a
Prelude.Nothing,
$sel:startedBy:DescribeJobRunResponse' :: Maybe Text
startedBy = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:datasetName:DescribeJobRunResponse' :: Maybe Text
datasetName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:attempt:DescribeJobRunResponse' :: Maybe Int
attempt = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:errorMessage:DescribeJobRunResponse' :: Maybe Text
errorMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobSample:DescribeJobRunResponse' :: Maybe JobSample
jobSample = Maybe JobSample
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeJobRunResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:jobName:DescribeJobRunResponse' :: Text
jobName = Text
pJobName_
}
describeJobRunResponse_completedOn :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe Prelude.UTCTime)
describeJobRunResponse_completedOn :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_completedOn = (DescribeJobRunResponse -> Maybe POSIX)
-> (DescribeJobRunResponse
-> Maybe POSIX -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe POSIX
completedOn :: Maybe POSIX
$sel:completedOn:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe POSIX
completedOn} -> Maybe POSIX
completedOn) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe POSIX
a -> DescribeJobRunResponse
s {$sel:completedOn:DescribeJobRunResponse' :: Maybe POSIX
completedOn = Maybe POSIX
a} :: DescribeJobRunResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeJobRunResponse -> f DescribeJobRunResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeJobRunResponse
-> f DescribeJobRunResponse
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
describeJobRunResponse_state :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe JobRunState)
describeJobRunResponse_state :: (Maybe JobRunState -> f (Maybe JobRunState))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_state = (DescribeJobRunResponse -> Maybe JobRunState)
-> (DescribeJobRunResponse
-> Maybe JobRunState -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe JobRunState)
(Maybe JobRunState)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe JobRunState
state :: Maybe JobRunState
$sel:state:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe JobRunState
state} -> Maybe JobRunState
state) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe JobRunState
a -> DescribeJobRunResponse
s {$sel:state:DescribeJobRunResponse' :: Maybe JobRunState
state = Maybe JobRunState
a} :: DescribeJobRunResponse)
describeJobRunResponse_dataCatalogOutputs :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe (Prelude.NonEmpty DataCatalogOutput))
describeJobRunResponse_dataCatalogOutputs :: (Maybe (NonEmpty DataCatalogOutput)
-> f (Maybe (NonEmpty DataCatalogOutput)))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_dataCatalogOutputs = (DescribeJobRunResponse -> Maybe (NonEmpty DataCatalogOutput))
-> (DescribeJobRunResponse
-> Maybe (NonEmpty DataCatalogOutput) -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe (NonEmpty DataCatalogOutput))
(Maybe (NonEmpty DataCatalogOutput))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe (NonEmpty DataCatalogOutput)
dataCatalogOutputs :: Maybe (NonEmpty DataCatalogOutput)
$sel:dataCatalogOutputs:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe (NonEmpty DataCatalogOutput)
dataCatalogOutputs} -> Maybe (NonEmpty DataCatalogOutput)
dataCatalogOutputs) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe (NonEmpty DataCatalogOutput)
a -> DescribeJobRunResponse
s {$sel:dataCatalogOutputs:DescribeJobRunResponse' :: Maybe (NonEmpty DataCatalogOutput)
dataCatalogOutputs = Maybe (NonEmpty DataCatalogOutput)
a} :: DescribeJobRunResponse) ((Maybe (NonEmpty DataCatalogOutput)
-> f (Maybe (NonEmpty DataCatalogOutput)))
-> DescribeJobRunResponse -> f DescribeJobRunResponse)
-> ((Maybe (NonEmpty DataCatalogOutput)
-> f (Maybe (NonEmpty DataCatalogOutput)))
-> Maybe (NonEmpty DataCatalogOutput)
-> f (Maybe (NonEmpty DataCatalogOutput)))
-> (Maybe (NonEmpty DataCatalogOutput)
-> f (Maybe (NonEmpty DataCatalogOutput)))
-> DescribeJobRunResponse
-> f DescribeJobRunResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty DataCatalogOutput)
(NonEmpty DataCatalogOutput)
(NonEmpty DataCatalogOutput)
(NonEmpty DataCatalogOutput)
-> Iso
(Maybe (NonEmpty DataCatalogOutput))
(Maybe (NonEmpty DataCatalogOutput))
(Maybe (NonEmpty DataCatalogOutput))
(Maybe (NonEmpty DataCatalogOutput))
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 DataCatalogOutput)
(NonEmpty DataCatalogOutput)
(NonEmpty DataCatalogOutput)
(NonEmpty DataCatalogOutput)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeJobRunResponse_startedOn :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe Prelude.UTCTime)
describeJobRunResponse_startedOn :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_startedOn = (DescribeJobRunResponse -> Maybe POSIX)
-> (DescribeJobRunResponse
-> Maybe POSIX -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe POSIX
startedOn :: Maybe POSIX
$sel:startedOn:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe POSIX
startedOn} -> Maybe POSIX
startedOn) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe POSIX
a -> DescribeJobRunResponse
s {$sel:startedOn:DescribeJobRunResponse' :: Maybe POSIX
startedOn = Maybe POSIX
a} :: DescribeJobRunResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeJobRunResponse -> f DescribeJobRunResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeJobRunResponse
-> f DescribeJobRunResponse
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
describeJobRunResponse_recipeReference :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe RecipeReference)
describeJobRunResponse_recipeReference :: (Maybe RecipeReference -> f (Maybe RecipeReference))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_recipeReference = (DescribeJobRunResponse -> Maybe RecipeReference)
-> (DescribeJobRunResponse
-> Maybe RecipeReference -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe RecipeReference)
(Maybe RecipeReference)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe RecipeReference
recipeReference :: Maybe RecipeReference
$sel:recipeReference:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe RecipeReference
recipeReference} -> Maybe RecipeReference
recipeReference) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe RecipeReference
a -> DescribeJobRunResponse
s {$sel:recipeReference:DescribeJobRunResponse' :: Maybe RecipeReference
recipeReference = Maybe RecipeReference
a} :: DescribeJobRunResponse)
describeJobRunResponse_profileConfiguration :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe ProfileConfiguration)
describeJobRunResponse_profileConfiguration :: (Maybe ProfileConfiguration -> f (Maybe ProfileConfiguration))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_profileConfiguration = (DescribeJobRunResponse -> Maybe ProfileConfiguration)
-> (DescribeJobRunResponse
-> Maybe ProfileConfiguration -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe ProfileConfiguration)
(Maybe ProfileConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe ProfileConfiguration
profileConfiguration :: Maybe ProfileConfiguration
$sel:profileConfiguration:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe ProfileConfiguration
profileConfiguration} -> Maybe ProfileConfiguration
profileConfiguration) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe ProfileConfiguration
a -> DescribeJobRunResponse
s {$sel:profileConfiguration:DescribeJobRunResponse' :: Maybe ProfileConfiguration
profileConfiguration = Maybe ProfileConfiguration
a} :: DescribeJobRunResponse)
describeJobRunResponse_databaseOutputs :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe (Prelude.NonEmpty DatabaseOutput))
describeJobRunResponse_databaseOutputs :: (Maybe (NonEmpty DatabaseOutput)
-> f (Maybe (NonEmpty DatabaseOutput)))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_databaseOutputs = (DescribeJobRunResponse -> Maybe (NonEmpty DatabaseOutput))
-> (DescribeJobRunResponse
-> Maybe (NonEmpty DatabaseOutput) -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe (NonEmpty DatabaseOutput))
(Maybe (NonEmpty DatabaseOutput))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe (NonEmpty DatabaseOutput)
databaseOutputs :: Maybe (NonEmpty DatabaseOutput)
$sel:databaseOutputs:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe (NonEmpty DatabaseOutput)
databaseOutputs} -> Maybe (NonEmpty DatabaseOutput)
databaseOutputs) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe (NonEmpty DatabaseOutput)
a -> DescribeJobRunResponse
s {$sel:databaseOutputs:DescribeJobRunResponse' :: Maybe (NonEmpty DatabaseOutput)
databaseOutputs = Maybe (NonEmpty DatabaseOutput)
a} :: DescribeJobRunResponse) ((Maybe (NonEmpty DatabaseOutput)
-> f (Maybe (NonEmpty DatabaseOutput)))
-> DescribeJobRunResponse -> f DescribeJobRunResponse)
-> ((Maybe (NonEmpty DatabaseOutput)
-> f (Maybe (NonEmpty DatabaseOutput)))
-> Maybe (NonEmpty DatabaseOutput)
-> f (Maybe (NonEmpty DatabaseOutput)))
-> (Maybe (NonEmpty DatabaseOutput)
-> f (Maybe (NonEmpty DatabaseOutput)))
-> DescribeJobRunResponse
-> f DescribeJobRunResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty DatabaseOutput)
(NonEmpty DatabaseOutput)
(NonEmpty DatabaseOutput)
(NonEmpty DatabaseOutput)
-> Iso
(Maybe (NonEmpty DatabaseOutput))
(Maybe (NonEmpty DatabaseOutput))
(Maybe (NonEmpty DatabaseOutput))
(Maybe (NonEmpty DatabaseOutput))
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 DatabaseOutput)
(NonEmpty DatabaseOutput)
(NonEmpty DatabaseOutput)
(NonEmpty DatabaseOutput)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeJobRunResponse_logGroupName :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe Prelude.Text)
describeJobRunResponse_logGroupName :: (Maybe Text -> f (Maybe Text))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_logGroupName = (DescribeJobRunResponse -> Maybe Text)
-> (DescribeJobRunResponse -> Maybe Text -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe Text
logGroupName :: Maybe Text
$sel:logGroupName:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe Text
logGroupName} -> Maybe Text
logGroupName) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe Text
a -> DescribeJobRunResponse
s {$sel:logGroupName:DescribeJobRunResponse' :: Maybe Text
logGroupName = Maybe Text
a} :: DescribeJobRunResponse)
describeJobRunResponse_outputs :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe (Prelude.NonEmpty Output))
describeJobRunResponse_outputs :: (Maybe (NonEmpty Output) -> f (Maybe (NonEmpty Output)))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_outputs = (DescribeJobRunResponse -> Maybe (NonEmpty Output))
-> (DescribeJobRunResponse
-> Maybe (NonEmpty Output) -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe (NonEmpty Output))
(Maybe (NonEmpty Output))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe (NonEmpty Output)
outputs :: Maybe (NonEmpty Output)
$sel:outputs:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe (NonEmpty Output)
outputs} -> Maybe (NonEmpty Output)
outputs) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe (NonEmpty Output)
a -> DescribeJobRunResponse
s {$sel:outputs:DescribeJobRunResponse' :: Maybe (NonEmpty Output)
outputs = Maybe (NonEmpty Output)
a} :: DescribeJobRunResponse) ((Maybe (NonEmpty Output) -> f (Maybe (NonEmpty Output)))
-> DescribeJobRunResponse -> f DescribeJobRunResponse)
-> ((Maybe (NonEmpty Output) -> f (Maybe (NonEmpty Output)))
-> Maybe (NonEmpty Output) -> f (Maybe (NonEmpty Output)))
-> (Maybe (NonEmpty Output) -> f (Maybe (NonEmpty Output)))
-> DescribeJobRunResponse
-> f DescribeJobRunResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Output)
(NonEmpty Output)
(NonEmpty Output)
(NonEmpty Output)
-> Iso
(Maybe (NonEmpty Output))
(Maybe (NonEmpty Output))
(Maybe (NonEmpty Output))
(Maybe (NonEmpty Output))
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 Output)
(NonEmpty Output)
(NonEmpty Output)
(NonEmpty Output)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeJobRunResponse_runId :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe Prelude.Text)
describeJobRunResponse_runId :: (Maybe Text -> f (Maybe Text))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_runId = (DescribeJobRunResponse -> Maybe Text)
-> (DescribeJobRunResponse -> Maybe Text -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe Text
runId :: Maybe Text
$sel:runId:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe Text
runId} -> Maybe Text
runId) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe Text
a -> DescribeJobRunResponse
s {$sel:runId:DescribeJobRunResponse' :: Maybe Text
runId = Maybe Text
a} :: DescribeJobRunResponse)
describeJobRunResponse_executionTime :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe Prelude.Int)
describeJobRunResponse_executionTime :: (Maybe Int -> f (Maybe Int))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_executionTime = (DescribeJobRunResponse -> Maybe Int)
-> (DescribeJobRunResponse -> Maybe Int -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe Int
executionTime :: Maybe Int
$sel:executionTime:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe Int
executionTime} -> Maybe Int
executionTime) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe Int
a -> DescribeJobRunResponse
s {$sel:executionTime:DescribeJobRunResponse' :: Maybe Int
executionTime = Maybe Int
a} :: DescribeJobRunResponse)
describeJobRunResponse_logSubscription :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe LogSubscription)
describeJobRunResponse_logSubscription :: (Maybe LogSubscription -> f (Maybe LogSubscription))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_logSubscription = (DescribeJobRunResponse -> Maybe LogSubscription)
-> (DescribeJobRunResponse
-> Maybe LogSubscription -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe LogSubscription)
(Maybe LogSubscription)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe LogSubscription
logSubscription :: Maybe LogSubscription
$sel:logSubscription:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe LogSubscription
logSubscription} -> Maybe LogSubscription
logSubscription) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe LogSubscription
a -> DescribeJobRunResponse
s {$sel:logSubscription:DescribeJobRunResponse' :: Maybe LogSubscription
logSubscription = Maybe LogSubscription
a} :: DescribeJobRunResponse)
describeJobRunResponse_startedBy :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe Prelude.Text)
describeJobRunResponse_startedBy :: (Maybe Text -> f (Maybe Text))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_startedBy = (DescribeJobRunResponse -> Maybe Text)
-> (DescribeJobRunResponse -> Maybe Text -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe Text
startedBy :: Maybe Text
$sel:startedBy:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe Text
startedBy} -> Maybe Text
startedBy) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe Text
a -> DescribeJobRunResponse
s {$sel:startedBy:DescribeJobRunResponse' :: Maybe Text
startedBy = Maybe Text
a} :: DescribeJobRunResponse)
describeJobRunResponse_datasetName :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe Prelude.Text)
describeJobRunResponse_datasetName :: (Maybe Text -> f (Maybe Text))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_datasetName = (DescribeJobRunResponse -> Maybe Text)
-> (DescribeJobRunResponse -> Maybe Text -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe Text
datasetName :: Maybe Text
$sel:datasetName:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe Text
datasetName} -> Maybe Text
datasetName) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe Text
a -> DescribeJobRunResponse
s {$sel:datasetName:DescribeJobRunResponse' :: Maybe Text
datasetName = Maybe Text
a} :: DescribeJobRunResponse)
describeJobRunResponse_attempt :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe Prelude.Int)
describeJobRunResponse_attempt :: (Maybe Int -> f (Maybe Int))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_attempt = (DescribeJobRunResponse -> Maybe Int)
-> (DescribeJobRunResponse -> Maybe Int -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe Int
attempt :: Maybe Int
$sel:attempt:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe Int
attempt} -> Maybe Int
attempt) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe Int
a -> DescribeJobRunResponse
s {$sel:attempt:DescribeJobRunResponse' :: Maybe Int
attempt = Maybe Int
a} :: DescribeJobRunResponse)
describeJobRunResponse_errorMessage :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe Prelude.Text)
describeJobRunResponse_errorMessage :: (Maybe Text -> f (Maybe Text))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_errorMessage = (DescribeJobRunResponse -> Maybe Text)
-> (DescribeJobRunResponse -> Maybe Text -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe Text
a -> DescribeJobRunResponse
s {$sel:errorMessage:DescribeJobRunResponse' :: Maybe Text
errorMessage = Maybe Text
a} :: DescribeJobRunResponse)
describeJobRunResponse_jobSample :: Lens.Lens' DescribeJobRunResponse (Prelude.Maybe JobSample)
describeJobRunResponse_jobSample :: (Maybe JobSample -> f (Maybe JobSample))
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_jobSample = (DescribeJobRunResponse -> Maybe JobSample)
-> (DescribeJobRunResponse
-> Maybe JobSample -> DescribeJobRunResponse)
-> Lens
DescribeJobRunResponse
DescribeJobRunResponse
(Maybe JobSample)
(Maybe JobSample)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Maybe JobSample
jobSample :: Maybe JobSample
$sel:jobSample:DescribeJobRunResponse' :: DescribeJobRunResponse -> Maybe JobSample
jobSample} -> Maybe JobSample
jobSample) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Maybe JobSample
a -> DescribeJobRunResponse
s {$sel:jobSample:DescribeJobRunResponse' :: Maybe JobSample
jobSample = Maybe JobSample
a} :: DescribeJobRunResponse)
describeJobRunResponse_httpStatus :: Lens.Lens' DescribeJobRunResponse Prelude.Int
describeJobRunResponse_httpStatus :: (Int -> f Int)
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_httpStatus = (DescribeJobRunResponse -> Int)
-> (DescribeJobRunResponse -> Int -> DescribeJobRunResponse)
-> Lens DescribeJobRunResponse DescribeJobRunResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeJobRunResponse' :: DescribeJobRunResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Int
a -> DescribeJobRunResponse
s {$sel:httpStatus:DescribeJobRunResponse' :: Int
httpStatus = Int
a} :: DescribeJobRunResponse)
describeJobRunResponse_jobName :: Lens.Lens' DescribeJobRunResponse Prelude.Text
describeJobRunResponse_jobName :: (Text -> f Text)
-> DescribeJobRunResponse -> f DescribeJobRunResponse
describeJobRunResponse_jobName = (DescribeJobRunResponse -> Text)
-> (DescribeJobRunResponse -> Text -> DescribeJobRunResponse)
-> Lens DescribeJobRunResponse DescribeJobRunResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobRunResponse' {Text
jobName :: Text
$sel:jobName:DescribeJobRunResponse' :: DescribeJobRunResponse -> Text
jobName} -> Text
jobName) (\s :: DescribeJobRunResponse
s@DescribeJobRunResponse' {} Text
a -> DescribeJobRunResponse
s {$sel:jobName:DescribeJobRunResponse' :: Text
jobName = Text
a} :: DescribeJobRunResponse)
instance Prelude.NFData DescribeJobRunResponse