{-# 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.HoneyCode.DescribeTableDataImportJob
-- 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)
--
-- The DescribeTableDataImportJob API allows you to retrieve the status and
-- details of a table data import job.
module Amazonka.HoneyCode.DescribeTableDataImportJob
  ( -- * Creating a Request
    DescribeTableDataImportJob (..),
    newDescribeTableDataImportJob,

    -- * Request Lenses
    describeTableDataImportJob_workbookId,
    describeTableDataImportJob_tableId,
    describeTableDataImportJob_jobId,

    -- * Destructuring the Response
    DescribeTableDataImportJobResponse (..),
    newDescribeTableDataImportJobResponse,

    -- * Response Lenses
    describeTableDataImportJobResponse_httpStatus,
    describeTableDataImportJobResponse_jobStatus,
    describeTableDataImportJobResponse_message,
    describeTableDataImportJobResponse_jobMetadata,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.HoneyCode.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:/ 'newDescribeTableDataImportJob' smart constructor.
data DescribeTableDataImportJob = DescribeTableDataImportJob'
  { -- | The ID of the workbook into which data was imported.
    --
    -- If a workbook with the specified id could not be found, this API throws
    -- ResourceNotFoundException.
    DescribeTableDataImportJob -> Text
workbookId :: Prelude.Text,
    -- | The ID of the table into which data was imported.
    --
    -- If a table with the specified id could not be found, this API throws
    -- ResourceNotFoundException.
    DescribeTableDataImportJob -> Text
tableId :: Prelude.Text,
    -- | The ID of the job that was returned by the StartTableDataImportJob
    -- request.
    --
    -- If a job with the specified id could not be found, this API throws
    -- ResourceNotFoundException.
    DescribeTableDataImportJob -> Text
jobId :: Prelude.Text
  }
  deriving (DescribeTableDataImportJob -> DescribeTableDataImportJob -> Bool
(DescribeTableDataImportJob -> DescribeTableDataImportJob -> Bool)
-> (DescribeTableDataImportJob
    -> DescribeTableDataImportJob -> Bool)
-> Eq DescribeTableDataImportJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTableDataImportJob -> DescribeTableDataImportJob -> Bool
$c/= :: DescribeTableDataImportJob -> DescribeTableDataImportJob -> Bool
== :: DescribeTableDataImportJob -> DescribeTableDataImportJob -> Bool
$c== :: DescribeTableDataImportJob -> DescribeTableDataImportJob -> Bool
Prelude.Eq, ReadPrec [DescribeTableDataImportJob]
ReadPrec DescribeTableDataImportJob
Int -> ReadS DescribeTableDataImportJob
ReadS [DescribeTableDataImportJob]
(Int -> ReadS DescribeTableDataImportJob)
-> ReadS [DescribeTableDataImportJob]
-> ReadPrec DescribeTableDataImportJob
-> ReadPrec [DescribeTableDataImportJob]
-> Read DescribeTableDataImportJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTableDataImportJob]
$creadListPrec :: ReadPrec [DescribeTableDataImportJob]
readPrec :: ReadPrec DescribeTableDataImportJob
$creadPrec :: ReadPrec DescribeTableDataImportJob
readList :: ReadS [DescribeTableDataImportJob]
$creadList :: ReadS [DescribeTableDataImportJob]
readsPrec :: Int -> ReadS DescribeTableDataImportJob
$creadsPrec :: Int -> ReadS DescribeTableDataImportJob
Prelude.Read, Int -> DescribeTableDataImportJob -> ShowS
[DescribeTableDataImportJob] -> ShowS
DescribeTableDataImportJob -> String
(Int -> DescribeTableDataImportJob -> ShowS)
-> (DescribeTableDataImportJob -> String)
-> ([DescribeTableDataImportJob] -> ShowS)
-> Show DescribeTableDataImportJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTableDataImportJob] -> ShowS
$cshowList :: [DescribeTableDataImportJob] -> ShowS
show :: DescribeTableDataImportJob -> String
$cshow :: DescribeTableDataImportJob -> String
showsPrec :: Int -> DescribeTableDataImportJob -> ShowS
$cshowsPrec :: Int -> DescribeTableDataImportJob -> ShowS
Prelude.Show, (forall x.
 DescribeTableDataImportJob -> Rep DescribeTableDataImportJob x)
