{-# 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.SSM.LabelParameterVersion
(
LabelParameterVersion (..),
newLabelParameterVersion,
labelParameterVersion_parameterVersion,
labelParameterVersion_name,
labelParameterVersion_labels,
LabelParameterVersionResponse (..),
newLabelParameterVersionResponse,
labelParameterVersionResponse_invalidLabels,
labelParameterVersionResponse_parameterVersion,
labelParameterVersionResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.SSM.Types
data LabelParameterVersion = LabelParameterVersion'
{
LabelParameterVersion -> Maybe Integer
parameterVersion :: Prelude.Maybe Prelude.Integer,
LabelParameterVersion -> Text
name :: Prelude.Text,
LabelParameterVersion -> NonEmpty Text
labels :: Prelude.NonEmpty Prelude.Text
}
deriving (LabelParameterVersion -> LabelParameterVersion -> Bool
(LabelParameterVersion -> LabelParameterVersion -> Bool)
-> (LabelParameterVersion -> LabelParameterVersion -> Bool)
-> Eq LabelParameterVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LabelParameterVersion -> LabelParameterVersion -> Bool
$c/= :: LabelParameterVersion -> LabelParameterVersion -> Bool
== :: LabelParameterVersion -> LabelParameterVersion -> Bool
$c== :: LabelParameterVersion -> LabelParameterVersion -> Bool
Prelude.Eq, ReadPrec [LabelParameterVersion]
ReadPrec LabelParameterVersion
Int -> ReadS LabelParameterVersion
ReadS [LabelParameterVersion]
(Int -> ReadS LabelParameterVersion)
-> ReadS [LabelParameterVersion]
-> ReadPrec LabelParameterVersion
-> ReadPrec [LabelParameterVersion]
-> Read LabelParameterVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LabelParameterVersion]
$creadListPrec :: ReadPrec [LabelParameterVersion]
readPrec :: ReadPrec LabelParameterVersion
$creadPrec :: ReadPrec LabelParameterVersion
readList :: ReadS [LabelParameterVersion]
$creadList :: ReadS [LabelParameterVersion]
readsPrec :: Int -> ReadS LabelParameterVersion
$creadsPrec :: Int -> ReadS LabelParameterVersion
Prelude.Read, Int -> LabelParameterVersion -> ShowS
[LabelParameterVersion] -> ShowS
LabelParameterVersion -> String
(Int -> LabelParameterVersion -> ShowS)
-> (LabelParameterVersion -> String)
-> ([LabelParameterVersion] -> ShowS)
-> Show LabelParameterVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LabelParameterVersion] -> ShowS
$cshowList :: [LabelParameterVersion] -> ShowS
show :: LabelParameterVersion -> String
$cshow :: LabelParameterVersion -> String
showsPrec :: Int -> LabelParameterVersion -> ShowS
$cshowsPrec :: Int -> LabelParameterVersion -> ShowS
Prelude.Show, (forall x. LabelParameterVersion -> Rep LabelParameterVersion x)
-> (forall x. Rep LabelParameterVersion x -> LabelParameterVersion)
-> Generic LabelParameterVersion
forall x. Rep LabelParameterVersion x -> LabelParameterVersion
forall x. LabelParameterVersion -> Rep LabelParameterVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep LabelParameterVersion x -> LabelParameterVersion
$cfrom :: forall x. LabelParameterVersion -> Rep LabelParameterVersion x
Prelude.Generic)
newLabelParameterVersion ::
Prelude.Text ->
Prelude.NonEmpty Prelude.Text ->
LabelParameterVersion
newLabelParameterVersion :: Text -> NonEmpty Text -> LabelParameterVersion
newLabelParameterVersion Text
pName_ NonEmpty Text
pLabels_ =
LabelParameterVersion' :: Maybe Integer -> Text -> NonEmpty Text -> LabelParameterVersion
LabelParameterVersion'
{ $sel:parameterVersion:LabelParameterVersion' :: Maybe Integer
parameterVersion =
Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:name:LabelParameterVersion' :: Text
name = Text
pName_,
$sel:labels:LabelParameterVersion' :: NonEmpty Text
labels = Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text))
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced (Tagged (NonEmpty Text) (Identity (NonEmpty Text))
-> Tagged (NonEmpty Text) (Identity (NonEmpty Text)))
-> NonEmpty Text -> NonEmpty Text
forall t b. AReview t b -> b -> t
Lens.# NonEmpty Text
pLabels_
}
labelParameterVersion_parameterVersion :: Lens.Lens' LabelParameterVersion (Prelude.Maybe Prelude.Integer)
labelParameterVersion_parameterVersion :: (Maybe Integer -> f (Maybe Integer))
-> LabelParameterVersion -> f LabelParameterVersion
labelParameterVersion_parameterVersion = (LabelParameterVersion -> Maybe Integer)
-> (LabelParameterVersion
-> Maybe Integer -> LabelParameterVersion)
-> Lens
LabelParameterVersion
LabelParameterVersion
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LabelParameterVersion' {Maybe Integer
parameterVersion :: Maybe Integer
$sel:parameterVersion:LabelParameterVersion' :: LabelParameterVersion -> Maybe Integer
parameterVersion} -> Maybe Integer
parameterVersion) (\s :: LabelParameterVersion
s@LabelParameterVersion' {} Maybe Integer
a -> LabelParameterVersion
s {$sel:parameterVersion:LabelParameterVersion' :: Maybe Integer
parameterVersion = Maybe Integer
a} :: LabelParameterVersion)
labelParameterVersion_name :: Lens.Lens' LabelParameterVersion Prelude.Text
labelParameterVersion_name :: (Text -> f Text)
-> LabelParameterVersion -> f LabelParameterVersion
labelParameterVersion_name = (LabelParameterVersion -> Text)
-> (LabelParameterVersion -> Text -> LabelParameterVersion)
-> Lens LabelParameterVersion LabelParameterVersion Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LabelParameterVersion' {Text
name :: Text
$sel:name:LabelParameterVersion' :: LabelParameterVersion -> Text
name} -> Text
name) (\s :: LabelParameterVersion
s@LabelParameterVersion' {} Text
a -> LabelParameterVersion
s {$sel:name:LabelParameterVersion' :: Text
name = Text
a} :: LabelParameterVersion)
labelParameterVersion_labels :: Lens.Lens' LabelParameterVersion (Prelude.NonEmpty Prelude.Text)
labelParameterVersion_labels :: (NonEmpty Text -> f (NonEmpty Text))
-> LabelParameterVersion -> f LabelParameterVersion
labelParameterVersion_labels = (LabelParameterVersion -> NonEmpty Text)
-> (LabelParameterVersion
-> NonEmpty Text -> LabelParameterVersion)
-> Lens
LabelParameterVersion
LabelParameterVersion
(NonEmpty Text)
(NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LabelParameterVersion' {NonEmpty Text
labels :: NonEmpty Text
$sel:labels:LabelParameterVersion' :: LabelParameterVersion -> NonEmpty Text
labels} -> NonEmpty Text
labels) (\s :: LabelParameterVersion
s@LabelParameterVersion' {} NonEmpty Text
a -> LabelParameterVersion
s {$sel:labels:LabelParameterVersion' :: NonEmpty Text
labels = NonEmpty Text
a} :: LabelParameterVersion) ((NonEmpty Text -> f (NonEmpty Text))
-> LabelParameterVersion -> f LabelParameterVersion)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> LabelParameterVersion
-> f LabelParameterVersion
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSRequest LabelParameterVersion where
type
AWSResponse LabelParameterVersion =
LabelParameterVersionResponse
request :: LabelParameterVersion -> Request LabelParameterVersion
request = Service -> LabelParameterVersion -> Request LabelParameterVersion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy LabelParameterVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse LabelParameterVersion)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse LabelParameterVersion))
-> Logger
-> Service
-> Proxy LabelParameterVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse LabelParameterVersion)))
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 ->
Maybe (NonEmpty Text)
-> Maybe Integer -> Int -> LabelParameterVersionResponse
LabelParameterVersionResponse'
(Maybe (NonEmpty Text)
-> Maybe Integer -> Int -> LabelParameterVersionResponse)
-> Either String (Maybe (NonEmpty Text))
-> Either
String (Maybe Integer -> Int -> LabelParameterVersionResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (NonEmpty Text))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"InvalidLabels")
Either
String (Maybe Integer -> Int -> LabelParameterVersionResponse)
-> Either String (Maybe Integer)
-> Either String (Int -> LabelParameterVersionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ParameterVersion")
Either String (Int -> LabelParameterVersionResponse)
-> Either String Int -> Either String LabelParameterVersionResponse
forall (f :: * -> *) a b. Applicative f => 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))
)
instance Prelude.Hashable LabelParameterVersion
instance Prelude.NFData LabelParameterVersion
instance Core.ToHeaders LabelParameterVersion where
toHeaders :: LabelParameterVersion -> ResponseHeaders
toHeaders =
ResponseHeaders -> LabelParameterVersion -> 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
"AmazonSSM.LabelParameterVersion" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON LabelParameterVersion where
toJSON :: LabelParameterVersion -> Value
toJSON LabelParameterVersion' {Maybe Integer
NonEmpty Text
Text
labels :: NonEmpty Text
name :: Text
parameterVersion :: Maybe Integer
$sel:labels:LabelParameterVersion' :: LabelParameterVersion -> NonEmpty Text
$sel:name:LabelParameterVersion' :: LabelParameterVersion -> Text
$sel:parameterVersion:LabelParameterVersion' :: LabelParameterVersion -> Maybe Integer
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ParameterVersion" Text -> Integer -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Integer -> Pair) -> Maybe Integer -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Integer
parameterVersion,
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),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"Labels" Text -> NonEmpty Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= NonEmpty Text
labels)
]
)
instance Core.ToPath LabelParameterVersion where
toPath :: LabelParameterVersion -> ByteString
toPath = ByteString -> LabelParameterVersion -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery LabelParameterVersion where
toQuery :: LabelParameterVersion -> QueryString
toQuery = QueryString -> LabelParameterVersion -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data LabelParameterVersionResponse = LabelParameterVersionResponse'
{
LabelParameterVersionResponse -> Maybe (NonEmpty Text)
invalidLabels :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
LabelParameterVersionResponse -> Maybe Integer
parameterVersion :: Prelude.Maybe Prelude.Integer,
LabelParameterVersionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (LabelParameterVersionResponse
-> LabelParameterVersionResponse -> Bool
(LabelParameterVersionResponse
-> LabelParameterVersionResponse -> Bool)
-> (LabelParameterVersionResponse
-> LabelParameterVersionResponse -> Bool)
-> Eq LabelParameterVersionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: LabelParameterVersionResponse
-> LabelParameterVersionResponse -> Bool
$c/= :: LabelParameterVersionResponse
-> LabelParameterVersionResponse -> Bool
== :: LabelParameterVersionResponse
-> LabelParameterVersionResponse -> Bool
$c== :: LabelParameterVersionResponse
-> LabelParameterVersionResponse -> Bool
Prelude.Eq, ReadPrec [LabelParameterVersionResponse]
ReadPrec LabelParameterVersionResponse
Int -> ReadS LabelParameterVersionResponse
ReadS [LabelParameterVersionResponse]
(Int -> ReadS LabelParameterVersionResponse)
-> ReadS [LabelParameterVersionResponse]
-> ReadPrec LabelParameterVersionResponse
-> ReadPrec [LabelParameterVersionResponse]
-> Read LabelParameterVersionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [LabelParameterVersionResponse]
$creadListPrec :: ReadPrec [LabelParameterVersionResponse]
readPrec :: ReadPrec LabelParameterVersionResponse
$creadPrec :: ReadPrec LabelParameterVersionResponse
readList :: ReadS [LabelParameterVersionResponse]
$creadList :: ReadS [LabelParameterVersionResponse]
readsPrec :: Int -> ReadS LabelParameterVersionResponse
$creadsPrec :: Int -> ReadS LabelParameterVersionResponse
Prelude.Read, Int -> LabelParameterVersionResponse -> ShowS
[LabelParameterVersionResponse] -> ShowS
LabelParameterVersionResponse -> String
(Int -> LabelParameterVersionResponse -> ShowS)
-> (LabelParameterVersionResponse -> String)
-> ([LabelParameterVersionResponse] -> ShowS)
-> Show LabelParameterVersionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [LabelParameterVersionResponse] -> ShowS
$cshowList :: [LabelParameterVersionResponse] -> ShowS
show :: LabelParameterVersionResponse -> String
$cshow :: LabelParameterVersionResponse -> String
showsPrec :: Int -> LabelParameterVersionResponse -> ShowS
$cshowsPrec :: Int -> LabelParameterVersionResponse -> ShowS
Prelude.Show, (forall x.
LabelParameterVersionResponse
-> Rep LabelParameterVersionResponse x)
-> (forall x.
Rep LabelParameterVersionResponse x
-> LabelParameterVersionResponse)
-> Generic LabelParameterVersionResponse
forall x.
Rep LabelParameterVersionResponse x
-> LabelParameterVersionResponse
forall x.
LabelParameterVersionResponse
-> Rep LabelParameterVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep LabelParameterVersionResponse x
-> LabelParameterVersionResponse
$cfrom :: forall x.
LabelParameterVersionResponse
-> Rep LabelParameterVersionResponse x
Prelude.Generic)
newLabelParameterVersionResponse ::
Prelude.Int ->
LabelParameterVersionResponse
newLabelParameterVersionResponse :: Int -> LabelParameterVersionResponse
newLabelParameterVersionResponse Int
pHttpStatus_ =
LabelParameterVersionResponse' :: Maybe (NonEmpty Text)
-> Maybe Integer -> Int -> LabelParameterVersionResponse
LabelParameterVersionResponse'
{ $sel:invalidLabels:LabelParameterVersionResponse' :: Maybe (NonEmpty Text)
invalidLabels =
Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:parameterVersion:LabelParameterVersionResponse' :: Maybe Integer
parameterVersion = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:LabelParameterVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
labelParameterVersionResponse_invalidLabels :: Lens.Lens' LabelParameterVersionResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
labelParameterVersionResponse_invalidLabels :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> LabelParameterVersionResponse -> f LabelParameterVersionResponse
labelParameterVersionResponse_invalidLabels = (LabelParameterVersionResponse -> Maybe (NonEmpty Text))
-> (LabelParameterVersionResponse
-> Maybe (NonEmpty Text) -> LabelParameterVersionResponse)
-> Lens
LabelParameterVersionResponse
LabelParameterVersionResponse
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LabelParameterVersionResponse' {Maybe (NonEmpty Text)
invalidLabels :: Maybe (NonEmpty Text)
$sel:invalidLabels:LabelParameterVersionResponse' :: LabelParameterVersionResponse -> Maybe (NonEmpty Text)
invalidLabels} -> Maybe (NonEmpty Text)
invalidLabels) (\s :: LabelParameterVersionResponse
s@LabelParameterVersionResponse' {} Maybe (NonEmpty Text)
a -> LabelParameterVersionResponse
s {$sel:invalidLabels:LabelParameterVersionResponse' :: Maybe (NonEmpty Text)
invalidLabels = Maybe (NonEmpty Text)
a} :: LabelParameterVersionResponse) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> LabelParameterVersionResponse
-> f LabelParameterVersionResponse)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> LabelParameterVersionResponse
-> f LabelParameterVersionResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
-> Iso
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
(Maybe (NonEmpty 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
(NonEmpty Text) (NonEmpty Text) (NonEmpty Text) (NonEmpty Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
labelParameterVersionResponse_parameterVersion :: Lens.Lens' LabelParameterVersionResponse (Prelude.Maybe Prelude.Integer)
labelParameterVersionResponse_parameterVersion :: (Maybe Integer -> f (Maybe Integer))
-> LabelParameterVersionResponse -> f LabelParameterVersionResponse
labelParameterVersionResponse_parameterVersion = (LabelParameterVersionResponse -> Maybe Integer)
-> (LabelParameterVersionResponse
-> Maybe Integer -> LabelParameterVersionResponse)
-> Lens
LabelParameterVersionResponse
LabelParameterVersionResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LabelParameterVersionResponse' {Maybe Integer
parameterVersion :: Maybe Integer
$sel:parameterVersion:LabelParameterVersionResponse' :: LabelParameterVersionResponse -> Maybe Integer
parameterVersion} -> Maybe Integer
parameterVersion) (\s :: LabelParameterVersionResponse
s@LabelParameterVersionResponse' {} Maybe Integer
a -> LabelParameterVersionResponse
s {$sel:parameterVersion:LabelParameterVersionResponse' :: Maybe Integer
parameterVersion = Maybe Integer
a} :: LabelParameterVersionResponse)
labelParameterVersionResponse_httpStatus :: Lens.Lens' LabelParameterVersionResponse Prelude.Int
labelParameterVersionResponse_httpStatus :: (Int -> f Int)
-> LabelParameterVersionResponse -> f LabelParameterVersionResponse
labelParameterVersionResponse_httpStatus = (LabelParameterVersionResponse -> Int)
-> (LabelParameterVersionResponse
-> Int -> LabelParameterVersionResponse)
-> Lens
LabelParameterVersionResponse LabelParameterVersionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\LabelParameterVersionResponse' {Int
httpStatus :: Int
$sel:httpStatus:LabelParameterVersionResponse' :: LabelParameterVersionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: LabelParameterVersionResponse
s@LabelParameterVersionResponse' {} Int
a -> LabelParameterVersionResponse
s {$sel:httpStatus:LabelParameterVersionResponse' :: Int
httpStatus = Int
a} :: LabelParameterVersionResponse)
instance Prelude.NFData LabelParameterVersionResponse