{-# 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.ServiceTemplateVersionSummary
-- 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.ServiceTemplateVersionSummary where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Proton.Types.TemplateVersionStatus

-- | A summary of the service template version detail data.
--
-- /See:/ 'newServiceTemplateVersionSummary' smart constructor.
data ServiceTemplateVersionSummary = ServiceTemplateVersionSummary'
  { -- | A service template minor version status message.
    ServiceTemplateVersionSummary -> Maybe (Sensitive Text)
statusMessage :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The ID of the recommended minor version of the service template.
    ServiceTemplateVersionSummary -> Maybe Text
recommendedMinorVersion :: Prelude.Maybe Prelude.Text,
    -- | A description of the version of a service template.
    ServiceTemplateVersionSummary -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The Amazon Resource Name (ARN) of the version of a service template.
    ServiceTemplateVersionSummary -> Text
arn :: Prelude.Text,
    -- | The time when the version of a service template was created.
    ServiceTemplateVersionSummary -> POSIX
createdAt :: Core.POSIX,
    -- | The time when the version of a service template was last modified.
    ServiceTemplateVersionSummary -> POSIX
lastModifiedAt :: Core.POSIX,
    -- | The ID of the latest major version that\'s associated with the version
    -- of a service template.
    ServiceTemplateVersionSummary -> Text
majorVersion :: Prelude.Text,
    -- | The ID of the minor version of a service template.
    ServiceTemplateVersionSummary -> Text
minorVersion :: Prelude.Text,
    -- | The service template minor version status.
    ServiceTemplateVersionSummary -> TemplateVersionStatus
status :: TemplateVersionStatus,
    -- | The name of the service template.
    ServiceTemplateVersionSummary -> Text
templateName :: Prelude.Text
  }
  deriving (ServiceTemplateVersionSummary
-> ServiceTemplateVersionSummary -> Bool
(ServiceTemplateVersionSummary
 -> ServiceTemplateVersionSummary -> Bool)
-> (ServiceTemplateVersionSummary
    -> ServiceTemplateVersionSummary -> Bool)
-> Eq ServiceTemplateVersionSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ServiceTemplateVersionSummary
-> ServiceTemplateVersionSummary -> Bool
$c/= :: ServiceTemplateVersionSummary
-> ServiceTemplateVersionSummary -> Bool
== :: ServiceTemplateVersionSummary
-> ServiceTemplateVersionSummary -> Bool
$c== :: ServiceTemplateVersionSummary
-> ServiceTemplateVersionSummary -> Bool
Prelude.Eq, Int -> ServiceTemplateVersionSummary -> ShowS
[ServiceTemplateVersionSummary] -> ShowS
ServiceTemplateVersionSummary -> String
(Int -> ServiceTemplateVersionSummary -> ShowS)
-> (ServiceTemplateVersionSummary -> String)
-> ([ServiceTemplateVersionSummary] -> ShowS)
-> Show ServiceTemplateVersionSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ServiceTemplateVersionSummary] -> ShowS
$cshowList :: [ServiceTemplateVersionSummary] -> ShowS
show :: ServiceTemplateVersionSummary -> String
$cshow :: ServiceTemplateVersionSummary -> String
showsPrec :: Int -> ServiceTemplateVersionSummary -> ShowS
$cshowsPrec :: Int -> ServiceTemplateVersionSummary -> ShowS
Prelude.Show, (forall x.
 ServiceTemplateVersionSummary
 -> Rep ServiceTemplateVersionSummary x)
-> (forall x.
    Rep ServiceTemplateVersionSummary x
    -> ServiceTemplateVersionSummary)
-> Generic ServiceTemplateVersionSummary
forall x.
Rep ServiceTemplateVersionSummary x
-> ServiceTemplateVersionSummary
forall x.
ServiceTemplateVersionSummary
-> Rep ServiceTemplateVersionSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ServiceTemplateVersionSummary x
-> ServiceTemplateVersionSummary
$cfrom :: forall x.
ServiceTemplateVersionSummary
-> Rep ServiceTemplateVersionSummary x
Prelude.Generic)

