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

-- |
-- Create a value of 'EnvironmentTemplateVersionSummary' 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', 'environmentTemplateVersionSummary_statusMessage' - The status message of the version of an environment template.
--
-- 'recommendedMinorVersion', 'environmentTemplateVersionSummary_recommendedMinorVersion' - The ID of the recommended minor version of the environment template.
--
-- 'description', 'environmentTemplateVersionSummary_description' - A description of the version of an environment template.
--
-- 'arn', 'environmentTemplateVersionSummary_arn' - The Amazon Resource Name (ARN) of the version of an environment
-- template.
--
-- 'createdAt', 'environmentTemplateVersionSummary_createdAt' - The time when the version of an environment template was created.
--
-- 'lastModifiedAt', 'environmentTemplateVersionSummary_lastModifiedAt' - The time when the version of an environment template was last modified.
--
-- 'majorVersion', 'environmentTemplateVersionSummary_majorVersion' - The ID of the latest major version that\'s associated with the version
-- of an environment template.
--
-- 'minorVersion', 'environmentTemplateVersionSummary_minorVersion' - The ID of the version of an environment template.
--
-- 'status', 'environmentTemplateVersionSummary_status' - The status of the version of an environment template.
--
-- 'templateName', 'environmentTemplateVersionSummary_templateName' - The name of the version of an environment template.
newEnvironmentTemplateVersionSummary ::
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'lastModifiedAt'
  Prelude.UTCTime ->
  -- | 'majorVersion'
  Prelude.Text ->
  -- | 'minorVersion'
  Prelude.Text ->
  -- | 'status'
  TemplateVersionStatus ->
  -- | 'templateName'
  Prelude.Text ->
  EnvironmentTemplateVersionSummary
newEnvironmentTemplateVersionSummary :: Text
-> UTCTime
-> UTCTime
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary
newEnvironmentTemplateVersionSummary
  Text
pArn_
  UTCTime
pCreatedAt_
  UTCTime
pLastModifiedAt_
  Text
pMajorVersion_
  Text
pMinorVersion_
  TemplateVersionStatus
pStatus_
  Text
pTemplateName_ =
    EnvironmentTemplateVersionSummary' :: Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary'
      { $sel:statusMessage:EnvironmentTemplateVersionSummary' :: Maybe (Sensitive Text)
statusMessage =
          Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:recommendedMinorVersion:EnvironmentTemplateVersionSummary' :: Maybe Text
recommendedMinorVersion =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:description:EnvironmentTemplateVersionSummary' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:arn:EnvironmentTemplateVersionSummary' :: Text
arn = Text
pArn_,
        $sel:createdAt:EnvironmentTemplateVersionSummary' :: 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:EnvironmentTemplateVersionSummary' :: 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:EnvironmentTemplateVersionSummary' :: Text
majorVersion = Text
pMajorVersion_,
        $sel:minorVersion:EnvironmentTemplateVersionSummary' :: Text
minorVersion = Text
pMinorVersion_,
        $sel:status:EnvironmentTemplateVersionSummary' :: TemplateVersionStatus
status = TemplateVersionStatus
pStatus_,
        $sel:templateName:EnvironmentTemplateVersionSummary' :: Text
templateName = Text
pTemplateName_
      }

-- | The status message of the version of an environment template.
environmentTemplateVersionSummary_statusMessage :: Lens.Lens' EnvironmentTemplateVersionSummary (Prelude.Maybe Prelude.Text)
environmentTemplateVersionSummary_statusMessage :: (Maybe Text -> f (Maybe Text))
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_statusMessage = (EnvironmentTemplateVersionSummary -> Maybe (Sensitive Text))
-> (EnvironmentTemplateVersionSummary
    -> Maybe (Sensitive Text) -> EnvironmentTemplateVersionSummary)
-> Lens
     EnvironmentTemplateVersionSummary
     EnvironmentTemplateVersionSummary
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {Maybe (Sensitive Text)
statusMessage :: Maybe (Sensitive Text)
$sel:statusMessage:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> Maybe (Sensitive Text)
statusMessage} -> Maybe (Sensitive Text)
statusMessage) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} Maybe (Sensitive Text)
a -> EnvironmentTemplateVersionSummary
s {$sel:statusMessage:EnvironmentTemplateVersionSummary' :: Maybe (Sensitive Text)
statusMessage = Maybe (Sensitive Text)
a} :: EnvironmentTemplateVersionSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> EnvironmentTemplateVersionSummary
 -> f EnvironmentTemplateVersionSummary)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
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 environment template.
environmentTemplateVersionSummary_recommendedMinorVersion :: Lens.Lens' EnvironmentTemplateVersionSummary (Prelude.Maybe Prelude.Text)
environmentTemplateVersionSummary_recommendedMinorVersion :: (Maybe Text -> f (Maybe Text))
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_recommendedMinorVersion = (EnvironmentTemplateVersionSummary -> Maybe Text)
-> (EnvironmentTemplateVersionSummary
    -> Maybe Text -> EnvironmentTemplateVersionSummary)
