{-# 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.HoneyCode.StartTableDataImportJob
(
StartTableDataImportJob (..),
newStartTableDataImportJob,
startTableDataImportJob_workbookId,
startTableDataImportJob_dataSource,
startTableDataImportJob_dataFormat,
startTableDataImportJob_destinationTableId,
startTableDataImportJob_importOptions,
startTableDataImportJob_clientRequestToken,
StartTableDataImportJobResponse (..),
newStartTableDataImportJobResponse,
startTableDataImportJobResponse_httpStatus,
startTableDataImportJobResponse_jobId,
startTableDataImportJobResponse_jobStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.HoneyCode.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data StartTableDataImportJob = StartTableDataImportJob'
{
StartTableDataImportJob -> Text
workbookId :: Prelude.Text,
StartTableDataImportJob -> ImportDataSource
dataSource :: ImportDataSource,
StartTableDataImportJob -> ImportSourceDataFormat
dataFormat :: ImportSourceDataFormat,
StartTableDataImportJob -> Text
destinationTableId :: Prelude.Text,
StartTableDataImportJob -> ImportOptions
importOptions :: ImportOptions,
StartTableDataImportJob -> Text
clientRequestToken :: Prelude.Text
}
deriving (StartTableDataImportJob -> StartTableDataImportJob -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartTableDataImportJob -> StartTableDataImportJob -> Bool
$c/= :: StartTableDataImportJob -> StartTableDataImportJob -> Bool
== :: StartTableDataImportJob -> StartTableDataImportJob -> Bool
$c== :: StartTableDataImportJob -> StartTableDataImportJob -> Bool
Prelude.Eq, Int -> StartTableDataImportJob -> ShowS
[StartTableDataImportJob] -> ShowS
StartTableDataImportJob -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartTableDataImportJob] -> ShowS
$cshowList :: [StartTableDataImportJob] -> ShowS
show :: StartTableDataImportJob -> String
$cshow :: StartTableDataImportJob -> String
showsPrec :: Int -> StartTableDataImportJob -> ShowS
$cshowsPrec :: Int -> StartTableDataImportJob -> ShowS
Prelude.Show, forall x. Rep StartTableDataImportJob x -> StartTableDataImportJob
forall x. StartTableDataImportJob -> Rep StartTableDataImportJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartTableDataImportJob x -> StartTableDataImportJob
$cfrom :: forall x. StartTableDataImportJob -> Rep StartTableDataImportJob x
Prelude.Generic)
newStartTableDataImportJob ::
Prelude.Text ->
ImportDataSource ->
ImportSourceDataFormat ->
Prelude.Text ->
ImportOptions ->
Prelude.Text ->
StartTableDataImportJob
newStartTableDataImportJob :: Text
-> ImportDataSource
-> ImportSourceDataFormat
-> Text
-> ImportOptions
-> Text
-> StartTableDataImportJob
newStartTableDataImportJob
Text
pWorkbookId_
ImportDataSource
pDataSource_
ImportSourceDataFormat
pDataFormat_
Text
pDestinationTableId_
ImportOptions
pImportOptions_
Text
pClientRequestToken_ =
StartTableDataImportJob'
{ $sel:workbookId:StartTableDataImportJob' :: Text
workbookId = Text
pWorkbookId_,
$sel:dataSource:StartTableDataImportJob' :: ImportDataSource
dataSource = ImportDataSource
pDataSource_,
$sel:dataFormat:StartTableDataImportJob' :: ImportSourceDataFormat
dataFormat = ImportSourceDataFormat
pDataFormat_,
$sel:destinationTableId:StartTableDataImportJob' :: Text
destinationTableId = Text
pDestinationTableId_,
$sel:importOptions:StartTableDataImportJob' :: ImportOptions
importOptions = ImportOptions
pImportOptions_,
$sel:clientRequestToken:StartTableDataImportJob' :: Text
clientRequestToken = Text
pClientRequestToken_
}
startTableDataImportJob_workbookId :: Lens.Lens' StartTableDataImportJob Prelude.Text
startTableDataImportJob_workbookId :: Lens' StartTableDataImportJob Text
startTableDataImportJob_workbookId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTableDataImportJob' {Text
workbookId :: Text
$sel:workbookId:StartTableDataImportJob' :: StartTableDataImportJob -> Text
workbookId} -> Text
workbookId) (\s :: StartTableDataImportJob
s@StartTableDataImportJob' {} Text
a -> StartTableDataImportJob
s {$sel:workbookId:StartTableDataImportJob' :: Text
workbookId = Text
a} :: StartTableDataImportJob)
startTableDataImportJob_dataSource :: Lens.Lens' StartTableDataImportJob ImportDataSource
startTableDataImportJob_dataSource :: Lens' StartTableDataImportJob ImportDataSource
startTableDataImportJob_dataSource = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTableDataImportJob' {ImportDataSource
dataSource :: ImportDataSource
$sel:dataSource:StartTableDataImportJob' :: StartTableDataImportJob -> ImportDataSource
dataSource} -> ImportDataSource
dataSource) (\s :: StartTableDataImportJob
s@StartTableDataImportJob' {} ImportDataSource
a -> StartTableDataImportJob
s {$sel:dataSource:StartTableDataImportJob' :: ImportDataSource
dataSource = ImportDataSource
a} :: StartTableDataImportJob)
startTableDataImportJob_dataFormat :: Lens.Lens' StartTableDataImportJob ImportSourceDataFormat
startTableDataImportJob_dataFormat :: Lens' StartTableDataImportJob ImportSourceDataFormat
startTableDataImportJob_dataFormat = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTableDataImportJob' {ImportSourceDataFormat
dataFormat :: ImportSourceDataFormat
$sel:dataFormat:StartTableDataImportJob' :: StartTableDataImportJob -> ImportSourceDataFormat
dataFormat} -> ImportSourceDataFormat
dataFormat) (\s :: StartTableDataImportJob
s@StartTableDataImportJob' {} ImportSourceDataFormat
a -> StartTableDataImportJob
s {$sel:dataFormat:StartTableDataImportJob' :: ImportSourceDataFormat
dataFormat = ImportSourceDataFormat
a} :: StartTableDataImportJob)
startTableDataImportJob_destinationTableId :: Lens.Lens' StartTableDataImportJob Prelude.Text
startTableDataImportJob_destinationTableId :: Lens' StartTableDataImportJob Text
startTableDataImportJob_destinationTableId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTableDataImportJob' {Text
destinationTableId :: Text
$sel:destinationTableId:StartTableDataImportJob' :: StartTableDataImportJob -> Text
destinationTableId} -> Text
destinationTableId) (\s :: StartTableDataImportJob
s@StartTableDataImportJob' {} Text
a -> StartTableDataImportJob
s {$sel:destinationTableId:StartTableDataImportJob' :: Text
destinationTableId = Text
a} :: StartTableDataImportJob)
startTableDataImportJob_importOptions :: Lens.Lens' StartTableDataImportJob ImportOptions
startTableDataImportJob_importOptions :: Lens' StartTableDataImportJob ImportOptions
startTableDataImportJob_importOptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTableDataImportJob' {ImportOptions
importOptions :: ImportOptions
$sel:importOptions:StartTableDataImportJob' :: StartTableDataImportJob -> ImportOptions
importOptions} -> ImportOptions
importOptions) (\s :: StartTableDataImportJob
s@StartTableDataImportJob' {} ImportOptions
a -> StartTableDataImportJob
s {$sel:importOptions:StartTableDataImportJob' :: ImportOptions
importOptions = ImportOptions
a} :: StartTableDataImportJob)
startTableDataImportJob_clientRequestToken :: Lens.Lens' StartTableDataImportJob Prelude.Text
startTableDataImportJob_clientRequestToken :: Lens' StartTableDataImportJob Text
startTableDataImportJob_clientRequestToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTableDataImportJob' {Text
clientRequestToken :: Text
$sel:clientRequestToken:StartTableDataImportJob' :: StartTableDataImportJob -> Text
clientRequestToken} -> Text
clientRequestToken) (\s :: StartTableDataImportJob
s@StartTableDataImportJob' {} Text
a -> StartTableDataImportJob
s {$sel:clientRequestToken:StartTableDataImportJob' :: Text
clientRequestToken = Text
a} :: StartTableDataImportJob)
instance Core.AWSRequest StartTableDataImportJob where
type
AWSResponse StartTableDataImportJob =
StartTableDataImportJobResponse
request :: (Service -> Service)
-> StartTableDataImportJob -> Request StartTableDataImportJob
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy StartTableDataImportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartTableDataImportJob)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Int
-> Text
-> TableDataImportJobStatus
-> StartTableDataImportJobResponse
StartTableDataImportJobResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"jobId")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String a
Data..:> Key
"jobStatus")
)
instance Prelude.Hashable StartTableDataImportJob where
hashWithSalt :: Int -> StartTableDataImportJob -> Int
hashWithSalt Int
_salt StartTableDataImportJob' {Text
ImportDataSource
ImportSourceDataFormat
ImportOptions
clientRequestToken :: Text
importOptions :: ImportOptions
destinationTableId :: Text
dataFormat :: ImportSourceDataFormat
dataSource :: ImportDataSource
workbookId :: Text
$sel:clientRequestToken:StartTableDataImportJob' :: StartTableDataImportJob -> Text
$sel:importOptions:StartTableDataImportJob' :: StartTableDataImportJob -> ImportOptions
$sel:destinationTableId:StartTableDataImportJob' :: StartTableDataImportJob -> Text
$sel:dataFormat:StartTableDataImportJob' :: StartTableDataImportJob -> ImportSourceDataFormat
$sel:dataSource:StartTableDataImportJob' :: StartTableDataImportJob -> ImportDataSource
$sel:workbookId:StartTableDataImportJob' :: StartTableDataImportJob -> Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
workbookId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ImportDataSource
dataSource
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ImportSourceDataFormat
dataFormat
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
destinationTableId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ImportOptions
importOptions
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
clientRequestToken
instance Prelude.NFData StartTableDataImportJob where
rnf :: StartTableDataImportJob -> ()
rnf StartTableDataImportJob' {Text
ImportDataSource
ImportSourceDataFormat
ImportOptions
clientRequestToken :: Text
importOptions :: ImportOptions
destinationTableId :: Text
dataFormat :: ImportSourceDataFormat
dataSource :: ImportDataSource
workbookId :: Text
$sel:clientRequestToken:StartTableDataImportJob' :: StartTableDataImportJob -> Text
$sel:importOptions:StartTableDataImportJob' :: StartTableDataImportJob -> ImportOptions
$sel:destinationTableId:StartTableDataImportJob' :: StartTableDataImportJob -> Text
$sel:dataFormat:StartTableDataImportJob' :: StartTableDataImportJob -> ImportSourceDataFormat
$sel:dataSource:StartTableDataImportJob' :: StartTableDataImportJob -> ImportDataSource
$sel:workbookId:StartTableDataImportJob' :: StartTableDataImportJob -> Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Text
workbookId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ImportDataSource
dataSource
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ImportSourceDataFormat
dataFormat
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
destinationTableId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf ImportOptions
importOptions
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
clientRequestToken
instance Data.ToHeaders StartTableDataImportJob where
toHeaders :: StartTableDataImportJob -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON StartTableDataImportJob where
toJSON :: StartTableDataImportJob -> Value
toJSON StartTableDataImportJob' {Text
ImportDataSource
ImportSourceDataFormat
ImportOptions
clientRequestToken :: Text
importOptions :: ImportOptions
destinationTableId :: Text
dataFormat :: ImportSourceDataFormat
dataSource :: ImportDataSource
workbookId :: Text
$sel:clientRequestToken:StartTableDataImportJob' :: StartTableDataImportJob -> Text
$sel:importOptions:StartTableDataImportJob' :: StartTableDataImportJob -> ImportOptions
$sel:destinationTableId:StartTableDataImportJob' :: StartTableDataImportJob -> Text
$sel:dataFormat:StartTableDataImportJob' :: StartTableDataImportJob -> ImportSourceDataFormat
$sel:dataSource:StartTableDataImportJob' :: StartTableDataImportJob -> ImportDataSource
$sel:workbookId:StartTableDataImportJob' :: StartTableDataImportJob -> Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ forall a. a -> Maybe a
Prelude.Just (Key
"dataSource" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= ImportDataSource
dataSource),
forall a. a -> Maybe a
Prelude.Just (Key
"dataFormat" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= ImportSourceDataFormat
dataFormat),
forall a. a -> Maybe a
Prelude.Just (Key
"importOptions" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= ImportOptions
importOptions),
forall a. a -> Maybe a
Prelude.Just
(Key
"clientRequestToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
clientRequestToken)
]
)
instance Data.ToPath StartTableDataImportJob where
toPath :: StartTableDataImportJob -> ByteString
toPath StartTableDataImportJob' {Text
ImportDataSource
ImportSourceDataFormat
ImportOptions
clientRequestToken :: Text
importOptions :: ImportOptions
destinationTableId :: Text
dataFormat :: ImportSourceDataFormat
dataSource :: ImportDataSource
workbookId :: Text
$sel:clientRequestToken:StartTableDataImportJob' :: StartTableDataImportJob -> Text
$sel:importOptions:StartTableDataImportJob' :: StartTableDataImportJob -> ImportOptions
$sel:destinationTableId:StartTableDataImportJob' :: StartTableDataImportJob -> Text
$sel:dataFormat:StartTableDataImportJob' :: StartTableDataImportJob -> ImportSourceDataFormat
$sel:dataSource:StartTableDataImportJob' :: StartTableDataImportJob -> ImportDataSource
$sel:workbookId:StartTableDataImportJob' :: StartTableDataImportJob -> Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/workbooks/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
workbookId,
ByteString
"/tables/",
forall a. ToByteString a => a -> ByteString
Data.toBS Text
destinationTableId,
ByteString
"/import"
]
instance Data.ToQuery StartTableDataImportJob where
toQuery :: StartTableDataImportJob -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data StartTableDataImportJobResponse = StartTableDataImportJobResponse'
{
StartTableDataImportJobResponse -> Int
httpStatus :: Prelude.Int,
StartTableDataImportJobResponse -> Text
jobId :: Prelude.Text,
StartTableDataImportJobResponse -> TableDataImportJobStatus
jobStatus :: TableDataImportJobStatus
}
deriving (StartTableDataImportJobResponse
-> StartTableDataImportJobResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartTableDataImportJobResponse
-> StartTableDataImportJobResponse -> Bool
$c/= :: StartTableDataImportJobResponse
-> StartTableDataImportJobResponse -> Bool
== :: StartTableDataImportJobResponse
-> StartTableDataImportJobResponse -> Bool
$c== :: StartTableDataImportJobResponse
-> StartTableDataImportJobResponse -> Bool
Prelude.Eq, ReadPrec [StartTableDataImportJobResponse]
ReadPrec StartTableDataImportJobResponse
Int -> ReadS StartTableDataImportJobResponse
ReadS [StartTableDataImportJobResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartTableDataImportJobResponse]
$creadListPrec :: ReadPrec [StartTableDataImportJobResponse]
readPrec :: ReadPrec StartTableDataImportJobResponse
$creadPrec :: ReadPrec StartTableDataImportJobResponse
readList :: ReadS [StartTableDataImportJobResponse]
$creadList :: ReadS [StartTableDataImportJobResponse]
readsPrec :: Int -> ReadS StartTableDataImportJobResponse
$creadsPrec :: Int -> ReadS StartTableDataImportJobResponse
Prelude.Read, Int -> StartTableDataImportJobResponse -> ShowS
[StartTableDataImportJobResponse] -> ShowS
StartTableDataImportJobResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartTableDataImportJobResponse] -> ShowS
$cshowList :: [StartTableDataImportJobResponse] -> ShowS
show :: StartTableDataImportJobResponse -> String
$cshow :: StartTableDataImportJobResponse -> String
showsPrec :: Int -> StartTableDataImportJobResponse -> ShowS
$cshowsPrec :: Int -> StartTableDataImportJobResponse -> ShowS
Prelude.Show, forall x.
Rep StartTableDataImportJobResponse x
-> StartTableDataImportJobResponse
forall x.
StartTableDataImportJobResponse
-> Rep StartTableDataImportJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartTableDataImportJobResponse x
-> StartTableDataImportJobResponse
$cfrom :: forall x.
StartTableDataImportJobResponse
-> Rep StartTableDataImportJobResponse x
Prelude.Generic)
newStartTableDataImportJobResponse ::
Prelude.Int ->
Prelude.Text ->
TableDataImportJobStatus ->
StartTableDataImportJobResponse
newStartTableDataImportJobResponse :: Int
-> Text
-> TableDataImportJobStatus
-> StartTableDataImportJobResponse
newStartTableDataImportJobResponse
Int
pHttpStatus_
Text
pJobId_
TableDataImportJobStatus
pJobStatus_ =
StartTableDataImportJobResponse'
{ $sel:httpStatus:StartTableDataImportJobResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:jobId:StartTableDataImportJobResponse' :: Text
jobId = Text
pJobId_,
$sel:jobStatus:StartTableDataImportJobResponse' :: TableDataImportJobStatus
jobStatus = TableDataImportJobStatus
pJobStatus_
}
startTableDataImportJobResponse_httpStatus :: Lens.Lens' StartTableDataImportJobResponse Prelude.Int
startTableDataImportJobResponse_httpStatus :: Lens' StartTableDataImportJobResponse Int
startTableDataImportJobResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTableDataImportJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartTableDataImportJobResponse' :: StartTableDataImportJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartTableDataImportJobResponse
s@StartTableDataImportJobResponse' {} Int
a -> StartTableDataImportJobResponse
s {$sel:httpStatus:StartTableDataImportJobResponse' :: Int
httpStatus = Int
a} :: StartTableDataImportJobResponse)
startTableDataImportJobResponse_jobId :: Lens.Lens' StartTableDataImportJobResponse Prelude.Text
startTableDataImportJobResponse_jobId :: Lens' StartTableDataImportJobResponse Text
startTableDataImportJobResponse_jobId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTableDataImportJobResponse' {Text
jobId :: Text
$sel:jobId:StartTableDataImportJobResponse' :: StartTableDataImportJobResponse -> Text
jobId} -> Text
jobId) (\s :: StartTableDataImportJobResponse
s@StartTableDataImportJobResponse' {} Text
a -> StartTableDataImportJobResponse
s {$sel:jobId:StartTableDataImportJobResponse' :: Text
jobId = Text
a} :: StartTableDataImportJobResponse)
startTableDataImportJobResponse_jobStatus :: Lens.Lens' StartTableDataImportJobResponse TableDataImportJobStatus
startTableDataImportJobResponse_jobStatus :: Lens' StartTableDataImportJobResponse TableDataImportJobStatus
startTableDataImportJobResponse_jobStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartTableDataImportJobResponse' {TableDataImportJobStatus
jobStatus :: TableDataImportJobStatus
$sel:jobStatus:StartTableDataImportJobResponse' :: StartTableDataImportJobResponse -> TableDataImportJobStatus
jobStatus} -> TableDataImportJobStatus
jobStatus) (\s :: StartTableDataImportJobResponse
s@StartTableDataImportJobResponse' {} TableDataImportJobStatus
a -> StartTableDataImportJobResponse
s {$sel:jobStatus:StartTableDataImportJobResponse' :: TableDataImportJobStatus
jobStatus = TableDataImportJobStatus
a} :: StartTableDataImportJobResponse)
instance
Prelude.NFData
StartTableDataImportJobResponse
where
rnf :: StartTableDataImportJobResponse -> ()
rnf StartTableDataImportJobResponse' {Int
Text
TableDataImportJobStatus
jobStatus :: TableDataImportJobStatus
jobId :: Text
httpStatus :: Int
$sel:jobStatus:StartTableDataImportJobResponse' :: StartTableDataImportJobResponse -> TableDataImportJobStatus
$sel:jobId:StartTableDataImportJobResponse' :: StartTableDataImportJobResponse -> Text
$sel:httpStatus:StartTableDataImportJobResponse' :: StartTableDataImportJobResponse -> Int
..} =
forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
jobId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf TableDataImportJobStatus
jobStatus