{-# 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.Glue.GetMLTaskRun
(
GetMLTaskRun (..),
newGetMLTaskRun,
getMLTaskRun_transformId,
getMLTaskRun_taskRunId,
GetMLTaskRunResponse (..),
newGetMLTaskRunResponse,
getMLTaskRunResponse_completedOn,
getMLTaskRunResponse_status,
getMLTaskRunResponse_lastModifiedOn,
getMLTaskRunResponse_errorString,
getMLTaskRunResponse_startedOn,
getMLTaskRunResponse_logGroupName,
getMLTaskRunResponse_executionTime,
getMLTaskRunResponse_properties,
getMLTaskRunResponse_transformId,
getMLTaskRunResponse_taskRunId,
getMLTaskRunResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Glue.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
data GetMLTaskRun = GetMLTaskRun'
{
GetMLTaskRun -> Text
transformId :: Prelude.Text,
GetMLTaskRun -> Text
taskRunId :: Prelude.Text
}
deriving (GetMLTaskRun -> GetMLTaskRun -> Bool
(GetMLTaskRun -> GetMLTaskRun -> Bool)
-> (GetMLTaskRun -> GetMLTaskRun -> Bool) -> Eq GetMLTaskRun
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMLTaskRun -> GetMLTaskRun -> Bool
$c/= :: GetMLTaskRun -> GetMLTaskRun -> Bool
== :: GetMLTaskRun -> GetMLTaskRun -> Bool
$c== :: GetMLTaskRun -> GetMLTaskRun -> Bool
Prelude.Eq, ReadPrec [GetMLTaskRun]
ReadPrec GetMLTaskRun
Int -> ReadS GetMLTaskRun
ReadS [GetMLTaskRun]
(Int -> ReadS GetMLTaskRun)
-> ReadS [GetMLTaskRun]
-> ReadPrec GetMLTaskRun
-> ReadPrec [GetMLTaskRun]
-> Read GetMLTaskRun
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMLTaskRun]
$creadListPrec :: ReadPrec [GetMLTaskRun]
readPrec :: ReadPrec GetMLTaskRun
$creadPrec :: ReadPrec GetMLTaskRun
readList :: ReadS [GetMLTaskRun]
$creadList :: ReadS [GetMLTaskRun]
readsPrec :: Int -> ReadS GetMLTaskRun
$creadsPrec :: Int -> ReadS GetMLTaskRun
Prelude.Read, Int -> GetMLTaskRun -> ShowS
[GetMLTaskRun] -> ShowS
GetMLTaskRun -> String
(Int -> GetMLTaskRun -> ShowS)
-> (GetMLTaskRun -> String)
-> ([GetMLTaskRun] -> ShowS)
-> Show GetMLTaskRun
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMLTaskRun] -> ShowS
$cshowList :: [GetMLTaskRun] -> ShowS
show :: GetMLTaskRun -> String
$cshow :: GetMLTaskRun -> String
showsPrec :: Int -> GetMLTaskRun -> ShowS
$cshowsPrec :: Int -> GetMLTaskRun -> ShowS
Prelude.Show, (forall x. GetMLTaskRun -> Rep GetMLTaskRun x)
-> (forall x. Rep GetMLTaskRun x -> GetMLTaskRun)
-> Generic GetMLTaskRun
forall x. Rep GetMLTaskRun x -> GetMLTaskRun
forall x. GetMLTaskRun -> Rep GetMLTaskRun x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetMLTaskRun x -> GetMLTaskRun
$cfrom :: forall x. GetMLTaskRun -> Rep GetMLTaskRun x
Prelude.Generic)
newGetMLTaskRun ::
Prelude.Text ->
Prelude.Text ->
GetMLTaskRun
newGetMLTaskRun :: Text -> Text -> GetMLTaskRun
newGetMLTaskRun Text
pTransformId_ Text
pTaskRunId_ =
GetMLTaskRun' :: Text -> Text -> GetMLTaskRun
GetMLTaskRun'
{ $sel:transformId:GetMLTaskRun' :: Text
transformId = Text
pTransformId_,
$sel:taskRunId:GetMLTaskRun' :: Text
taskRunId = Text
pTaskRunId_
}
getMLTaskRun_transformId :: Lens.Lens' GetMLTaskRun Prelude.Text
getMLTaskRun_transformId :: (Text -> f Text) -> GetMLTaskRun -> f GetMLTaskRun
getMLTaskRun_transformId = (GetMLTaskRun -> Text)
-> (GetMLTaskRun -> Text -> GetMLTaskRun)
-> Lens GetMLTaskRun GetMLTaskRun Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRun' {Text
transformId :: Text
$sel:transformId:GetMLTaskRun' :: GetMLTaskRun -> Text
transformId} -> Text
transformId) (\s :: GetMLTaskRun
s@GetMLTaskRun' {} Text
a -> GetMLTaskRun
s {$sel:transformId:GetMLTaskRun' :: Text
transformId = Text
a} :: GetMLTaskRun)
getMLTaskRun_taskRunId :: Lens.Lens' GetMLTaskRun Prelude.Text
getMLTaskRun_taskRunId :: (Text -> f Text) -> GetMLTaskRun -> f GetMLTaskRun
getMLTaskRun_taskRunId = (GetMLTaskRun -> Text)
-> (GetMLTaskRun -> Text -> GetMLTaskRun)
-> Lens GetMLTaskRun GetMLTaskRun Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRun' {Text
taskRunId :: Text
$sel:taskRunId:GetMLTaskRun' :: GetMLTaskRun -> Text
taskRunId} -> Text
taskRunId) (\s :: GetMLTaskRun
s@GetMLTaskRun' {} Text
a -> GetMLTaskRun
s {$sel:taskRunId:GetMLTaskRun' :: Text
taskRunId = Text
a} :: GetMLTaskRun)
instance Core.AWSRequest GetMLTaskRun where
type AWSResponse GetMLTaskRun = GetMLTaskRunResponse
request :: GetMLTaskRun -> Request GetMLTaskRun
request = Service -> GetMLTaskRun -> Request GetMLTaskRun
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetMLTaskRun
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetMLTaskRun)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetMLTaskRun))
-> Logger
-> Service
-> Proxy GetMLTaskRun
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetMLTaskRun)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe POSIX
-> Maybe TaskStatusType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse
GetMLTaskRunResponse'
(Maybe POSIX
-> Maybe TaskStatusType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe TaskStatusType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"CompletedOn")
Either
String
(Maybe TaskStatusType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
-> Either String (Maybe TaskStatusType)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe TaskStatusType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
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
"LastModifiedOn")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
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
"ErrorString")
Either
String
(Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"StartedOn")
Either
String
(Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LogGroupName")
Either
String
(Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse)
-> Either String (Maybe Int)
-> Either
String
(Maybe TaskRunProperties
-> Maybe Text -> Maybe Text -> Int -> GetMLTaskRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ExecutionTime")
Either
String
(Maybe TaskRunProperties
-> Maybe Text -> Maybe Text -> Int -> GetMLTaskRunResponse)
-> Either String (Maybe TaskRunProperties)
-> Either
String (Maybe Text -> Maybe Text -> Int -> GetMLTaskRunResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe TaskRunProperties)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Properties")
Either
String (Maybe Text -> Maybe Text -> Int -> GetMLTaskRunResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> GetMLTaskRunResponse)
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
"TransformId")
Either String (Maybe Text -> Int -> GetMLTaskRunResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetMLTaskRunResponse)
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
"TaskRunId")
Either String (Int -> GetMLTaskRunResponse)
-> Either String Int -> Either String GetMLTaskRunResponse
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 GetMLTaskRun
instance Prelude.NFData GetMLTaskRun
instance Core.ToHeaders GetMLTaskRun where
toHeaders :: GetMLTaskRun -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetMLTaskRun -> 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
"AWSGlue.GetMLTaskRun" :: Prelude.ByteString),
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.ToJSON GetMLTaskRun where
toJSON :: GetMLTaskRun -> Value
toJSON GetMLTaskRun' {Text
taskRunId :: Text
transformId :: Text
$sel:taskRunId:GetMLTaskRun' :: GetMLTaskRun -> Text
$sel:transformId:GetMLTaskRun' :: GetMLTaskRun -> 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
"TransformId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
transformId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"TaskRunId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
taskRunId)
]
)
instance Core.ToPath GetMLTaskRun where
toPath :: GetMLTaskRun -> ByteString
toPath = ByteString -> GetMLTaskRun -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetMLTaskRun where
toQuery :: GetMLTaskRun -> QueryString
toQuery = QueryString -> GetMLTaskRun -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetMLTaskRunResponse = GetMLTaskRunResponse'
{
GetMLTaskRunResponse -> Maybe POSIX
completedOn :: Prelude.Maybe Core.POSIX,
GetMLTaskRunResponse -> Maybe TaskStatusType
status :: Prelude.Maybe TaskStatusType,
GetMLTaskRunResponse -> Maybe POSIX
lastModifiedOn :: Prelude.Maybe Core.POSIX,
GetMLTaskRunResponse -> Maybe Text
errorString :: Prelude.Maybe Prelude.Text,
GetMLTaskRunResponse -> Maybe POSIX
startedOn :: Prelude.Maybe Core.POSIX,
GetMLTaskRunResponse -> Maybe Text
logGroupName :: Prelude.Maybe Prelude.Text,
GetMLTaskRunResponse -> Maybe Int
executionTime :: Prelude.Maybe Prelude.Int,
GetMLTaskRunResponse -> Maybe TaskRunProperties
properties :: Prelude.Maybe TaskRunProperties,
GetMLTaskRunResponse -> Maybe Text
transformId :: Prelude.Maybe Prelude.Text,
GetMLTaskRunResponse -> Maybe Text
taskRunId :: Prelude.Maybe Prelude.Text,
GetMLTaskRunResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetMLTaskRunResponse -> GetMLTaskRunResponse -> Bool
(GetMLTaskRunResponse -> GetMLTaskRunResponse -> Bool)
-> (GetMLTaskRunResponse -> GetMLTaskRunResponse -> Bool)
-> Eq GetMLTaskRunResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetMLTaskRunResponse -> GetMLTaskRunResponse -> Bool
$c/= :: GetMLTaskRunResponse -> GetMLTaskRunResponse -> Bool
== :: GetMLTaskRunResponse -> GetMLTaskRunResponse -> Bool
$c== :: GetMLTaskRunResponse -> GetMLTaskRunResponse -> Bool
Prelude.Eq, ReadPrec [GetMLTaskRunResponse]
ReadPrec GetMLTaskRunResponse
Int -> ReadS GetMLTaskRunResponse
ReadS [GetMLTaskRunResponse]
(Int -> ReadS GetMLTaskRunResponse)
-> ReadS [GetMLTaskRunResponse]
-> ReadPrec GetMLTaskRunResponse
-> ReadPrec [GetMLTaskRunResponse]
-> Read GetMLTaskRunResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetMLTaskRunResponse]
$creadListPrec :: ReadPrec [GetMLTaskRunResponse]
readPrec :: ReadPrec GetMLTaskRunResponse
$creadPrec :: ReadPrec GetMLTaskRunResponse
readList :: ReadS [GetMLTaskRunResponse]
$creadList :: ReadS [GetMLTaskRunResponse]
readsPrec :: Int -> ReadS GetMLTaskRunResponse
$creadsPrec :: Int -> ReadS GetMLTaskRunResponse
Prelude.Read, Int -> GetMLTaskRunResponse -> ShowS
[GetMLTaskRunResponse] -> ShowS
GetMLTaskRunResponse -> String
(Int -> GetMLTaskRunResponse -> ShowS)
-> (GetMLTaskRunResponse -> String)
-> ([GetMLTaskRunResponse] -> ShowS)
-> Show GetMLTaskRunResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetMLTaskRunResponse] -> ShowS
$cshowList :: [GetMLTaskRunResponse] -> ShowS
show :: GetMLTaskRunResponse -> String
$cshow :: GetMLTaskRunResponse -> String
showsPrec :: Int -> GetMLTaskRunResponse -> ShowS
$cshowsPrec :: Int -> GetMLTaskRunResponse -> ShowS
Prelude.Show, (forall x. GetMLTaskRunResponse -> Rep GetMLTaskRunResponse x)
-> (forall x. Rep GetMLTaskRunResponse x -> GetMLTaskRunResponse)
-> Generic GetMLTaskRunResponse
forall x. Rep GetMLTaskRunResponse x -> GetMLTaskRunResponse
forall x. GetMLTaskRunResponse -> Rep GetMLTaskRunResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetMLTaskRunResponse x -> GetMLTaskRunResponse
$cfrom :: forall x. GetMLTaskRunResponse -> Rep GetMLTaskRunResponse x
Prelude.Generic)
newGetMLTaskRunResponse ::
Prelude.Int ->
GetMLTaskRunResponse
newGetMLTaskRunResponse :: Int -> GetMLTaskRunResponse
newGetMLTaskRunResponse Int
pHttpStatus_ =
GetMLTaskRunResponse' :: Maybe POSIX
-> Maybe TaskStatusType
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Int
-> Maybe TaskRunProperties
-> Maybe Text
-> Maybe Text
-> Int
-> GetMLTaskRunResponse
GetMLTaskRunResponse'
{ $sel:completedOn:GetMLTaskRunResponse' :: Maybe POSIX
completedOn =
Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:status:GetMLTaskRunResponse' :: Maybe TaskStatusType
status = Maybe TaskStatusType
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedOn:GetMLTaskRunResponse' :: Maybe POSIX
lastModifiedOn = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:errorString:GetMLTaskRunResponse' :: Maybe Text
errorString = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:startedOn:GetMLTaskRunResponse' :: Maybe POSIX
startedOn = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:logGroupName:GetMLTaskRunResponse' :: Maybe Text
logGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:executionTime:GetMLTaskRunResponse' :: Maybe Int
executionTime = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:properties:GetMLTaskRunResponse' :: Maybe TaskRunProperties
properties = Maybe TaskRunProperties
forall a. Maybe a
Prelude.Nothing,
$sel:transformId:GetMLTaskRunResponse' :: Maybe Text
transformId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:taskRunId:GetMLTaskRunResponse' :: Maybe Text
taskRunId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetMLTaskRunResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getMLTaskRunResponse_completedOn :: Lens.Lens' GetMLTaskRunResponse (Prelude.Maybe Prelude.UTCTime)
getMLTaskRunResponse_completedOn :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse
getMLTaskRunResponse_completedOn = (GetMLTaskRunResponse -> Maybe POSIX)
-> (GetMLTaskRunResponse -> Maybe POSIX -> GetMLTaskRunResponse)
-> Lens
GetMLTaskRunResponse
GetMLTaskRunResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRunResponse' {Maybe POSIX
completedOn :: Maybe POSIX
$sel:completedOn:GetMLTaskRunResponse' :: GetMLTaskRunResponse -> Maybe POSIX
completedOn} -> Maybe POSIX
completedOn) (\s :: GetMLTaskRunResponse
s@GetMLTaskRunResponse' {} Maybe POSIX
a -> GetMLTaskRunResponse
s {$sel:completedOn:GetMLTaskRunResponse' :: Maybe POSIX
completedOn = Maybe POSIX
a} :: GetMLTaskRunResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMLTaskRunResponse
-> f GetMLTaskRunResponse
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
getMLTaskRunResponse_status :: Lens.Lens' GetMLTaskRunResponse (Prelude.Maybe TaskStatusType)
getMLTaskRunResponse_status :: (Maybe TaskStatusType -> f (Maybe TaskStatusType))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse
getMLTaskRunResponse_status = (GetMLTaskRunResponse -> Maybe TaskStatusType)
-> (GetMLTaskRunResponse
-> Maybe TaskStatusType -> GetMLTaskRunResponse)
-> Lens
GetMLTaskRunResponse
GetMLTaskRunResponse
(Maybe TaskStatusType)
(Maybe TaskStatusType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRunResponse' {Maybe TaskStatusType
status :: Maybe TaskStatusType
$sel:status:GetMLTaskRunResponse' :: GetMLTaskRunResponse -> Maybe TaskStatusType
status} -> Maybe TaskStatusType
status) (\s :: GetMLTaskRunResponse
s@GetMLTaskRunResponse' {} Maybe TaskStatusType
a -> GetMLTaskRunResponse
s {$sel:status:GetMLTaskRunResponse' :: Maybe TaskStatusType
status = Maybe TaskStatusType
a} :: GetMLTaskRunResponse)
getMLTaskRunResponse_lastModifiedOn :: Lens.Lens' GetMLTaskRunResponse (Prelude.Maybe Prelude.UTCTime)
getMLTaskRunResponse_lastModifiedOn :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse
getMLTaskRunResponse_lastModifiedOn = (GetMLTaskRunResponse -> Maybe POSIX)
-> (GetMLTaskRunResponse -> Maybe POSIX -> GetMLTaskRunResponse)
-> Lens
GetMLTaskRunResponse
GetMLTaskRunResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRunResponse' {Maybe POSIX
lastModifiedOn :: Maybe POSIX
$sel:lastModifiedOn:GetMLTaskRunResponse' :: GetMLTaskRunResponse -> Maybe POSIX
lastModifiedOn} -> Maybe POSIX
lastModifiedOn) (\s :: GetMLTaskRunResponse
s@GetMLTaskRunResponse' {} Maybe POSIX
a -> GetMLTaskRunResponse
s {$sel:lastModifiedOn:GetMLTaskRunResponse' :: Maybe POSIX
lastModifiedOn = Maybe POSIX
a} :: GetMLTaskRunResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMLTaskRunResponse
-> f GetMLTaskRunResponse
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
getMLTaskRunResponse_errorString :: Lens.Lens' GetMLTaskRunResponse (Prelude.Maybe Prelude.Text)
getMLTaskRunResponse_errorString :: (Maybe Text -> f (Maybe Text))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse
getMLTaskRunResponse_errorString = (GetMLTaskRunResponse -> Maybe Text)
-> (GetMLTaskRunResponse -> Maybe Text -> GetMLTaskRunResponse)
-> Lens
GetMLTaskRunResponse GetMLTaskRunResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRunResponse' {Maybe Text
errorString :: Maybe Text
$sel:errorString:GetMLTaskRunResponse' :: GetMLTaskRunResponse -> Maybe Text
errorString} -> Maybe Text
errorString) (\s :: GetMLTaskRunResponse
s@GetMLTaskRunResponse' {} Maybe Text
a -> GetMLTaskRunResponse
s {$sel:errorString:GetMLTaskRunResponse' :: Maybe Text
errorString = Maybe Text
a} :: GetMLTaskRunResponse)
getMLTaskRunResponse_startedOn :: Lens.Lens' GetMLTaskRunResponse (Prelude.Maybe Prelude.UTCTime)
getMLTaskRunResponse_startedOn :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse
getMLTaskRunResponse_startedOn = (GetMLTaskRunResponse -> Maybe POSIX)
-> (GetMLTaskRunResponse -> Maybe POSIX -> GetMLTaskRunResponse)
-> Lens
GetMLTaskRunResponse
GetMLTaskRunResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRunResponse' {Maybe POSIX
startedOn :: Maybe POSIX
$sel:startedOn:GetMLTaskRunResponse' :: GetMLTaskRunResponse -> Maybe POSIX
startedOn} -> Maybe POSIX
startedOn) (\s :: GetMLTaskRunResponse
s@GetMLTaskRunResponse' {} Maybe POSIX
a -> GetMLTaskRunResponse
s {$sel:startedOn:GetMLTaskRunResponse' :: Maybe POSIX
startedOn = Maybe POSIX
a} :: GetMLTaskRunResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetMLTaskRunResponse
-> f GetMLTaskRunResponse
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
getMLTaskRunResponse_logGroupName :: Lens.Lens' GetMLTaskRunResponse (Prelude.Maybe Prelude.Text)
getMLTaskRunResponse_logGroupName :: (Maybe Text -> f (Maybe Text))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse
getMLTaskRunResponse_logGroupName = (GetMLTaskRunResponse -> Maybe Text)
-> (GetMLTaskRunResponse -> Maybe Text -> GetMLTaskRunResponse)
-> Lens
GetMLTaskRunResponse GetMLTaskRunResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRunResponse' {Maybe Text
logGroupName :: Maybe Text
$sel:logGroupName:GetMLTaskRunResponse' :: GetMLTaskRunResponse -> Maybe Text
logGroupName} -> Maybe Text
logGroupName) (\s :: GetMLTaskRunResponse
s@GetMLTaskRunResponse' {} Maybe Text
a -> GetMLTaskRunResponse
s {$sel:logGroupName:GetMLTaskRunResponse' :: Maybe Text
logGroupName = Maybe Text
a} :: GetMLTaskRunResponse)
getMLTaskRunResponse_executionTime :: Lens.Lens' GetMLTaskRunResponse (Prelude.Maybe Prelude.Int)
getMLTaskRunResponse_executionTime :: (Maybe Int -> f (Maybe Int))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse
getMLTaskRunResponse_executionTime = (GetMLTaskRunResponse -> Maybe Int)
-> (GetMLTaskRunResponse -> Maybe Int -> GetMLTaskRunResponse)
-> Lens
GetMLTaskRunResponse GetMLTaskRunResponse (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRunResponse' {Maybe Int
executionTime :: Maybe Int
$sel:executionTime:GetMLTaskRunResponse' :: GetMLTaskRunResponse -> Maybe Int
executionTime} -> Maybe Int
executionTime) (\s :: GetMLTaskRunResponse
s@GetMLTaskRunResponse' {} Maybe Int
a -> GetMLTaskRunResponse
s {$sel:executionTime:GetMLTaskRunResponse' :: Maybe Int
executionTime = Maybe Int
a} :: GetMLTaskRunResponse)
getMLTaskRunResponse_properties :: Lens.Lens' GetMLTaskRunResponse (Prelude.Maybe TaskRunProperties)
getMLTaskRunResponse_properties :: (Maybe TaskRunProperties -> f (Maybe TaskRunProperties))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse
getMLTaskRunResponse_properties = (GetMLTaskRunResponse -> Maybe TaskRunProperties)
-> (GetMLTaskRunResponse
-> Maybe TaskRunProperties -> GetMLTaskRunResponse)
-> Lens
GetMLTaskRunResponse
GetMLTaskRunResponse
(Maybe TaskRunProperties)
(Maybe TaskRunProperties)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRunResponse' {Maybe TaskRunProperties
properties :: Maybe TaskRunProperties
$sel:properties:GetMLTaskRunResponse' :: GetMLTaskRunResponse -> Maybe TaskRunProperties
properties} -> Maybe TaskRunProperties
properties) (\s :: GetMLTaskRunResponse
s@GetMLTaskRunResponse' {} Maybe TaskRunProperties
a -> GetMLTaskRunResponse
s {$sel:properties:GetMLTaskRunResponse' :: Maybe TaskRunProperties
properties = Maybe TaskRunProperties
a} :: GetMLTaskRunResponse)
getMLTaskRunResponse_transformId :: Lens.Lens' GetMLTaskRunResponse (Prelude.Maybe Prelude.Text)
getMLTaskRunResponse_transformId :: (Maybe Text -> f (Maybe Text))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse
getMLTaskRunResponse_transformId = (GetMLTaskRunResponse -> Maybe Text)
-> (GetMLTaskRunResponse -> Maybe Text -> GetMLTaskRunResponse)
-> Lens
GetMLTaskRunResponse GetMLTaskRunResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRunResponse' {Maybe Text
transformId :: Maybe Text
$sel:transformId:GetMLTaskRunResponse' :: GetMLTaskRunResponse -> Maybe Text
transformId} -> Maybe Text
transformId) (\s :: GetMLTaskRunResponse
s@GetMLTaskRunResponse' {} Maybe Text
a -> GetMLTaskRunResponse
s {$sel:transformId:GetMLTaskRunResponse' :: Maybe Text
transformId = Maybe Text
a} :: GetMLTaskRunResponse)
getMLTaskRunResponse_taskRunId :: Lens.Lens' GetMLTaskRunResponse (Prelude.Maybe Prelude.Text)
getMLTaskRunResponse_taskRunId :: (Maybe Text -> f (Maybe Text))
-> GetMLTaskRunResponse -> f GetMLTaskRunResponse
getMLTaskRunResponse_taskRunId = (GetMLTaskRunResponse -> Maybe Text)
-> (GetMLTaskRunResponse -> Maybe Text -> GetMLTaskRunResponse)
-> Lens
GetMLTaskRunResponse GetMLTaskRunResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRunResponse' {Maybe Text
taskRunId :: Maybe Text
$sel:taskRunId:GetMLTaskRunResponse' :: GetMLTaskRunResponse -> Maybe Text
taskRunId} -> Maybe Text
taskRunId) (\s :: GetMLTaskRunResponse
s@GetMLTaskRunResponse' {} Maybe Text
a -> GetMLTaskRunResponse
s {$sel:taskRunId:GetMLTaskRunResponse' :: Maybe Text
taskRunId = Maybe Text
a} :: GetMLTaskRunResponse)
getMLTaskRunResponse_httpStatus :: Lens.Lens' GetMLTaskRunResponse Prelude.Int
getMLTaskRunResponse_httpStatus :: (Int -> f Int) -> GetMLTaskRunResponse -> f GetMLTaskRunResponse
getMLTaskRunResponse_httpStatus = (GetMLTaskRunResponse -> Int)
-> (GetMLTaskRunResponse -> Int -> GetMLTaskRunResponse)
-> Lens GetMLTaskRunResponse GetMLTaskRunResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetMLTaskRunResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetMLTaskRunResponse' :: GetMLTaskRunResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetMLTaskRunResponse
s@GetMLTaskRunResponse' {} Int
a -> GetMLTaskRunResponse
s {$sel:httpStatus:GetMLTaskRunResponse' :: Int
httpStatus = Int
a} :: GetMLTaskRunResponse)
instance Prelude.NFData GetMLTaskRunResponse