-- |
-- Create a value of 'ServiceTemplateVersionSummary' 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:
--
-- 'statusMessage', 'serviceTemplateVersionSummary_statusMessage' - A service template minor version status message.
--
-- 'recommendedMinorVersion', 'serviceTemplateVersionSummary_recommendedMinorVersion' - The ID of the recommended minor version of the service template.
--
-- 'description', 'serviceTemplateVersionSummary_description' - A description of the version of a service template.
--
-- 'arn', 'serviceTemplateVersionSummary_arn' - The Amazon Resource Name (ARN) of the version of a service template.
--
-- 'createdAt', 'serviceTemplateVersionSummary_createdAt' - The time when the version of a service template was created.
--
-- 'lastModifiedAt', 'serviceTemplateVersionSummary_lastModifiedAt' - The time when the version of a service template was last modified.
--
-- 'majorVersion', 'serviceTemplateVersionSummary_majorVersion' - The ID of the latest major version that\'s associated with the version
-- of a service template.
--
-- 'minorVersion', 'serviceTemplateVersionSummary_minorVersion' - The ID of the minor version of a service template.
--
-- 'status', 'serviceTemplateVersionSummary_status' - The service template minor version status.
--
-- 'templateName', 'serviceTemplateVersionSummary_templateName' - The name of the service template.
newServiceTemplateVersionSummary ::
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'lastModifiedAt'
  Prelude.UTCTime ->
  -- | 'majorVersion'
  Prelude.Text ->
  -- | 'minorVersion'
  Prelude.Text ->
  -- | 'status'
  TemplateVersionStatus ->
  -- | 'templateName'
  Prelude.Text ->
  ServiceTemplateVersionSummary
newServiceTemplateVersionSummary :: Text
-> UTCTime
-> UTCTime
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> ServiceTemplateVersionSummary
newServiceTemplateVersionSummary
  Text
pArn_
  UTCTime
pCreatedAt_
  UTCTime
pLastModifiedAt_
  Text
pMajorVersion_
  Text
pMinorVersion_
  TemplateVersionStatus
pStatus_
  Text
pTemplateName_ =
    ServiceTemplateVersionSummary' :: Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> ServiceTemplateVersionSummary
ServiceTemplateVersionSummary'
      { $sel:statusMessage:ServiceTemplateVersionSummary' :: Maybe (Sensitive Text)
statusMessage =
          Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:recommendedMinorVersion:ServiceTemplateVersionSummary' :: Maybe Text
recommendedMinorVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:description:ServiceTemplateVersionSummary' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:arn:ServiceTemplateVersionSummary' :: Text
arn = Text
pArn_,
        $sel:createdAt:ServiceTemplateVersionSummary' :: 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:lastModifiedAt:ServiceTemplateVersionSummary' :: POSIX
lastModifiedAt =
          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
pLastModifiedAt_,
        $sel:majorVersion:ServiceTemplateVersionSummary' :: Text
majorVersion = Text
pMajorVersion_,
        $sel:minorVersion:ServiceTemplateVersionSummary' :: Text
minorVersion = Text
pMinorVersion_,
        $sel:status:ServiceTemplateVersionSummary' :: TemplateVersionStatus
status = TemplateVersionStatus
pStatus_,
        $sel:templateName:ServiceTemplateVersionSummary' :: Text
templateName = Text
pTemplateName_
      }

-- | A service template minor version status message.
serviceTemplateVersionSummary_statusMessage :: Lens.Lens' ServiceTemplateVersionSummary (Prelude.Maybe Prelude.Text)
serviceTemplateVersionSummary_statusMessage :: (Maybe Text -> f (Maybe Text))
-> ServiceTemplateVersionSummary -> f ServiceTemplateVersionSummary
serviceTemplateVersionSummary_statusMessage = (ServiceTemplateVersionSummary -> Maybe (Sensitive Text))
-> (ServiceTemplateVersionSummary
    -> Maybe (Sensitive Text) -> ServiceTemplateVersionSummary)
