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

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

-- | The environment template data.
--
-- /See:/ 'newEnvironmentTemplateSummary' smart constructor.
data EnvironmentTemplateSummary = EnvironmentTemplateSummary'
  { -- | When included, indicates that the environment template is for customer
    -- provisioned and managed infrastructure.
    EnvironmentTemplateSummary -> Maybe Provisioning
provisioning :: Prelude.Maybe Provisioning,
    -- | The ID of the recommended version of the environment template.
    EnvironmentTemplateSummary -> Maybe Text
recommendedVersion :: Prelude.Maybe Prelude.Text,
    -- | The name of the environment template as displayed in the developer
    -- interface.
    EnvironmentTemplateSummary -> Maybe (Sensitive Text)
displayName :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | A description of the environment template.
    EnvironmentTemplateSummary -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The Amazon Resource Name (ARN) of the environment template.
    EnvironmentTemplateSummary -> Text
arn :: Prelude.Text,
    -- | The time when the environment template was created.
    EnvironmentTemplateSummary -> POSIX
createdAt :: Core.POSIX,
    -- | The time when the environment template was last modified.
    EnvironmentTemplateSummary -> POSIX
lastModifiedAt :: Core.POSIX,
    -- | The name of the environment template.
    EnvironmentTemplateSummary -> Text
name :: Prelude.Text
  }
  deriving (EnvironmentTemplateSummary -> EnvironmentTemplateSummary -> Bool
(EnvironmentTemplateSummary -> EnvironmentTemplateSummary -> Bool)
-> (EnvironmentTemplateSummary
    -> EnvironmentTemplateSummary -> Bool)
-> Eq EnvironmentTemplateSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EnvironmentTemplateSummary -> EnvironmentTemplateSummary -> Bool
$c/= :: EnvironmentTemplateSummary -> EnvironmentTemplateSummary -> Bool
== :: EnvironmentTemplateSummary -> EnvironmentTemplateSummary -> Bool
$c== :: EnvironmentTemplateSummary -> EnvironmentTemplateSummary -> Bool
Prelude.Eq, Int -> EnvironmentTemplateSummary -> ShowS
[EnvironmentTemplateSummary] -> ShowS
EnvironmentTemplateSummary -> String
(Int -> EnvironmentTemplateSummary -> ShowS)
-> (EnvironmentTemplateSummary -> String)
-> ([EnvironmentTemplateSummary] -> ShowS)
-> Show EnvironmentTemplateSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EnvironmentTemplateSummary] -> ShowS
$cshowList :: [EnvironmentTemplateSummary] -> ShowS
show :: EnvironmentTemplateSummary -> String
$cshow :: EnvironmentTemplateSummary -> String
showsPrec :: Int -> EnvironmentTemplateSummary -> ShowS
$cshowsPrec :: Int -> EnvironmentTemplateSummary -> ShowS
Prelude.Show, (forall x.
 EnvironmentTemplateSummary -> Rep EnvironmentTemplateSummary x)
-> (forall x.
    Rep EnvironmentTemplateSummary x -> EnvironmentTemplateSummary)
-> Generic EnvironmentTemplateSummary
forall x.
Rep EnvironmentTemplateSummary x -> EnvironmentTemplateSummary
forall x.
EnvironmentTemplateSummary -> Rep EnvironmentTemplateSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep EnvironmentTemplateSummary x -> EnvironmentTemplateSummary
$cfrom :: forall x.
EnvironmentTemplateSummary -> Rep EnvironmentTemplateSummary x
Prelude.Generic)

-- |
-- Create a value of 'EnvironmentTemplateSummary' 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:
--
-- 'provisioning', 'environmentTemplateSummary_provisioning' - When included, indicates that the environment template is for customer
-- provisioned and managed infrastructure.
--
-- 'recommendedVersion', 'environmentTemplateSummary_recommendedVersion' - The ID of the recommended version of the environment template.
--
-- 'displayName', 'environmentTemplateSummary_displayName' - The name of the environment template as displayed in the developer
-- interface.
--
-- 'description', 'environmentTemplateSummary_description' - A description of the environment template.
--
-- 'arn', 'environmentTemplateSummary_arn' - The Amazon Resource Name (ARN) of the environment template.
--
-- 'createdAt', 'environmentTemplateSummary_createdAt' - The time when the environment template was created.
--
-- 'lastModifiedAt', 'environmentTemplateSummary_lastModifiedAt' - The time when the environment template was last modified.
--
-- 'name', 'environmentTemplateSummary_name' - The name of the environment template.
newEnvironmentTemplateSummary ::
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'lastModifiedAt'
  Prelude.UTCTime ->
  -- | 'name'
  Prelude.Text ->
  EnvironmentTemplateSummary