-> (forall x.
    Rep DescribeTableDataImportJob x -> DescribeTableDataImportJob)
-> Generic DescribeTableDataImportJob
forall x.
Rep DescribeTableDataImportJob x -> DescribeTableDataImportJob
forall x.
DescribeTableDataImportJob -> Rep DescribeTableDataImportJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTableDataImportJob x -> DescribeTableDataImportJob
$cfrom :: forall x.
DescribeTableDataImportJob -> Rep DescribeTableDataImportJob x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTableDataImportJob' 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:
--
-- 'workbookId', 'describeTableDataImportJob_workbookId' - The ID of the workbook into which data was imported.
--
-- If a workbook with the specified id could not be found, this API throws
-- ResourceNotFoundException.
--
-- 'tableId', 'describeTableDataImportJob_tableId' - The ID of the table into which data was imported.
--
-- If a table with the specified id could not be found, this API throws
-- ResourceNotFoundException.
--
-- 'jobId', 'describeTableDataImportJob_jobId' - The ID of the job that was returned by the StartTableDataImportJob
-- request.
--
-- If a job with the specified id could not be found, this API throws
-- ResourceNotFoundException.
newDescribeTableDataImportJob ::
  -- | 'workbookId'
  Prelude.Text ->
  -- | 'tableId'
  Prelude.Text ->
  -- | 'jobId'
  Prelude.Text ->
  DescribeTableDataImportJob
newDescribeTableDataImportJob :: Text -> Text -> Text -> DescribeTableDataImportJob
newDescribeTableDataImportJob
  Text
pWorkbookId_
  Text
pTableId_
  Text
pJobId_ =
    DescribeTableDataImportJob' :: Text -> Text -> Text -> DescribeTableDataImportJob
DescribeTableDataImportJob'
      { $sel:workbookId:DescribeTableDataImportJob' :: Text
workbookId =
          Text
pWorkbookId_,
        $sel:tableId:DescribeTableDataImportJob' :: Text
tableId = Text
pTableId_,
        $sel:jobId:DescribeTableDataImportJob' :: Text
jobId = Text
pJobId_
      }

-- | The ID of the workbook into which data was imported.
--
-- If a workbook with the specified id could not be found, this API throws
-- ResourceNotFoundException.
describeTableDataImportJob_workbookId :: Lens.Lens' DescribeTableDataImportJob Prelude.Text
describeTableDataImportJob_workbookId :: (Text -> f Text)
-> DescribeTableDataImportJob -> f DescribeTableDataImportJob
describeTableDataImportJob_workbookId = (DescribeTableDataImportJob -> Text)
-> (DescribeTableDataImportJob
    -> Text -> DescribeTableDataImportJob)
-> Lens
     DescribeTableDataImportJob DescribeTableDataImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTableDataImportJob' {Text
workbookId :: Text
$sel:workbookId:DescribeTableDataImportJob' :: DescribeTableDataImportJob -> Text
workbookId} -> Text
workbookId) (\s :: DescribeTableDataImportJob
s@DescribeTableDataImportJob' {} Text
a -> DescribeTableDataImportJob
s {$sel:workbookId:DescribeTableDataImportJob' :: Text
workbookId = Text
a} :: DescribeTableDataImportJob)

