{-# 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.UpdateServiceTemplate
-- 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 a service template.
module Amazonka.Proton.UpdateServiceTemplate
  ( -- * Creating a Request
    UpdateServiceTemplate (..),
    newUpdateServiceTemplate,

    -- * Request Lenses
    updateServiceTemplate_displayName,
    updateServiceTemplate_description,
    updateServiceTemplate_name,

    -- * Destructuring the Response
    UpdateServiceTemplateResponse (..),
    newUpdateServiceTemplateResponse,

    -- * Response Lenses
    updateServiceTemplateResponse_httpStatus,
    updateServiceTemplateResponse_serviceTemplate,
  )
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:/ 'newUpdateServiceTemplate' smart constructor.
data UpdateServiceTemplate = UpdateServiceTemplate'
  { -- | The name of the service template to update as displayed in the developer
    -- interface.
    UpdateServiceTemplate -> Maybe (Sensitive Text)
displayName :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | A description of the service template update.
    UpdateServiceTemplate -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Core.Sensitive Prelude.Text),
    -- | The name of the service template to update.
    UpdateServiceTemplate -> Text
name :: Prelude.Text
  }
  deriving (UpdateServiceTemplate -> UpdateServiceTemplate -> Bool
(UpdateServiceTemplate -> UpdateServiceTemplate -> Bool)
-> (UpdateServiceTemplate -> UpdateServiceTemplate -> Bool)
-> Eq UpdateServiceTemplate
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateServiceTemplate -> UpdateServiceTemplate -> Bool
$c/= :: UpdateServiceTemplate -> UpdateServiceTemplate -> Bool
== :: UpdateServiceTemplate -> UpdateServiceTemplate -> Bool
$c== :: UpdateServiceTemplate -> UpdateServiceTemplate -> Bool
Prelude.Eq, Int -> UpdateServiceTemplate -> ShowS
[UpdateServiceTemplate] -> ShowS
UpdateServiceTemplate -> String
(Int -> UpdateServiceTemplate -> ShowS)
-> (UpdateServiceTemplate -> String)
-> ([UpdateServiceTemplate] -> ShowS)
-> Show UpdateServiceTemplate
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateServiceTemplate] -> ShowS
$cshowList :: [UpdateServiceTemplate] -> ShowS
show :: UpdateServiceTemplate -> String
$cshow :: UpdateServiceTemplate -> String
showsPrec :: Int -> UpdateServiceTemplate -> ShowS
$cshowsPrec :: Int -> UpdateServiceTemplate -> ShowS
Prelude.Show, (forall x. UpdateServiceTemplate -> Rep UpdateServiceTemplate x)
-> (forall x. Rep UpdateServiceTemplate x -> UpdateServiceTemplate)
-> Generic UpdateServiceTemplate
forall x. Rep UpdateServiceTemplate x -> UpdateServiceTemplate
forall x. UpdateServiceTemplate -> Rep UpdateServiceTemplate x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateServiceTemplate x -> UpdateServiceTemplate
$cfrom :: forall x. UpdateServiceTemplate -> Rep UpdateServiceTemplate x
Prelude.Generic)

-- |
-- Create a value of 'UpdateServiceTemplate' 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', 'updateServiceTemplate_displayName' - The name of the service template to update as displayed in the developer
-- interface.
--
-- 'description', 'updateServiceTemplate_description' - A description of the service template update.
--
-- 'name', 'updateServiceTemplate_name' - The name of the service template to update.
newUpdateServiceTemplate ::
  -- | 'name'
  Prelude.Text ->
  UpdateServiceTemplate
newUpdateServiceTemplate :: Text -> UpdateServiceTemplate
newUpdateServiceTemplate Text
pName_ =
  UpdateServiceTemplate' :: Maybe (Sensitive Text)
-> Maybe (Sensitive Text) -> Text -> UpdateServiceTemplate
UpdateServiceTemplate'
    { $sel:displayName:UpdateServiceTemplate' :: Maybe (Sensitive Text)
displayName =
        Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:description:UpdateServiceTemplate' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:name:UpdateServiceTemplate' :: Text
name = Text
pName_
    }

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

instance Core.AWSRequest UpdateServiceTemplate where
  type
    AWSResponse UpdateServiceTemplate =
      UpdateServiceTemplateResponse
  request :: UpdateServiceTemplate -> Request UpdateServiceTemplate
