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

-- |
-- Create a value of 'EnvironmentTemplate' 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', 'environmentTemplate_provisioning' - When included, indicates that the environment template is for customer
-- provisioned and managed infrastructure.
--
-- 'recommendedVersion', 'environmentTemplate_recommendedVersion' - The ID of the recommended version of the environment template.
--
-- 'displayName', 'environmentTemplate_displayName' - The name of the environment template as displayed in the developer
-- interface.
--
-- 'encryptionKey', 'environmentTemplate_encryptionKey' - The customer provided encryption key for the environment template.
--
-- 'description', 'environmentTemplate_description' - A description of the environment template.
--
-- 'arn', 'environmentTemplate_arn' - The Amazon Resource Name (ARN) of the environment template.
--
-- 'createdAt', 'environmentTemplate_createdAt' - The time when the environment template was created.
--
-- 'lastModifiedAt', 'environmentTemplate_lastModifiedAt' - The time when the environment template was last modified.
--
-- 'name', 'environmentTemplate_name' - The name of the environment template.
newEnvironmentTemplate ::
  -- | 'arn'
  Prelude.Text ->
  -- | 'createdAt'
  Prelude.UTCTime ->
  -- | 'lastModifiedAt'
  Prelude.UTCTime ->
  -- | 'name'
  Prelude.Text ->
  EnvironmentTemplate
newEnvironmentTemplate :: Text -> UTCTime -> UTCTime -> Text -> EnvironmentTemplate
newEnvironmentTemplate
  Text
pArn_
  UTCTime
pCreatedAt_
  UTCTime
pLastModifiedAt_
  Text
pName_ =
    EnvironmentTemplate' :: Maybe Provisioning
-> Maybe Text
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe (Sensitive Text)
-> Text
-> POSIX
-> POSIX
-> Text
-> EnvironmentTemplate
EnvironmentTemplate'
      { $sel:provisioning:EnvironmentTemplate' :: Maybe Provisioning
provisioning =
          Maybe Provisioning
forall a. Maybe a
Prelude.Nothing,
        $sel:recommendedVersion:EnvironmentTemplate' :: Maybe Text
recommendedVersion = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:displayName:EnvironmentTemplate' :: Maybe (Sensitive Text)
displayName = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:encryptionKey:EnvironmentTemplate' :: Maybe Text
encryptionKey = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:description:EnvironmentTemplate' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
        $sel:arn:EnvironmentTemplate' :: Text
arn = Text
pArn_,
        $sel:createdAt:EnvironmentTemplate' :: 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:EnvironmentTemplate' :: 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:EnvironmentTemplate' :: Text
name = Text
pName_
      }

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

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

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

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

-- | The time when the environment template was created.
environmentTemplate_createdAt :: Lens.Lens' EnvironmentTemplate Prelude.UTCTime
environmentTemplate_createdAt :: (UTCTime -> f UTCTime)
-> EnvironmentTemplate -> f EnvironmentTemplate
environmentTemplate_createdAt = (EnvironmentTemplate -> POSIX)
-> (EnvironmentTemplate -> POSIX -> EnvironmentTemplate)
-> Lens EnvironmentTemplate EnvironmentTemplate POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplate' {POSIX
createdAt :: POSIX
$sel:createdAt:EnvironmentTemplate' :: EnvironmentTemplate -> POSIX
createdAt} -> POSIX
createdAt) (\s :: EnvironmentTemplate
s@EnvironmentTemplate' {} POSIX
a -> EnvironmentTemplate
s {$sel:createdAt:EnvironmentTemplate' :: POSIX
createdAt = POSIX
a} :: EnvironmentTemplate) ((POSIX -> f POSIX)
 -> EnvironmentTemplate -> f EnvironmentTemplate)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> EnvironmentTemplate
-> f EnvironmentTemplate
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.
environmentTemplate_lastModifiedAt :: Lens.Lens' EnvironmentTemplate Prelude.UTCTime
environmentTemplate_lastModifiedAt :: (UTCTime -> f UTCTime)
-> EnvironmentTemplate -> f EnvironmentTemplate
environmentTemplate_lastModifiedAt = (EnvironmentTemplate -> POSIX)
-> (EnvironmentTemplate -> POSIX -> EnvironmentTemplate)
-> Lens EnvironmentTemplate EnvironmentTemplate POSIX POSIX
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplate' {POSIX
lastModifiedAt :: POSIX
$sel:lastModifiedAt:EnvironmentTemplate' :: EnvironmentTemplate -> POSIX
lastModifiedAt} -> POSIX
lastModifiedAt) (\s :: EnvironmentTemplate
s@EnvironmentTemplate' {} POSIX
a -> EnvironmentTemplate
s {$sel:lastModifiedAt:EnvironmentTemplate' :: POSIX
lastModifiedAt = POSIX
a} :: EnvironmentTemplate) ((POSIX -> f POSIX)
 -> EnvironmentTemplate -> f EnvironmentTemplate)
-> ((UTCTime -> f UTCTime) -> POSIX -> f POSIX)
-> (UTCTime -> f UTCTime)
-> EnvironmentTemplate
-> f EnvironmentTemplate
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.
environmentTemplate_name :: Lens.Lens' EnvironmentTemplate Prelude.Text
environmentTemplate_name :: (Text -> f Text) -> EnvironmentTemplate -> f EnvironmentTemplate
environmentTemplate_name = (EnvironmentTemplate -> Text)
-> (EnvironmentTemplate -> Text -> EnvironmentTemplate)
-> Lens EnvironmentTemplate EnvironmentTemplate Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\EnvironmentTemplate' {Text
name :: Text
$sel:name:EnvironmentTemplate' :: EnvironmentTemplate -> Text
name} -> Text
name) (\s :: EnvironmentTemplate
s@EnvironmentTemplate' {} Text
a -> EnvironmentTemplate
s {$sel:name:EnvironmentTemplate' :: Text
name = Text
a} :: EnvironmentTemplate)

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

instance Prelude.NFData EnvironmentTemplate