{-# 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.DescribeDataIngestionJob
(
DescribeDataIngestionJob (..),
newDescribeDataIngestionJob,
describeDataIngestionJob_jobId,
DescribeDataIngestionJobResponse (..),
newDescribeDataIngestionJobResponse,
describeDataIngestionJobResponse_ingestionInputConfiguration,
describeDataIngestionJobResponse_status,
describeDataIngestionJobResponse_datasetArn,
describeDataIngestionJobResponse_failedReason,
describeDataIngestionJobResponse_jobId,
describeDataIngestionJobResponse_createdAt,
describeDataIngestionJobResponse_roleArn,
describeDataIngestionJobResponse_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 DescribeDataIngestionJob = DescribeDataIngestionJob'
{
DescribeDataIngestionJob -> Text
jobId :: Prelude.Text
}
deriving (DescribeDataIngestionJob -> DescribeDataIngestionJob -> Bool
(DescribeDataIngestionJob -> DescribeDataIngestionJob -> Bool)
-> (DescribeDataIngestionJob -> DescribeDataIngestionJob -> Bool)
-> Eq DescribeDataIngestionJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDataIngestionJob -> DescribeDataIngestionJob -> Bool
$c/= :: DescribeDataIngestionJob -> DescribeDataIngestionJob -> Bool
== :: DescribeDataIngestionJob -> DescribeDataIngestionJob -> Bool
$c== :: DescribeDataIngestionJob -> DescribeDataIngestionJob -> Bool
Prelude.Eq, ReadPrec [DescribeDataIngestionJob]
ReadPrec DescribeDataIngestionJob
Int -> ReadS DescribeDataIngestionJob
ReadS [DescribeDataIngestionJob]
(Int -> ReadS DescribeDataIngestionJob)
-> ReadS [DescribeDataIngestionJob]
-> ReadPrec DescribeDataIngestionJob
-> ReadPrec [DescribeDataIngestionJob]
-> Read DescribeDataIngestionJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDataIngestionJob]
$creadListPrec :: ReadPrec [DescribeDataIngestionJob]
readPrec :: ReadPrec DescribeDataIngestionJob
$creadPrec :: ReadPrec DescribeDataIngestionJob
readList :: ReadS [DescribeDataIngestionJob]
$creadList :: ReadS [DescribeDataIngestionJob]
readsPrec :: Int -> ReadS DescribeDataIngestionJob
$creadsPrec :: Int -> ReadS DescribeDataIngestionJob
Prelude.Read, Int -> DescribeDataIngestionJob -> ShowS
[DescribeDataIngestionJob] -> ShowS
DescribeDataIngestionJob -> String
(Int -> DescribeDataIngestionJob -> ShowS)
-> (DescribeDataIngestionJob -> String)
-> ([DescribeDataIngestionJob] -> ShowS)
-> Show DescribeDataIngestionJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDataIngestionJob] -> ShowS
$cshowList :: [DescribeDataIngestionJob] -> ShowS
show :: DescribeDataIngestionJob -> String
$cshow :: DescribeDataIngestionJob -> String
showsPrec :: Int -> DescribeDataIngestionJob -> ShowS
$cshowsPrec :: Int -> DescribeDataIngestionJob -> ShowS
Prelude.Show, (forall x.
DescribeDataIngestionJob -> Rep DescribeDataIngestionJob x)
-> (forall x.
Rep DescribeDataIngestionJob x -> DescribeDataIngestionJob)
-> Generic DescribeDataIngestionJob
forall x.
Rep DescribeDataIngestionJob x -> DescribeDataIngestionJob
forall x.
DescribeDataIngestionJob -> Rep DescribeDataIngestionJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDataIngestionJob x -> DescribeDataIngestionJob
$cfrom :: forall x.
DescribeDataIngestionJob -> Rep DescribeDataIngestionJob x
Prelude.Generic)
newDescribeDataIngestionJob ::
Prelude.Text ->
DescribeDataIngestionJob
newDescribeDataIngestionJob :: Text -> DescribeDataIngestionJob
newDescribeDataIngestionJob Text
pJobId_ =
DescribeDataIngestionJob' :: Text -> DescribeDataIngestionJob
DescribeDataIngestionJob' {$sel:jobId:DescribeDataIngestionJob' :: Text
jobId = Text
pJobId_}
describeDataIngestionJob_jobId :: Lens.Lens' DescribeDataIngestionJob Prelude.Text
describeDataIngestionJob_jobId :: (Text -> f Text)
-> DescribeDataIngestionJob -> f DescribeDataIngestionJob
describeDataIngestionJob_jobId = (DescribeDataIngestionJob -> Text)
-> (DescribeDataIngestionJob -> Text -> DescribeDataIngestionJob)
-> Lens DescribeDataIngestionJob DescribeDataIngestionJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDataIngestionJob' {Text
jobId :: Text
$sel:jobId:DescribeDataIngestionJob' :: DescribeDataIngestionJob -> Text
jobId} -> Text
jobId) (\s :: DescribeDataIngestionJob
s@DescribeDataIngestionJob' {} Text
a -> DescribeDataIngestionJob
s {$sel:jobId:DescribeDataIngestionJob' :: Text
jobId = Text
a} :: DescribeDataIngestionJob)
instance Core.AWSRequest DescribeDataIngestionJob where
type
AWSResponse DescribeDataIngestionJob =
DescribeDataIngestionJobResponse
request :: DescribeDataIngestionJob -> Request DescribeDataIngestionJob
request = Service
-> DescribeDataIngestionJob -> Request DescribeDataIngestionJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeDataIngestionJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDataIngestionJob)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeDataIngestionJob))
-> Logger
-> Service
-> Proxy DescribeDataIngestionJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeDataIngestionJob)))
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 IngestionInputConfiguration
-> Maybe IngestionJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeDataIngestionJobResponse
DescribeDataIngestionJobResponse'
(Maybe IngestionInputConfiguration
-> Maybe IngestionJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeDataIngestionJobResponse)
-> Either String (Maybe IngestionInputConfiguration)
-> Either
String
(Maybe IngestionJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeDataIngestionJobResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe IngestionInputConfiguration)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"IngestionInputConfiguration")
Either
String
(Maybe IngestionJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeDataIngestionJobResponse)
-> Either String (Maybe IngestionJobStatus)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeDataIngestionJobResponse)
forall (f :: * -> *) a b. Applicative f => 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
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeDataIngestionJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeDataIngestionJobResponse)
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
"DatasetArn")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeDataIngestionJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeDataIngestionJobResponse)
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
"FailedReason")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeDataIngestionJobResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text -> Int -> DescribeDataIngestionJobResponse)
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
(Maybe POSIX
-> Maybe Text -> Int -> DescribeDataIngestionJobResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe Text -> Int -> DescribeDataIngestionJobResponse)
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
"CreatedAt")
Either
String (Maybe Text -> Int -> DescribeDataIngestionJobResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeDataIngestionJobResponse)
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
"RoleArn")
Either String (Int -> DescribeDataIngestionJobResponse)
-> Either String Int
-> Either String DescribeDataIngestionJobResponse
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 DescribeDataIngestionJob
instance Prelude.NFData DescribeDataIngestionJob
instance Core.ToHeaders DescribeDataIngestionJob where
toHeaders :: DescribeDataIngestionJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeDataIngestionJob -> 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.DescribeDataIngestionJob" ::
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 DescribeDataIngestionJob where
toJSON :: DescribeDataIngestionJob -> Value
toJSON DescribeDataIngestionJob' {Text
jobId :: Text
$sel:jobId:DescribeDataIngestionJob' :: DescribeDataIngestionJob -> 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
"JobId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
jobId)]
)
instance Core.ToPath DescribeDataIngestionJob where
toPath :: DescribeDataIngestionJob -> ByteString
toPath = ByteString -> DescribeDataIngestionJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DescribeDataIngestionJob where
toQuery :: DescribeDataIngestionJob -> QueryString
toQuery = QueryString -> DescribeDataIngestionJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeDataIngestionJobResponse = DescribeDataIngestionJobResponse'
{
DescribeDataIngestionJobResponse
-> Maybe IngestionInputConfiguration
ingestionInputConfiguration :: Prelude.Maybe IngestionInputConfiguration,
DescribeDataIngestionJobResponse -> Maybe IngestionJobStatus
status :: Prelude.Maybe IngestionJobStatus,
DescribeDataIngestionJobResponse -> Maybe Text
datasetArn :: Prelude.Maybe Prelude.Text,
DescribeDataIngestionJobResponse -> Maybe Text
failedReason :: Prelude.Maybe Prelude.Text,
DescribeDataIngestionJobResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
DescribeDataIngestionJobResponse -> Maybe POSIX
createdAt :: Prelude.Maybe Core.POSIX,
DescribeDataIngestionJobResponse -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
DescribeDataIngestionJobResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeDataIngestionJobResponse
-> DescribeDataIngestionJobResponse -> Bool
(DescribeDataIngestionJobResponse
-> DescribeDataIngestionJobResponse -> Bool)
-> (DescribeDataIngestionJobResponse
-> DescribeDataIngestionJobResponse -> Bool)
-> Eq DescribeDataIngestionJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeDataIngestionJobResponse
-> DescribeDataIngestionJobResponse -> Bool
$c/= :: DescribeDataIngestionJobResponse
-> DescribeDataIngestionJobResponse -> Bool
== :: DescribeDataIngestionJobResponse
-> DescribeDataIngestionJobResponse -> Bool
$c== :: DescribeDataIngestionJobResponse
-> DescribeDataIngestionJobResponse -> Bool
Prelude.Eq, ReadPrec [DescribeDataIngestionJobResponse]
ReadPrec DescribeDataIngestionJobResponse
Int -> ReadS DescribeDataIngestionJobResponse
ReadS [DescribeDataIngestionJobResponse]
(Int -> ReadS DescribeDataIngestionJobResponse)
-> ReadS [DescribeDataIngestionJobResponse]
-> ReadPrec DescribeDataIngestionJobResponse
-> ReadPrec [DescribeDataIngestionJobResponse]
-> Read DescribeDataIngestionJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeDataIngestionJobResponse]
$creadListPrec :: ReadPrec [DescribeDataIngestionJobResponse]
readPrec :: ReadPrec DescribeDataIngestionJobResponse
$creadPrec :: ReadPrec DescribeDataIngestionJobResponse
readList :: ReadS [DescribeDataIngestionJobResponse]
$creadList :: ReadS [DescribeDataIngestionJobResponse]
readsPrec :: Int -> ReadS DescribeDataIngestionJobResponse
$creadsPrec :: Int -> ReadS DescribeDataIngestionJobResponse
Prelude.Read, Int -> DescribeDataIngestionJobResponse -> ShowS
[DescribeDataIngestionJobResponse] -> ShowS
DescribeDataIngestionJobResponse -> String
(Int -> DescribeDataIngestionJobResponse -> ShowS)
-> (DescribeDataIngestionJobResponse -> String)
-> ([DescribeDataIngestionJobResponse] -> ShowS)
-> Show DescribeDataIngestionJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeDataIngestionJobResponse] -> ShowS
$cshowList :: [DescribeDataIngestionJobResponse] -> ShowS
show :: DescribeDataIngestionJobResponse -> String
$cshow :: DescribeDataIngestionJobResponse -> String
showsPrec :: Int -> DescribeDataIngestionJobResponse -> ShowS
$cshowsPrec :: Int -> DescribeDataIngestionJobResponse -> ShowS
Prelude.Show, (forall x.
DescribeDataIngestionJobResponse
-> Rep DescribeDataIngestionJobResponse x)
-> (forall x.
Rep DescribeDataIngestionJobResponse x
-> DescribeDataIngestionJobResponse)
-> Generic DescribeDataIngestionJobResponse
forall x.
Rep DescribeDataIngestionJobResponse x
-> DescribeDataIngestionJobResponse
forall x.
DescribeDataIngestionJobResponse
-> Rep DescribeDataIngestionJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeDataIngestionJobResponse x
-> DescribeDataIngestionJobResponse
$cfrom :: forall x.
DescribeDataIngestionJobResponse
-> Rep DescribeDataIngestionJobResponse x
Prelude.Generic)
newDescribeDataIngestionJobResponse ::
Prelude.Int ->
DescribeDataIngestionJobResponse
newDescribeDataIngestionJobResponse :: Int -> DescribeDataIngestionJobResponse
newDescribeDataIngestionJobResponse Int
pHttpStatus_ =
DescribeDataIngestionJobResponse' :: Maybe IngestionInputConfiguration
-> Maybe IngestionJobStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Int
-> DescribeDataIngestionJobResponse
DescribeDataIngestionJobResponse'
{ $sel:ingestionInputConfiguration:DescribeDataIngestionJobResponse' :: Maybe IngestionInputConfiguration
ingestionInputConfiguration =
Maybe IngestionInputConfiguration
forall a. Maybe a
Prelude.Nothing,
$sel:status:DescribeDataIngestionJobResponse' :: Maybe IngestionJobStatus
status = Maybe IngestionJobStatus
forall a. Maybe a
Prelude.Nothing,
$sel:datasetArn:DescribeDataIngestionJobResponse' :: Maybe Text
datasetArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:failedReason:DescribeDataIngestionJobResponse' :: Maybe Text
failedReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:jobId:DescribeDataIngestionJobResponse' :: Maybe Text
jobId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:createdAt:DescribeDataIngestionJobResponse' :: Maybe POSIX
createdAt = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:roleArn:DescribeDataIngestionJobResponse' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeDataIngestionJobResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeDataIngestionJobResponse_ingestionInputConfiguration :: Lens.Lens' DescribeDataIngestionJobResponse (Prelude.Maybe IngestionInputConfiguration)
describeDataIngestionJobResponse_ingestionInputConfiguration :: (Maybe IngestionInputConfiguration
-> f (Maybe IngestionInputConfiguration))
-> DescribeDataIngestionJobResponse
-> f DescribeDataIngestionJobResponse
describeDataIngestionJobResponse_ingestionInputConfiguration = (DescribeDataIngestionJobResponse
-> Maybe IngestionInputConfiguration)
-> (DescribeDataIngestionJobResponse
-> Maybe IngestionInputConfiguration
-> DescribeDataIngestionJobResponse)
-> Lens
DescribeDataIngestionJobResponse
DescribeDataIngestionJobResponse
(Maybe IngestionInputConfiguration)
(Maybe IngestionInputConfiguration)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDataIngestionJobResponse' {Maybe IngestionInputConfiguration
ingestionInputConfiguration :: Maybe IngestionInputConfiguration
$sel:ingestionInputConfiguration:DescribeDataIngestionJobResponse' :: DescribeDataIngestionJobResponse
-> Maybe IngestionInputConfiguration
ingestionInputConfiguration} -> Maybe IngestionInputConfiguration
ingestionInputConfiguration) (\s :: DescribeDataIngestionJobResponse
s@DescribeDataIngestionJobResponse' {} Maybe IngestionInputConfiguration
a -> DescribeDataIngestionJobResponse
s {$sel:ingestionInputConfiguration:DescribeDataIngestionJobResponse' :: Maybe IngestionInputConfiguration
ingestionInputConfiguration = Maybe IngestionInputConfiguration
a} :: DescribeDataIngestionJobResponse)
describeDataIngestionJobResponse_status :: Lens.Lens' DescribeDataIngestionJobResponse (Prelude.Maybe IngestionJobStatus)
describeDataIngestionJobResponse_status :: (Maybe IngestionJobStatus -> f (Maybe IngestionJobStatus))
-> DescribeDataIngestionJobResponse
-> f DescribeDataIngestionJobResponse
describeDataIngestionJobResponse_status = (DescribeDataIngestionJobResponse -> Maybe IngestionJobStatus)
-> (DescribeDataIngestionJobResponse
-> Maybe IngestionJobStatus -> DescribeDataIngestionJobResponse)
-> Lens
DescribeDataIngestionJobResponse
DescribeDataIngestionJobResponse
(Maybe IngestionJobStatus)
(Maybe IngestionJobStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDataIngestionJobResponse' {Maybe IngestionJobStatus
status :: Maybe IngestionJobStatus
$sel:status:DescribeDataIngestionJobResponse' :: DescribeDataIngestionJobResponse -> Maybe IngestionJobStatus
status} -> Maybe IngestionJobStatus
status) (\s :: DescribeDataIngestionJobResponse
s@DescribeDataIngestionJobResponse' {} Maybe IngestionJobStatus
a -> DescribeDataIngestionJobResponse
s {$sel:status:DescribeDataIngestionJobResponse' :: Maybe IngestionJobStatus
status = Maybe IngestionJobStatus
a} :: DescribeDataIngestionJobResponse)
describeDataIngestionJobResponse_datasetArn :: Lens.Lens' DescribeDataIngestionJobResponse (Prelude.Maybe Prelude.Text)
describeDataIngestionJobResponse_datasetArn :: (Maybe Text -> f (Maybe Text))
-> DescribeDataIngestionJobResponse
-> f DescribeDataIngestionJobResponse
describeDataIngestionJobResponse_datasetArn = (DescribeDataIngestionJobResponse -> Maybe Text)
-> (DescribeDataIngestionJobResponse
-> Maybe Text -> DescribeDataIngestionJobResponse)
-> Lens
DescribeDataIngestionJobResponse
DescribeDataIngestionJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDataIngestionJobResponse' {Maybe Text
datasetArn :: Maybe Text
$sel:datasetArn:DescribeDataIngestionJobResponse' :: DescribeDataIngestionJobResponse -> Maybe Text
datasetArn} -> Maybe Text
datasetArn) (\s :: DescribeDataIngestionJobResponse
s@DescribeDataIngestionJobResponse' {} Maybe Text
a -> DescribeDataIngestionJobResponse
s {$sel:datasetArn:DescribeDataIngestionJobResponse' :: Maybe Text
datasetArn = Maybe Text
a} :: DescribeDataIngestionJobResponse)
describeDataIngestionJobResponse_failedReason :: Lens.Lens' DescribeDataIngestionJobResponse (Prelude.Maybe Prelude.Text)
describeDataIngestionJobResponse_failedReason :: (Maybe Text -> f (Maybe Text))
-> DescribeDataIngestionJobResponse
-> f DescribeDataIngestionJobResponse
describeDataIngestionJobResponse_failedReason = (DescribeDataIngestionJobResponse -> Maybe Text)
-> (DescribeDataIngestionJobResponse
-> Maybe Text -> DescribeDataIngestionJobResponse)
-> Lens
DescribeDataIngestionJobResponse
DescribeDataIngestionJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDataIngestionJobResponse' {Maybe Text
failedReason :: Maybe Text
$sel:failedReason:DescribeDataIngestionJobResponse' :: DescribeDataIngestionJobResponse -> Maybe Text
failedReason} -> Maybe Text
failedReason) (\s :: DescribeDataIngestionJobResponse
s@DescribeDataIngestionJobResponse' {} Maybe Text
a -> DescribeDataIngestionJobResponse
s {$sel:failedReason:DescribeDataIngestionJobResponse' :: Maybe Text
failedReason = Maybe Text
a} :: DescribeDataIngestionJobResponse)
describeDataIngestionJobResponse_jobId :: Lens.Lens' DescribeDataIngestionJobResponse (Prelude.Maybe Prelude.Text)
describeDataIngestionJobResponse_jobId :: (Maybe Text -> f (Maybe Text))
-> DescribeDataIngestionJobResponse
-> f DescribeDataIngestionJobResponse
describeDataIngestionJobResponse_jobId = (DescribeDataIngestionJobResponse -> Maybe Text)
-> (DescribeDataIngestionJobResponse
-> Maybe Text -> DescribeDataIngestionJobResponse)
-> Lens
DescribeDataIngestionJobResponse
DescribeDataIngestionJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDataIngestionJobResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:DescribeDataIngestionJobResponse' :: DescribeDataIngestionJobResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: DescribeDataIngestionJobResponse
s@DescribeDataIngestionJobResponse' {} Maybe Text
a -> DescribeDataIngestionJobResponse
s {$sel:jobId:DescribeDataIngestionJobResponse' :: Maybe Text
jobId = Maybe Text
a} :: DescribeDataIngestionJobResponse)
describeDataIngestionJobResponse_createdAt :: Lens.Lens' DescribeDataIngestionJobResponse (Prelude.Maybe Prelude.UTCTime)
describeDataIngestionJobResponse_createdAt :: (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeDataIngestionJobResponse
-> f DescribeDataIngestionJobResponse
describeDataIngestionJobResponse_createdAt = (DescribeDataIngestionJobResponse -> Maybe POSIX)
-> (DescribeDataIngestionJobResponse
-> Maybe POSIX -> DescribeDataIngestionJobResponse)
-> Lens
DescribeDataIngestionJobResponse
DescribeDataIngestionJobResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDataIngestionJobResponse' {Maybe POSIX
createdAt :: Maybe POSIX
$sel:createdAt:DescribeDataIngestionJobResponse' :: DescribeDataIngestionJobResponse -> Maybe POSIX
createdAt} -> Maybe POSIX
createdAt) (\s :: DescribeDataIngestionJobResponse
s@DescribeDataIngestionJobResponse' {} Maybe POSIX
a -> DescribeDataIngestionJobResponse
s {$sel:createdAt:DescribeDataIngestionJobResponse' :: Maybe POSIX
createdAt = Maybe POSIX
a} :: DescribeDataIngestionJobResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> DescribeDataIngestionJobResponse
-> f DescribeDataIngestionJobResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> DescribeDataIngestionJobResponse
-> f DescribeDataIngestionJobResponse
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
describeDataIngestionJobResponse_roleArn :: Lens.Lens' DescribeDataIngestionJobResponse (Prelude.Maybe Prelude.Text)
describeDataIngestionJobResponse_roleArn :: (Maybe Text -> f (Maybe Text))
-> DescribeDataIngestionJobResponse
-> f DescribeDataIngestionJobResponse
describeDataIngestionJobResponse_roleArn = (DescribeDataIngestionJobResponse -> Maybe Text)
-> (DescribeDataIngestionJobResponse
-> Maybe Text -> DescribeDataIngestionJobResponse)
-> Lens
DescribeDataIngestionJobResponse
DescribeDataIngestionJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDataIngestionJobResponse' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:DescribeDataIngestionJobResponse' :: DescribeDataIngestionJobResponse -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: DescribeDataIngestionJobResponse
s@DescribeDataIngestionJobResponse' {} Maybe Text
a -> DescribeDataIngestionJobResponse
s {$sel:roleArn:DescribeDataIngestionJobResponse' :: Maybe Text
roleArn = Maybe Text
a} :: DescribeDataIngestionJobResponse)
describeDataIngestionJobResponse_httpStatus :: Lens.Lens' DescribeDataIngestionJobResponse Prelude.Int
describeDataIngestionJobResponse_httpStatus :: (Int -> f Int)
-> DescribeDataIngestionJobResponse
-> f DescribeDataIngestionJobResponse
describeDataIngestionJobResponse_httpStatus = (DescribeDataIngestionJobResponse -> Int)
-> (DescribeDataIngestionJobResponse
-> Int -> DescribeDataIngestionJobResponse)
-> Lens
DescribeDataIngestionJobResponse
DescribeDataIngestionJobResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeDataIngestionJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeDataIngestionJobResponse' :: DescribeDataIngestionJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeDataIngestionJobResponse
s@DescribeDataIngestionJobResponse' {} Int
a -> DescribeDataIngestionJobResponse
s {$sel:httpStatus:DescribeDataIngestionJobResponse' :: Int
httpStatus = Int
a} :: DescribeDataIngestionJobResponse)
instance
Prelude.NFData
DescribeDataIngestionJobResponse