-> Lens
     ServiceTemplateVersionSummary
     ServiceTemplateVersionSummary
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateVersionSummary' {Maybe (Sensitive Text)
statusMessage :: Maybe (Sensitive Text)
$sel:statusMessage:ServiceTemplateVersionSummary' :: ServiceTemplateVersionSummary -> Maybe (Sensitive Text)
statusMessage} -> Maybe (Sensitive Text)
statusMessage) (\s :: ServiceTemplateVersionSummary
s@ServiceTemplateVersionSummary' {} Maybe (Sensitive Text)
a -> ServiceTemplateVersionSummary
s {$sel:statusMessage:ServiceTemplateVersionSummary' :: Maybe (Sensitive Text)
statusMessage = Maybe (Sensitive Text)
a} :: ServiceTemplateVersionSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> ServiceTemplateVersionSummary
 -> f ServiceTemplateVersionSummary)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ServiceTemplateVersionSummary
-> f ServiceTemplateVersionSummary
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 ID of the recommended minor version of the service template.
serviceTemplateVersionSummary_recommendedMinorVersion :: Lens.Lens' ServiceTemplateVersionSummary (Prelude.Maybe Prelude.Text)
serviceTemplateVersionSummary_recommendedMinorVersion :: (Maybe Text -> f (Maybe Text))
-> ServiceTemplateVersionSummary -> f ServiceTemplateVersionSummary
serviceTemplateVersionSummary_recommendedMinorVersion = (ServiceTemplateVersionSummary -> Maybe Text)
-> (ServiceTemplateVersionSummary
    -> Maybe Text -> ServiceTemplateVersionSummary)
-> Lens
     ServiceTemplateVersionSummary
     ServiceTemplateVersionSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateVersionSummary' {Maybe Text
recommendedMinorVersion :: Maybe Text
$sel:recommendedMinorVersion:ServiceTemplateVersionSummary' :: ServiceTemplateVersionSummary -> Maybe Text
recommendedMinorVersion} -> Maybe Text
recommendedMinorVersion) (\s :: ServiceTemplateVersionSummary
s@ServiceTemplateVersionSummary' {} Maybe Text
a -> ServiceTemplateVersionSummary
s {$sel:recommendedMinorVersion:ServiceTemplateVersionSummary' :: Maybe Text
recommendedMinorVersion = Maybe Text
a} :: ServiceTemplateVersionSummary)

-- | A description of the version of a service template.
serviceTemplateVersionSummary_description :: Lens.Lens' ServiceTemplateVersionSummary (Prelude.Maybe Prelude.Text)
serviceTemplateVersionSummary_description :: (Maybe Text -> f (Maybe Text))
-> ServiceTemplateVersionSummary -> f ServiceTemplateVersionSummary
serviceTemplateVersionSummary_description = (ServiceTemplateVersionSummary -> Maybe (Sensitive Text))
-> (ServiceTemplateVersionSummary
    -> Maybe (Sensitive Text) -> ServiceTemplateVersionSummary)
-> Lens
     ServiceTemplateVersionSummary
     ServiceTemplateVersionSummary
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateVersionSummary' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:ServiceTemplateVersionSummary' :: ServiceTemplateVersionSummary -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: ServiceTemplateVersionSummary
s@ServiceTemplateVersionSummary' {} Maybe (Sensitive Text)
a -> ServiceTemplateVersionSummary
s {$sel:description:ServiceTemplateVersionSummary' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: ServiceTemplateVersionSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> ServiceTemplateVersionSummary
 -> f ServiceTemplateVersionSummary)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> ServiceTemplateVersionSummary
-> f ServiceTemplateVersionSummary
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 version of a service template.
serviceTemplateVersionSummary_arn :: Lens.Lens' ServiceTemplateVersionSummary Prelude.Text
serviceTemplateVersionSummary_arn :: (Text -> f Text)
-> ServiceTemplateVersionSummary -> f ServiceTemplateVersionSummary
serviceTemplateVersionSummary_arn = (ServiceTemplateVersionSummary -> Text)
-> (ServiceTemplateVersionSummary
    -> Text -> ServiceTemplateVersionSummary)