newEnvironmentTemplateSummary :: Text -> UTCTime -> UTCTime -> Text -> EnvironmentTemplateSummary
newEnvironmentTemplateSummary
  Text
pArn_
  UTCTime
pCreatedAt_
  UTCTime
pLastModifiedAt_
  Text
pName_ =
    EnvironmentTemplateSummary' :: Maybe Provisioning
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> EnvironmentTemplateSummary
EnvironmentTemplateSummary'
      { $sel:provisioning:EnvironmentTemplateSummary' :: Maybe Provisioning
provisioning =
          Maybe Provisioning
forall a. Maybe a
Prelude.Nothing,
        $sel:recommendedVersion:EnvironmentTemplateSummary' :: Maybe Text
recommendedVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:displayName:EnvironmentTemplateSummary' :: Maybe (Sensitive Text)
displayName = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:description:EnvironmentTemplateSummary' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:arn:EnvironmentTemplateSummary' :: Text
arn = Text
pArn_,
        $sel:createdAt:EnvironmentTemplateSummary' :: 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:EnvironmentTemplateSummary' :: 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:name:EnvironmentTemplateSummary' :: Text
name = Text
pName_
      }

-- | When included, indicates that the environment template is for customer
-- provisioned and managed infrastructure.
environmentTemplateSummary_provisioning :: Lens.Lens' EnvironmentTemplateSummary (Prelude.Maybe Provisioning)
environmentTemplateSummary_provisioning :: (Maybe Provisioning -> f (Maybe Provisioning))
-> EnvironmentTemplateSummary -> f EnvironmentTemplateSummary
environmentTemplateSummary_provisioning = (EnvironmentTemplateSummary -> Maybe Provisioning)
-> (EnvironmentTemplateSummary
    -> Maybe Provisioning -> EnvironmentTemplateSummary)
-> Lens
     EnvironmentTemplateSummary
     EnvironmentTemplateSummary
     (Maybe Provisioning)
     (Maybe Provisioning)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateSummary' {Maybe Provisioning
provisioning :: Maybe Provisioning
$sel:provisioning:EnvironmentTemplateSummary' :: EnvironmentTemplateSummary -> Maybe Provisioning
provisioning} -> Maybe Provisioning
provisioning) (\s :: EnvironmentTemplateSummary
s@EnvironmentTemplateSummary' {} Maybe Provisioning
a -> EnvironmentTemplateSummary
s {$sel:provisioning:EnvironmentTemplateSummary' :: Maybe Provisioning
provisioning = Maybe Provisioning
a} :: EnvironmentTemplateSummary)

-- | The ID of the recommended version of the environment template.
environmentTemplateSummary_recommendedVersion :: Lens.Lens' EnvironmentTemplateSummary (Prelude.Maybe Prelude.Text)
environmentTemplateSummary_recommendedVersion :: (Maybe Text -> f (Maybe Text))
-> EnvironmentTemplateSummary -> f EnvironmentTemplateSummary
environmentTemplateSummary_recommendedVersion = (EnvironmentTemplateSummary -> Maybe Text)
-> (EnvironmentTemplateSummary
    -> Maybe Text -> EnvironmentTemplateSummary)
-> Lens
     EnvironmentTemplateSummary
     EnvironmentTemplateSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateSummary' {Maybe Text
recommendedVersion :: Maybe Text
$sel:recommendedVersion:EnvironmentTemplateSummary' :: EnvironmentTemplateSummary -> Maybe Text
recommendedVersion} -> Maybe Text
recommendedVersion) (\s :: EnvironmentTemplateSummary
s@EnvironmentTemplateSummary' {} Maybe Text
a -> EnvironmentTemplateSummary
s {$sel:recommendedVersion:EnvironmentTemplateSummary' :: Maybe Text
recommendedVersion = Maybe Text
a} :: EnvironmentTemplateSummary)

