{-# 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.LookoutEquipment.StartDataIngestionJob
(
StartDataIngestionJob (..),
newStartDataIngestionJob,
startDataIngestionJob_datasetName,
startDataIngestionJob_ingestionInputConfiguration,
startDataIngestionJob_roleArn,
startDataIngestionJob_clientToken,
StartDataIngestionJobResponse (..),
newStartDataIngestionJobResponse,
startDataIngestionJobResponse_status,
startDataIngestionJobResponse_jobId,
startDataIngestionJobResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LookoutEquipment.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data StartDataIngestionJob = StartDataIngestionJob'
{
StartDataIngestionJob -> Text
datasetName :: Prelude.Text,
StartDataIngestionJob -> IngestionInputConfiguration
ingestionInputConfiguration :: IngestionInputConfiguration,
StartDataIngestionJob -> Text
roleArn :: Prelude.Text,
StartDataIngestionJob -> Text
clientToken :: Prelude.Text
}
deriving (StartDataIngestionJob -> StartDataIngestionJob -> Bool
(StartDataIngestionJob -> StartDataIngestionJob -> Bool)
-> (StartDataIngestionJob -> StartDataIngestionJob -> Bool)
-> Eq StartDataIngestionJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartDataIngestionJob -> StartDataIngestionJob -> Bool
$c/= :: StartDataIngestionJob -> StartDataIngestionJob -> Bool
== :: StartDataIngestionJob -> StartDataIngestionJob -> Bool
$c== :: StartDataIngestionJob -> StartDataIngestionJob -> Bool
Prelude.Eq, ReadPrec [StartDataIngestionJob]
ReadPrec StartDataIngestionJob
Int -> ReadS StartDataIngestionJob
ReadS [StartDataIngestionJob]
(Int -> ReadS StartDataIngestionJob)
-> ReadS [StartDataIngestionJob]
-> ReadPrec StartDataIngestionJob
-> ReadPrec [StartDataIngestionJob]
-> Read StartDataIngestionJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartDataIngestionJob]
$creadListPrec :: ReadPrec [StartDataIngestionJob]
readPrec :: ReadPrec StartDataIngestionJob
$creadPrec :: ReadPrec StartDataIngestionJob
readList :: ReadS [StartDataIngestionJob]
$creadList :: ReadS [StartDataIngestionJob]
readsPrec :: Int -> ReadS StartDataIngestionJob
$creadsPrec :: Int -> ReadS StartDataIngestionJob
Prelude.Read, Int -> StartDataIngestionJob -> ShowS
[StartDataIngestionJob] -> ShowS
StartDataIngestionJob -> String
(Int -> StartDataIngestionJob -> ShowS)
-> (StartDataIngestionJob -> String)
-> ([StartDataIngestionJob] -> ShowS)
-> Show StartDataIngestionJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartDataIngestionJob] -> ShowS
$cshowList :: [StartDataIngestionJob] -> ShowS
show :: StartDataIngestionJob -> String
$cshow :: StartDataIngestionJob -> String
showsPrec :: Int -> StartDataIngestionJob -> ShowS
$cshowsPrec :: Int -> StartDataIngestionJob -> ShowS
Prelude.Show, (forall x. StartDataIngestionJob -> Rep StartDataIngestionJob x)
-> (forall x. Rep StartDataIngestionJob x -> StartDataIngestionJob)
-> Generic StartDataIngestionJob
forall x. Rep StartDataIngestionJob x -> StartDataIngestionJob
forall x. StartDataIngestionJob -> Rep StartDataIngestionJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartDataIngestionJob x -> StartDataIngestionJob
$cfrom :: forall x. StartDataIngestionJob -> Rep StartDataIngestionJob x
Prelude.Generic)
newStartDataIngestionJob ::
Prelude.Text ->
IngestionInputConfiguration ->
Prelude.Text ->
Prelude.Text ->
StartDataIngestionJob
newStartDataIngestionJob :: Text
-> IngestionInputConfiguration
-> Text
-> Text
-> StartDataIngestionJob
newStartDataIngestionJob
Text
pDatasetName_
IngestionInputConfiguration
pIngestionInputConfiguration_
Text
pRoleArn_
Text
pClientToken_ =
StartDataIngestionJob' :: Text
-> IngestionInputConfiguration
-> Text
-> Text
-> StartDataIngestionJob
StartDataIngestionJob'
{ $sel:datasetName:StartDataIngestionJob' :: Text
datasetName = Text
pDatasetName_,
$sel:ingestionInputConfiguration:StartDataIngestionJob' :: IngestionInputConfiguration
ingestionInputConfiguration =
IngestionInputConfiguration
pIngestionInputConfiguration_,
$sel:roleArn:StartDataIngestionJob' :: Text
roleArn = Text
pRoleArn_,
$sel:clientToken:StartDataIngestionJob' :: Text
clientToken = Text
pClientToken_
}
startDataIngestionJob_datasetName :: Lens.Lens' StartDataIngestionJob Prelude.Text
startDataIngestionJob_datasetName :: (Text -> f Text)
-> StartDataIngestionJob -> f StartDataIngestionJob
startDataIngestionJob_datasetName = (StartDataIngestionJob -> Text)
-> (StartDataIngestionJob -> Text -> StartDataIngestionJob)
-> Lens StartDataIngestionJob StartDataIngestionJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDataIngestionJob' {Text
datasetName :: Text
$sel:datasetName:StartDataIngestionJob' :: StartDataIngestionJob -> Text
datasetName} -> Text
datasetName) (\s :: StartDataIngestionJob
s@StartDataIngestionJob' {} Text
a -> StartDataIngestionJob
s {$sel:datasetName:StartDataIngestionJob' :: Text
datasetName = Text
a} :: StartDataIngestionJob)
startDataIngestionJob_ingestionInputConfiguration :: Lens.Lens' StartDataIngestionJob IngestionInputConfiguration
startDataIngestionJob_ingestionInputConfiguration :: (IngestionInputConfiguration -> f IngestionInputConfiguration)
-> StartDataIngestionJob -> f StartDataIngestionJob
startDataIngestionJob_ingestionInputConfiguration = (StartDataIngestionJob -> IngestionInputConfiguration)
-> (StartDataIngestionJob
-> IngestionInputConfiguration -> StartDataIngestionJob)
-> Lens
StartDataIngestionJob
StartDataIngestionJob
IngestionInputConfiguration
IngestionInputConfiguration
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDataIngestionJob' {IngestionInputConfiguration
ingestionInputConfiguration :: IngestionInputConfiguration
$sel:ingestionInputConfiguration:StartDataIngestionJob' :: StartDataIngestionJob -> IngestionInputConfiguration
ingestionInputConfiguration} -> IngestionInputConfiguration
ingestionInputConfiguration) (\s :: StartDataIngestionJob
s@StartDataIngestionJob' {} IngestionInputConfiguration
a -> StartDataIngestionJob
s {$sel:ingestionInputConfiguration:StartDataIngestionJob' :: IngestionInputConfiguration
ingestionInputConfiguration = IngestionInputConfiguration
a} :: StartDataIngestionJob)
startDataIngestionJob_roleArn :: Lens.Lens' StartDataIngestionJob Prelude.Text
startDataIngestionJob_roleArn :: (Text -> f Text)
-> StartDataIngestionJob -> f StartDataIngestionJob
startDataIngestionJob_roleArn = (StartDataIngestionJob -> Text)
-> (StartDataIngestionJob -> Text -> StartDataIngestionJob)
-> Lens StartDataIngestionJob StartDataIngestionJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDataIngestionJob' {Text
roleArn :: Text
$sel:roleArn:StartDataIngestionJob' :: StartDataIngestionJob -> Text
roleArn} -> Text
roleArn) (\s :: StartDataIngestionJob
s@StartDataIngestionJob' {} Text
a -> StartDataIngestionJob
s {$sel:roleArn:StartDataIngestionJob' :: Text
roleArn = Text
a} :: StartDataIngestionJob)
startDataIngestionJob_clientToken :: Lens.Lens' StartDataIngestionJob Prelude.Text
startDataIngestionJob_clientToken :: (Text -> f Text)
-> StartDataIngestionJob -> f StartDataIngestionJob
startDataIngestionJob_clientToken = (StartDataIngestionJob -> Text)
-> (StartDataIngestionJob -> Text -> StartDataIngestionJob)
-> Lens StartDataIngestionJob StartDataIngestionJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDataIngestionJob' {Text
clientToken :: Text
$sel:clientToken:StartDataIngestionJob' :: StartDataIngestionJob -> Text
clientToken} -> Text
clientToken) (\s :: StartDataIngestionJob
s@StartDataIngestionJob' {} Text
a -> StartDataIngestionJob
s {$sel:clientToken:StartDataIngestionJob' :: Text
clientToken = Text
a} :: StartDataIngestionJob)
instance Core.AWSRequest StartDataIngestionJob where
type
AWSResponse StartDataIngestionJob =
StartDataIngestionJobResponse
request :: StartDataIngestionJob -> Request StartDataIngestionJob
request = Service -> StartDataIngestionJob -> Request StartDataIngestionJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy StartDataIngestionJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartDataIngestionJob)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse StartDataIngestionJob))
-> Logger
-> Service
-> Proxy StartDataIngestionJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartDataIngestionJob)))
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 IngestionJobStatus
-> Maybe Text -> Int -> StartDataIngestionJobResponse
StartDataIngestionJobResponse'
(Maybe IngestionJobStatus
-> Maybe Text -> Int -> StartDataIngestionJobResponse)
-> Either String (Maybe IngestionJobStatus)
-> Either
String (Maybe Text -> Int -> StartDataIngestionJobResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe IngestionJobStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either String (Maybe Text -> Int -> StartDataIngestionJobResponse)
-> Either String (Maybe Text)
-> Either String (Int -> StartDataIngestionJobResponse)
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
"JobId")
Either String (Int -> StartDataIngestionJobResponse)
-> Either String Int -> Either String StartDataIngestionJobResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable StartDataIngestionJob
instance Prelude.NFData StartDataIngestionJob
instance Core.ToHeaders StartDataIngestionJob where
toHeaders :: StartDataIngestionJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> StartDataIngestionJob -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSLookoutEquipmentFrontendService.StartDataIngestionJob" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON StartDataIngestionJob where
toJSON :: StartDataIngestionJob -> Value
toJSON StartDataIngestionJob' {Text
IngestionInputConfiguration
clientToken :: Text
roleArn :: Text
ingestionInputConfiguration :: IngestionInputConfiguration
datasetName :: Text
$sel:clientToken:StartDataIngestionJob' :: StartDataIngestionJob -> Text
$sel:roleArn:StartDataIngestionJob' :: StartDataIngestionJob -> Text
$sel:ingestionInputConfiguration:StartDataIngestionJob' :: StartDataIngestionJob -> IngestionInputConfiguration
$sel:datasetName:StartDataIngestionJob' :: StartDataIngestionJob -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DatasetName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
datasetName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
( Text
"IngestionInputConfiguration"
Text -> IngestionInputConfiguration -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= IngestionInputConfiguration
ingestionInputConfiguration
),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"RoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
roleArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ClientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clientToken)
]
)
instance Core.ToPath StartDataIngestionJob where
toPath :: StartDataIngestionJob -> ByteString
toPath = ByteString -> StartDataIngestionJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery StartDataIngestionJob where
toQuery :: StartDataIngestionJob -> QueryString
toQuery = QueryString -> StartDataIngestionJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data StartDataIngestionJobResponse = StartDataIngestionJobResponse'
{
StartDataIngestionJobResponse -> Maybe IngestionJobStatus
status :: Prelude.Maybe IngestionJobStatus,
StartDataIngestionJobResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
StartDataIngestionJobResponse -> Int
httpStatus :: Prelude.Int
}
deriving (StartDataIngestionJobResponse
-> StartDataIngestionJobResponse -> Bool
(StartDataIngestionJobResponse
-> StartDataIngestionJobResponse -> Bool)
-> (StartDataIngestionJobResponse
-> StartDataIngestionJobResponse -> Bool)
-> Eq StartDataIngestionJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartDataIngestionJobResponse
-> StartDataIngestionJobResponse -> Bool
$c/= :: StartDataIngestionJobResponse
-> StartDataIngestionJobResponse -> Bool
== :: StartDataIngestionJobResponse
-> StartDataIngestionJobResponse -> Bool
$c== :: StartDataIngestionJobResponse
-> StartDataIngestionJobResponse -> Bool
Prelude.Eq, ReadPrec [StartDataIngestionJobResponse]
ReadPrec StartDataIngestionJobResponse
Int -> ReadS StartDataIngestionJobResponse
ReadS [StartDataIngestionJobResponse]
(Int -> ReadS StartDataIngestionJobResponse)
-> ReadS [StartDataIngestionJobResponse]
-> ReadPrec StartDataIngestionJobResponse
-> ReadPrec [StartDataIngestionJobResponse]
-> Read StartDataIngestionJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartDataIngestionJobResponse]
$creadListPrec :: ReadPrec [StartDataIngestionJobResponse]
readPrec :: ReadPrec StartDataIngestionJobResponse
$creadPrec :: ReadPrec StartDataIngestionJobResponse
readList :: ReadS [StartDataIngestionJobResponse]
$creadList :: ReadS [StartDataIngestionJobResponse]
readsPrec :: Int -> ReadS StartDataIngestionJobResponse
$creadsPrec :: Int -> ReadS StartDataIngestionJobResponse
Prelude.Read, Int -> StartDataIngestionJobResponse -> ShowS
[StartDataIngestionJobResponse] -> ShowS
StartDataIngestionJobResponse -> String
(Int -> StartDataIngestionJobResponse -> ShowS)
-> (StartDataIngestionJobResponse -> String)
-> ([StartDataIngestionJobResponse] -> ShowS)
-> Show StartDataIngestionJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartDataIngestionJobResponse] -> ShowS
$cshowList :: [StartDataIngestionJobResponse] -> ShowS
show :: StartDataIngestionJobResponse -> String
$cshow :: StartDataIngestionJobResponse -> String
showsPrec :: Int -> StartDataIngestionJobResponse -> ShowS
$cshowsPrec :: Int -> StartDataIngestionJobResponse -> ShowS
Prelude.Show, (forall x.
StartDataIngestionJobResponse
-> Rep StartDataIngestionJobResponse x)
-> (forall x.
Rep StartDataIngestionJobResponse x
-> StartDataIngestionJobResponse)
-> Generic StartDataIngestionJobResponse
forall x.
Rep StartDataIngestionJobResponse x
-> StartDataIngestionJobResponse
forall x.
StartDataIngestionJobResponse
-> Rep StartDataIngestionJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartDataIngestionJobResponse x
-> StartDataIngestionJobResponse
$cfrom :: forall x.
StartDataIngestionJobResponse
-> Rep StartDataIngestionJobResponse x
Prelude.Generic)
newStartDataIngestionJobResponse ::
Prelude.Int ->
StartDataIngestionJobResponse
newStartDataIngestionJobResponse :: Int -> StartDataIngestionJobResponse
newStartDataIngestionJobResponse Int
pHttpStatus_ =
StartDataIngestionJobResponse' :: Maybe IngestionJobStatus
-> Maybe Text -> Int -> StartDataIngestionJobResponse
StartDataIngestionJobResponse'
{ $sel:status:StartDataIngestionJobResponse' :: Maybe IngestionJobStatus
status =
Maybe IngestionJobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:StartDataIngestionJobResponse' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartDataIngestionJobResponse' :: Int
httpStatus = Int
pHttpStatus_
}
startDataIngestionJobResponse_status :: Lens.Lens' StartDataIngestionJobResponse (Prelude.Maybe IngestionJobStatus)
startDataIngestionJobResponse_status :: (Maybe IngestionJobStatus -> f (Maybe IngestionJobStatus))
-> StartDataIngestionJobResponse -> f StartDataIngestionJobResponse
startDataIngestionJobResponse_status = (StartDataIngestionJobResponse -> Maybe IngestionJobStatus)
-> (StartDataIngestionJobResponse
-> Maybe IngestionJobStatus -> StartDataIngestionJobResponse)
-> Lens
StartDataIngestionJobResponse
StartDataIngestionJobResponse
(Maybe IngestionJobStatus)
(Maybe IngestionJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDataIngestionJobResponse' {Maybe IngestionJobStatus
status :: Maybe IngestionJobStatus
$sel:status:StartDataIngestionJobResponse' :: StartDataIngestionJobResponse -> Maybe IngestionJobStatus
status} -> Maybe IngestionJobStatus
status) (\s :: StartDataIngestionJobResponse
s@StartDataIngestionJobResponse' {} Maybe IngestionJobStatus
a -> StartDataIngestionJobResponse
s {$sel:status:StartDataIngestionJobResponse' :: Maybe IngestionJobStatus
status = Maybe IngestionJobStatus
a} :: StartDataIngestionJobResponse)
startDataIngestionJobResponse_jobId :: Lens.Lens' StartDataIngestionJobResponse (Prelude.Maybe Prelude.Text)
startDataIngestionJobResponse_jobId :: (Maybe Text -> f (Maybe Text))
-> StartDataIngestionJobResponse -> f StartDataIngestionJobResponse
startDataIngestionJobResponse_jobId = (StartDataIngestionJobResponse -> Maybe Text)
-> (StartDataIngestionJobResponse
-> Maybe Text -> StartDataIngestionJobResponse)
-> Lens
StartDataIngestionJobResponse
StartDataIngestionJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDataIngestionJobResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:StartDataIngestionJobResponse' :: StartDataIngestionJobResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: StartDataIngestionJobResponse
s@StartDataIngestionJobResponse' {} Maybe Text
a -> StartDataIngestionJobResponse
s {$sel:jobId:StartDataIngestionJobResponse' :: Maybe Text
jobId = Maybe Text
a} :: StartDataIngestionJobResponse)
startDataIngestionJobResponse_httpStatus :: Lens.Lens' StartDataIngestionJobResponse Prelude.Int
startDataIngestionJobResponse_httpStatus :: (Int -> f Int)
-> StartDataIngestionJobResponse -> f StartDataIngestionJobResponse
startDataIngestionJobResponse_httpStatus = (StartDataIngestionJobResponse -> Int)
-> (StartDataIngestionJobResponse
-> Int -> StartDataIngestionJobResponse)
-> Lens
StartDataIngestionJobResponse StartDataIngestionJobResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartDataIngestionJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartDataIngestionJobResponse' :: StartDataIngestionJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartDataIngestionJobResponse
s@StartDataIngestionJobResponse' {} Int
a -> StartDataIngestionJobResponse
s {$sel:httpStatus:StartDataIngestionJobResponse' :: Int
httpStatus = Int
a} :: StartDataIngestionJobResponse)
instance Prelude.NFData StartDataIngestionJobResponse