{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# 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.UpdateEnvironmentTemplate
-- 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)
--
-- Update an environment template.
module Amazonka.Proton.UpdateEnvironmentTemplate
  ( -- * Creating a Request
    UpdateEnvironmentTemplate (..),
    newUpdateEnvironmentTemplate,

    -- * Request Lenses
    updateEnvironmentTemplate_displayName,
    updateEnvironmentTemplate_description,
    updateEnvironmentTemplate_name,

    -- * Destructuring the Response
    UpdateEnvironmentTemplateResponse (..),
    newUpdateEnvironmentTemplateResponse,

    -- * Response Lenses
    updateEnvironmentTemplateResponse_httpStatus,
    updateEnvironmentTemplateResponse_environmentTemplate,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.Proton.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newUpdateEnvironmentTemplate' smart constructor.
data UpdateEnvironmentTemplate = UpdateEnvironmentTemplate'
  { -- | The name of the environment template to update as displayed in the
    -- developer interface.
    UpdateEnvironmentTemplate -> Maybe (Sensitive Text)
displayName :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | A description of the environment template update.
    UpdateEnvironmentTemplate -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The name of the environment template to update.
    UpdateEnvironmentTemplate -> Text
name :: Prelude.Text
  }
  deriving (UpdateEnvironmentTemplate -> UpdateEnvironmentTemplate -> Bool
(UpdateEnvironmentTemplate -> UpdateEnvironmentTemplate -> Bool)
-> (UpdateEnvironmentTemplate -> UpdateEnvironmentTemplate -> Bool)
-> Eq UpdateEnvironmentTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateEnvironmentTemplate -> UpdateEnvironmentTemplate -> Bool
$c/= :: UpdateEnvironmentTemplate -> UpdateEnvironmentTemplate -> Bool
== :: UpdateEnvironmentTemplate -> UpdateEnvironmentTemplate -> Bool
$c== :: UpdateEnvironmentTemplate -> UpdateEnvironmentTemplate -> Bool
Prelude.Eq, Int -> UpdateEnvironmentTemplate -> ShowS
[UpdateEnvironmentTemplate] -> ShowS
UpdateEnvironmentTemplate -> String
(Int -> UpdateEnvironmentTemplate -> ShowS)
-> (UpdateEnvironmentTemplate -> String)
-> ([UpdateEnvironmentTemplate] -> ShowS)
-> Show UpdateEnvironmentTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateEnvironmentTemplate] -> ShowS
$cshowList :: [UpdateEnvironmentTemplate] -> ShowS
show :: UpdateEnvironmentTemplate -> String
$cshow :: UpdateEnvironmentTemplate -> String
showsPrec :: Int -> UpdateEnvironmentTemplate -> ShowS
$cshowsPrec :: Int -> UpdateEnvironmentTemplate -> ShowS
Prelude.Show, (forall x.
 UpdateEnvironmentTemplate -> Rep UpdateEnvironmentTemplate x)
-> (forall x.
    Rep UpdateEnvironmentTemplate x -> UpdateEnvironmentTemplate)
-> Generic UpdateEnvironmentTemplate
forall x.
Rep UpdateEnvironmentTemplate x -> UpdateEnvironmentTemplate
forall x.
UpdateEnvironmentTemplate -> Rep UpdateEnvironmentTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateEnvironmentTemplate x -> UpdateEnvironmentTemplate
$cfrom :: forall x.
UpdateEnvironmentTemplate -> Rep UpdateEnvironmentTemplate x
Prelude.Generic)

-- |
-- Create a value of 'UpdateEnvironmentTemplate' 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:
--
-- 'displayName', 'updateEnvironmentTemplate_displayName' - The name of the environment template to update as displayed in the
-- developer interface.
--
-- 'description', 'updateEnvironmentTemplate_description' - A description of the environment template update.
--
-- 'name', 'updateEnvironmentTemplate_name' - The name of the environment template to update.
newUpdateEnvironmentTemplate ::
  -- | 'name'
  Prelude.Text ->
  UpdateEnvironmentTemplate
newUpdateEnvironmentTemplate :: Text -> UpdateEnvironmentTemplate
newUpdateEnvironmentTemplate Text
pName_ =
  UpdateEnvironmentTemplate' :: Maybe (Sensitive Text)
-> Maybe (Sensitive Text) -> Text -> UpdateEnvironmentTemplate
UpdateEnvironmentTemplate'
    { $sel:displayName:UpdateEnvironmentTemplate' :: Maybe (Sensitive Text)
displayName =
        Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:description:UpdateEnvironmentTemplate' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:name:UpdateEnvironmentTemplate' :: Text
name = Text
pName_
    }

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

instance Core.AWSRequest UpdateEnvironmentTemplate where
  type
    AWSResponse UpdateEnvironmentTemplate =
      UpdateEnvironmentTemplateResponse
  request :: UpdateEnvironmentTemplate -> Request UpdateEnvironmentTemplate