-> Lens
     ServiceTemplateVersionSummary
     ServiceTemplateVersionSummary
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateVersionSummary' {Text
arn :: Text
$sel:arn:ServiceTemplateVersionSummary' :: ServiceTemplateVersionSummary -> Text
arn} -> Text
arn) (\s :: ServiceTemplateVersionSummary
s@ServiceTemplateVersionSummary' {} Text
a -> ServiceTemplateVersionSummary
s {$sel:arn:ServiceTemplateVersionSummary' :: Text
arn = Text
a} :: ServiceTemplateVersionSummary)

-- | The time when the version of a service template was created.
serviceTemplateVersionSummary_createdAt :: Lens.Lens' ServiceTemplateVersionSummary Prelude.UTCTime
serviceTemplateVersionSummary_createdAt :: (UTCTime -> f UTCTime)
-> ServiceTemplateVersionSummary -> f ServiceTemplateVersionSummary
serviceTemplateVersionSummary_createdAt = (ServiceTemplateVersionSummary -> POSIX)
-> (ServiceTemplateVersionSummary
    -> POSIX -> ServiceTemplateVersionSummary)
-> Lens
     ServiceTemplateVersionSummary
     ServiceTemplateVersionSummary
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateVersionSummary' {POSIX
createdAt :: POSIX
$sel:createdAt:ServiceTemplateVersionSummary' :: ServiceTemplateVersionSummary -> POSIX
createdAt} -> POSIX
createdAt) (\s :: ServiceTemplateVersionSummary
s@ServiceTemplateVersionSummary' {} POSIX
a -> ServiceTemplateVersionSummary
s {$sel:createdAt:ServiceTemplateVersionSummary' :: POSIX
createdAt = POSIX
a} :: ServiceTemplateVersionSummary) ((POSIX -> f POSIX)
 -> ServiceTemplateVersionSummary
 -> f ServiceTemplateVersionSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ServiceTemplateVersionSummary
-> f ServiceTemplateVersionSummary
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 version of a service template was last modified.
serviceTemplateVersionSummary_lastModifiedAt :: Lens.Lens' ServiceTemplateVersionSummary Prelude.UTCTime
serviceTemplateVersionSummary_lastModifiedAt :: (UTCTime -> f UTCTime)
-> ServiceTemplateVersionSummary -> f ServiceTemplateVersionSummary
serviceTemplateVersionSummary_lastModifiedAt = (ServiceTemplateVersionSummary -> POSIX)
-> (ServiceTemplateVersionSummary
    -> POSIX -> ServiceTemplateVersionSummary)
-> Lens
     ServiceTemplateVersionSummary
     ServiceTemplateVersionSummary
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateVersionSummary' {POSIX
lastModifiedAt :: POSIX
$sel:lastModifiedAt:ServiceTemplateVersionSummary' :: ServiceTemplateVersionSummary -> POSIX
lastModifiedAt} -> POSIX
lastModifiedAt) (\s :: ServiceTemplateVersionSummary
s@ServiceTemplateVersionSummary' {} POSIX
a -> ServiceTemplateVersionSummary
s {$sel:lastModifiedAt:ServiceTemplateVersionSummary' :: POSIX
lastModifiedAt = POSIX
a} :: ServiceTemplateVersionSummary) ((POSIX -> f POSIX)
 -> ServiceTemplateVersionSummary
 -> f ServiceTemplateVersionSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> ServiceTemplateVersionSummary
-> f ServiceTemplateVersionSummary
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 latest major version that\'s associated with the version
-- of a service template.
serviceTemplateVersionSummary_majorVersion :: Lens.Lens' ServiceTemplateVersionSummary Prelude.Text
serviceTemplateVersionSummary_majorVersion :: (Text -> f Text)
-> ServiceTemplateVersionSummary -> f ServiceTemplateVersionSummary
serviceTemplateVersionSummary_majorVersion = (ServiceTemplateVersionSummary -> Text)
-> (ServiceTemplateVersionSummary
    -> Text -> ServiceTemplateVersionSummary)
-> Lens
     ServiceTemplateVersionSummary
     ServiceTemplateVersionSummary
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateVersionSummary' {Text
majorVersion :: Text
$sel:majorVersion:ServiceTemplateVersionSummary' :: ServiceTemplateVersionSummary -> Text
majorVersion} -> Text
majorVersion) (\s :: ServiceTemplateVersionSummary
s@ServiceTemplateVersionSummary' {} Text
a -> ServiceTemplateVersionSummary
s {$sel:majorVersion:ServiceTemplateVersionSummary' :: Text
majorVersion = Text
a} :: ServiceTemplateVersionSummary)