-> Lens
     EnvironmentTemplateVersionSummary
     EnvironmentTemplateVersionSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {Maybe Text
recommendedMinorVersion :: Maybe Text
$sel:recommendedMinorVersion:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> Maybe Text
recommendedMinorVersion} -> Maybe Text
recommendedMinorVersion) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} Maybe Text
a -> EnvironmentTemplateVersionSummary
s {$sel:recommendedMinorVersion:EnvironmentTemplateVersionSummary' :: Maybe Text
recommendedMinorVersion = Maybe Text
a} :: EnvironmentTemplateVersionSummary)

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

-- | The time when the version of an environment template was created.
environmentTemplateVersionSummary_createdAt :: Lens.Lens' EnvironmentTemplateVersionSummary Prelude.UTCTime
environmentTemplateVersionSummary_createdAt :: (UTCTime -> f UTCTime)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_createdAt = (EnvironmentTemplateVersionSummary -> POSIX)
-> (EnvironmentTemplateVersionSummary
    -> POSIX -> EnvironmentTemplateVersionSummary)
-> Lens
     EnvironmentTemplateVersionSummary
     EnvironmentTemplateVersionSummary
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {POSIX
createdAt :: POSIX
$sel:createdAt:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> POSIX
createdAt} -> POSIX
createdAt) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} POSIX
a -> EnvironmentTemplateVersionSummary
s {$sel:createdAt:EnvironmentTemplateVersionSummary' :: POSIX
createdAt = POSIX
a} :: EnvironmentTemplateVersionSummary) ((POSIX -> f POSIX)
 -> EnvironmentTemplateVersionSummary
 -> f EnvironmentTemplateVersionSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
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 an environment template was last modified.
environmentTemplateVersionSummary_lastModifiedAt :: Lens.Lens' EnvironmentTemplateVersionSummary Prelude.UTCTime
environmentTemplateVersionSummary_lastModifiedAt :: (UTCTime -> f UTCTime)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_lastModifiedAt = (EnvironmentTemplateVersionSummary -> POSIX)
-> (EnvironmentTemplateVersionSummary
    -> POSIX -> EnvironmentTemplateVersionSummary)
-> Lens
     EnvironmentTemplateVersionSummary
     EnvironmentTemplateVersionSummary
     POSIX
     POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {POSIX
lastModifiedAt :: POSIX
$sel:lastModifiedAt:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> POSIX
lastModifiedAt} -> POSIX
lastModifiedAt) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} POSIX
a -> EnvironmentTemplateVersionSummary
s {$sel:lastModifiedAt:EnvironmentTemplateVersionSummary' :: POSIX
lastModifiedAt = POSIX
a} :: EnvironmentTemplateVersionSummary) ((POSIX -> f POSIX)
 -> EnvironmentTemplateVersionSummary
 -> f EnvironmentTemplateVersionSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
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 an environment template.
environmentTemplateVersionSummary_majorVersion :: Lens.Lens' EnvironmentTemplateVersionSummary Prelude.Text
environmentTemplateVersionSummary_majorVersion :: (Text -> f Text)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_majorVersion = (EnvironmentTemplateVersionSummary -> Text)
-> (EnvironmentTemplateVersionSummary
    -> Text -> EnvironmentTemplateVersionSummary)
-> Lens
     EnvironmentTemplateVersionSummary
     EnvironmentTemplateVersionSummary
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {Text
majorVersion :: Text
$sel:majorVersion:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> Text
majorVersion} -> Text
majorVersion) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} Text
a -> EnvironmentTemplateVersionSummary
s {$sel:majorVersion:EnvironmentTemplateVersionSummary' :: Text
majorVersion = Text
a} :: EnvironmentTemplateVersionSummary)

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

-- | The status of the version of an environment template.
environmentTemplateVersionSummary_status :: Lens.Lens' EnvironmentTemplateVersionSummary TemplateVersionStatus
environmentTemplateVersionSummary_status :: (TemplateVersionStatus -> f TemplateVersionStatus)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_status = (EnvironmentTemplateVersionSummary -> TemplateVersionStatus)
-> (EnvironmentTemplateVersionSummary
    -> TemplateVersionStatus -> EnvironmentTemplateVersionSummary)
