{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.DataBrew.DescribeJobRun
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Represents one run of a DataBrew job.
module Amazonka.DataBrew.DescribeJobRun
  ( -- * Creating a Request
    DescribeJobRun (..),
    newDescribeJobRun,

    -- * Request Lenses
    describeJobRun_name,
    describeJobRun_runId,

    -- * Destructuring the Response
    DescribeJobRunResponse (..),
    newDescribeJobRunResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newDescribeJobRun' smart constructor.
data DescribeJobRun = DescribeJobRun'
  { -- | The name of the job being processed during this run.
    DescribeJobRun -> Text
name :: Prelude.Text,
    -- | The unique identifier of the job run.
    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)

-- |
-- Create a value of 'DescribeJobRun' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'name', 'describeJobRun_name' - The name of the job being processed during this run.
--
-- 'runId', 'describeJobRun_runId' - The unique identifier of the job run.
newDescribeJobRun ::
  -- | 'name'
  Prelude.Text ->
  -- | 'runId'
  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_}

-- | The name of the job being processed during this run.
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)

-- | The unique identifier of the job run.
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

-- | /See:/ 'newDescribeJobRunResponse' smart constructor.
data DescribeJobRunResponse = DescribeJobRunResponse'
  { -- | The date and time when the job completed processing.
    DescribeJobRunResponse -> Maybe POSIX
completedOn :: Prelude.Maybe Core.POSIX,
    -- | The current state of the job run entity itself.
    DescribeJobRunResponse -> Maybe JobRunState
state :: Prelude.Maybe JobRunState,
    -- | One or more artifacts that represent the Glue Data Catalog output from
    -- running the job.
    DescribeJobRunResponse -> Maybe (NonEmpty DataCatalogOutput)
dataCatalogOutputs :: Prelude.Maybe (Prelude.NonEmpty DataCatalogOutput),
    -- | The date and time when the job run began.
    DescribeJobRunResponse -> Maybe POSIX
startedOn :: Prelude.Maybe Core.POSIX,
    DescribeJobRunResponse -> Maybe RecipeReference
recipeReference :: Prelude.Maybe RecipeReference,
    -- | Configuration for profile jobs. Used to select columns, do evaluations,
    -- and override default parameters of evaluations. When configuration is
    -- null, the profile job will run with default settings.
    DescribeJobRunResponse -> Maybe ProfileConfiguration
profileConfiguration :: Prelude.Maybe ProfileConfiguration,
    -- | Represents a list of JDBC database output objects which defines the
    -- output destination for a DataBrew recipe job to write into.
    DescribeJobRunResponse -> Maybe (NonEmpty DatabaseOutput)
databaseOutputs :: Prelude.Maybe (Prelude.NonEmpty DatabaseOutput),
    -- | The name of an Amazon CloudWatch log group, where the job writes
    -- diagnostic messages when it runs.
    DescribeJobRunResponse -> Maybe Text
logGroupName :: Prelude.Maybe Prelude.Text,
    -- | One or more output artifacts from a job run.
    DescribeJobRunResponse -> Maybe (NonEmpty Output)
outputs :: Prelude.Maybe (Prelude.NonEmpty Output),
    -- | The unique identifier of the job run.
    DescribeJobRunResponse -> Maybe Text
runId :: Prelude.Maybe Prelude.Text,
    -- | The amount of time, in seconds, during which the job run consumed
    -- resources.
    DescribeJobRunResponse -> Maybe Int
executionTime :: Prelude.Maybe Prelude.Int,
    -- | The current status of Amazon CloudWatch logging for the job run.
    DescribeJobRunResponse -> Maybe LogSubscription
logSubscription :: Prelude.Maybe LogSubscription,
    -- | The Amazon Resource Name (ARN) of the user who started the job run.
    DescribeJobRunResponse -> Maybe Text
startedBy :: Prelude.Maybe Prelude.Text,
    -- | The name of the dataset for the job to process.
    DescribeJobRunResponse -> Maybe Text
datasetName :: Prelude.Maybe Prelude.Text,
    -- | The number of times that DataBrew has attempted to run the job.
    DescribeJobRunResponse -> Maybe Int
attempt :: Prelude.Maybe Prelude.Int,
    -- | A message indicating an error (if any) that was encountered when the job
    -- ran.
    DescribeJobRunResponse -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
    -- | Sample configuration for profile jobs only. Determines the number of
    -- rows on which the profile job will be executed. If a JobSample value is
    -- not provided, the default value will be used. The default value is
    -- CUSTOM_ROWS for the mode parameter and 20000 for the size parameter.
    DescribeJobRunResponse -> Maybe JobSample
jobSample :: Prelude.Maybe JobSample,
    -- | The response's http status code.
    DescribeJobRunResponse -> Int
httpStatus :: Prelude.Int,
    -- | The name of the job being processed during this run.
    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)