-- | The name of the environment template as displayed in the developer
-- interface.
environmentTemplateSummary_displayName :: Lens.Lens' EnvironmentTemplateSummary (Prelude.Maybe Prelude.Text)
environmentTemplateSummary_displayName :: (Maybe Text -> f (Maybe Text))
-> EnvironmentTemplateSummary -> f EnvironmentTemplateSummary
environmentTemplateSummary_displayName = (EnvironmentTemplateSummary -> Maybe (Sensitive Text))
-> (EnvironmentTemplateSummary
    -> Maybe (Sensitive Text) -> EnvironmentTemplateSummary)
-> Lens
     EnvironmentTemplateSummary
     EnvironmentTemplateSummary
     (Maybe (Sensitive Text))
     (Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateSummary' {Maybe (Sensitive Text)
displayName :: Maybe (Sensitive Text)
$sel:displayName:EnvironmentTemplateSummary' :: EnvironmentTemplateSummary -> Maybe (Sensitive Text)
displayName} -> Maybe (Sensitive Text)
displayName) (\s :: EnvironmentTemplateSummary
s@EnvironmentTemplateSummary' {} Maybe (Sensitive Text)
a -> EnvironmentTemplateSummary
s {$sel:displayName:EnvironmentTemplateSummary' :: Maybe (Sensitive Text)
displayName = Maybe (Sensitive Text)
a} :: EnvironmentTemplateSummary) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
 -> EnvironmentTemplateSummary -> f EnvironmentTemplateSummary)
-> ((Maybe Text -> f (Maybe Text))
    -> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> EnvironmentTemplateSummary
-> f EnvironmentTemplateSummary
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

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

-- | The time when the environment template was created.
environmentTemplateSummary_createdAt :: Lens.Lens' EnvironmentTemplateSummary Prelude.UTCTime
environmentTemplateSummary_createdAt :: (UTCTime -> f UTCTime)
-> EnvironmentTemplateSummary -> f EnvironmentTemplateSummary
environmentTemplateSummary_createdAt = (EnvironmentTemplateSummary -> POSIX)
-> (EnvironmentTemplateSummary
    -> POSIX -> EnvironmentTemplateSummary)
-> Lens
     EnvironmentTemplateSummary EnvironmentTemplateSummary POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateSummary' {POSIX
createdAt :: POSIX
$sel:createdAt:EnvironmentTemplateSummary' :: EnvironmentTemplateSummary -> POSIX
createdAt} -> POSIX
createdAt) (\s :: EnvironmentTemplateSummary
s@EnvironmentTemplateSummary' {} POSIX
a -> EnvironmentTemplateSummary
s {$sel:createdAt:EnvironmentTemplateSummary' :: POSIX
createdAt = POSIX
a} :: EnvironmentTemplateSummary) ((POSIX -> f POSIX)
 -> EnvironmentTemplateSummary -> f EnvironmentTemplateSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> EnvironmentTemplateSummary
-> f EnvironmentTemplateSummary
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 environment template was last modified.
environmentTemplateSummary_lastModifiedAt :: Lens.Lens' EnvironmentTemplateSummary Prelude.UTCTime
environmentTemplateSummary_lastModifiedAt :: (UTCTime -> f UTCTime)
-> EnvironmentTemplateSummary -> f EnvironmentTemplateSummary
environmentTemplateSummary_lastModifiedAt = (EnvironmentTemplateSummary -> POSIX)
-> (EnvironmentTemplateSummary
    -> POSIX -> EnvironmentTemplateSummary)
-> Lens
     EnvironmentTemplateSummary EnvironmentTemplateSummary POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateSummary' {POSIX
lastModifiedAt :: POSIX
$sel:lastModifiedAt:EnvironmentTemplateSummary' :: EnvironmentTemplateSummary -> POSIX
lastModifiedAt} -> POSIX
lastModifiedAt) (\s :: EnvironmentTemplateSummary
s@EnvironmentTemplateSummary' {} POSIX
a -> EnvironmentTemplateSummary
s {$sel:lastModifiedAt:EnvironmentTemplateSummary' :: POSIX
lastModifiedAt = POSIX
a} :: EnvironmentTemplateSummary) ((POSIX -> f POSIX)
 -> EnvironmentTemplateSummary -> f EnvironmentTemplateSummary)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> EnvironmentTemplateSummary
