{-# 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.Proton.Types.ServicePipeline where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Proton.Types.DeploymentStatus
data ServicePipeline = ServicePipeline'
{
ServicePipeline -> Maybe (Sensitive Text)
deploymentStatusMessage :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ServicePipeline -> Maybe (Sensitive Text)
spec :: Prelude.Maybe (Core.Sensitive Prelude.Text),
ServicePipeline -> Text
arn :: Prelude.Text,
ServicePipeline -> POSIX
createdAt :: Core.POSIX,
ServicePipeline -> DeploymentStatus
deploymentStatus :: DeploymentStatus,
ServicePipeline -> POSIX
lastDeploymentAttemptedAt :: Core.POSIX,
ServicePipeline -> POSIX
lastDeploymentSucceededAt :: Core.POSIX,
ServicePipeline -> Text
templateMajorVersion :: Prelude.Text,
ServicePipeline -> Text
templateMinorVersion :: Prelude.Text,
ServicePipeline -> Text
templateName :: Prelude.Text
}
deriving (ServicePipeline -> ServicePipeline -> Bool
(ServicePipeline -> ServicePipeline -> Bool)
-> (ServicePipeline -> ServicePipeline -> Bool)
-> Eq ServicePipeline
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ServicePipeline -> ServicePipeline -> Bool
$c/= :: ServicePipeline -> ServicePipeline -> Bool
== :: ServicePipeline -> ServicePipeline -> Bool
$c== :: ServicePipeline -> ServicePipeline -> Bool
Prelude.Eq, Int -> ServicePipeline -> ShowS
[ServicePipeline] -> ShowS
ServicePipeline -> String
(Int -> ServicePipeline -> ShowS)
-> (ServicePipeline -> String)
-> ([ServicePipeline] -> ShowS)
-> Show ServicePipeline
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ServicePipeline] -> ShowS
$cshowList :: [ServicePipeline] -> ShowS
show :: ServicePipeline -> String
$cshow :: ServicePipeline -> String
showsPrec :: Int -> ServicePipeline -> ShowS
$cshowsPrec :: Int -> ServicePipeline -> ShowS
Prelude.Show, (forall x. ServicePipeline -> Rep ServicePipeline x)
-> (forall x. Rep ServicePipeline x -> ServicePipeline)
-> Generic ServicePipeline
forall x. Rep ServicePipeline x -> ServicePipeline
forall x. ServicePipeline -> Rep ServicePipeline x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ServicePipeline x -> ServicePipeline
$cfrom :: forall x. ServicePipeline -> Rep ServicePipeline x
Prelude.Generic)
newServicePipeline ::
Prelude.Text ->
Prelude.UTCTime ->
DeploymentStatus ->
Prelude.UTCTime ->
Prelude.UTCTime ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
ServicePipeline
newServicePipeline :: Text
-> UTCTime
-> DeploymentStatus
-> UTCTime
-> UTCTime
-> Text
-> Text
-> Text
-> ServicePipeline
newServicePipeline
Text
pArn_
UTCTime
pCreatedAt_
DeploymentStatus
pDeploymentStatus_
UTCTime
pLastDeploymentAttemptedAt_
UTCTime
pLastDeploymentSucceededAt_
Text
pTemplateMajorVersion_
Text
pTemplateMinorVersion_
Text
pTemplateName_ =
ServicePipeline' :: Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> DeploymentStatus
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> ServicePipeline
ServicePipeline'
{ $sel:deploymentStatusMessage:ServicePipeline' :: Maybe (Sensitive Text)
deploymentStatusMessage =
Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:spec:ServicePipeline' :: Maybe (Sensitive Text)
spec = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:arn:ServicePipeline' :: Text
arn = Text
pArn_,
$sel:createdAt:ServicePipeline' :: POSIX
createdAt = 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
pCreatedAt_,
$sel:deploymentStatus:ServicePipeline' :: DeploymentStatus
deploymentStatus = DeploymentStatus
pDeploymentStatus_,
$sel:lastDeploymentAttemptedAt:ServicePipeline' :: POSIX
lastDeploymentAttemptedAt =
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
pLastDeploymentAttemptedAt_,
$sel:lastDeploymentSucceededAt:ServicePipeline' :: POSIX
lastDeploymentSucceededAt =
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
pLastDeploymentSucceededAt_,
$sel:templateMajorVersion:ServicePipeline' :: Text
templateMajorVersion = Text
pTemplateMajorVersion_,
$sel:templateMinorVersion:ServicePipeline' :: Text
templateMinorVersion = Text
pTemplateMinorVersion_,
$sel:templateName:ServicePipeline' :: Text
templateName = Text
pTemplateName_
}
servicePipeline_deploymentStatusMessage :: Lens.Lens' ServicePipeline (Prelude.Maybe Prelude.Text)
servicePipeline_deploymentStatusMessage :: (Maybe Text -> f (Maybe Text))
-> ServicePipeline -> f ServicePipeline
servicePipeline_deploymentStatusMessage = (ServicePipeline -> Maybe (Sensitive Text))
-> (ServicePipeline -> Maybe (Sensitive Text) -> ServicePipeline)
-> Lens
ServicePipeline
ServicePipeline
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServicePipeline' {Maybe (Sensitive Text)
deploymentStatusMessage :: Maybe (Sensitive Text)
$sel:deploymentStatusMessage:ServicePipeline' :: ServicePipeline -> Maybe (Sensitive Text)
deploymentStatusMessage} -> Maybe (Sensitive Text)
deploymentStatusMessage) (\s :: ServicePipeline
s@ServicePipeline' {} Maybe (Sensitive Text)
a -> ServicePipeline
s {$sel:deploymentStatusMessage:ServicePipeline' :: Maybe (Sensitive Text)
deploymentStatusMessage = Maybe (Sensitive Text)
a} :: ServicePipeline) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ServicePipeline -> f ServicePipeline)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ServicePipeline
-> f ServicePipeline
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
servicePipeline_spec :: Lens.Lens' ServicePipeline (Prelude.Maybe Prelude.Text)
servicePipeline_spec :: (Maybe Text -> f (Maybe Text))
-> ServicePipeline -> f ServicePipeline
servicePipeline_spec = (ServicePipeline -> Maybe (Sensitive Text))
-> (ServicePipeline -> Maybe (Sensitive Text) -> ServicePipeline)
-> Lens
ServicePipeline
ServicePipeline
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServicePipeline' {Maybe (Sensitive Text)
spec :: Maybe (Sensitive Text)
$sel:spec:ServicePipeline' :: ServicePipeline -> Maybe (Sensitive Text)
spec} -> Maybe (Sensitive Text)
spec) (\s :: ServicePipeline
s@ServicePipeline' {} Maybe (Sensitive Text)
a -> ServicePipeline
s {$sel:spec:ServicePipeline' :: Maybe (Sensitive Text)
spec = Maybe (Sensitive Text)
a} :: ServicePipeline) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> ServicePipeline -> f ServicePipeline)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ServicePipeline
-> f ServicePipeline
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso (Sensitive Text) (Sensitive Text) Text Text
-> Iso
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
(Maybe Text)
(Maybe Text)
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 (Sensitive Text) (Sensitive Text) Text Text
forall a. Iso' (Sensitive a) a
Core._Sensitive
servicePipeline_arn :: Lens.Lens' ServicePipeline Prelude.Text
servicePipeline_arn :: (Text -> f Text) -> ServicePipeline -> f ServicePipeline
servicePipeline_arn = (ServicePipeline -> Text)
-> (ServicePipeline -> Text -> ServicePipeline)
-> Lens ServicePipeline ServicePipeline Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServicePipeline' {Text
arn :: Text
$sel:arn:ServicePipeline' :: ServicePipeline -> Text
arn} -> Text
arn) (\s :: ServicePipeline
s@ServicePipeline' {} Text
a -> ServicePipeline
s {$sel:arn:ServicePipeline' :: Text
arn = Text
a} :: ServicePipeline)
servicePipeline_createdAt :: Lens.Lens' ServicePipeline Prelude.UTCTime
servicePipeline_createdAt :: (UTCTime -> f UTCTime) -> ServicePipeline -> f ServicePipeline
servicePipeline_createdAt = (ServicePipeline -> POSIX)
-> (ServicePipeline -> POSIX -> ServicePipeline)
-> Lens ServicePipeline ServicePipeline POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServicePipeline' {POSIX
createdAt :: POSIX
$sel:createdAt:ServicePipeline' :: ServicePipeline -> POSIX
createdAt} -> POSIX
createdAt) (\s :: ServicePipeline
s@ServicePipeline' {} POSIX
a -> ServicePipeline
s {$sel:createdAt:ServicePipeline' :: POSIX
createdAt = POSIX
a} :: ServicePipeline) ((POSIX -> f POSIX) -> ServicePipeline -> f ServicePipeline)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ServicePipeline
-> f ServicePipeline
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
servicePipeline_deploymentStatus :: Lens.Lens' ServicePipeline DeploymentStatus
servicePipeline_deploymentStatus :: (DeploymentStatus -> f DeploymentStatus)
-> ServicePipeline -> f ServicePipeline
servicePipeline_deploymentStatus = (ServicePipeline -> DeploymentStatus)
-> (ServicePipeline -> DeploymentStatus -> ServicePipeline)
-> Lens
ServicePipeline ServicePipeline DeploymentStatus DeploymentStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServicePipeline' {DeploymentStatus
deploymentStatus :: DeploymentStatus
$sel:deploymentStatus:ServicePipeline' :: ServicePipeline -> DeploymentStatus
deploymentStatus} -> DeploymentStatus
deploymentStatus) (\s :: ServicePipeline
s@ServicePipeline' {} DeploymentStatus
a -> ServicePipeline
s {$sel:deploymentStatus:ServicePipeline' :: DeploymentStatus
deploymentStatus = DeploymentStatus
a} :: ServicePipeline)
servicePipeline_lastDeploymentAttemptedAt :: Lens.Lens' ServicePipeline Prelude.UTCTime
servicePipeline_lastDeploymentAttemptedAt :: (UTCTime -> f UTCTime) -> ServicePipeline -> f ServicePipeline
servicePipeline_lastDeploymentAttemptedAt = (ServicePipeline -> POSIX)
-> (ServicePipeline -> POSIX -> ServicePipeline)
-> Lens ServicePipeline ServicePipeline POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServicePipeline' {POSIX
lastDeploymentAttemptedAt :: POSIX
$sel:lastDeploymentAttemptedAt:ServicePipeline' :: ServicePipeline -> POSIX
lastDeploymentAttemptedAt} -> POSIX
lastDeploymentAttemptedAt) (\s :: ServicePipeline
s@ServicePipeline' {} POSIX
a -> ServicePipeline
s {$sel:lastDeploymentAttemptedAt:ServicePipeline' :: POSIX
lastDeploymentAttemptedAt = POSIX
a} :: ServicePipeline) ((POSIX -> f POSIX) -> ServicePipeline -> f ServicePipeline)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ServicePipeline
-> f ServicePipeline
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
servicePipeline_lastDeploymentSucceededAt :: Lens.Lens' ServicePipeline Prelude.UTCTime
servicePipeline_lastDeploymentSucceededAt :: (UTCTime -> f UTCTime) -> ServicePipeline -> f ServicePipeline
servicePipeline_lastDeploymentSucceededAt = (ServicePipeline -> POSIX)
-> (ServicePipeline -> POSIX -> ServicePipeline)
-> Lens ServicePipeline ServicePipeline POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServicePipeline' {POSIX
lastDeploymentSucceededAt :: POSIX
$sel:lastDeploymentSucceededAt:ServicePipeline' :: ServicePipeline -> POSIX
lastDeploymentSucceededAt} -> POSIX
lastDeploymentSucceededAt) (\s :: ServicePipeline
s@ServicePipeline' {} POSIX
a -> ServicePipeline
s {$sel:lastDeploymentSucceededAt:ServicePipeline' :: POSIX
lastDeploymentSucceededAt = POSIX
a} :: ServicePipeline) ((POSIX -> f POSIX) -> ServicePipeline -> f ServicePipeline)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ServicePipeline
-> f ServicePipeline
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
servicePipeline_templateMajorVersion :: Lens.Lens' ServicePipeline Prelude.Text
servicePipeline_templateMajorVersion :: (Text -> f Text) -> ServicePipeline -> f ServicePipeline
servicePipeline_templateMajorVersion = (ServicePipeline -> Text)
-> (ServicePipeline -> Text -> ServicePipeline)
-> Lens ServicePipeline ServicePipeline Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServicePipeline' {Text
templateMajorVersion :: Text
$sel:templateMajorVersion:ServicePipeline' :: ServicePipeline -> Text
templateMajorVersion} -> Text
templateMajorVersion) (\s :: ServicePipeline
s@ServicePipeline' {} Text
a -> ServicePipeline
s {$sel:templateMajorVersion:ServicePipeline' :: Text
templateMajorVersion = Text
a} :: ServicePipeline)
servicePipeline_templateMinorVersion :: Lens.Lens' ServicePipeline Prelude.Text
servicePipeline_templateMinorVersion :: (Text -> f Text) -> ServicePipeline -> f ServicePipeline
servicePipeline_templateMinorVersion = (ServicePipeline -> Text)
-> (ServicePipeline -> Text -> ServicePipeline)
-> Lens ServicePipeline ServicePipeline Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServicePipeline' {Text
templateMinorVersion :: Text
$sel:templateMinorVersion:ServicePipeline' :: ServicePipeline -> Text
templateMinorVersion} -> Text
templateMinorVersion) (\s :: ServicePipeline
s@ServicePipeline' {} Text
a -> ServicePipeline
s {$sel:templateMinorVersion:ServicePipeline' :: Text
templateMinorVersion = Text
a} :: ServicePipeline)
servicePipeline_templateName :: Lens.Lens' ServicePipeline Prelude.Text
servicePipeline_templateName :: (Text -> f Text) -> ServicePipeline -> f ServicePipeline
servicePipeline_templateName = (ServicePipeline -> Text)
-> (ServicePipeline -> Text -> ServicePipeline)
-> Lens ServicePipeline ServicePipeline Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServicePipeline' {Text
templateName :: Text
$sel:templateName:ServicePipeline' :: ServicePipeline -> Text
templateName} -> Text
templateName) (\s :: ServicePipeline
s@ServicePipeline' {} Text
a -> ServicePipeline
s {$sel:templateName:ServicePipeline' :: Text
templateName = Text
a} :: ServicePipeline)
instance Core.FromJSON ServicePipeline where
parseJSON :: Value -> Parser ServicePipeline
parseJSON =
String
-> (Object -> Parser ServicePipeline)
-> Value
-> Parser ServicePipeline
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ServicePipeline"
( \Object
x ->
Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> DeploymentStatus
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> ServicePipeline
ServicePipeline'
(Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> DeploymentStatus
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> ServicePipeline)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Maybe (Sensitive Text)
-> Text
-> POSIX
-> DeploymentStatus
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> ServicePipeline)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"deploymentStatusMessage")
Parser
(Maybe (Sensitive Text)
-> Text
-> POSIX
-> DeploymentStatus
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> ServicePipeline)
-> Parser (Maybe (Sensitive Text))
-> Parser
(Text
-> POSIX
-> DeploymentStatus
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> ServicePipeline)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Sensitive Text))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"spec")
Parser
(Text
-> POSIX
-> DeploymentStatus
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> ServicePipeline)
-> Parser Text
-> Parser
(POSIX
-> DeploymentStatus
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> ServicePipeline)
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
"arn")
Parser
(POSIX
-> DeploymentStatus
-> POSIX
-> POSIX
-> Text
-> Text
-> Text
-> ServicePipeline)
-> Parser POSIX
-> Parser
(DeploymentStatus
-> POSIX -> POSIX -> Text -> Text -> Text -> ServicePipeline)
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
"createdAt")
Parser
(DeploymentStatus
-> POSIX -> POSIX -> Text -> Text -> Text -> ServicePipeline)
-> Parser DeploymentStatus
-> Parser
(POSIX -> POSIX -> Text -> Text -> Text -> ServicePipeline)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser DeploymentStatus
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"deploymentStatus")
Parser (POSIX -> POSIX -> Text -> Text -> Text -> ServicePipeline)
-> Parser POSIX
-> Parser (POSIX -> Text -> Text -> Text -> ServicePipeline)
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
"lastDeploymentAttemptedAt")
Parser (POSIX -> Text -> Text -> Text -> ServicePipeline)
-> Parser POSIX -> Parser (Text -> Text -> Text -> ServicePipeline)
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
"lastDeploymentSucceededAt")
Parser (Text -> Text -> Text -> ServicePipeline)
-> Parser Text -> Parser (Text -> Text -> ServicePipeline)
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
"templateMajorVersion")
Parser (Text -> Text -> ServicePipeline)
-> Parser Text -> Parser (Text -> ServicePipeline)
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
"templateMinorVersion")
Parser (Text -> ServicePipeline)
-> Parser Text -> Parser ServicePipeline
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
"templateName")
)
instance Prelude.Hashable ServicePipeline
instance Prelude.NFData ServicePipeline