{-# 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.PipelineSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data PipelineSummary = PipelineSummary'
{
PipelineSummary -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
PipelineSummary -> Maybe Text
pipelineDisplayName :: Prelude.Maybe Prelude.Text,
PipelineSummary -> Maybe POSIX
lastExecutionTime :: Prelude.Maybe Core.POSIX,
PipelineSummary -> Maybe Text
pipelineName :: Prelude.Maybe Prelude.Text,
PipelineSummary -> Maybe POSIX
lastModifiedTime :: Prelude.Maybe Core.POSIX,
PipelineSummary -> Maybe Text
pipelineDescription :: Prelude.Maybe Prelude.Text,
PipelineSummary -> Maybe Text
pipelineArn :: Prelude.Maybe Prelude.Text,
PipelineSummary -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text
}
deriving (PipelineSummary -> PipelineSummary -> Bool
(PipelineSummary -> PipelineSummary -> Bool)
-> (PipelineSummary -> PipelineSummary -> Bool)
-> Eq PipelineSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PipelineSummary -> PipelineSummary -> Bool
$c/= :: PipelineSummary -> PipelineSummary -> Bool
== :: PipelineSummary -> PipelineSummary -> Bool
$c== :: PipelineSummary -> PipelineSummary -> Bool
Prelude.Eq, ReadPrec [PipelineSummary]
ReadPrec PipelineSummary
Int -> ReadS PipelineSummary
ReadS [PipelineSummary]
(Int -> ReadS PipelineSummary)
-> ReadS [PipelineSummary]
-> ReadPrec PipelineSummary
-> ReadPrec [PipelineSummary]
-> Read PipelineSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PipelineSummary]
$creadListPrec :: ReadPrec [PipelineSummary]
readPrec :: ReadPrec PipelineSummary
$creadPrec :: ReadPrec PipelineSummary
readList :: ReadS [PipelineSummary]
$creadList :: ReadS [PipelineSummary]
readsPrec :: Int -> ReadS PipelineSummary
$creadsPrec :: Int -> ReadS PipelineSummary
Prelude.Read, Int -> PipelineSummary -> ShowS
[PipelineSummary] -> ShowS
PipelineSummary -> String
(Int -> PipelineSummary -> ShowS)
-> (PipelineSummary -> String)
-> ([PipelineSummary] -> ShowS)
-> Show PipelineSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PipelineSummary] -> ShowS
$cshowList :: [PipelineSummary] -> ShowS
show :: PipelineSummary -> String
$cshow :: PipelineSummary -> String
showsPrec :: Int -> PipelineSummary -> ShowS
$cshowsPrec :: Int -> PipelineSummary -> ShowS
Prelude.Show, (forall x. PipelineSummary -> Rep PipelineSummary x)
-> (forall x. Rep PipelineSummary x -> PipelineSummary)
-> Generic PipelineSummary
forall x. Rep PipelineSummary x -> PipelineSummary
forall x. PipelineSummary -> Rep PipelineSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PipelineSummary x -> PipelineSummary
$cfrom :: forall x. PipelineSummary -> Rep PipelineSummary x
Prelude.Generic)
newPipelineSummary ::
PipelineSummary
newPipelineSummary :: PipelineSummary
newPipelineSummary =
PipelineSummary' :: Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> PipelineSummary
PipelineSummary'
{ $sel:creationTime:PipelineSummary' :: Maybe POSIX
creationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineDisplayName:PipelineSummary' :: Maybe Text
pipelineDisplayName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastExecutionTime:PipelineSummary' :: Maybe POSIX
lastExecutionTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineName:PipelineSummary' :: Maybe Text
pipelineName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:PipelineSummary' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineDescription:PipelineSummary' :: Maybe Text
pipelineDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:pipelineArn:PipelineSummary' :: Maybe Text
pipelineArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:roleArn:PipelineSummary' :: Maybe Text
roleArn = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
pipelineSummary_creationTime :: Lens.Lens' PipelineSummary (Prelude.Maybe Prelude.UTCTime)
pipelineSummary_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PipelineSummary -> f PipelineSummary
pipelineSummary_creationTime = (PipelineSummary -> Maybe POSIX)
-> (PipelineSummary -> Maybe POSIX -> PipelineSummary)
-> Lens PipelineSummary PipelineSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PipelineSummary' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:PipelineSummary' :: PipelineSummary -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: PipelineSummary
s@PipelineSummary' {} Maybe POSIX
a -> PipelineSummary
s {$sel:creationTime:PipelineSummary' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: PipelineSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> PipelineSummary -> f PipelineSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PipelineSummary
-> f PipelineSummary
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
pipelineSummary_pipelineDisplayName :: Lens.Lens' PipelineSummary (Prelude.Maybe Prelude.Text)
pipelineSummary_pipelineDisplayName :: (Maybe Text -> f (Maybe Text))
-> PipelineSummary -> f PipelineSummary
pipelineSummary_pipelineDisplayName = (PipelineSummary -> Maybe Text)
-> (PipelineSummary -> Maybe Text -> PipelineSummary)
-> Lens PipelineSummary PipelineSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PipelineSummary' {Maybe Text
pipelineDisplayName :: Maybe Text
$sel:pipelineDisplayName:PipelineSummary' :: PipelineSummary -> Maybe Text
pipelineDisplayName} -> Maybe Text
pipelineDisplayName) (\s :: PipelineSummary
s@PipelineSummary' {} Maybe Text
a -> PipelineSummary
s {$sel:pipelineDisplayName:PipelineSummary' :: Maybe Text
pipelineDisplayName = Maybe Text
a} :: PipelineSummary)
pipelineSummary_lastExecutionTime :: Lens.Lens' PipelineSummary (Prelude.Maybe Prelude.UTCTime)
pipelineSummary_lastExecutionTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PipelineSummary -> f PipelineSummary
pipelineSummary_lastExecutionTime = (PipelineSummary -> Maybe POSIX)
-> (PipelineSummary -> Maybe POSIX -> PipelineSummary)
-> Lens PipelineSummary PipelineSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PipelineSummary' {Maybe POSIX
lastExecutionTime :: Maybe POSIX
$sel:lastExecutionTime:PipelineSummary' :: PipelineSummary -> Maybe POSIX
lastExecutionTime} -> Maybe POSIX
lastExecutionTime) (\s :: PipelineSummary
s@PipelineSummary' {} Maybe POSIX
a -> PipelineSummary
s {$sel:lastExecutionTime:PipelineSummary' :: Maybe POSIX
lastExecutionTime = Maybe POSIX
a} :: PipelineSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> PipelineSummary -> f PipelineSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PipelineSummary
-> f PipelineSummary
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
pipelineSummary_pipelineName :: Lens.Lens' PipelineSummary (Prelude.Maybe Prelude.Text)
pipelineSummary_pipelineName :: (Maybe Text -> f (Maybe Text))
-> PipelineSummary -> f PipelineSummary
pipelineSummary_pipelineName = (PipelineSummary -> Maybe Text)
-> (PipelineSummary -> Maybe Text -> PipelineSummary)
-> Lens PipelineSummary PipelineSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PipelineSummary' {Maybe Text
pipelineName :: Maybe Text
$sel:pipelineName:PipelineSummary' :: PipelineSummary -> Maybe Text
pipelineName} -> Maybe Text
pipelineName) (\s :: PipelineSummary
s@PipelineSummary' {} Maybe Text
a -> PipelineSummary
s {$sel:pipelineName:PipelineSummary' :: Maybe Text
pipelineName = Maybe Text
a} :: PipelineSummary)
pipelineSummary_lastModifiedTime :: Lens.Lens' PipelineSummary (Prelude.Maybe Prelude.UTCTime)
pipelineSummary_lastModifiedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> PipelineSummary -> f PipelineSummary
pipelineSummary_lastModifiedTime = (PipelineSummary -> Maybe POSIX)
-> (PipelineSummary -> Maybe POSIX -> PipelineSummary)
-> Lens PipelineSummary PipelineSummary (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PipelineSummary' {Maybe POSIX
lastModifiedTime :: Maybe POSIX
$sel:lastModifiedTime:PipelineSummary' :: PipelineSummary -> Maybe POSIX
lastModifiedTime} -> Maybe POSIX
lastModifiedTime) (\s :: PipelineSummary
s@PipelineSummary' {} Maybe POSIX
a -> PipelineSummary
s {$sel:lastModifiedTime:PipelineSummary' :: Maybe POSIX
lastModifiedTime = Maybe POSIX
a} :: PipelineSummary) ((Maybe POSIX -> f (Maybe POSIX))
-> PipelineSummary -> f PipelineSummary)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> PipelineSummary
-> f PipelineSummary
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
pipelineSummary_pipelineDescription :: Lens.Lens' PipelineSummary (Prelude.Maybe Prelude.Text)
pipelineSummary_pipelineDescription :: (Maybe Text -> f (Maybe Text))
-> PipelineSummary -> f PipelineSummary
pipelineSummary_pipelineDescription = (PipelineSummary -> Maybe Text)
-> (PipelineSummary -> Maybe Text -> PipelineSummary)
-> Lens PipelineSummary PipelineSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PipelineSummary' {Maybe Text
pipelineDescription :: Maybe Text
$sel:pipelineDescription:PipelineSummary' :: PipelineSummary -> Maybe Text
pipelineDescription} -> Maybe Text
pipelineDescription) (\s :: PipelineSummary
s@PipelineSummary' {} Maybe Text
a -> PipelineSummary
s {$sel:pipelineDescription:PipelineSummary' :: Maybe Text
pipelineDescription = Maybe Text
a} :: PipelineSummary)
pipelineSummary_pipelineArn :: Lens.Lens' PipelineSummary (Prelude.Maybe Prelude.Text)
pipelineSummary_pipelineArn :: (Maybe Text -> f (Maybe Text))
-> PipelineSummary -> f PipelineSummary
pipelineSummary_pipelineArn = (PipelineSummary -> Maybe Text)
-> (PipelineSummary -> Maybe Text -> PipelineSummary)
-> Lens PipelineSummary PipelineSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PipelineSummary' {Maybe Text
pipelineArn :: Maybe Text
$sel:pipelineArn:PipelineSummary' :: PipelineSummary -> Maybe Text
pipelineArn} -> Maybe Text
pipelineArn) (\s :: PipelineSummary
s@PipelineSummary' {} Maybe Text
a -> PipelineSummary
s {$sel:pipelineArn:PipelineSummary' :: Maybe Text
pipelineArn = Maybe Text
a} :: PipelineSummary)
pipelineSummary_roleArn :: Lens.Lens' PipelineSummary (Prelude.Maybe Prelude.Text)
pipelineSummary_roleArn :: (Maybe Text -> f (Maybe Text))
-> PipelineSummary -> f PipelineSummary
pipelineSummary_roleArn = (PipelineSummary -> Maybe Text)
-> (PipelineSummary -> Maybe Text -> PipelineSummary)
-> Lens PipelineSummary PipelineSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PipelineSummary' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:PipelineSummary' :: PipelineSummary -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: PipelineSummary
s@PipelineSummary' {} Maybe Text
a -> PipelineSummary
s {$sel:roleArn:PipelineSummary' :: Maybe Text
roleArn = Maybe Text
a} :: PipelineSummary)
instance Core.FromJSON PipelineSummary where
parseJSON :: Value -> Parser PipelineSummary
parseJSON =
String
-> (Object -> Parser PipelineSummary)
-> Value
-> Parser PipelineSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"PipelineSummary"
( \Object
x ->
Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> PipelineSummary
PipelineSummary'
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> PipelineSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> PipelineSummary)
forall (f :: * -> *) a b. Functor 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
"CreationTime")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> PipelineSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> PipelineSummary)
forall (f :: * -> *) a b. Applicative f => 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
"PipelineDisplayName")
Parser
(Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> PipelineSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> PipelineSummary)
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
"LastExecutionTime")
Parser
(Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> PipelineSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe POSIX
-> Maybe Text -> Maybe Text -> Maybe Text -> PipelineSummary)
forall (f :: * -> *) a b. Applicative f => 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
"PipelineName")
Parser
(Maybe POSIX
-> Maybe Text -> Maybe Text -> Maybe Text -> PipelineSummary)
-> Parser (Maybe POSIX)
-> Parser
(Maybe Text -> Maybe Text -> Maybe Text -> PipelineSummary)
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 Text -> Maybe Text -> Maybe Text -> PipelineSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> PipelineSummary)
forall (f :: * -> *) a b. Applicative f => 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
"PipelineDescription")
Parser (Maybe Text -> Maybe Text -> PipelineSummary)
-> Parser (Maybe Text) -> Parser (Maybe Text -> PipelineSummary)
forall (f :: * -> *) a b. Applicative f => 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
"PipelineArn")
Parser (Maybe Text -> PipelineSummary)
-> Parser (Maybe Text) -> Parser PipelineSummary
forall (f :: * -> *) a b. Applicative f => 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
"RoleArn")
)
instance Prelude.Hashable PipelineSummary
instance Prelude.NFData PipelineSummary