-> f EnvironmentTemplateSummary
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 name of the environment template.
environmentTemplateSummary_name :: Lens.Lens' EnvironmentTemplateSummary Prelude.Text
environmentTemplateSummary_name :: (Text -> f Text)
-> EnvironmentTemplateSummary -> f EnvironmentTemplateSummary
environmentTemplateSummary_name = (EnvironmentTemplateSummary -> Text)
-> (EnvironmentTemplateSummary
    -> Text -> EnvironmentTemplateSummary)
-> Lens
     EnvironmentTemplateSummary EnvironmentTemplateSummary Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplateSummary' {Text
name :: Text
$sel:name:EnvironmentTemplateSummary' :: EnvironmentTemplateSummary -> Text
name} -> Text
name) (\s :: EnvironmentTemplateSummary
s@EnvironmentTemplateSummary' {} Text
a -> EnvironmentTemplateSummary
s {$sel:name:EnvironmentTemplateSummary' :: Text
name = Text
a} :: EnvironmentTemplateSummary)

instance Core.FromJSON EnvironmentTemplateSummary where
  parseJSON :: Value -> Parser EnvironmentTemplateSummary
parseJSON =
    String
-> (Object -> Parser EnvironmentTemplateSummary)
-> Value
-> Parser EnvironmentTemplateSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"EnvironmentTemplateSummary"
      ( \Object
x ->
          Maybe Provisioning
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> EnvironmentTemplateSummary
EnvironmentTemplateSummary'
            (Maybe Provisioning
 -> Maybe Text
 -> Maybe (Sensitive Text)
 -> Maybe (Sensitive Text)
 -> Text
 -> POSIX
 -> POSIX
 -> Text
 -> EnvironmentTemplateSummary)
-> Parser (Maybe Provisioning)
-> Parser
     (Maybe Text
      -> Maybe (Sensitive Text)
      -> Maybe (Sensitive Text)
      -> Text
      -> POSIX
      -> POSIX
      -> Text
      -> EnvironmentTemplateSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Provisioning)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"provisioning")
            Parser
  (Maybe Text
   -> Maybe (Sensitive Text)
   -> Maybe (Sensitive Text)
   -> Text
   -> POSIX
   -> POSIX
   -> Text
   -> EnvironmentTemplateSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe (Sensitive Text)
      -> Maybe (Sensitive Text)
      -> Text
      -> POSIX
      -> POSIX
      -> Text
      -> EnvironmentTemplateSummary)
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
"recommendedVersion")
            Parser
  (Maybe (Sensitive Text)
   -> Maybe (Sensitive Text)
   -> Text
   -> POSIX
   -> POSIX
   -> Text
   -> EnvironmentTemplateSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
     (Maybe (Sensitive Text)
      -> Text -> POSIX -> POSIX -> Text -> EnvironmentTemplateSummary)
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
"displayName")
            Parser
  (Maybe (Sensitive Text)
   -> Text -> POSIX -> POSIX -> Text -> EnvironmentTemplateSummary)
-> Parser (Maybe (Sensitive Text))
-> Parser
     (Text -> POSIX -> POSIX -> Text -> EnvironmentTemplateSummary)
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 -> EnvironmentTemplateSummary)
-> Parser Text
-> Parser (POSIX -> POSIX -> Text -> EnvironmentTemplateSummary)
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 -> EnvironmentTemplateSummary)
-> Parser POSIX
-> Parser (POSIX -> Text -> EnvironmentTemplateSummary)
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 -> EnvironmentTemplateSummary)
-> Parser POSIX -> Parser (Text -> EnvironmentTemplateSummary)
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 -> EnvironmentTemplateSummary)
-> Parser Text -> Parser EnvironmentTemplateSummary
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
"name")
      )

instance Prelude.Hashable EnvironmentTemplateSummary

instance Prelude.NFData EnvironmentTemplateSummary