{-# 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.ECR.PutImageTagMutability
(
PutImageTagMutability (..),
newPutImageTagMutability,
putImageTagMutability_registryId,
putImageTagMutability_repositoryName,
putImageTagMutability_imageTagMutability,
PutImageTagMutabilityResponse (..),
newPutImageTagMutabilityResponse,
putImageTagMutabilityResponse_registryId,
putImageTagMutabilityResponse_repositoryName,
putImageTagMutabilityResponse_imageTagMutability,
putImageTagMutabilityResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ECR.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data PutImageTagMutability = PutImageTagMutability'
{
PutImageTagMutability -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
PutImageTagMutability -> Text
repositoryName :: Prelude.Text,
PutImageTagMutability -> ImageTagMutability
imageTagMutability :: ImageTagMutability
}
deriving (PutImageTagMutability -> PutImageTagMutability -> Bool
(PutImageTagMutability -> PutImageTagMutability -> Bool)
-> (PutImageTagMutability -> PutImageTagMutability -> Bool)
-> Eq PutImageTagMutability
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutImageTagMutability -> PutImageTagMutability -> Bool
$c/= :: PutImageTagMutability -> PutImageTagMutability -> Bool
== :: PutImageTagMutability -> PutImageTagMutability -> Bool
$c== :: PutImageTagMutability -> PutImageTagMutability -> Bool
Prelude.Eq, ReadPrec [PutImageTagMutability]
ReadPrec PutImageTagMutability
Int -> ReadS PutImageTagMutability
ReadS [PutImageTagMutability]
(Int -> ReadS PutImageTagMutability)
-> ReadS [PutImageTagMutability]
-> ReadPrec PutImageTagMutability
-> ReadPrec [PutImageTagMutability]
-> Read PutImageTagMutability
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutImageTagMutability]
$creadListPrec :: ReadPrec [PutImageTagMutability]
readPrec :: ReadPrec PutImageTagMutability
$creadPrec :: ReadPrec PutImageTagMutability
readList :: ReadS [PutImageTagMutability]
$creadList :: ReadS [PutImageTagMutability]
readsPrec :: Int -> ReadS PutImageTagMutability
$creadsPrec :: Int -> ReadS PutImageTagMutability
Prelude.Read, Int -> PutImageTagMutability -> ShowS
[PutImageTagMutability] -> ShowS
PutImageTagMutability -> String
(Int -> PutImageTagMutability -> ShowS)
-> (PutImageTagMutability -> String)
-> ([PutImageTagMutability] -> ShowS)
-> Show PutImageTagMutability
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutImageTagMutability] -> ShowS
$cshowList :: [PutImageTagMutability] -> ShowS
show :: PutImageTagMutability -> String
$cshow :: PutImageTagMutability -> String
showsPrec :: Int -> PutImageTagMutability -> ShowS
$cshowsPrec :: Int -> PutImageTagMutability -> ShowS
Prelude.Show, (forall x. PutImageTagMutability -> Rep PutImageTagMutability x)
-> (forall x. Rep PutImageTagMutability x -> PutImageTagMutability)
-> Generic PutImageTagMutability
forall x. Rep PutImageTagMutability x -> PutImageTagMutability
forall x. PutImageTagMutability -> Rep PutImageTagMutability x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PutImageTagMutability x -> PutImageTagMutability
$cfrom :: forall x. PutImageTagMutability -> Rep PutImageTagMutability x
Prelude.Generic)
newPutImageTagMutability ::
Prelude.Text ->
ImageTagMutability ->
PutImageTagMutability
newPutImageTagMutability :: Text -> ImageTagMutability -> PutImageTagMutability
newPutImageTagMutability
Text
pRepositoryName_
ImageTagMutability
pImageTagMutability_ =
PutImageTagMutability' :: Maybe Text -> Text -> ImageTagMutability -> PutImageTagMutability
PutImageTagMutability'
{ $sel:registryId:PutImageTagMutability' :: Maybe Text
registryId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:PutImageTagMutability' :: Text
repositoryName = Text
pRepositoryName_,
$sel:imageTagMutability:PutImageTagMutability' :: ImageTagMutability
imageTagMutability = ImageTagMutability
pImageTagMutability_
}
putImageTagMutability_registryId :: Lens.Lens' PutImageTagMutability (Prelude.Maybe Prelude.Text)
putImageTagMutability_registryId :: (Maybe Text -> f (Maybe Text))
-> PutImageTagMutability -> f PutImageTagMutability
putImageTagMutability_registryId = (PutImageTagMutability -> Maybe Text)
-> (PutImageTagMutability -> Maybe Text -> PutImageTagMutability)
-> Lens
PutImageTagMutability
PutImageTagMutability
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutImageTagMutability' {Maybe Text
registryId :: Maybe Text
$sel:registryId:PutImageTagMutability' :: PutImageTagMutability -> Maybe Text
registryId} -> Maybe Text
registryId) (\s :: PutImageTagMutability
s@PutImageTagMutability' {} Maybe Text
a -> PutImageTagMutability
s {$sel:registryId:PutImageTagMutability' :: Maybe Text
registryId = Maybe Text
a} :: PutImageTagMutability)
putImageTagMutability_repositoryName :: Lens.Lens' PutImageTagMutability Prelude.Text
putImageTagMutability_repositoryName :: (Text -> f Text)
-> PutImageTagMutability -> f PutImageTagMutability
putImageTagMutability_repositoryName = (PutImageTagMutability -> Text)
-> (PutImageTagMutability -> Text -> PutImageTagMutability)
-> Lens PutImageTagMutability PutImageTagMutability Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutImageTagMutability' {Text
repositoryName :: Text
$sel:repositoryName:PutImageTagMutability' :: PutImageTagMutability -> Text
repositoryName} -> Text
repositoryName) (\s :: PutImageTagMutability
s@PutImageTagMutability' {} Text
a -> PutImageTagMutability
s {$sel:repositoryName:PutImageTagMutability' :: Text
repositoryName = Text
a} :: PutImageTagMutability)
putImageTagMutability_imageTagMutability :: Lens.Lens' PutImageTagMutability ImageTagMutability
putImageTagMutability_imageTagMutability :: (ImageTagMutability -> f ImageTagMutability)
-> PutImageTagMutability -> f PutImageTagMutability
putImageTagMutability_imageTagMutability = (PutImageTagMutability -> ImageTagMutability)
-> (PutImageTagMutability
-> ImageTagMutability -> PutImageTagMutability)
-> Lens
PutImageTagMutability
PutImageTagMutability
ImageTagMutability
ImageTagMutability
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutImageTagMutability' {ImageTagMutability
imageTagMutability :: ImageTagMutability
$sel:imageTagMutability:PutImageTagMutability' :: PutImageTagMutability -> ImageTagMutability
imageTagMutability} -> ImageTagMutability
imageTagMutability) (\s :: PutImageTagMutability
s@PutImageTagMutability' {} ImageTagMutability
a -> PutImageTagMutability
s {$sel:imageTagMutability:PutImageTagMutability' :: ImageTagMutability
imageTagMutability = ImageTagMutability
a} :: PutImageTagMutability)
instance Core.AWSRequest PutImageTagMutability where
type
AWSResponse PutImageTagMutability =
PutImageTagMutabilityResponse
request :: PutImageTagMutability -> Request PutImageTagMutability
request = Service -> PutImageTagMutability -> Request PutImageTagMutability
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy PutImageTagMutability
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PutImageTagMutability)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse PutImageTagMutability))
-> Logger
-> Service
-> Proxy PutImageTagMutability
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse PutImageTagMutability)))
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 Text
-> Maybe Text
-> Maybe ImageTagMutability
-> Int
-> PutImageTagMutabilityResponse
PutImageTagMutabilityResponse'
(Maybe Text
-> Maybe Text
-> Maybe ImageTagMutability
-> Int
-> PutImageTagMutabilityResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe ImageTagMutability
-> Int
-> PutImageTagMutabilityResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"registryId")
Either
String
(Maybe Text
-> Maybe ImageTagMutability
-> Int
-> PutImageTagMutabilityResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ImageTagMutability -> Int -> PutImageTagMutabilityResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"repositoryName")
Either
String
(Maybe ImageTagMutability -> Int -> PutImageTagMutabilityResponse)
-> Either String (Maybe ImageTagMutability)
-> Either String (Int -> PutImageTagMutabilityResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ImageTagMutability)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"imageTagMutability")
Either String (Int -> PutImageTagMutabilityResponse)
-> Either String Int -> Either String PutImageTagMutabilityResponse
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 PutImageTagMutability
instance Prelude.NFData PutImageTagMutability
instance Core.ToHeaders PutImageTagMutability where
toHeaders :: PutImageTagMutability -> ResponseHeaders
toHeaders =
ResponseHeaders -> PutImageTagMutability -> 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
"AmazonEC2ContainerRegistry_V20150921.PutImageTagMutability" ::
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 PutImageTagMutability where
toJSON :: PutImageTagMutability -> Value
toJSON PutImageTagMutability' {Maybe Text
Text
ImageTagMutability
imageTagMutability :: ImageTagMutability
repositoryName :: Text
registryId :: Maybe Text
$sel:imageTagMutability:PutImageTagMutability' :: PutImageTagMutability -> ImageTagMutability
$sel:repositoryName:PutImageTagMutability' :: PutImageTagMutability -> Text
$sel:registryId:PutImageTagMutability' :: PutImageTagMutability -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"registryId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
registryId,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"repositoryName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
repositoryName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"imageTagMutability" Text -> ImageTagMutability -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= ImageTagMutability
imageTagMutability)
]
)
instance Core.ToPath PutImageTagMutability where
toPath :: PutImageTagMutability -> ByteString
toPath = ByteString -> PutImageTagMutability -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery PutImageTagMutability where
toQuery :: PutImageTagMutability -> QueryString
toQuery = QueryString -> PutImageTagMutability -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data PutImageTagMutabilityResponse = PutImageTagMutabilityResponse'
{
PutImageTagMutabilityResponse -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
PutImageTagMutabilityResponse -> Maybe Text
repositoryName :: Prelude.Maybe Prelude.Text,
PutImageTagMutabilityResponse -> Maybe ImageTagMutability
imageTagMutability :: Prelude.Maybe ImageTagMutability,
PutImageTagMutabilityResponse -> Int
httpStatus :: Prelude.Int
}
deriving (PutImageTagMutabilityResponse
-> PutImageTagMutabilityResponse -> Bool
(PutImageTagMutabilityResponse
-> PutImageTagMutabilityResponse -> Bool)
-> (PutImageTagMutabilityResponse
-> PutImageTagMutabilityResponse -> Bool)
-> Eq PutImageTagMutabilityResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PutImageTagMutabilityResponse
-> PutImageTagMutabilityResponse -> Bool
$c/= :: PutImageTagMutabilityResponse
-> PutImageTagMutabilityResponse -> Bool
== :: PutImageTagMutabilityResponse
-> PutImageTagMutabilityResponse -> Bool
$c== :: PutImageTagMutabilityResponse
-> PutImageTagMutabilityResponse -> Bool
Prelude.Eq, ReadPrec [PutImageTagMutabilityResponse]
ReadPrec PutImageTagMutabilityResponse
Int -> ReadS PutImageTagMutabilityResponse
ReadS [PutImageTagMutabilityResponse]
(Int -> ReadS PutImageTagMutabilityResponse)
-> ReadS [PutImageTagMutabilityResponse]
-> ReadPrec PutImageTagMutabilityResponse
-> ReadPrec [PutImageTagMutabilityResponse]
-> Read PutImageTagMutabilityResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [PutImageTagMutabilityResponse]
$creadListPrec :: ReadPrec [PutImageTagMutabilityResponse]
readPrec :: ReadPrec PutImageTagMutabilityResponse
$creadPrec :: ReadPrec PutImageTagMutabilityResponse
readList :: ReadS [PutImageTagMutabilityResponse]
$creadList :: ReadS [PutImageTagMutabilityResponse]
readsPrec :: Int -> ReadS PutImageTagMutabilityResponse
$creadsPrec :: Int -> ReadS PutImageTagMutabilityResponse
Prelude.Read, Int -> PutImageTagMutabilityResponse -> ShowS
[PutImageTagMutabilityResponse] -> ShowS
PutImageTagMutabilityResponse -> String
(Int -> PutImageTagMutabilityResponse -> ShowS)
-> (PutImageTagMutabilityResponse -> String)
-> ([PutImageTagMutabilityResponse] -> ShowS)
-> Show PutImageTagMutabilityResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PutImageTagMutabilityResponse] -> ShowS
$cshowList :: [PutImageTagMutabilityResponse] -> ShowS
show :: PutImageTagMutabilityResponse -> String
$cshow :: PutImageTagMutabilityResponse -> String
showsPrec :: Int -> PutImageTagMutabilityResponse -> ShowS
$cshowsPrec :: Int -> PutImageTagMutabilityResponse -> ShowS
Prelude.Show, (forall x.
PutImageTagMutabilityResponse
-> Rep PutImageTagMutabilityResponse x)
-> (forall x.
Rep PutImageTagMutabilityResponse x
-> PutImageTagMutabilityResponse)
-> Generic PutImageTagMutabilityResponse
forall x.
Rep PutImageTagMutabilityResponse x
-> PutImageTagMutabilityResponse
forall x.
PutImageTagMutabilityResponse
-> Rep PutImageTagMutabilityResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep PutImageTagMutabilityResponse x
-> PutImageTagMutabilityResponse
$cfrom :: forall x.
PutImageTagMutabilityResponse
-> Rep PutImageTagMutabilityResponse x
Prelude.Generic)
newPutImageTagMutabilityResponse ::
Prelude.Int ->
PutImageTagMutabilityResponse
newPutImageTagMutabilityResponse :: Int -> PutImageTagMutabilityResponse
newPutImageTagMutabilityResponse Int
pHttpStatus_ =
PutImageTagMutabilityResponse' :: Maybe Text
-> Maybe Text
-> Maybe ImageTagMutability
-> Int
-> PutImageTagMutabilityResponse
PutImageTagMutabilityResponse'
{ $sel:registryId:PutImageTagMutabilityResponse' :: Maybe Text
registryId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:PutImageTagMutabilityResponse' :: Maybe Text
repositoryName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:imageTagMutability:PutImageTagMutabilityResponse' :: Maybe ImageTagMutability
imageTagMutability = Maybe ImageTagMutability
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:PutImageTagMutabilityResponse' :: Int
httpStatus = Int
pHttpStatus_
}
putImageTagMutabilityResponse_registryId :: Lens.Lens' PutImageTagMutabilityResponse (Prelude.Maybe Prelude.Text)
putImageTagMutabilityResponse_registryId :: (Maybe Text -> f (Maybe Text))
-> PutImageTagMutabilityResponse -> f PutImageTagMutabilityResponse
putImageTagMutabilityResponse_registryId = (PutImageTagMutabilityResponse -> Maybe Text)
-> (PutImageTagMutabilityResponse
-> Maybe Text -> PutImageTagMutabilityResponse)
-> Lens
PutImageTagMutabilityResponse
PutImageTagMutabilityResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutImageTagMutabilityResponse' {Maybe Text
registryId :: Maybe Text
$sel:registryId:PutImageTagMutabilityResponse' :: PutImageTagMutabilityResponse -> Maybe Text
registryId} -> Maybe Text
registryId) (\s :: PutImageTagMutabilityResponse
s@PutImageTagMutabilityResponse' {} Maybe Text
a -> PutImageTagMutabilityResponse
s {$sel:registryId:PutImageTagMutabilityResponse' :: Maybe Text
registryId = Maybe Text
a} :: PutImageTagMutabilityResponse)
putImageTagMutabilityResponse_repositoryName :: Lens.Lens' PutImageTagMutabilityResponse (Prelude.Maybe Prelude.Text)
putImageTagMutabilityResponse_repositoryName :: (Maybe Text -> f (Maybe Text))
-> PutImageTagMutabilityResponse -> f PutImageTagMutabilityResponse
putImageTagMutabilityResponse_repositoryName = (PutImageTagMutabilityResponse -> Maybe Text)
-> (PutImageTagMutabilityResponse
-> Maybe Text -> PutImageTagMutabilityResponse)
-> Lens
PutImageTagMutabilityResponse
PutImageTagMutabilityResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutImageTagMutabilityResponse' {Maybe Text
repositoryName :: Maybe Text
$sel:repositoryName:PutImageTagMutabilityResponse' :: PutImageTagMutabilityResponse -> Maybe Text
repositoryName} -> Maybe Text
repositoryName) (\s :: PutImageTagMutabilityResponse
s@PutImageTagMutabilityResponse' {} Maybe Text
a -> PutImageTagMutabilityResponse
s {$sel:repositoryName:PutImageTagMutabilityResponse' :: Maybe Text
repositoryName = Maybe Text
a} :: PutImageTagMutabilityResponse)
putImageTagMutabilityResponse_imageTagMutability :: Lens.Lens' PutImageTagMutabilityResponse (Prelude.Maybe ImageTagMutability)
putImageTagMutabilityResponse_imageTagMutability :: (Maybe ImageTagMutability -> f (Maybe ImageTagMutability))
-> PutImageTagMutabilityResponse -> f PutImageTagMutabilityResponse
putImageTagMutabilityResponse_imageTagMutability = (PutImageTagMutabilityResponse -> Maybe ImageTagMutability)
-> (PutImageTagMutabilityResponse
-> Maybe ImageTagMutability -> PutImageTagMutabilityResponse)
-> Lens
PutImageTagMutabilityResponse
PutImageTagMutabilityResponse
(Maybe ImageTagMutability)
(Maybe ImageTagMutability)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutImageTagMutabilityResponse' {Maybe ImageTagMutability
imageTagMutability :: Maybe ImageTagMutability
$sel:imageTagMutability:PutImageTagMutabilityResponse' :: PutImageTagMutabilityResponse -> Maybe ImageTagMutability
imageTagMutability} -> Maybe ImageTagMutability
imageTagMutability) (\s :: PutImageTagMutabilityResponse
s@PutImageTagMutabilityResponse' {} Maybe ImageTagMutability
a -> PutImageTagMutabilityResponse
s {$sel:imageTagMutability:PutImageTagMutabilityResponse' :: Maybe ImageTagMutability
imageTagMutability = Maybe ImageTagMutability
a} :: PutImageTagMutabilityResponse)
putImageTagMutabilityResponse_httpStatus :: Lens.Lens' PutImageTagMutabilityResponse Prelude.Int
putImageTagMutabilityResponse_httpStatus :: (Int -> f Int)
-> PutImageTagMutabilityResponse -> f PutImageTagMutabilityResponse
putImageTagMutabilityResponse_httpStatus = (PutImageTagMutabilityResponse -> Int)
-> (PutImageTagMutabilityResponse
-> Int -> PutImageTagMutabilityResponse)
-> Lens
PutImageTagMutabilityResponse PutImageTagMutabilityResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\PutImageTagMutabilityResponse' {Int
httpStatus :: Int
$sel:httpStatus:PutImageTagMutabilityResponse' :: PutImageTagMutabilityResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: PutImageTagMutabilityResponse
s@PutImageTagMutabilityResponse' {} Int
a -> PutImageTagMutabilityResponse
s {$sel:httpStatus:PutImageTagMutabilityResponse' :: Int
httpStatus = Int
a} :: PutImageTagMutabilityResponse)
instance Prelude.NFData PutImageTagMutabilityResponse