request = Service
-> UpdateEnvironmentTemplate -> Request UpdateEnvironmentTemplate
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateEnvironmentTemplate
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateEnvironmentTemplate)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateEnvironmentTemplate))
-> Logger
-> Service
-> Proxy UpdateEnvironmentTemplate
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateEnvironmentTemplate)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Int -> EnvironmentTemplate -> UpdateEnvironmentTemplateResponse
UpdateEnvironmentTemplateResponse'
            (Int -> EnvironmentTemplate -> UpdateEnvironmentTemplateResponse)
-> Either String Int
-> Either
     String (EnvironmentTemplate -> UpdateEnvironmentTemplateResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            Either
  String (EnvironmentTemplate -> UpdateEnvironmentTemplateResponse)
-> Either String EnvironmentTemplate
-> Either String UpdateEnvironmentTemplateResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String EnvironmentTemplate
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"environmentTemplate")
      )

instance Prelude.Hashable UpdateEnvironmentTemplate

instance Prelude.NFData UpdateEnvironmentTemplate

instance Core.ToHeaders UpdateEnvironmentTemplate where
  toHeaders :: UpdateEnvironmentTemplate -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateEnvironmentTemplate -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AwsProton20200720.UpdateEnvironmentTemplate" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToJSON UpdateEnvironmentTemplate where
  toJSON :: UpdateEnvironmentTemplate -> Value
toJSON UpdateEnvironmentTemplate' {Maybe (Sensitive Text)
Text
name :: Text
description :: Maybe (Sensitive Text)
displayName :: Maybe (Sensitive Text)
$sel:name:UpdateEnvironmentTemplate' :: UpdateEnvironmentTemplate -> Text
$sel:description:UpdateEnvironmentTemplate' :: UpdateEnvironmentTemplate -> Maybe (Sensitive Text)
$sel:displayName:UpdateEnvironmentTemplate' :: UpdateEnvironmentTemplate -> Maybe (Sensitive Text)
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"displayName" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Sensitive Text -> Pair) -> Maybe (Sensitive Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
displayName,
            (Text
"description" Text -> Sensitive Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Sensitive Text -> Pair) -> Maybe (Sensitive Text) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Sensitive Text)
description,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"name" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
name)
          ]
      )

instance Core.ToPath UpdateEnvironmentTemplate where
  toPath :: UpdateEnvironmentTemplate -> ByteString
toPath = ByteString -> UpdateEnvironmentTemplate -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery UpdateEnvironmentTemplate where
  toQuery :: UpdateEnvironmentTemplate -> QueryString
toQuery = QueryString -> UpdateEnvironmentTemplate -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newUpdateEnvironmentTemplateResponse' smart constructor.
data UpdateEnvironmentTemplateResponse = UpdateEnvironmentTemplateResponse'
  { -- | The response's http status code.
    UpdateEnvironmentTemplateResponse -> Int
httpStatus :: Prelude.Int,
    -- | The environment template detail data that\'s returned by AWS Proton.
    UpdateEnvironmentTemplateResponse -> EnvironmentTemplate
environmentTemplate :: EnvironmentTemplate
  }
  deriving (UpdateEnvironmentTemplateResponse
-> UpdateEnvironmentTemplateResponse -> Bool
(UpdateEnvironmentTemplateResponse
 -> UpdateEnvironmentTemplateResponse -> Bool)
-> (UpdateEnvironmentTemplateResponse
    -> UpdateEnvironmentTemplateResponse -> Bool)
-> Eq UpdateEnvironmentTemplateResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateEnvironmentTemplateResponse
-> UpdateEnvironmentTemplateResponse -> Bool
$c/= :: UpdateEnvironmentTemplateResponse
-> UpdateEnvironmentTemplateResponse -> Bool
== :: UpdateEnvironmentTemplateResponse
-> UpdateEnvironmentTemplateResponse -> Bool
$c== :: UpdateEnvironmentTemplateResponse
-> UpdateEnvironmentTemplateResponse -> Bool
Prelude.Eq, Int -> UpdateEnvironmentTemplateResponse -> ShowS
[UpdateEnvironmentTemplateResponse] -> ShowS
UpdateEnvironmentTemplateResponse -> String
(Int -> UpdateEnvironmentTemplateResponse -> ShowS)
-> (UpdateEnvironmentTemplateResponse -> String)
-> ([UpdateEnvironmentTemplateResponse] -> ShowS)
-> Show UpdateEnvironmentTemplateResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateEnvironmentTemplateResponse] -> ShowS
$cshowList :: [UpdateEnvironmentTemplateResponse] -> ShowS
show :: UpdateEnvironmentTemplateResponse -> String
$cshow :: UpdateEnvironmentTemplateResponse -> String
showsPrec :: Int -> UpdateEnvironmentTemplateResponse -> ShowS
$cshowsPrec :: Int -> UpdateEnvironmentTemplateResponse -> ShowS
Prelude.Show, (forall x.
 UpdateEnvironmentTemplateResponse
 -> Rep UpdateEnvironmentTemplateResponse x)
