{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Proton.Types.ServicePipeline
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | The service pipeline detail data.
--
-- /See:/ 'newServicePipeline' smart constructor.
data ServicePipeline = ServicePipeline'
  { -- | A service pipeline deployment status message.
    ServicePipeline -> Maybe (Sensitive Text)
deploymentStatusMessage :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The service spec that was used to create the service pipeline.
    ServicePipeline -> Maybe (Sensitive Text)
spec :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The Amazon Resource Name (ARN) of the service pipeline.
    ServicePipeline -> Text
arn :: Prelude.Text,
    -- | The time when the service pipeline was created.
    ServicePipeline -> POSIX
createdAt :: Core.POSIX,
    -- | The deployment status of the service pipeline.
    ServicePipeline -> DeploymentStatus
deploymentStatus :: DeploymentStatus,
    -- | The time when a deployment of the service pipeline was last attempted.
    ServicePipeline -> POSIX
lastDeploymentAttemptedAt :: Core.POSIX,
    -- | The time when the service pipeline was last deployed successfully.
    ServicePipeline -> POSIX
lastDeploymentSucceededAt :: Core.POSIX,
    -- | The ID of the major version of the service template that was used to
    -- create the service pipeline.
    ServicePipeline -> Text
templateMajorVersion :: Prelude.Text,
    -- | The ID of the minor version of the service template that was used to
    -- create the service pipeline.
    ServicePipeline -> Text
templateMinorVersion :: Prelude.Text,
    -- | The name of the service template that was used to create the service
    -- pipeline.
    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)

-- |
-- Create a value of 'ServicePipeline' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'deploymentStatusMessage', 'servicePipeline_deploymentStatusMessage' - A service pipeline deployment status message.
--
-- 'spec', 'servicePipeline_spec' - The service spec that was used to create the service pipeline.
--
-- 'arn', 'servicePipeline_arn' - The Amazon Resource Name (ARN) of the service pipeline.
--
-- 'createdAt', 'servicePipeline_createdAt' - The time when the service pipeline was created.
--
-- 'deploymentStatus', 'servicePipeline_deploymentStatus' - The deployment status of the service pipeline.
--
-- 'lastDeploymentAttemptedAt', 'servicePipeline_lastDeploymentAttemptedAt' - The time when a deployment of the service pipeline was last attempted.
--
-- 'lastDeploymentSucceededAt', 'servicePipeline_lastDeploymentSucceededAt' - The time when the service pipeline was last deployed successfully.
--
-- 'templateMajorVersion', 'servicePipeline_templateMajorVersion' - The ID of the major version of the service template that was used to
-- create the service pipeline.
--
-- 'templateMinorVersion', 'servicePipeline_templateMinorVersion' - The ID of the minor version of the service template that was used to
-- create the service pipeline.
--
-- 'templateName', 'servicePipeline_templateName' - The name of the service template that was used to create the service
-- pipeline.
newServicePipeline ::
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'deploymentStatus'
  DeploymentStatus ->
  -- | 'lastDeploymentAttemptedAt'
  Prelude.UTCTime ->
  -- | 'lastDeploymentSucceededAt'
  Prelude.UTCTime ->
  -- | 'templateMajorVersion'
  Prelude.Text ->
  -- | 'templateMinorVersion'
  Prelude.Text ->
  -- | 'templateName'
  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_
      }

-- | A service pipeline deployment status message.
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

-- | The service spec that was used to create the service pipeline.
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

-- | The Amazon Resource Name (ARN) of the service pipeline.
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)

-- | The time when the service pipeline was created.
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

-- | The deployment status of the service pipeline.
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)

-- | The time when a deployment of the service pipeline was last attempted.
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

-- | The time when the service pipeline was last deployed successfully.
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

-- | The ID of the major version of the service template that was used to
-- create the service pipeline.
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)

-- | The ID of the minor version of the service template that was used to
-- create the service pipeline.
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)

-- | The name of the service template that was used to create the service
-- pipeline.
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