{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.SageMaker.Types.TransformJobSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.SageMaker.Types.TransformJobStatus
data TransformJobSummary = TransformJobSummary'
{
TransformJobSummary -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
TransformJobSummary -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
TransformJobSummary -> Maybe POSIX
transformEndTime :: Prelude.Maybe Core.POSIX,
TransformJobSummary -> Text
transformJobName :: Prelude.Text,
TransformJobSummary -> Text
transformJobArn :: Prelude.Text,
TransformJobSummary -> POSIX
creationTime :: Core.POSIX,
TransformJobSummary -> TransformJobStatus
transformJobStatus :: TransformJobStatus
}
deriving (TransformJobSummary -> TransformJobSummary -> Bool
(TransformJobSummary -> TransformJobSummary -> Bool)
-> (TransformJobSummary -> TransformJobSummary -> Bool)
-> Eq TransformJobSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: TransformJobSummary -> TransformJobSummary -> Bool
$c/= :: TransformJobSummary -> TransformJobSummary -> Bool
== :: TransformJobSummary -> TransformJobSummary -> Bool
$c== :: TransformJobSummary -> TransformJobSummary -> Bool
Prelude.Eq, ReadPrec [TransformJobSummary]
ReadPrec TransformJobSummary
Int -> ReadS TransformJobSummary
ReadS [TransformJobSummary]
(Int -> ReadS TransformJobSummary)
-> ReadS [TransformJobSummary]
-> ReadPrec TransformJobSummary
-> ReadPrec [TransformJobSummary]
-> Read TransformJobSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [TransformJobSummary]
$creadListPrec :: ReadPrec [TransformJobSummary]
readPrec :: ReadPrec TransformJobSummary
$creadPrec :: ReadPrec TransformJobSummary
readList :: ReadS [TransformJobSummary]
$creadList :: ReadS [TransformJobSummary]
readsPrec :: Int -> ReadS TransformJobSummary
$creadsPrec :: Int -> ReadS TransformJobSummary
Prelude.Read, Int -> TransformJobSummary -> ShowS
[TransformJobSummary] -> ShowS
TransformJobSummary -> String
(Int -> TransformJobSummary -> ShowS)
-> (TransformJobSummary -> String)
-> ([TransformJobSummary] -> ShowS)
-> Show TransformJobSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [TransformJobSummary] -> ShowS
$cshowList :: [TransformJobSummary] -> ShowS
show :: TransformJobSummary -> String
$cshow :: TransformJobSummary -> String
showsPrec :: Int -> TransformJobSummary -> ShowS
$cshowsPrec :: Int -> TransformJobSummary -> ShowS
Prelude.Show, (forall x. TransformJobSummary -> Rep TransformJobSummary x)
-> (forall x. Rep TransformJobSummary x -> TransformJobSummary)
-> Generic TransformJobSummary
forall x. Rep TransformJobSummary x -> TransformJobSummary
forall x. TransformJobSummary -> Rep TransformJobSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep TransformJobSummary x -> TransformJobSummary
$cfrom :: forall x. TransformJobSummary -> Rep TransformJobSummary x
Prelude.Generic)
newTransformJobSummary ::
Prelude.Text ->
Prelude.Text ->
Prelude.UTCTime ->
TransformJobStatus ->
TransformJobSummary
newTransformJobSummary :: Text
-> Text -> UTCTime -> TransformJobStatus -> TransformJobSummary
newTransformJobSummary
Text
pTransformJobName_
Text
pTransformJobArn_
UTCTime
pCreationTime_
TransformJobStatus
pTransformJobStatus_ =
TransformJobSummary' :: Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Text
-> Text
-> POSIX
-> TransformJobStatus
-> TransformJobSummary
TransformJobSummary'
{ $sel:failureReason:TransformJobSummary' :: Maybe Text
failureReason =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:TransformJobSummary' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:transformEndTime:TransformJobSummary' :: Maybe POSIX
transformEndTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:transformJobName:TransformJobSummary' :: Text
transformJobName = Text
pTransformJobName_,
$sel:transformJobArn:TransformJobSummary' :: Text
transformJobArn = Text
pTransformJobArn_,
$sel:creationTime:TransformJobSummary' :: POSIX
creationTime = Tagged UTCTime (Identity UTCTime) -> Tagged POSIX (Identity POSIX)
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time (Tagged UTCTime (Identity UTCTime)
-> Tagged POSIX (Identity POSIX))
-> UTCTime -> POSIX
forall t b. AReview t b -> b -> t
Lens.# UTCTime
pCreationTime_,
$sel:transformJobStatus:TransformJobSummary' :: TransformJobStatus
transformJobStatus = TransformJobStatus
pTransformJobStatus_
}
transformJobSummary_failureReason :: Lens.Lens' TransformJobSummary (Prelude.Maybe Prelude.Text)
transformJobSummary_failureReason :: (Maybe Text -> f (Maybe Text))
-> TransformJobSummary -> f TransformJobSummary
transformJobSummary_failureReason = (TransformJobSummary -> Maybe Text)
-> (TransformJobSummary -> Maybe Text -> TransformJobSummary)
-> Lens
TransformJobSummary TransformJobSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransformJobSummary' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:TransformJobSummary' :: TransformJobSummary -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: TransformJobSummary
s@TransformJobSummary' {} Maybe Text
a -> TransformJobSummary
s {$sel:failureReason:TransformJobSummary' :: Maybe Text
failureReason = Maybe Text
a} :: TransformJobSummary)
transformJobSummary_lastModifiedTime :: Lens.Lens' TransformJobSummary (Prelude.Maybe Prelude.UTCTime)
transformJobSummary_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TransformJobSummary -> f TransformJobSummary
transformJobSummary_lastModifiedTime = (TransformJobSummary -> Maybe POSIX)
-> (TransformJobSummary -> Maybe POSIX -> TransformJobSummary)
-> Lens
TransformJobSummary TransformJobSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransformJobSummary' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:TransformJobSummary' :: TransformJobSummary -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: TransformJobSummary
s@TransformJobSummary' {} Maybe POSIX
a -> TransformJobSummary
s {$sel:lastModifiedTime:TransformJobSummary' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: TransformJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> TransformJobSummary -> f TransformJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TransformJobSummary
-> f TransformJobSummary
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
transformJobSummary_transformEndTime :: Lens.Lens' TransformJobSummary (Prelude.Maybe Prelude.UTCTime)
transformJobSummary_transformEndTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> TransformJobSummary -> f TransformJobSummary
transformJobSummary_transformEndTime = (TransformJobSummary -> Maybe POSIX)
-> (TransformJobSummary -> Maybe POSIX -> TransformJobSummary)
-> Lens
TransformJobSummary TransformJobSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransformJobSummary' {Maybe POSIX
transformEndTime :: Maybe POSIX
$sel:transformEndTime:TransformJobSummary' :: TransformJobSummary -> Maybe POSIX
transformEndTime} -> Maybe POSIX
transformEndTime) (\s :: TransformJobSummary
s@TransformJobSummary' {} Maybe POSIX
a -> TransformJobSummary
s {$sel:transformEndTime:TransformJobSummary' :: Maybe POSIX
transformEndTime = Maybe POSIX
a} :: TransformJobSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> TransformJobSummary -> f TransformJobSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> TransformJobSummary
-> f TransformJobSummary
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
transformJobSummary_transformJobName :: Lens.Lens' TransformJobSummary Prelude.Text
transformJobSummary_transformJobName :: (Text -> f Text) -> TransformJobSummary -> f TransformJobSummary
transformJobSummary_transformJobName = (TransformJobSummary -> Text)
-> (TransformJobSummary -> Text -> TransformJobSummary)
-> Lens TransformJobSummary TransformJobSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransformJobSummary' {Text
transformJobName :: Text
$sel:transformJobName:TransformJobSummary' :: TransformJobSummary -> Text
transformJobName} -> Text
transformJobName) (\s :: TransformJobSummary
s@TransformJobSummary' {} Text
a -> TransformJobSummary
s {$sel:transformJobName:TransformJobSummary' :: Text
transformJobName = Text
a} :: TransformJobSummary)
transformJobSummary_transformJobArn :: Lens.Lens' TransformJobSummary Prelude.Text
transformJobSummary_transformJobArn :: (Text -> f Text) -> TransformJobSummary -> f TransformJobSummary
transformJobSummary_transformJobArn = (TransformJobSummary -> Text)
-> (TransformJobSummary -> Text -> TransformJobSummary)
-> Lens TransformJobSummary TransformJobSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransformJobSummary' {Text
transformJobArn :: Text
$sel:transformJobArn:TransformJobSummary' :: TransformJobSummary -> Text
transformJobArn} -> Text
transformJobArn) (\s :: TransformJobSummary
s@TransformJobSummary' {} Text
a -> TransformJobSummary
s {$sel:transformJobArn:TransformJobSummary' :: Text
transformJobArn = Text
a} :: TransformJobSummary)
transformJobSummary_creationTime :: Lens.Lens' TransformJobSummary Prelude.UTCTime
transformJobSummary_creationTime :: (UTCTime -> f UTCTime)
-> TransformJobSummary -> f TransformJobSummary
transformJobSummary_creationTime = (TransformJobSummary -> POSIX)
-> (TransformJobSummary -> POSIX -> TransformJobSummary)
-> Lens TransformJobSummary TransformJobSummary POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransformJobSummary' {POSIX
creationTime :: POSIX
$sel:creationTime:TransformJobSummary' :: TransformJobSummary -> POSIX
creationTime} -> POSIX
creationTime) (\s :: TransformJobSummary
s@TransformJobSummary' {} POSIX
a -> TransformJobSummary
s {$sel:creationTime:TransformJobSummary' :: POSIX
creationTime = POSIX
a} :: TransformJobSummary) ((POSIX -> f POSIX)
-> TransformJobSummary -> f TransformJobSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> TransformJobSummary
-> f TransformJobSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (UTCTime -> f UTCTime) -> POSIX -> f POSIX
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
transformJobSummary_transformJobStatus :: Lens.Lens' TransformJobSummary TransformJobStatus
transformJobSummary_transformJobStatus :: (TransformJobStatus -> f TransformJobStatus)
-> TransformJobSummary -> f TransformJobSummary
transformJobSummary_transformJobStatus = (TransformJobSummary -> TransformJobStatus)
-> (TransformJobSummary
-> TransformJobStatus -> TransformJobSummary)
-> Lens
TransformJobSummary
TransformJobSummary
TransformJobStatus
TransformJobStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\TransformJobSummary' {TransformJobStatus
transformJobStatus :: TransformJobStatus
$sel:transformJobStatus:TransformJobSummary' :: TransformJobSummary -> TransformJobStatus
transformJobStatus} -> TransformJobStatus
transformJobStatus) (\s :: TransformJobSummary
s@TransformJobSummary' {} TransformJobStatus
a -> TransformJobSummary
s {$sel:transformJobStatus:TransformJobSummary' :: TransformJobStatus
transformJobStatus = TransformJobStatus
a} :: TransformJobSummary)
instance Core.FromJSON TransformJobSummary where
parseJSON :: Value -> Parser TransformJobSummary
parseJSON =
String
-> (Object -> Parser TransformJobSummary)
-> Value
-> Parser TransformJobSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"TransformJobSummary"
( \Object
x ->
Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Text
-> Text
-> POSIX
-> TransformJobStatus
-> TransformJobSummary
TransformJobSummary'
(Maybe Text
-> Maybe POSIX
-> Maybe POSIX
-> Text
-> Text
-> POSIX
-> TransformJobStatus
-> TransformJobSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe POSIX
-> Text
-> Text
-> POSIX
-> TransformJobStatus
-> TransformJobSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"FailureReason")
Parser
(Maybe POSIX
-> Maybe POSIX
-> Text
-> Text
-> POSIX
-> TransformJobStatus
-> TransformJobSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe POSIX
-> Text
-> Text
-> POSIX
-> TransformJobStatus
-> TransformJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastModifiedTime")
Parser
(Maybe POSIX
-> Text
-> Text
-> POSIX
-> TransformJobStatus
-> TransformJobSummary)
-> Parser (Maybe POSIX)
-> Parser
(Text
-> Text -> POSIX -> TransformJobStatus -> TransformJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"TransformEndTime")
Parser
(Text
-> Text -> POSIX -> TransformJobStatus -> TransformJobSummary)
-> Parser Text
-> Parser
(Text -> POSIX -> TransformJobStatus -> TransformJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"TransformJobName")
Parser (Text -> POSIX -> TransformJobStatus -> TransformJobSummary)
-> Parser Text
-> Parser (POSIX -> TransformJobStatus -> TransformJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser Text
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"TransformJobArn")
Parser (POSIX -> TransformJobStatus -> TransformJobSummary)
-> Parser POSIX
-> Parser (TransformJobStatus -> TransformJobSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser POSIX
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"CreationTime")
Parser (TransformJobStatus -> TransformJobSummary)
-> Parser TransformJobStatus -> Parser TransformJobSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser TransformJobStatus
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"TransformJobStatus")
)
instance Prelude.Hashable TransformJobSummary
instance Prelude.NFData TransformJobSummary