-- | The ID of the table into which data was imported.
--
-- If a table with the specified id could not be found, this API throws
-- ResourceNotFoundException.
describeTableDataImportJob_tableId :: Lens.Lens' DescribeTableDataImportJob Prelude.Text
describeTableDataImportJob_tableId :: (Text -> f Text)
-> DescribeTableDataImportJob -> f DescribeTableDataImportJob
describeTableDataImportJob_tableId = (DescribeTableDataImportJob -> Text)
-> (DescribeTableDataImportJob
    -> Text -> DescribeTableDataImportJob)
-> Lens
     DescribeTableDataImportJob DescribeTableDataImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTableDataImportJob' {Text
tableId :: Text
$sel:tableId:DescribeTableDataImportJob' :: DescribeTableDataImportJob -> Text
tableId} -> Text
tableId) (\s :: DescribeTableDataImportJob
s@DescribeTableDataImportJob' {} Text
a -> DescribeTableDataImportJob
s {$sel:tableId:DescribeTableDataImportJob' :: Text
tableId = Text
a} :: DescribeTableDataImportJob)

-- | The ID of the job that was returned by the StartTableDataImportJob
-- request.
--
-- If a job with the specified id could not be found, this API throws
-- ResourceNotFoundException.
describeTableDataImportJob_jobId :: Lens.Lens' DescribeTableDataImportJob Prelude.Text
describeTableDataImportJob_jobId :: (Text -> f Text)
-> DescribeTableDataImportJob -> f DescribeTableDataImportJob
describeTableDataImportJob_jobId = (DescribeTableDataImportJob -> Text)
-> (DescribeTableDataImportJob
    -> Text -> DescribeTableDataImportJob)
-> Lens
     DescribeTableDataImportJob DescribeTableDataImportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTableDataImportJob' {Text
jobId :: Text
$sel:jobId:DescribeTableDataImportJob' :: DescribeTableDataImportJob -> Text
jobId} -> Text
jobId) (\s :: DescribeTableDataImportJob
s@DescribeTableDataImportJob' {} Text
a -> DescribeTableDataImportJob
s {$sel:jobId:DescribeTableDataImportJob' :: Text
jobId = Text
a} :: DescribeTableDataImportJob)

instance Core.AWSRequest DescribeTableDataImportJob where
  type
    AWSResponse DescribeTableDataImportJob =
      DescribeTableDataImportJobResponse
  request :: DescribeTableDataImportJob -> Request DescribeTableDataImportJob
request = Service
-> DescribeTableDataImportJob -> Request DescribeTableDataImportJob
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeTableDataImportJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeTableDataImportJob)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse DescribeTableDataImportJob))
-> Logger
-> Service
-> Proxy DescribeTableDataImportJob
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeTableDataImportJob)))
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 ->
          Int
-> TableDataImportJobStatus
-> Text
-> TableDataImportJobMetadata
-> DescribeTableDataImportJobResponse
DescribeTableDataImportJobResponse'
            (Int
 -> TableDataImportJobStatus
 -> Text
 -> TableDataImportJobMetadata
 -> DescribeTableDataImportJobResponse)
-> Either String Int
-> Either
     String
     (TableDataImportJobStatus
      -> Text
      -> TableDataImportJobMetadata
      -> DescribeTableDataImportJobResponse)
forall (f :: * -> *) a b. Functor 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
  (TableDataImportJobStatus
   -> Text
   -> TableDataImportJobMetadata
   -> DescribeTableDataImportJobResponse)
-> Either String TableDataImportJobStatus
-> Either
     String
     (Text
      -> TableDataImportJobMetadata
      -> DescribeTableDataImportJobResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String TableDataImportJobStatus
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"jobStatus")
            Either
  String
  (Text
   -> TableDataImportJobMetadata
   -> DescribeTableDataImportJobResponse)
-> Either String Text
-> Either
     String
     (TableDataImportJobMetadata -> DescribeTableDataImportJobResponse)
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
"message")
            Either
  String
  (TableDataImportJobMetadata -> DescribeTableDataImportJobResponse)
