{-# 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 #-}
module Amazonka.Proton.UpdateEnvironmentTemplateVersion
(
UpdateEnvironmentTemplateVersion (..),
newUpdateEnvironmentTemplateVersion,
updateEnvironmentTemplateVersion_status,
updateEnvironmentTemplateVersion_description,
updateEnvironmentTemplateVersion_majorVersion,
updateEnvironmentTemplateVersion_minorVersion,
updateEnvironmentTemplateVersion_templateName,
UpdateEnvironmentTemplateVersionResponse (..),
newUpdateEnvironmentTemplateVersionResponse,
updateEnvironmentTemplateVersionResponse_httpStatus,
updateEnvironmentTemplateVersionResponse_environmentTemplateVersion,
)
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
data UpdateEnvironmentTemplateVersion = UpdateEnvironmentTemplateVersion'
{
UpdateEnvironmentTemplateVersion -> Maybe TemplateVersionStatus
status :: Prelude.Maybe TemplateVersionStatus,
UpdateEnvironmentTemplateVersion -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Core.Sensitive Prelude.Text),
UpdateEnvironmentTemplateVersion -> Text
majorVersion :: Prelude.Text,
UpdateEnvironmentTemplateVersion -> Text
minorVersion :: Prelude.Text,
UpdateEnvironmentTemplateVersion -> Text
templateName :: Prelude.Text
}
deriving (UpdateEnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersion -> Bool
(UpdateEnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersion -> Bool)
-> (UpdateEnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersion -> Bool)
-> Eq UpdateEnvironmentTemplateVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateEnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersion -> Bool
$c/= :: UpdateEnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersion -> Bool
== :: UpdateEnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersion -> Bool
$c== :: UpdateEnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersion -> Bool
Prelude.Eq, Int -> UpdateEnvironmentTemplateVersion -> ShowS
[UpdateEnvironmentTemplateVersion] -> ShowS
UpdateEnvironmentTemplateVersion -> String
(Int -> UpdateEnvironmentTemplateVersion -> ShowS)
-> (UpdateEnvironmentTemplateVersion -> String)
-> ([UpdateEnvironmentTemplateVersion] -> ShowS)
-> Show UpdateEnvironmentTemplateVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateEnvironmentTemplateVersion] -> ShowS
$cshowList :: [UpdateEnvironmentTemplateVersion] -> ShowS
show :: UpdateEnvironmentTemplateVersion -> String
$cshow :: UpdateEnvironmentTemplateVersion -> String
showsPrec :: Int -> UpdateEnvironmentTemplateVersion -> ShowS
$cshowsPrec :: Int -> UpdateEnvironmentTemplateVersion -> ShowS
Prelude.Show, (forall x.
UpdateEnvironmentTemplateVersion
-> Rep UpdateEnvironmentTemplateVersion x)
-> (forall x.
Rep UpdateEnvironmentTemplateVersion x
-> UpdateEnvironmentTemplateVersion)
-> Generic UpdateEnvironmentTemplateVersion
forall x.
Rep UpdateEnvironmentTemplateVersion x
-> UpdateEnvironmentTemplateVersion
forall x.
UpdateEnvironmentTemplateVersion
-> Rep UpdateEnvironmentTemplateVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateEnvironmentTemplateVersion x
-> UpdateEnvironmentTemplateVersion
$cfrom :: forall x.
UpdateEnvironmentTemplateVersion
-> Rep UpdateEnvironmentTemplateVersion x
Prelude.Generic)
newUpdateEnvironmentTemplateVersion ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
UpdateEnvironmentTemplateVersion
newUpdateEnvironmentTemplateVersion :: Text -> Text -> Text -> UpdateEnvironmentTemplateVersion
newUpdateEnvironmentTemplateVersion
Text
pMajorVersion_
Text
pMinorVersion_
Text
pTemplateName_ =
UpdateEnvironmentTemplateVersion' :: Maybe TemplateVersionStatus
-> Maybe (Sensitive Text)
-> Text
-> Text
-> Text
-> UpdateEnvironmentTemplateVersion
UpdateEnvironmentTemplateVersion'
{ $sel:status:UpdateEnvironmentTemplateVersion' :: Maybe TemplateVersionStatus
status =
Maybe TemplateVersionStatus
forall a. Maybe a
Prelude.Nothing,
$sel:description:UpdateEnvironmentTemplateVersion' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
forall a. Maybe a
Prelude.Nothing,
$sel:majorVersion:UpdateEnvironmentTemplateVersion' :: Text
majorVersion = Text
pMajorVersion_,
$sel:minorVersion:UpdateEnvironmentTemplateVersion' :: Text
minorVersion = Text
pMinorVersion_,
$sel:templateName:UpdateEnvironmentTemplateVersion' :: Text
templateName = Text
pTemplateName_
}
updateEnvironmentTemplateVersion_status :: Lens.Lens' UpdateEnvironmentTemplateVersion (Prelude.Maybe TemplateVersionStatus)
updateEnvironmentTemplateVersion_status :: (Maybe TemplateVersionStatus -> f (Maybe TemplateVersionStatus))
-> UpdateEnvironmentTemplateVersion
-> f UpdateEnvironmentTemplateVersion
updateEnvironmentTemplateVersion_status = (UpdateEnvironmentTemplateVersion -> Maybe TemplateVersionStatus)
-> (UpdateEnvironmentTemplateVersion
-> Maybe TemplateVersionStatus -> UpdateEnvironmentTemplateVersion)
-> Lens
UpdateEnvironmentTemplateVersion
UpdateEnvironmentTemplateVersion
(Maybe TemplateVersionStatus)
(Maybe TemplateVersionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironmentTemplateVersion' {Maybe TemplateVersionStatus
status :: Maybe TemplateVersionStatus
$sel:status:UpdateEnvironmentTemplateVersion' :: UpdateEnvironmentTemplateVersion -> Maybe TemplateVersionStatus
status} -> Maybe TemplateVersionStatus
status) (\s :: UpdateEnvironmentTemplateVersion
s@UpdateEnvironmentTemplateVersion' {} Maybe TemplateVersionStatus
a -> UpdateEnvironmentTemplateVersion
s {$sel:status:UpdateEnvironmentTemplateVersion' :: Maybe TemplateVersionStatus
status = Maybe TemplateVersionStatus
a} :: UpdateEnvironmentTemplateVersion)
updateEnvironmentTemplateVersion_description :: Lens.Lens' UpdateEnvironmentTemplateVersion (Prelude.Maybe Prelude.Text)
updateEnvironmentTemplateVersion_description :: (Maybe Text -> f (Maybe Text))
-> UpdateEnvironmentTemplateVersion
-> f UpdateEnvironmentTemplateVersion
updateEnvironmentTemplateVersion_description = (UpdateEnvironmentTemplateVersion -> Maybe (Sensitive Text))
-> (UpdateEnvironmentTemplateVersion
-> Maybe (Sensitive Text) -> UpdateEnvironmentTemplateVersion)
-> Lens
UpdateEnvironmentTemplateVersion
UpdateEnvironmentTemplateVersion
(Maybe (Sensitive Text))
(Maybe (Sensitive Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironmentTemplateVersion' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:UpdateEnvironmentTemplateVersion' :: UpdateEnvironmentTemplateVersion -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: UpdateEnvironmentTemplateVersion
s@UpdateEnvironmentTemplateVersion' {} Maybe (Sensitive Text)
a -> UpdateEnvironmentTemplateVersion
s {$sel:description:UpdateEnvironmentTemplateVersion' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: UpdateEnvironmentTemplateVersion) ((Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> UpdateEnvironmentTemplateVersion
-> f UpdateEnvironmentTemplateVersion)
-> ((Maybe Text -> f (Maybe Text))
-> Maybe (Sensitive Text) -> f (Maybe (Sensitive Text)))
-> (Maybe Text -> f (Maybe Text))
-> UpdateEnvironmentTemplateVersion
-> f UpdateEnvironmentTemplateVersion
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
updateEnvironmentTemplateVersion_majorVersion :: Lens.Lens' UpdateEnvironmentTemplateVersion Prelude.Text
updateEnvironmentTemplateVersion_majorVersion :: (Text -> f Text)
-> UpdateEnvironmentTemplateVersion
-> f UpdateEnvironmentTemplateVersion
updateEnvironmentTemplateVersion_majorVersion = (UpdateEnvironmentTemplateVersion -> Text)
-> (UpdateEnvironmentTemplateVersion
-> Text -> UpdateEnvironmentTemplateVersion)
-> Lens
UpdateEnvironmentTemplateVersion
UpdateEnvironmentTemplateVersion
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironmentTemplateVersion' {Text
majorVersion :: Text
$sel:majorVersion:UpdateEnvironmentTemplateVersion' :: UpdateEnvironmentTemplateVersion -> Text
majorVersion} -> Text
majorVersion) (\s :: UpdateEnvironmentTemplateVersion
s@UpdateEnvironmentTemplateVersion' {} Text
a -> UpdateEnvironmentTemplateVersion
s {$sel:majorVersion:UpdateEnvironmentTemplateVersion' :: Text
majorVersion = Text
a} :: UpdateEnvironmentTemplateVersion)
updateEnvironmentTemplateVersion_minorVersion :: Lens.Lens' UpdateEnvironmentTemplateVersion Prelude.Text
updateEnvironmentTemplateVersion_minorVersion :: (Text -> f Text)
-> UpdateEnvironmentTemplateVersion
-> f UpdateEnvironmentTemplateVersion
updateEnvironmentTemplateVersion_minorVersion = (UpdateEnvironmentTemplateVersion -> Text)
-> (UpdateEnvironmentTemplateVersion
-> Text -> UpdateEnvironmentTemplateVersion)
-> Lens
UpdateEnvironmentTemplateVersion
UpdateEnvironmentTemplateVersion
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironmentTemplateVersion' {Text
minorVersion :: Text
$sel:minorVersion:UpdateEnvironmentTemplateVersion' :: UpdateEnvironmentTemplateVersion -> Text
minorVersion} -> Text
minorVersion) (\s :: UpdateEnvironmentTemplateVersion
s@UpdateEnvironmentTemplateVersion' {} Text
a -> UpdateEnvironmentTemplateVersion
s {$sel:minorVersion:UpdateEnvironmentTemplateVersion' :: Text
minorVersion = Text
a} :: UpdateEnvironmentTemplateVersion)
updateEnvironmentTemplateVersion_templateName :: Lens.Lens' UpdateEnvironmentTemplateVersion Prelude.Text
updateEnvironmentTemplateVersion_templateName :: (Text -> f Text)
-> UpdateEnvironmentTemplateVersion
-> f UpdateEnvironmentTemplateVersion
updateEnvironmentTemplateVersion_templateName = (UpdateEnvironmentTemplateVersion -> Text)
-> (UpdateEnvironmentTemplateVersion
-> Text -> UpdateEnvironmentTemplateVersion)
-> Lens
UpdateEnvironmentTemplateVersion
UpdateEnvironmentTemplateVersion
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironmentTemplateVersion' {Text
templateName :: Text
$sel:templateName:UpdateEnvironmentTemplateVersion' :: UpdateEnvironmentTemplateVersion -> Text
templateName} -> Text
templateName) (\s :: UpdateEnvironmentTemplateVersion
s@UpdateEnvironmentTemplateVersion' {} Text
a -> UpdateEnvironmentTemplateVersion
s {$sel:templateName:UpdateEnvironmentTemplateVersion' :: Text
templateName = Text
a} :: UpdateEnvironmentTemplateVersion)
instance
Core.AWSRequest
UpdateEnvironmentTemplateVersion
where
type
AWSResponse UpdateEnvironmentTemplateVersion =
UpdateEnvironmentTemplateVersionResponse
request :: UpdateEnvironmentTemplateVersion
-> Request UpdateEnvironmentTemplateVersion
request = Service
-> UpdateEnvironmentTemplateVersion
-> Request UpdateEnvironmentTemplateVersion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UpdateEnvironmentTemplateVersion
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse UpdateEnvironmentTemplateVersion)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UpdateEnvironmentTemplateVersion))
-> Logger
-> Service
-> Proxy UpdateEnvironmentTemplateVersion
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse UpdateEnvironmentTemplateVersion)))
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
-> EnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersionResponse
UpdateEnvironmentTemplateVersionResponse'
(Int
-> EnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersionResponse)
-> Either String Int
-> Either
String
(EnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersionResponse)
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
(EnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersionResponse)
-> Either String EnvironmentTemplateVersion
-> Either String UpdateEnvironmentTemplateVersionResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String EnvironmentTemplateVersion
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"environmentTemplateVersion")
)
instance
Prelude.Hashable
UpdateEnvironmentTemplateVersion
instance
Prelude.NFData
UpdateEnvironmentTemplateVersion
instance
Core.ToHeaders
UpdateEnvironmentTemplateVersion
where
toHeaders :: UpdateEnvironmentTemplateVersion -> ResponseHeaders
toHeaders =
ResponseHeaders
-> UpdateEnvironmentTemplateVersion -> 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.UpdateEnvironmentTemplateVersion" ::
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 UpdateEnvironmentTemplateVersion where
toJSON :: UpdateEnvironmentTemplateVersion -> Value
toJSON UpdateEnvironmentTemplateVersion' {Maybe (Sensitive Text)
Maybe TemplateVersionStatus
Text
templateName :: Text
minorVersion :: Text
majorVersion :: Text
description :: Maybe (Sensitive Text)
status :: Maybe TemplateVersionStatus
$sel:templateName:UpdateEnvironmentTemplateVersion' :: UpdateEnvironmentTemplateVersion -> Text
$sel:minorVersion:UpdateEnvironmentTemplateVersion' :: UpdateEnvironmentTemplateVersion -> Text
$sel:majorVersion:UpdateEnvironmentTemplateVersion' :: UpdateEnvironmentTemplateVersion -> Text
$sel:description:UpdateEnvironmentTemplateVersion' :: UpdateEnvironmentTemplateVersion -> Maybe (Sensitive Text)
$sel:status:UpdateEnvironmentTemplateVersion' :: UpdateEnvironmentTemplateVersion -> Maybe TemplateVersionStatus
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"status" Text -> TemplateVersionStatus -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (TemplateVersionStatus -> Pair)
-> Maybe TemplateVersionStatus -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe TemplateVersionStatus
status,
(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
"majorVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
majorVersion),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"minorVersion" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
minorVersion),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"templateName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
templateName)
]
)
instance Core.ToPath UpdateEnvironmentTemplateVersion where
toPath :: UpdateEnvironmentTemplateVersion -> ByteString
toPath = ByteString -> UpdateEnvironmentTemplateVersion -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Core.ToQuery
UpdateEnvironmentTemplateVersion
where
toQuery :: UpdateEnvironmentTemplateVersion -> QueryString
toQuery = QueryString -> UpdateEnvironmentTemplateVersion -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UpdateEnvironmentTemplateVersionResponse = UpdateEnvironmentTemplateVersionResponse'
{
UpdateEnvironmentTemplateVersionResponse -> Int
httpStatus :: Prelude.Int,
UpdateEnvironmentTemplateVersionResponse
-> EnvironmentTemplateVersion
environmentTemplateVersion :: EnvironmentTemplateVersion
}
deriving (UpdateEnvironmentTemplateVersionResponse
-> UpdateEnvironmentTemplateVersionResponse -> Bool
(UpdateEnvironmentTemplateVersionResponse
-> UpdateEnvironmentTemplateVersionResponse -> Bool)
-> (UpdateEnvironmentTemplateVersionResponse
-> UpdateEnvironmentTemplateVersionResponse -> Bool)
-> Eq UpdateEnvironmentTemplateVersionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateEnvironmentTemplateVersionResponse
-> UpdateEnvironmentTemplateVersionResponse -> Bool
$c/= :: UpdateEnvironmentTemplateVersionResponse
-> UpdateEnvironmentTemplateVersionResponse -> Bool
== :: UpdateEnvironmentTemplateVersionResponse
-> UpdateEnvironmentTemplateVersionResponse -> Bool
$c== :: UpdateEnvironmentTemplateVersionResponse
-> UpdateEnvironmentTemplateVersionResponse -> Bool
Prelude.Eq, Int -> UpdateEnvironmentTemplateVersionResponse -> ShowS
[UpdateEnvironmentTemplateVersionResponse] -> ShowS
UpdateEnvironmentTemplateVersionResponse -> String
(Int -> UpdateEnvironmentTemplateVersionResponse -> ShowS)
-> (UpdateEnvironmentTemplateVersionResponse -> String)
-> ([UpdateEnvironmentTemplateVersionResponse] -> ShowS)
-> Show UpdateEnvironmentTemplateVersionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateEnvironmentTemplateVersionResponse] -> ShowS
$cshowList :: [UpdateEnvironmentTemplateVersionResponse] -> ShowS
show :: UpdateEnvironmentTemplateVersionResponse -> String
$cshow :: UpdateEnvironmentTemplateVersionResponse -> String
showsPrec :: Int -> UpdateEnvironmentTemplateVersionResponse -> ShowS
$cshowsPrec :: Int -> UpdateEnvironmentTemplateVersionResponse -> ShowS
Prelude.Show, (forall x.
UpdateEnvironmentTemplateVersionResponse
-> Rep UpdateEnvironmentTemplateVersionResponse x)
-> (forall x.
Rep UpdateEnvironmentTemplateVersionResponse x
-> UpdateEnvironmentTemplateVersionResponse)
-> Generic UpdateEnvironmentTemplateVersionResponse
forall x.
Rep UpdateEnvironmentTemplateVersionResponse x
-> UpdateEnvironmentTemplateVersionResponse
forall x.
UpdateEnvironmentTemplateVersionResponse
-> Rep UpdateEnvironmentTemplateVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateEnvironmentTemplateVersionResponse x
-> UpdateEnvironmentTemplateVersionResponse
$cfrom :: forall x.
UpdateEnvironmentTemplateVersionResponse
-> Rep UpdateEnvironmentTemplateVersionResponse x
Prelude.Generic)
newUpdateEnvironmentTemplateVersionResponse ::
Prelude.Int ->
EnvironmentTemplateVersion ->
UpdateEnvironmentTemplateVersionResponse
newUpdateEnvironmentTemplateVersionResponse :: Int
-> EnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersionResponse
newUpdateEnvironmentTemplateVersionResponse
Int
pHttpStatus_
EnvironmentTemplateVersion
pEnvironmentTemplateVersion_ =
UpdateEnvironmentTemplateVersionResponse' :: Int
-> EnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersionResponse
UpdateEnvironmentTemplateVersionResponse'
{ $sel:httpStatus:UpdateEnvironmentTemplateVersionResponse' :: Int
httpStatus =
Int
pHttpStatus_,
$sel:environmentTemplateVersion:UpdateEnvironmentTemplateVersionResponse' :: EnvironmentTemplateVersion
environmentTemplateVersion =
EnvironmentTemplateVersion
pEnvironmentTemplateVersion_
}
updateEnvironmentTemplateVersionResponse_httpStatus :: Lens.Lens' UpdateEnvironmentTemplateVersionResponse Prelude.Int
updateEnvironmentTemplateVersionResponse_httpStatus :: (Int -> f Int)
-> UpdateEnvironmentTemplateVersionResponse
-> f UpdateEnvironmentTemplateVersionResponse
updateEnvironmentTemplateVersionResponse_httpStatus = (UpdateEnvironmentTemplateVersionResponse -> Int)
-> (UpdateEnvironmentTemplateVersionResponse
-> Int -> UpdateEnvironmentTemplateVersionResponse)
-> Lens
UpdateEnvironmentTemplateVersionResponse
UpdateEnvironmentTemplateVersionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironmentTemplateVersionResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateEnvironmentTemplateVersionResponse' :: UpdateEnvironmentTemplateVersionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateEnvironmentTemplateVersionResponse
s@UpdateEnvironmentTemplateVersionResponse' {} Int
a -> UpdateEnvironmentTemplateVersionResponse
s {$sel:httpStatus:UpdateEnvironmentTemplateVersionResponse' :: Int
httpStatus = Int
a} :: UpdateEnvironmentTemplateVersionResponse)
updateEnvironmentTemplateVersionResponse_environmentTemplateVersion :: Lens.Lens' UpdateEnvironmentTemplateVersionResponse EnvironmentTemplateVersion
updateEnvironmentTemplateVersionResponse_environmentTemplateVersion :: (EnvironmentTemplateVersion -> f EnvironmentTemplateVersion)
-> UpdateEnvironmentTemplateVersionResponse
-> f UpdateEnvironmentTemplateVersionResponse
updateEnvironmentTemplateVersionResponse_environmentTemplateVersion = (UpdateEnvironmentTemplateVersionResponse
-> EnvironmentTemplateVersion)
-> (UpdateEnvironmentTemplateVersionResponse
-> EnvironmentTemplateVersion
-> UpdateEnvironmentTemplateVersionResponse)
-> Lens
UpdateEnvironmentTemplateVersionResponse
UpdateEnvironmentTemplateVersionResponse
EnvironmentTemplateVersion
EnvironmentTemplateVersion
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateEnvironmentTemplateVersionResponse' {EnvironmentTemplateVersion
environmentTemplateVersion :: EnvironmentTemplateVersion
$sel:environmentTemplateVersion:UpdateEnvironmentTemplateVersionResponse' :: UpdateEnvironmentTemplateVersionResponse
-> EnvironmentTemplateVersion
environmentTemplateVersion} -> EnvironmentTemplateVersion
environmentTemplateVersion) (\s :: UpdateEnvironmentTemplateVersionResponse
s@UpdateEnvironmentTemplateVersionResponse' {} EnvironmentTemplateVersion
a -> UpdateEnvironmentTemplateVersionResponse
s {$sel:environmentTemplateVersion:UpdateEnvironmentTemplateVersionResponse' :: EnvironmentTemplateVersion
environmentTemplateVersion = EnvironmentTemplateVersion
a} :: UpdateEnvironmentTemplateVersionResponse)
instance
Prelude.NFData
UpdateEnvironmentTemplateVersionResponse