{-# 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.ECR.PutImageTagMutability
-- 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)
--
-- Updates the image tag mutability settings for the specified repository.
-- For more information, see
-- <https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-tag-mutability.html Image tag mutability>
-- in the /Amazon Elastic Container Registry User Guide/.
module Amazonka.ECR.PutImageTagMutability
  ( -- * Creating a Request
    PutImageTagMutability (..),
    newPutImageTagMutability,

    -- * Request Lenses
    putImageTagMutability_registryId,
    putImageTagMutability_repositoryName,
    putImageTagMutability_imageTagMutability,

    -- * Destructuring the Response
    PutImageTagMutabilityResponse (..),
    newPutImageTagMutabilityResponse,

    -- * Response Lenses
    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

-- | /See:/ 'newPutImageTagMutability' smart constructor.
data PutImageTagMutability = PutImageTagMutability'
  { -- | The Amazon Web Services account ID associated with the registry that
    -- contains the repository in which to update the image tag mutability
    -- settings. If you do not specify a registry, the default registry is
    -- assumed.
    PutImageTagMutability -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
    -- | The name of the repository in which to update the image tag mutability
    -- settings.
    PutImageTagMutability -> Text
repositoryName :: Prelude.Text,
    -- | The tag mutability setting for the repository. If @MUTABLE@ is
    -- specified, image tags can be overwritten. If @IMMUTABLE@ is specified,
    -- all image tags within the repository will be immutable which will
    -- prevent them from being overwritten.
    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)

-- |
-- Create a value of 'PutImageTagMutability' 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:
--
-- 'registryId', 'putImageTagMutability_registryId' - The Amazon Web Services account ID associated with the registry that
-- contains the repository in which to update the image tag mutability
-- settings. If you do not specify a registry, the default registry is
-- assumed.
--
-- 'repositoryName', 'putImageTagMutability_repositoryName' - The name of the repository in which to update the image tag mutability
-- settings.
--
-- 'imageTagMutability', 'putImageTagMutability_imageTagMutability' - The tag mutability setting for the repository. If @MUTABLE@ is
-- specified, image tags can be overwritten. If @IMMUTABLE@ is specified,
-- all image tags within the repository will be immutable which will
-- prevent them from being overwritten.
newPutImageTagMutability ::
  -- | 'repositoryName'
  Prelude.Text ->
  -- | 'imageTagMutability'
  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_
      }

-- | The Amazon Web Services account ID associated with the registry that
-- contains the repository in which to update the image tag mutability
-- settings. If you do not specify a registry, the default registry is
-- assumed.
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)

-- | The name of the repository in which to update the image tag mutability
-- settings.
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)

-- | The tag mutability setting for the repository. If @MUTABLE@ is
-- specified, image tags can be overwritten. If @IMMUTABLE@ is specified,
-- all image tags within the repository will be immutable which will
-- prevent them from being overwritten.
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

-- | /See:/ 'newPutImageTagMutabilityResponse' smart constructor.
data PutImageTagMutabilityResponse = PutImageTagMutabilityResponse'
  { -- | The registry ID associated with the request.
    PutImageTagMutabilityResponse -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
    -- | The repository name associated with the request.
    PutImageTagMutabilityResponse -> Maybe Text
repositoryName :: Prelude.Maybe Prelude.Text,
    -- | The image tag mutability setting for the repository.
    PutImageTagMutabilityResponse -> Maybe ImageTagMutability
imageTagMutability :: Prelude.Maybe ImageTagMutability,
    -- | The response's http status code.
    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)

-- |
-- Create a value of 'PutImageTagMutabilityResponse' 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:
--
-- 'registryId', 'putImageTagMutabilityResponse_registryId' - The registry ID associated with the request.
--
-- 'repositoryName', 'putImageTagMutabilityResponse_repositoryName' - The repository name associated with the request.
--
-- 'imageTagMutability', 'putImageTagMutabilityResponse_imageTagMutability' - The image tag mutability setting for the repository.
--
-- 'httpStatus', 'putImageTagMutabilityResponse_httpStatus' - The response's http status code.
newPutImageTagMutabilityResponse ::
  -- | 'httpStatus'
  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_
    }

-- | The registry ID associated with the request.
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)

-- | The repository name associated with the request.
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)

-- | The image tag mutability setting for the repository.
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)

-- | The response's http status code.
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