-> Either String TableDataImportJobMetadata
-> Either String DescribeTableDataImportJobResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String TableDataImportJobMetadata
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"jobMetadata")
      )

instance Prelude.Hashable DescribeTableDataImportJob

instance Prelude.NFData DescribeTableDataImportJob

instance Core.ToHeaders DescribeTableDataImportJob where
  toHeaders :: DescribeTableDataImportJob -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DescribeTableDataImportJob -> 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 DescribeTableDataImportJob where
  toPath :: DescribeTableDataImportJob -> ByteString
toPath DescribeTableDataImportJob' {Text
jobId :: Text
tableId :: Text
workbookId :: Text
$sel:jobId:DescribeTableDataImportJob' :: DescribeTableDataImportJob -> Text
$sel:tableId:DescribeTableDataImportJob' :: DescribeTableDataImportJob -> Text
$sel:workbookId:DescribeTableDataImportJob' :: DescribeTableDataImportJob -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/workbooks/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
workbookId,
        ByteString
"/tables/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
tableId,
        ByteString
"/import/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
jobId
      ]

instance Core.ToQuery DescribeTableDataImportJob where
  toQuery :: DescribeTableDataImportJob -> QueryString
toQuery = QueryString -> DescribeTableDataImportJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newDescribeTableDataImportJobResponse' smart constructor.
data DescribeTableDataImportJobResponse = DescribeTableDataImportJobResponse'
  { -- | The response's http status code.
    DescribeTableDataImportJobResponse -> Int
httpStatus :: Prelude.Int,
    -- | The current status of the import job.
    DescribeTableDataImportJobResponse -> TableDataImportJobStatus
jobStatus :: TableDataImportJobStatus,
    -- | A message providing more details about the current status of the import
    -- job.
    DescribeTableDataImportJobResponse -> Text
message :: Prelude.Text,
    -- | The metadata about the job that was submitted for import.
    DescribeTableDataImportJobResponse -> TableDataImportJobMetadata
jobMetadata :: TableDataImportJobMetadata
  }
  deriving (DescribeTableDataImportJobResponse
-> DescribeTableDataImportJobResponse -> Bool
(DescribeTableDataImportJobResponse
 -> DescribeTableDataImportJobResponse -> Bool)
-> (DescribeTableDataImportJobResponse
    -> DescribeTableDataImportJobResponse -> Bool)
-> Eq DescribeTableDataImportJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTableDataImportJobResponse
-> DescribeTableDataImportJobResponse -> Bool
$c/= :: DescribeTableDataImportJobResponse
-> DescribeTableDataImportJobResponse -> Bool
== :: DescribeTableDataImportJobResponse
-> DescribeTableDataImportJobResponse -> Bool
$c== :: DescribeTableDataImportJobResponse
-> DescribeTableDataImportJobResponse -> Bool
Prelude.Eq, Int -> DescribeTableDataImportJobResponse -> ShowS
[DescribeTableDataImportJobResponse] -> ShowS
DescribeTableDataImportJobResponse -> String
(Int -> DescribeTableDataImportJobResponse -> ShowS)
-> (DescribeTableDataImportJobResponse -> String)
-> ([DescribeTableDataImportJobResponse] -> ShowS)
-> Show DescribeTableDataImportJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTableDataImportJobResponse] -> ShowS
$cshowList :: [DescribeTableDataImportJobResponse] -> ShowS
show :: DescribeTableDataImportJobResponse -> String
$cshow :: DescribeTableDataImportJobResponse -> String
showsPrec :: Int -> DescribeTableDataImportJobResponse -> ShowS
$cshowsPrec :: Int -> DescribeTableDataImportJobResponse -> ShowS
Prelude.Show, (forall x.
 DescribeTableDataImportJobResponse
 -> Rep DescribeTableDataImportJobResponse x)
-> (forall x.
    Rep DescribeTableDataImportJobResponse x
    -> DescribeTableDataImportJobResponse)