-- | The ID of the minor version of a service template.
serviceTemplateVersionSummary_minorVersion :: Lens.Lens' ServiceTemplateVersionSummary Prelude.Text
serviceTemplateVersionSummary_minorVersion :: (Text -> f Text)
-> ServiceTemplateVersionSummary -> f ServiceTemplateVersionSummary
serviceTemplateVersionSummary_minorVersion = (ServiceTemplateVersionSummary -> Text)
-> (ServiceTemplateVersionSummary
    -> Text -> ServiceTemplateVersionSummary)
-> Lens
     ServiceTemplateVersionSummary
     ServiceTemplateVersionSummary
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateVersionSummary' {Text
minorVersion :: Text
$sel:minorVersion:ServiceTemplateVersionSummary' :: ServiceTemplateVersionSummary -> Text
minorVersion} -> Text
minorVersion) (\s :: ServiceTemplateVersionSummary
s@ServiceTemplateVersionSummary' {} Text
a -> ServiceTemplateVersionSummary
s {$sel:minorVersion:ServiceTemplateVersionSummary' :: Text
minorVersion = Text
a} :: ServiceTemplateVersionSummary)

-- | The service template minor version status.
serviceTemplateVersionSummary_status :: Lens.Lens' ServiceTemplateVersionSummary TemplateVersionStatus
serviceTemplateVersionSummary_status :: (TemplateVersionStatus -> f TemplateVersionStatus)
-> ServiceTemplateVersionSummary -> f ServiceTemplateVersionSummary
serviceTemplateVersionSummary_status = (ServiceTemplateVersionSummary -> TemplateVersionStatus)
-> (ServiceTemplateVersionSummary
    -> TemplateVersionStatus -> ServiceTemplateVersionSummary)
-> Lens
     ServiceTemplateVersionSummary
     ServiceTemplateVersionSummary
     TemplateVersionStatus
     TemplateVersionStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateVersionSummary' {TemplateVersionStatus
status :: TemplateVersionStatus
$sel:status:ServiceTemplateVersionSummary' :: ServiceTemplateVersionSummary -> TemplateVersionStatus
status} -> TemplateVersionStatus
status) (\s :: ServiceTemplateVersionSummary
s@ServiceTemplateVersionSummary' {} TemplateVersionStatus
a -> ServiceTemplateVersionSummary
s {$sel:status:ServiceTemplateVersionSummary' :: TemplateVersionStatus
status = TemplateVersionStatus
a} :: ServiceTemplateVersionSummary)

-- | The name of the service template.
serviceTemplateVersionSummary_templateName :: Lens.Lens' ServiceTemplateVersionSummary Prelude.Text
serviceTemplateVersionSummary_templateName :: (Text -> f Text)
-> ServiceTemplateVersionSummary -> f ServiceTemplateVersionSummary
serviceTemplateVersionSummary_templateName = (ServiceTemplateVersionSummary -> Text)
-> (ServiceTemplateVersionSummary
    -> Text -> ServiceTemplateVersionSummary)
-> Lens
     ServiceTemplateVersionSummary
     ServiceTemplateVersionSummary
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceTemplateVersionSummary' {Text
templateName :: Text
$sel:templateName:ServiceTemplateVersionSummary' :: ServiceTemplateVersionSummary -> Text
templateName} -> Text
templateName) (\s :: ServiceTemplateVersionSummary
s@ServiceTemplateVersionSummary' {} Text
a -> ServiceTemplateVersionSummary
s {$sel:templateName:ServiceTemplateVersionSummary' :: Text
templateName = Text
a} :: ServiceTemplateVersionSummary)