-> (forall x.
    Rep UpdateEnvironmentTemplateResponse x
    -> UpdateEnvironmentTemplateResponse)
-> Generic UpdateEnvironmentTemplateResponse
forall x.
Rep UpdateEnvironmentTemplateResponse x
-> UpdateEnvironmentTemplateResponse
forall x.
UpdateEnvironmentTemplateResponse
-> Rep UpdateEnvironmentTemplateResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateEnvironmentTemplateResponse x
-> UpdateEnvironmentTemplateResponse
$cfrom :: forall x.
UpdateEnvironmentTemplateResponse
-> Rep UpdateEnvironmentTemplateResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateEnvironmentTemplateResponse' 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:
--
-- 'httpStatus', 'updateEnvironmentTemplateResponse_httpStatus' - The response's http status code.
--
-- 'environmentTemplate', 'updateEnvironmentTemplateResponse_environmentTemplate' - The environment template detail data that\'s returned by AWS Proton.
newUpdateEnvironmentTemplateResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'environmentTemplate'
  EnvironmentTemplate ->
  UpdateEnvironmentTemplateResponse
newUpdateEnvironmentTemplateResponse :: Int -> EnvironmentTemplate -> UpdateEnvironmentTemplateResponse
newUpdateEnvironmentTemplateResponse
  Int
pHttpStatus_
  EnvironmentTemplate
pEnvironmentTemplate_ =
    UpdateEnvironmentTemplateResponse' :: Int -> EnvironmentTemplate -> UpdateEnvironmentTemplateResponse
UpdateEnvironmentTemplateResponse'
      { $sel:httpStatus:UpdateEnvironmentTemplateResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:environmentTemplate:UpdateEnvironmentTemplateResponse' :: EnvironmentTemplate
environmentTemplate =
          EnvironmentTemplate
pEnvironmentTemplate_
      }

-- | The response's http status code.
updateEnvironmentTemplateResponse_httpStatus :: Lens.Lens' UpdateEnvironmentTemplateResponse Prelude.Int
updateEnvironmentTemplateResponse_httpStatus :: (Int -> f Int)
-> UpdateEnvironmentTemplateResponse
-> f UpdateEnvironmentTemplateResponse
updateEnvironmentTemplateResponse_httpStatus = (UpdateEnvironmentTemplateResponse -> Int)
-> (UpdateEnvironmentTemplateResponse
    -> Int -> UpdateEnvironmentTemplateResponse)
-> Lens
     UpdateEnvironmentTemplateResponse
     UpdateEnvironmentTemplateResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironmentTemplateResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateEnvironmentTemplateResponse' :: UpdateEnvironmentTemplateResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateEnvironmentTemplateResponse
s@UpdateEnvironmentTemplateResponse' {} Int
a -> UpdateEnvironmentTemplateResponse
s {$sel:httpStatus:UpdateEnvironmentTemplateResponse' :: Int
httpStatus = Int
a} :: UpdateEnvironmentTemplateResponse)

-- | The environment template detail data that\'s returned by AWS Proton.
updateEnvironmentTemplateResponse_environmentTemplate :: Lens.Lens' UpdateEnvironmentTemplateResponse EnvironmentTemplate
updateEnvironmentTemplateResponse_environmentTemplate :: (EnvironmentTemplate -> f EnvironmentTemplate)
-> UpdateEnvironmentTemplateResponse
-> f UpdateEnvironmentTemplateResponse
updateEnvironmentTemplateResponse_environmentTemplate = (UpdateEnvironmentTemplateResponse -> EnvironmentTemplate)
-> (UpdateEnvironmentTemplateResponse
    -> EnvironmentTemplate -> UpdateEnvironmentTemplateResponse)
-> Lens
     UpdateEnvironmentTemplateResponse
     UpdateEnvironmentTemplateResponse
     EnvironmentTemplate
     EnvironmentTemplate
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironmentTemplateResponse' {EnvironmentTemplate
environmentTemplate :: EnvironmentTemplate
$sel:environmentTemplate:UpdateEnvironmentTemplateResponse' :: UpdateEnvironmentTemplateResponse -> EnvironmentTemplate
environmentTemplate} -> EnvironmentTemplate
environmentTemplate) (\s :: UpdateEnvironmentTemplateResponse
s@UpdateEnvironmentTemplateResponse' {} EnvironmentTemplate
a -> UpdateEnvironmentTemplateResponse
s {$sel:environmentTemplate:UpdateEnvironmentTemplateResponse' :: EnvironmentTemplate
environmentTemplate = EnvironmentTemplate
a} :: UpdateEnvironmentTemplateResponse)

instance
  Prelude.NFData
    UpdateEnvironmentTemplateResponse