-> Generic DescribeTableDataImportJobResponse
forall x.
Rep DescribeTableDataImportJobResponse x
-> DescribeTableDataImportJobResponse
forall x.
DescribeTableDataImportJobResponse
-> Rep DescribeTableDataImportJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTableDataImportJobResponse x
-> DescribeTableDataImportJobResponse
$cfrom :: forall x.
DescribeTableDataImportJobResponse
-> Rep DescribeTableDataImportJobResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTableDataImportJobResponse' 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:
--
-- 'httpStatus', 'describeTableDataImportJobResponse_httpStatus' - The response's http status code.
--
-- 'jobStatus', 'describeTableDataImportJobResponse_jobStatus' - The current status of the import job.
--
-- 'message', 'describeTableDataImportJobResponse_message' - A message providing more details about the current status of the import
-- job.
--
-- 'jobMetadata', 'describeTableDataImportJobResponse_jobMetadata' - The metadata about the job that was submitted for import.
newDescribeTableDataImportJobResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'jobStatus'
  TableDataImportJobStatus ->
  -- | 'message'
  Prelude.Text ->
  -- | 'jobMetadata'
  TableDataImportJobMetadata ->
  DescribeTableDataImportJobResponse
newDescribeTableDataImportJobResponse :: Int
-> TableDataImportJobStatus
-> Text
-> TableDataImportJobMetadata
-> DescribeTableDataImportJobResponse
newDescribeTableDataImportJobResponse
  Int
pHttpStatus_
  TableDataImportJobStatus
pJobStatus_
  Text
pMessage_
  TableDataImportJobMetadata
pJobMetadata_ =
    DescribeTableDataImportJobResponse' :: Int
-> TableDataImportJobStatus
-> Text
-> TableDataImportJobMetadata
-> DescribeTableDataImportJobResponse
DescribeTableDataImportJobResponse'
      { $sel:httpStatus:DescribeTableDataImportJobResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:jobStatus:DescribeTableDataImportJobResponse' :: TableDataImportJobStatus
jobStatus = TableDataImportJobStatus
pJobStatus_,
        $sel:message:DescribeTableDataImportJobResponse' :: Text
message = Text
pMessage_,
        $sel:jobMetadata:DescribeTableDataImportJobResponse' :: TableDataImportJobMetadata
jobMetadata = TableDataImportJobMetadata
pJobMetadata_
      }

-- | The response's http status code.
describeTableDataImportJobResponse_httpStatus :: Lens.Lens' DescribeTableDataImportJobResponse Prelude.Int
describeTableDataImportJobResponse_httpStatus :: (Int -> f Int)
-> DescribeTableDataImportJobResponse
-> f DescribeTableDataImportJobResponse
describeTableDataImportJobResponse_httpStatus = (DescribeTableDataImportJobResponse -> Int)
-> (DescribeTableDataImportJobResponse
    -> Int -> DescribeTableDataImportJobResponse)
-> Lens
     DescribeTableDataImportJobResponse
     DescribeTableDataImportJobResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTableDataImportJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeTableDataImportJobResponse' :: DescribeTableDataImportJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeTableDataImportJobResponse
s@DescribeTableDataImportJobResponse' {} Int
a -> DescribeTableDataImportJobResponse
s {$sel:httpStatus:DescribeTableDataImportJobResponse' :: Int
httpStatus = Int
a} :: DescribeTableDataImportJobResponse)

-- | The current status of the import job.
describeTableDataImportJobResponse_jobStatus :: Lens.Lens' DescribeTableDataImportJobResponse TableDataImportJobStatus
describeTableDataImportJobResponse_jobStatus :: (TableDataImportJobStatus -> f TableDataImportJobStatus)
-> DescribeTableDataImportJobResponse
-> f DescribeTableDataImportJobResponse
describeTableDataImportJobResponse_jobStatus = (DescribeTableDataImportJobResponse -> TableDataImportJobStatus)
-> (DescribeTableDataImportJobResponse
    -> TableDataImportJobStatus -> DescribeTableDataImportJobResponse)
