{-# 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.UnlabelParameterVersion
(
UnlabelParameterVersion (..),
newUnlabelParameterVersion,
unlabelParameterVersion_name,
unlabelParameterVersion_parameterVersion,
unlabelParameterVersion_labels,
UnlabelParameterVersionResponse (..),
newUnlabelParameterVersionResponse,
unlabelParameterVersionResponse_invalidLabels,
unlabelParameterVersionResponse_removedLabels,
unlabelParameterVersionResponse_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 UnlabelParameterVersion = UnlabelParameterVersion'
{
UnlabelParameterVersion -> Text
name :: Prelude.Text,
UnlabelParameterVersion -> Integer
parameterVersion :: Prelude.Integer,
UnlabelParameterVersion -> NonEmpty Text
labels :: Prelude.NonEmpty Prelude.Text
}
deriving (UnlabelParameterVersion -> UnlabelParameterVersion -> Bool
(UnlabelParameterVersion -> UnlabelParameterVersion -> Bool)
-> (UnlabelParameterVersion -> UnlabelParameterVersion -> Bool)
-> Eq UnlabelParameterVersion
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UnlabelParameterVersion -> UnlabelParameterVersion -> Bool
$c/= :: UnlabelParameterVersion -> UnlabelParameterVersion -> Bool
== :: UnlabelParameterVersion -> UnlabelParameterVersion -> Bool
$c== :: UnlabelParameterVersion -> UnlabelParameterVersion -> Bool
Prelude.Eq, ReadPrec [UnlabelParameterVersion]
ReadPrec UnlabelParameterVersion
Int -> ReadS UnlabelParameterVersion
ReadS [UnlabelParameterVersion]
(Int -> ReadS UnlabelParameterVersion)
-> ReadS [UnlabelParameterVersion]
-> ReadPrec UnlabelParameterVersion
-> ReadPrec [UnlabelParameterVersion]
-> Read UnlabelParameterVersion
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UnlabelParameterVersion]
$creadListPrec :: ReadPrec [UnlabelParameterVersion]
readPrec :: ReadPrec UnlabelParameterVersion
$creadPrec :: ReadPrec UnlabelParameterVersion
readList :: ReadS [UnlabelParameterVersion]
$creadList :: ReadS [UnlabelParameterVersion]
readsPrec :: Int -> ReadS UnlabelParameterVersion
$creadsPrec :: Int -> ReadS UnlabelParameterVersion
Prelude.Read, Int -> UnlabelParameterVersion -> ShowS
[UnlabelParameterVersion] -> ShowS
UnlabelParameterVersion -> String
(Int -> UnlabelParameterVersion -> ShowS)
-> (UnlabelParameterVersion -> String)
-> ([UnlabelParameterVersion] -> ShowS)
-> Show UnlabelParameterVersion
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UnlabelParameterVersion] -> ShowS
$cshowList :: [UnlabelParameterVersion] -> ShowS
show :: UnlabelParameterVersion -> String
$cshow :: UnlabelParameterVersion -> String
showsPrec :: Int -> UnlabelParameterVersion -> ShowS
$cshowsPrec :: Int -> UnlabelParameterVersion -> ShowS
Prelude.Show, (forall x.
UnlabelParameterVersion -> Rep UnlabelParameterVersion x)
-> (forall x.
Rep UnlabelParameterVersion x -> UnlabelParameterVersion)
-> Generic UnlabelParameterVersion
forall x. Rep UnlabelParameterVersion x -> UnlabelParameterVersion
forall x. UnlabelParameterVersion -> Rep UnlabelParameterVersion x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UnlabelParameterVersion x -> UnlabelParameterVersion
$cfrom :: forall x. UnlabelParameterVersion -> Rep UnlabelParameterVersion x
Prelude.Generic)
newUnlabelParameterVersion ::
Prelude.Text ->
Prelude.Integer ->
Prelude.NonEmpty Prelude.Text ->
UnlabelParameterVersion
newUnlabelParameterVersion :: Text -> Integer -> NonEmpty Text -> UnlabelParameterVersion
newUnlabelParameterVersion
Text
pName_
Integer
pParameterVersion_
NonEmpty Text
pLabels_ =
UnlabelParameterVersion' :: Text -> Integer -> NonEmpty Text -> UnlabelParameterVersion
UnlabelParameterVersion'
{ $sel:name:UnlabelParameterVersion' :: Text
name = Text
pName_,
$sel:parameterVersion:UnlabelParameterVersion' :: Integer
parameterVersion = Integer
pParameterVersion_,
$sel:labels:UnlabelParameterVersion' :: 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_
}
unlabelParameterVersion_name :: Lens.Lens' UnlabelParameterVersion Prelude.Text
unlabelParameterVersion_name :: (Text -> f Text)
-> UnlabelParameterVersion -> f UnlabelParameterVersion
unlabelParameterVersion_name = (UnlabelParameterVersion -> Text)
-> (UnlabelParameterVersion -> Text -> UnlabelParameterVersion)
-> Lens UnlabelParameterVersion UnlabelParameterVersion Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UnlabelParameterVersion' {Text
name :: Text
$sel:name:UnlabelParameterVersion' :: UnlabelParameterVersion -> Text
name} -> Text
name) (\s :: UnlabelParameterVersion
s@UnlabelParameterVersion' {} Text
a -> UnlabelParameterVersion
s {$sel:name:UnlabelParameterVersion' :: Text
name = Text
a} :: UnlabelParameterVersion)
unlabelParameterVersion_parameterVersion :: Lens.Lens' UnlabelParameterVersion Prelude.Integer
unlabelParameterVersion_parameterVersion :: (Integer -> f Integer)
-> UnlabelParameterVersion -> f UnlabelParameterVersion
unlabelParameterVersion_parameterVersion = (UnlabelParameterVersion -> Integer)
-> (UnlabelParameterVersion -> Integer -> UnlabelParameterVersion)
-> Lens
UnlabelParameterVersion UnlabelParameterVersion Integer Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UnlabelParameterVersion' {Integer
parameterVersion :: Integer
$sel:parameterVersion:UnlabelParameterVersion' :: UnlabelParameterVersion -> Integer
parameterVersion} -> Integer
parameterVersion) (\s :: UnlabelParameterVersion
s@UnlabelParameterVersion' {} Integer
a -> UnlabelParameterVersion
s {$sel:parameterVersion:UnlabelParameterVersion' :: Integer
parameterVersion = Integer
a} :: UnlabelParameterVersion)
unlabelParameterVersion_labels :: Lens.Lens' UnlabelParameterVersion (Prelude.NonEmpty Prelude.Text)
unlabelParameterVersion_labels :: (NonEmpty Text -> f (NonEmpty Text))
-> UnlabelParameterVersion -> f UnlabelParameterVersion
unlabelParameterVersion_labels = (UnlabelParameterVersion -> NonEmpty Text)
-> (UnlabelParameterVersion
-> NonEmpty Text -> UnlabelParameterVersion)
-> Lens
UnlabelParameterVersion
UnlabelParameterVersion
(NonEmpty Text)
(NonEmpty Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UnlabelParameterVersion' {NonEmpty Text
labels :: NonEmpty Text
$sel:labels:UnlabelParameterVersion' :: UnlabelParameterVersion -> NonEmpty Text
labels} -> NonEmpty Text
labels) (\s :: UnlabelParameterVersion
s@UnlabelParameterVersion' {} NonEmpty Text
a -> UnlabelParameterVersion
s {$sel:labels:UnlabelParameterVersion' :: NonEmpty Text
labels = NonEmpty Text
a} :: UnlabelParameterVersion) ((NonEmpty Text -> f (NonEmpty Text))
-> UnlabelParameterVersion -> f UnlabelParameterVersion)
-> ((NonEmpty Text -> f (NonEmpty Text))
-> NonEmpty Text -> f (NonEmpty Text))
-> (NonEmpty Text -> f (NonEmpty Text))
-> UnlabelParameterVersion
-> f UnlabelParameterVersion
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 UnlabelParameterVersion where
type
AWSResponse UnlabelParameterVersion =
UnlabelParameterVersionResponse
request :: UnlabelParameterVersion -> Request UnlabelParameterVersion
request = Service
-> UnlabelParameterVersion -> Request UnlabelParameterVersion
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UnlabelParameterVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UnlabelParameterVersion)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UnlabelParameterVersion))
-> Logger
-> Service
-> Proxy UnlabelParameterVersion
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UnlabelParameterVersion)))
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 (NonEmpty Text) -> Int -> UnlabelParameterVersionResponse
UnlabelParameterVersionResponse'
(Maybe (NonEmpty Text)
-> Maybe (NonEmpty Text) -> Int -> UnlabelParameterVersionResponse)
-> Either String (Maybe (NonEmpty Text))
-> Either
String
(Maybe (NonEmpty Text) -> Int -> UnlabelParameterVersionResponse)
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 (NonEmpty Text) -> Int -> UnlabelParameterVersionResponse)
-> Either String (Maybe (NonEmpty Text))
-> Either String (Int -> UnlabelParameterVersionResponse)
forall (f :: * -> *) a b. Applicative f => 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
"RemovedLabels")
Either String (Int -> UnlabelParameterVersionResponse)
-> Either String Int
-> Either String UnlabelParameterVersionResponse
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 UnlabelParameterVersion
instance Prelude.NFData UnlabelParameterVersion
instance Core.ToHeaders UnlabelParameterVersion where
toHeaders :: UnlabelParameterVersion -> ResponseHeaders
toHeaders =
ResponseHeaders -> UnlabelParameterVersion -> 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.UnlabelParameterVersion" ::
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 UnlabelParameterVersion where
toJSON :: UnlabelParameterVersion -> Value
toJSON UnlabelParameterVersion' {Integer
NonEmpty Text
Text
labels :: NonEmpty Text
parameterVersion :: Integer
name :: Text
$sel:labels:UnlabelParameterVersion' :: UnlabelParameterVersion -> NonEmpty Text
$sel:parameterVersion:UnlabelParameterVersion' :: UnlabelParameterVersion -> Integer
$sel:name:UnlabelParameterVersion' :: UnlabelParameterVersion -> Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ 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
"ParameterVersion" Text -> Integer -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Integer
parameterVersion),
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 UnlabelParameterVersion where
toPath :: UnlabelParameterVersion -> ByteString
toPath = ByteString -> UnlabelParameterVersion -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UnlabelParameterVersion where
toQuery :: UnlabelParameterVersion -> QueryString
toQuery = QueryString -> UnlabelParameterVersion -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UnlabelParameterVersionResponse = UnlabelParameterVersionResponse'
{
UnlabelParameterVersionResponse -> Maybe (NonEmpty Text)
invalidLabels :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
UnlabelParameterVersionResponse -> Maybe (NonEmpty Text)
removedLabels :: Prelude.Maybe (Prelude.NonEmpty Prelude.Text),
UnlabelParameterVersionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UnlabelParameterVersionResponse
-> UnlabelParameterVersionResponse -> Bool
(UnlabelParameterVersionResponse
-> UnlabelParameterVersionResponse -> Bool)
-> (UnlabelParameterVersionResponse
-> UnlabelParameterVersionResponse -> Bool)
-> Eq UnlabelParameterVersionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UnlabelParameterVersionResponse
-> UnlabelParameterVersionResponse -> Bool
$c/= :: UnlabelParameterVersionResponse
-> UnlabelParameterVersionResponse -> Bool
== :: UnlabelParameterVersionResponse
-> UnlabelParameterVersionResponse -> Bool
$c== :: UnlabelParameterVersionResponse
-> UnlabelParameterVersionResponse -> Bool
Prelude.Eq, ReadPrec [UnlabelParameterVersionResponse]
ReadPrec UnlabelParameterVersionResponse
Int -> ReadS UnlabelParameterVersionResponse
ReadS [UnlabelParameterVersionResponse]
(Int -> ReadS UnlabelParameterVersionResponse)
-> ReadS [UnlabelParameterVersionResponse]
-> ReadPrec UnlabelParameterVersionResponse
-> ReadPrec [UnlabelParameterVersionResponse]
-> Read UnlabelParameterVersionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UnlabelParameterVersionResponse]
$creadListPrec :: ReadPrec [UnlabelParameterVersionResponse]
readPrec :: ReadPrec UnlabelParameterVersionResponse
$creadPrec :: ReadPrec UnlabelParameterVersionResponse
readList :: ReadS [UnlabelParameterVersionResponse]
$creadList :: ReadS [UnlabelParameterVersionResponse]
readsPrec :: Int -> ReadS UnlabelParameterVersionResponse
$creadsPrec :: Int -> ReadS UnlabelParameterVersionResponse
Prelude.Read, Int -> UnlabelParameterVersionResponse -> ShowS
[UnlabelParameterVersionResponse] -> ShowS
UnlabelParameterVersionResponse -> String
(Int -> UnlabelParameterVersionResponse -> ShowS)
-> (UnlabelParameterVersionResponse -> String)
-> ([UnlabelParameterVersionResponse] -> ShowS)
-> Show UnlabelParameterVersionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UnlabelParameterVersionResponse] -> ShowS
$cshowList :: [UnlabelParameterVersionResponse] -> ShowS
show :: UnlabelParameterVersionResponse -> String
$cshow :: UnlabelParameterVersionResponse -> String
showsPrec :: Int -> UnlabelParameterVersionResponse -> ShowS
$cshowsPrec :: Int -> UnlabelParameterVersionResponse -> ShowS
Prelude.Show, (forall x.
UnlabelParameterVersionResponse
-> Rep UnlabelParameterVersionResponse x)
-> (forall x.
Rep UnlabelParameterVersionResponse x
-> UnlabelParameterVersionResponse)
-> Generic UnlabelParameterVersionResponse
forall x.
Rep UnlabelParameterVersionResponse x
-> UnlabelParameterVersionResponse
forall x.
UnlabelParameterVersionResponse
-> Rep UnlabelParameterVersionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UnlabelParameterVersionResponse x
-> UnlabelParameterVersionResponse
$cfrom :: forall x.
UnlabelParameterVersionResponse
-> Rep UnlabelParameterVersionResponse x
Prelude.Generic)
newUnlabelParameterVersionResponse ::
Prelude.Int ->
UnlabelParameterVersionResponse
newUnlabelParameterVersionResponse :: Int -> UnlabelParameterVersionResponse
newUnlabelParameterVersionResponse Int
pHttpStatus_ =
UnlabelParameterVersionResponse' :: Maybe (NonEmpty Text)
-> Maybe (NonEmpty Text) -> Int -> UnlabelParameterVersionResponse
UnlabelParameterVersionResponse'
{ $sel:invalidLabels:UnlabelParameterVersionResponse' :: Maybe (NonEmpty Text)
invalidLabels =
Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:removedLabels:UnlabelParameterVersionResponse' :: Maybe (NonEmpty Text)
removedLabels = Maybe (NonEmpty Text)
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UnlabelParameterVersionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
unlabelParameterVersionResponse_invalidLabels :: Lens.Lens' UnlabelParameterVersionResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
unlabelParameterVersionResponse_invalidLabels :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UnlabelParameterVersionResponse
-> f UnlabelParameterVersionResponse
unlabelParameterVersionResponse_invalidLabels = (UnlabelParameterVersionResponse -> Maybe (NonEmpty Text))
-> (UnlabelParameterVersionResponse
-> Maybe (NonEmpty Text) -> UnlabelParameterVersionResponse)
-> Lens
UnlabelParameterVersionResponse
UnlabelParameterVersionResponse
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UnlabelParameterVersionResponse' {Maybe (NonEmpty Text)
invalidLabels :: Maybe (NonEmpty Text)
$sel:invalidLabels:UnlabelParameterVersionResponse' :: UnlabelParameterVersionResponse -> Maybe (NonEmpty Text)
invalidLabels} -> Maybe (NonEmpty Text)
invalidLabels) (\s :: UnlabelParameterVersionResponse
s@UnlabelParameterVersionResponse' {} Maybe (NonEmpty Text)
a -> UnlabelParameterVersionResponse
s {$sel:invalidLabels:UnlabelParameterVersionResponse' :: Maybe (NonEmpty Text)
invalidLabels = Maybe (NonEmpty Text)
a} :: UnlabelParameterVersionResponse) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UnlabelParameterVersionResponse
-> f UnlabelParameterVersionResponse)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UnlabelParameterVersionResponse
-> f UnlabelParameterVersionResponse
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
unlabelParameterVersionResponse_removedLabels :: Lens.Lens' UnlabelParameterVersionResponse (Prelude.Maybe (Prelude.NonEmpty Prelude.Text))
unlabelParameterVersionResponse_removedLabels :: (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UnlabelParameterVersionResponse
-> f UnlabelParameterVersionResponse
unlabelParameterVersionResponse_removedLabels = (UnlabelParameterVersionResponse -> Maybe (NonEmpty Text))
-> (UnlabelParameterVersionResponse
-> Maybe (NonEmpty Text) -> UnlabelParameterVersionResponse)
-> Lens
UnlabelParameterVersionResponse
UnlabelParameterVersionResponse
(Maybe (NonEmpty Text))
(Maybe (NonEmpty Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UnlabelParameterVersionResponse' {Maybe (NonEmpty Text)
removedLabels :: Maybe (NonEmpty Text)
$sel:removedLabels:UnlabelParameterVersionResponse' :: UnlabelParameterVersionResponse -> Maybe (NonEmpty Text)
removedLabels} -> Maybe (NonEmpty Text)
removedLabels) (\s :: UnlabelParameterVersionResponse
s@UnlabelParameterVersionResponse' {} Maybe (NonEmpty Text)
a -> UnlabelParameterVersionResponse
s {$sel:removedLabels:UnlabelParameterVersionResponse' :: Maybe (NonEmpty Text)
removedLabels = Maybe (NonEmpty Text)
a} :: UnlabelParameterVersionResponse) ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UnlabelParameterVersionResponse
-> f UnlabelParameterVersionResponse)
-> ((Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> (Maybe (NonEmpty Text) -> f (Maybe (NonEmpty Text)))
-> UnlabelParameterVersionResponse
-> f UnlabelParameterVersionResponse
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
unlabelParameterVersionResponse_httpStatus :: Lens.Lens' UnlabelParameterVersionResponse Prelude.Int
unlabelParameterVersionResponse_httpStatus :: (Int -> f Int)
-> UnlabelParameterVersionResponse
-> f UnlabelParameterVersionResponse
unlabelParameterVersionResponse_httpStatus = (UnlabelParameterVersionResponse -> Int)
-> (UnlabelParameterVersionResponse
-> Int -> UnlabelParameterVersionResponse)
-> Lens
UnlabelParameterVersionResponse
UnlabelParameterVersionResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UnlabelParameterVersionResponse' {Int
httpStatus :: Int
$sel:httpStatus:UnlabelParameterVersionResponse' :: UnlabelParameterVersionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UnlabelParameterVersionResponse
s@UnlabelParameterVersionResponse' {} Int
a -> UnlabelParameterVersionResponse
s {$sel:httpStatus:UnlabelParameterVersionResponse' :: Int
httpStatus = Int
a} :: UnlabelParameterVersionResponse)
instance
Prelude.NFData
UnlabelParameterVersionResponse