instance Core.FromJSON ServiceTemplateVersionSummary where
  parseJSON :: Value -> Parser ServiceTemplateVersionSummary
parseJSON =
    String
-> (Object -> Parser ServiceTemplateVersionSummary)
-> Value
-> Parser ServiceTemplateVersionSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ServiceTemplateVersionSummary"
      ( \Object
x ->
          Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> ServiceTemplateVersionSummary
ServiceTemplateVersionSummary'
            (Maybe (Sensitive Text)
 -> Maybe Text
 -> Maybe (Sensitive Text)
 -> Text
 -> POSIX
 -> POSIX
 -> Text
 -> Text
 -> TemplateVersionStatus
 -> Text
 -> ServiceTemplateVersionSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
     (Maybe Text
      -> Maybe (Sensitive Text)
      -> Text
      -> POSIX
      -> POSIX
      -> Text
      -> Text
      -> TemplateVersionStatus
      -> Text
      -> ServiceTemplateVersionSummary)
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
"statusMessage")
            Parser
  (Maybe Text
   -> Maybe (Sensitive Text)
   -> Text
   -> POSIX
   -> POSIX
   -> Text
   -> Text
   -> TemplateVersionStatus
   -> Text
   -> ServiceTemplateVersionSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe (Sensitive Text)
      -> Text
      -> POSIX
      -> POSIX
      -> Text
      -> Text
      -> TemplateVersionStatus
      -> Text
      -> ServiceTemplateVersionSummary)
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
"recommendedMinorVersion")
            Parser
  (Maybe (Sensitive Text)
   -> Text
   -> POSIX
   -> POSIX
   -> Text
   -> Text
   -> TemplateVersionStatus
   -> Text
   -> ServiceTemplateVersionSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
     (Text
      -> POSIX
      -> POSIX
      -> Text
      -> Text
      -> TemplateVersionStatus
      -> Text
      -> ServiceTemplateVersionSummary)
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
"description")
            Parser
  (Text
   -> POSIX
   -> POSIX
   -> Text
   -> Text
   -> TemplateVersionStatus
   -> Text
   -> ServiceTemplateVersionSummary)
-> Parser Text
-> Parser
     (POSIX
      -> POSIX
      -> Text
      -> Text
      -> TemplateVersionStatus
      -> Text
      -> ServiceTemplateVersionSummary)
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
   -> POSIX
   -> Text
   -> Text
   -> TemplateVersionStatus
   -> Text
   -> ServiceTemplateVersionSummary)
-> Parser POSIX
-> Parser
     (POSIX
      -> Text
      -> Text
      -> TemplateVersionStatus
      -> Text
      -> ServiceTemplateVersionSummary)
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
  (POSIX
   -> Text
   -> Text
   -> TemplateVersionStatus
   -> Text
   -> ServiceTemplateVersionSummary)
-> Parser POSIX
-> Parser
     (Text
      -> Text
      -> TemplateVersionStatus
      -> Text
      -> ServiceTemplateVersionSummary)
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
"lastModifiedAt")
            Parser
  (Text
   -> Text
   -> TemplateVersionStatus
   -> Text
   -> ServiceTemplateVersionSummary)
-> Parser Text
-> Parser
     (Text
      -> TemplateVersionStatus -> Text -> ServiceTemplateVersionSummary)
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
"majorVersion")
            Parser
  (Text
   -> TemplateVersionStatus -> Text -> ServiceTemplateVersionSummary)
-> Parser Text
-> Parser
     (TemplateVersionStatus -> Text -> ServiceTemplateVersionSummary)
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
"minorVersion")
            Parser
  (TemplateVersionStatus -> Text -> ServiceTemplateVersionSummary)
-> Parser TemplateVersionStatus
-> Parser (Text -> ServiceTemplateVersionSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser TemplateVersionStatus
forall a. FromJSON a => Object -> Text -> Parser a
Core..: Text
"status")
            Parser (Text -> ServiceTemplateVersionSummary)
-> Parser Text -> Parser ServiceTemplateVersionSummary
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
    ServiceTemplateVersionSummary

instance Prelude.NFData ServiceTemplateVersionSummary