-> Lens
     DescribeTableDataImportJobResponse
     DescribeTableDataImportJobResponse
     TableDataImportJobStatus
     TableDataImportJobStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTableDataImportJobResponse' {TableDataImportJobStatus
jobStatus :: TableDataImportJobStatus
$sel:jobStatus:DescribeTableDataImportJobResponse' :: DescribeTableDataImportJobResponse -> TableDataImportJobStatus
jobStatus} -> TableDataImportJobStatus
jobStatus) (\s :: DescribeTableDataImportJobResponse
s@DescribeTableDataImportJobResponse' {} TableDataImportJobStatus
a -> DescribeTableDataImportJobResponse
s {$sel:jobStatus:DescribeTableDataImportJobResponse' :: TableDataImportJobStatus
jobStatus = TableDataImportJobStatus
a} :: DescribeTableDataImportJobResponse)

-- | A message providing more details about the current status of the import
-- job.
describeTableDataImportJobResponse_message :: Lens.Lens' DescribeTableDataImportJobResponse Prelude.Text
describeTableDataImportJobResponse_message :: (Text -> f Text)
-> DescribeTableDataImportJobResponse
-> f DescribeTableDataImportJobResponse
describeTableDataImportJobResponse_message = (DescribeTableDataImportJobResponse -> Text)
-> (DescribeTableDataImportJobResponse
    -> Text -> DescribeTableDataImportJobResponse)
-> Lens
     DescribeTableDataImportJobResponse
     DescribeTableDataImportJobResponse
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTableDataImportJobResponse' {Text
message :: Text
$sel:message:DescribeTableDataImportJobResponse' :: DescribeTableDataImportJobResponse -> Text
message} -> Text
message) (\s :: DescribeTableDataImportJobResponse
s@DescribeTableDataImportJobResponse' {} Text
a -> DescribeTableDataImportJobResponse
s {$sel:message:DescribeTableDataImportJobResponse' :: Text
message = Text
a} :: DescribeTableDataImportJobResponse)

-- | The metadata about the job that was submitted for import.
describeTableDataImportJobResponse_jobMetadata :: Lens.Lens' DescribeTableDataImportJobResponse TableDataImportJobMetadata
describeTableDataImportJobResponse_jobMetadata :: (TableDataImportJobMetadata -> f TableDataImportJobMetadata)
-> DescribeTableDataImportJobResponse
-> f DescribeTableDataImportJobResponse
describeTableDataImportJobResponse_jobMetadata = (DescribeTableDataImportJobResponse -> TableDataImportJobMetadata)
-> (DescribeTableDataImportJobResponse
    -> TableDataImportJobMetadata
    -> DescribeTableDataImportJobResponse)
-> Lens
     DescribeTableDataImportJobResponse
     DescribeTableDataImportJobResponse
     TableDataImportJobMetadata
     TableDataImportJobMetadata
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTableDataImportJobResponse' {TableDataImportJobMetadata
jobMetadata :: TableDataImportJobMetadata
$sel:jobMetadata:DescribeTableDataImportJobResponse' :: DescribeTableDataImportJobResponse -> TableDataImportJobMetadata
jobMetadata} -> TableDataImportJobMetadata
jobMetadata) (\s :: DescribeTableDataImportJobResponse
s@DescribeTableDataImportJobResponse' {} TableDataImportJobMetadata
a -> DescribeTableDataImportJobResponse
s {$sel:jobMetadata:DescribeTableDataImportJobResponse' :: TableDataImportJobMetadata
jobMetadata = TableDataImportJobMetadata
a} :: DescribeTableDataImportJobResponse)

instance
  Prelude.NFData
    DescribeTableDataImportJobResponse