-- |
-- Create a value of 'DescribeJobRunResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'completedOn', 'describeJobRunResponse_completedOn' - The date and time when the job completed processing.
--
-- 'state', 'describeJobRunResponse_state' - The current state of the job run entity itself.
--
-- 'dataCatalogOutputs', 'describeJobRunResponse_dataCatalogOutputs' - One or more artifacts that represent the Glue Data Catalog output from
-- running the job.
--
-- 'startedOn', 'describeJobRunResponse_startedOn' - The date and time when the job run began.
--
-- 'recipeReference', 'describeJobRunResponse_recipeReference' - Undocumented member.
--
-- 'profileConfiguration', 'describeJobRunResponse_profileConfiguration' - Configuration for profile jobs. Used to select columns, do evaluations,
-- and override default parameters of evaluations. When configuration is
-- null, the profile job will run with default settings.
--
-- 'databaseOutputs', 'describeJobRunResponse_databaseOutputs' - Represents a list of JDBC database output objects which defines the
-- output destination for a DataBrew recipe job to write into.
--
-- 'logGroupName', 'describeJobRunResponse_logGroupName' - The name of an Amazon CloudWatch log group, where the job writes
-- diagnostic messages when it runs.
--
-- 'outputs', 'describeJobRunResponse_outputs' - One or more output artifacts from a job run.
--
-- 'runId', 'describeJobRunResponse_runId' - The unique identifier of the job run.
--
-- 'executionTime', 'describeJobRunResponse_executionTime' - The amount of time, in seconds, during which the job run consumed
-- resources.
--
-- 'logSubscription', 'describeJobRunResponse_logSubscription' - The current status of Amazon CloudWatch logging for the job run.
--
-- 'startedBy', 'describeJobRunResponse_startedBy' - The Amazon Resource Name (ARN) of the user who started the job run.
--
-- 'datasetName', 'describeJobRunResponse_datasetName' - The name of the dataset for the job to process.
--
-- 'attempt', 'describeJobRunResponse_attempt' - The number of times that DataBrew has attempted to run the job.
--
-- 'errorMessage', 'describeJobRunResponse_errorMessage' - A message indicating an error (if any) that was encountered when the job
-- ran.
--
-- 'jobSample', 'describeJobRunResponse_jobSample' - Sample configuration for profile jobs only. Determines the number of
-- rows on which the profile job will be executed. If a JobSample value is
-- not provided, the default value will be used. The default value is
-- CUSTOM_ROWS for the mode parameter and 20000 for the size parameter.
--
-- 'httpStatus', 'describeJobRunResponse_httpStatus' - The response's http status code.
--
-- 'jobName', 'describeJobRunResponse_jobName' - The name of the job being processed during this run.
newDescribeJobRunResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'jobName'
  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_
    }

-- | The date and time when the job completed processing.
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

-- | The current state of the job run entity itself.
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)

-- | One or more artifacts that represent the Glue Data Catalog output from
-- running the job.
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

-- | The date and time when the job run began.
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

-- | Undocumented member.
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)

-- | Configuration for profile jobs. Used to select columns, do evaluations,
-- and override default parameters of evaluations. When configuration is
-- null, the profile job will run with default settings.
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)

-- | Represents a list of JDBC database output objects which defines the
-- output destination for a DataBrew recipe job to write into.
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

-- | The name of an Amazon CloudWatch log group, where the job writes
-- diagnostic messages when it runs.
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)

-- | One or more output artifacts from a job run.
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

-- | The unique identifier of the job run.
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)

-- | The amount of time, in seconds, during which the job run consumed
-- resources.
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)

-- | The current status of Amazon CloudWatch logging for the job run.
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)

-- | The Amazon Resource Name (ARN) of the user who started the job run.
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)

-- | The name of the dataset for the job to process.
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)

-- | The number of times that DataBrew has attempted to run the job.
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)

-- | A message indicating an error (if any) that was encountered when the job
-- ran.
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)

-- | Sample configuration for profile jobs only. Determines the number of
-- rows on which the profile job will be executed. If a JobSample value is
-- not provided, the default value will be used. The default value is
-- CUSTOM_ROWS for the mode parameter and 20000 for the size parameter.
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)

-- | The response's http status code.
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)

-- | The name of the job being processed during this run.
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