request = Service -> UpdateServiceTemplate -> Request UpdateServiceTemplate
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateServiceTemplate
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateServiceTemplate)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateServiceTemplate))
-> Logger
-> Service
-> Proxy UpdateServiceTemplate
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse UpdateServiceTemplate)))
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 -> ServiceTemplate -> UpdateServiceTemplateResponse
UpdateServiceTemplateResponse'
            (Int -> ServiceTemplate -> UpdateServiceTemplateResponse)
-> Either String Int
-> Either String (ServiceTemplate -> UpdateServiceTemplateResponse)
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 (ServiceTemplate -> UpdateServiceTemplateResponse)
-> Either String ServiceTemplate
-> Either String UpdateServiceTemplateResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String ServiceTemplate
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"serviceTemplate")
      )

instance Prelude.Hashable UpdateServiceTemplate

instance Prelude.NFData UpdateServiceTemplate

instance Core.ToHeaders UpdateServiceTemplate where
  toHeaders :: UpdateServiceTemplate -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateServiceTemplate -> 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.UpdateServiceTemplate" ::
                          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 UpdateServiceTemplate where
  toJSON :: UpdateServiceTemplate -> Value
toJSON UpdateServiceTemplate' {Maybe (Sensitive Text)
Text
name :: Text
description :: Maybe (Sensitive Text)
displayName :: Maybe (Sensitive Text)
$sel:name:UpdateServiceTemplate' :: UpdateServiceTemplate -> Text
$sel:description:UpdateServiceTemplate' :: UpdateServiceTemplate -> Maybe (Sensitive Text)
$sel:displayName:UpdateServiceTemplate' :: UpdateServiceTemplate -> 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 UpdateServiceTemplate where
  toPath :: UpdateServiceTemplate -> ByteString
toPath = ByteString -> UpdateServiceTemplate -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

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

-- |
-- Create a value of 'UpdateServiceTemplateResponse' 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', 'updateServiceTemplateResponse_httpStatus' - The response's http status code.
--
-- 'serviceTemplate', 'updateServiceTemplateResponse_serviceTemplate' - The service template detail data that\'s returned by AWS Proton.
newUpdateServiceTemplateResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  -- | 'serviceTemplate'
  ServiceTemplate ->
  UpdateServiceTemplateResponse
newUpdateServiceTemplateResponse :: Int -> ServiceTemplate -> UpdateServiceTemplateResponse
newUpdateServiceTemplateResponse
  Int
pHttpStatus_
  ServiceTemplate
pServiceTemplate_ =
    UpdateServiceTemplateResponse' :: Int -> ServiceTemplate -> UpdateServiceTemplateResponse
UpdateServiceTemplateResponse'
      { $sel:httpStatus:UpdateServiceTemplateResponse' :: Int
httpStatus =
          Int
pHttpStatus_,
        $sel:serviceTemplate:UpdateServiceTemplateResponse' :: ServiceTemplate
serviceTemplate = ServiceTemplate
pServiceTemplate_
      }

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

-- | The service template detail data that\'s returned by AWS Proton.
updateServiceTemplateResponse_serviceTemplate :: Lens.Lens' UpdateServiceTemplateResponse ServiceTemplate
updateServiceTemplateResponse_serviceTemplate :: (ServiceTemplate -> f ServiceTemplate)
-> UpdateServiceTemplateResponse -> f UpdateServiceTemplateResponse
updateServiceTemplateResponse_serviceTemplate = (UpdateServiceTemplateResponse -> ServiceTemplate)
-> (UpdateServiceTemplateResponse
    -> ServiceTemplate -> UpdateServiceTemplateResponse)
-> Lens
     UpdateServiceTemplateResponse
     UpdateServiceTemplateResponse
     ServiceTemplate
     ServiceTemplate
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateServiceTemplateResponse' {ServiceTemplate
serviceTemplate :: ServiceTemplate
$sel:serviceTemplate:UpdateServiceTemplateResponse' :: UpdateServiceTemplateResponse -> ServiceTemplate
serviceTemplate} -> ServiceTemplate
serviceTemplate) (\s :: UpdateServiceTemplateResponse
s@UpdateServiceTemplateResponse' {} ServiceTemplate
a -> UpdateServiceTemplateResponse
s {$sel:serviceTemplate:UpdateServiceTemplateResponse' :: ServiceTemplate
serviceTemplate = ServiceTemplate
a} :: UpdateServiceTemplateResponse)

instance Prelude.NFData UpdateServiceTemplateResponse