-> Lens
     EnvironmentTemplateVersionSummary
     EnvironmentTemplateVersionSummary
     TemplateVersionStatus
     TemplateVersionStatus
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {TemplateVersionStatus
status :: TemplateVersionStatus
$sel:status:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> TemplateVersionStatus
status} -> TemplateVersionStatus
status) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} TemplateVersionStatus
a -> EnvironmentTemplateVersionSummary
s {$sel:status:EnvironmentTemplateVersionSummary' :: TemplateVersionStatus
status = TemplateVersionStatus
a} :: EnvironmentTemplateVersionSummary)

-- | The name of the version of an environment template.
environmentTemplateVersionSummary_templateName :: Lens.Lens' EnvironmentTemplateVersionSummary Prelude.Text
environmentTemplateVersionSummary_templateName :: (Text -> f Text)
-> EnvironmentTemplateVersionSummary
-> f EnvironmentTemplateVersionSummary
environmentTemplateVersionSummary_templateName = (EnvironmentTemplateVersionSummary -> Text)
-> (EnvironmentTemplateVersionSummary
    -> Text -> EnvironmentTemplateVersionSummary)
-> Lens
     EnvironmentTemplateVersionSummary
     EnvironmentTemplateVersionSummary
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateVersionSummary' {Text
templateName :: Text
$sel:templateName:EnvironmentTemplateVersionSummary' :: EnvironmentTemplateVersionSummary -> Text
templateName} -> Text
templateName) (\s :: EnvironmentTemplateVersionSummary
s@EnvironmentTemplateVersionSummary' {} Text
a -> EnvironmentTemplateVersionSummary
s {$sel:templateName:EnvironmentTemplateVersionSummary' :: Text
templateName = Text
a} :: EnvironmentTemplateVersionSummary)

instance
  Core.FromJSON
    EnvironmentTemplateVersionSummary
  where
  parseJSON :: Value -> Parser EnvironmentTemplateVersionSummary
parseJSON =
    String
-> (Object -> Parser EnvironmentTemplateVersionSummary)
-> Value
-> Parser EnvironmentTemplateVersionSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"EnvironmentTemplateVersionSummary"
      ( \Object
x ->
          Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> Text
-> TemplateVersionStatus
-> Text
-> EnvironmentTemplateVersionSummary
EnvironmentTemplateVersionSummary'
            (Maybe (Sensitive Text)
 -> Maybe Text
 -> Maybe (Sensitive Text)
 -> Text
 -> POSIX
 -> POSIX
 -> Text
 -> Text
 -> TemplateVersionStatus
 -> Text
 -> EnvironmentTemplateVersionSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
     (Maybe Text
      -> Maybe (Sensitive Text)
      -> Text
      -> POSIX
      -> POSIX
      -> Text
      -> Text
      -> TemplateVersionStatus
      -> Text
      -> EnvironmentTemplateVersionSummary)
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
   -> EnvironmentTemplateVersionSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe (Sensitive Text)
      -> Text
      -> POSIX
      -> POSIX
      -> Text
      -> Text
      -> TemplateVersionStatus
      -> Text
      -> EnvironmentTemplateVersionSummary)
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
   -> EnvironmentTemplateVersionSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
     (Text
      -> POSIX
      -> POSIX
      -> Text
      -> Text
      -> TemplateVersionStatus
      -> Text
      -> EnvironmentTemplateVersionSummary)
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
   -> EnvironmentTemplateVersionSummary)
-> Parser Text
-> Parser
     (POSIX
      -> POSIX
      -> Text
      -> Text
      -> TemplateVersionStatus
      -> Text
      -> EnvironmentTemplateVersionSummary)
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
   -> EnvironmentTemplateVersionSummary)
-> Parser POSIX
-> Parser
     (POSIX
      -> Text
      -> Text
      -> TemplateVersionStatus
      -> Text
      -> EnvironmentTemplateVersionSummary)
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
   -> EnvironmentTemplateVersionSummary)
-> Parser POSIX
-> Parser
     (Text
      -> Text
      -> TemplateVersionStatus
      -> Text
      -> EnvironmentTemplateVersionSummary)
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
   -> EnvironmentTemplateVersionSummary)
-> Parser Text
-> Parser
     (Text
      -> TemplateVersionStatus
      -> Text
      -> EnvironmentTemplateVersionSummary)
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
   -> EnvironmentTemplateVersionSummary)
-> Parser Text
-> Parser
     (TemplateVersionStatus
      -> Text -> EnvironmentTemplateVersionSummary)
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 -> EnvironmentTemplateVersionSummary)
-> Parser TemplateVersionStatus
-> Parser (Text -> EnvironmentTemplateVersionSummary)
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 -> EnvironmentTemplateVersionSummary)
-> Parser Text -> Parser EnvironmentTemplateVersionSummary
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
    EnvironmentTemplateVersionSummary

instance
  Prelude.NFData
    EnvironmentTemplateVersionSummary