{-# 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.Schemas.UpdateRegistry
-- 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 a registry.
module Amazonka.Schemas.UpdateRegistry
  ( -- * Creating a Request
    UpdateRegistry (..),
    newUpdateRegistry,

    -- * Request Lenses
    updateRegistry_description,
    updateRegistry_registryName,

    -- * Destructuring the Response
    UpdateRegistryResponse (..),
    newUpdateRegistryResponse,

    -- * Response Lenses
    updateRegistryResponse_registryName,
    updateRegistryResponse_registryArn,
    updateRegistryResponse_description,
    updateRegistryResponse_tags,
    updateRegistryResponse_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.Schemas.Types

-- | Updates the registry.
--
-- /See:/ 'newUpdateRegistry' smart constructor.
data UpdateRegistry = UpdateRegistry'
  { -- | The description of the registry to update.
    UpdateRegistry -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The name of the registry.
    UpdateRegistry -> Text
registryName :: Prelude.Text
  }
  deriving (UpdateRegistry -> UpdateRegistry -> Bool
(UpdateRegistry -> UpdateRegistry -> Bool)
-> (UpdateRegistry -> UpdateRegistry -> Bool) -> Eq UpdateRegistry
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateRegistry -> UpdateRegistry -> Bool
$c/= :: UpdateRegistry -> UpdateRegistry -> Bool
== :: UpdateRegistry -> UpdateRegistry -> Bool
$c== :: UpdateRegistry -> UpdateRegistry -> Bool
Prelude.Eq, ReadPrec [UpdateRegistry]
ReadPrec UpdateRegistry
Int -> ReadS UpdateRegistry
ReadS [UpdateRegistry]
(Int -> ReadS UpdateRegistry)
-> ReadS [UpdateRegistry]
-> ReadPrec UpdateRegistry
-> ReadPrec [UpdateRegistry]
-> Read UpdateRegistry
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateRegistry]
$creadListPrec :: ReadPrec [UpdateRegistry]
readPrec :: ReadPrec UpdateRegistry
$creadPrec :: ReadPrec UpdateRegistry
readList :: ReadS [UpdateRegistry]
$creadList :: ReadS [UpdateRegistry]
readsPrec :: Int -> ReadS UpdateRegistry
$creadsPrec :: Int -> ReadS UpdateRegistry
Prelude.Read, Int -> UpdateRegistry -> ShowS
[UpdateRegistry] -> ShowS
UpdateRegistry -> String
(Int -> UpdateRegistry -> ShowS)
-> (UpdateRegistry -> String)
-> ([UpdateRegistry] -> ShowS)
-> Show UpdateRegistry
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateRegistry] -> ShowS
$cshowList :: [UpdateRegistry] -> ShowS
show :: UpdateRegistry -> String
$cshow :: UpdateRegistry -> String
showsPrec :: Int -> UpdateRegistry -> ShowS
$cshowsPrec :: Int -> UpdateRegistry -> ShowS
Prelude.Show, (forall x. UpdateRegistry -> Rep UpdateRegistry x)
-> (forall x. Rep UpdateRegistry x -> UpdateRegistry)
-> Generic UpdateRegistry
forall x. Rep UpdateRegistry x -> UpdateRegistry
forall x. UpdateRegistry -> Rep UpdateRegistry x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateRegistry x -> UpdateRegistry
$cfrom :: forall x. UpdateRegistry -> Rep UpdateRegistry x
Prelude.Generic)

-- |
-- Create a value of 'UpdateRegistry' 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:
--
-- 'description', 'updateRegistry_description' - The description of the registry to update.
--
-- 'registryName', 'updateRegistry_registryName' - The name of the registry.
newUpdateRegistry ::
  -- | 'registryName'
  Prelude.Text ->
  UpdateRegistry
newUpdateRegistry :: Text -> UpdateRegistry
newUpdateRegistry Text
pRegistryName_ =
  UpdateRegistry' :: Maybe Text -> Text -> UpdateRegistry
UpdateRegistry'
    { $sel:description:UpdateRegistry' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:registryName:UpdateRegistry' :: Text
registryName = Text
pRegistryName_
    }

-- | The description of the registry to update.
updateRegistry_description :: Lens.Lens' UpdateRegistry (Prelude.Maybe Prelude.Text)
updateRegistry_description :: (Maybe Text -> f (Maybe Text))
-> UpdateRegistry -> f UpdateRegistry
updateRegistry_description = (UpdateRegistry -> Maybe Text)
-> (UpdateRegistry -> Maybe Text -> UpdateRegistry)
-> Lens UpdateRegistry UpdateRegistry (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRegistry' {Maybe Text
description :: Maybe Text
$sel:description:UpdateRegistry' :: UpdateRegistry -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateRegistry
s@UpdateRegistry' {} Maybe Text
a -> UpdateRegistry
s {$sel:description:UpdateRegistry' :: Maybe Text
description = Maybe Text
a} :: UpdateRegistry)

-- | The name of the registry.
updateRegistry_registryName :: Lens.Lens' UpdateRegistry Prelude.Text
updateRegistry_registryName :: (Text -> f Text) -> UpdateRegistry -> f UpdateRegistry
updateRegistry_registryName = (UpdateRegistry -> Text)
-> (UpdateRegistry -> Text -> UpdateRegistry)
-> Lens UpdateRegistry UpdateRegistry Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRegistry' {Text
registryName :: Text
$sel:registryName:UpdateRegistry' :: UpdateRegistry -> Text
registryName} -> Text
registryName) (\s :: UpdateRegistry
s@UpdateRegistry' {} Text
a -> UpdateRegistry
s {$sel:registryName:UpdateRegistry' :: Text
registryName = Text
a} :: UpdateRegistry)

instance Core.AWSRequest UpdateRegistry where
  type
    AWSResponse UpdateRegistry =
      UpdateRegistryResponse
  request :: UpdateRegistry -> Request UpdateRegistry
request = Service -> UpdateRegistry -> Request UpdateRegistry
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.putJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy UpdateRegistry
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateRegistry)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse UpdateRegistry))
-> Logger
-> Service
-> Proxy UpdateRegistry
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UpdateRegistry)))
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 Text
-> Maybe (HashMap Text Text)
-> Int
-> UpdateRegistryResponse
UpdateRegistryResponse'
            (Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> Int
 -> UpdateRegistryResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> Int
      -> UpdateRegistryResponse)
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
"RegistryName")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> Int
   -> UpdateRegistryResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe (HashMap Text Text) -> Int -> UpdateRegistryResponse)
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
"RegistryArn")
            Either
  String
  (Maybe Text
   -> Maybe (HashMap Text Text) -> Int -> UpdateRegistryResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe (HashMap Text Text) -> Int -> UpdateRegistryResponse)
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
"Description")
            Either
  String (Maybe (HashMap Text Text) -> Int -> UpdateRegistryResponse)
-> Either String (Maybe (HashMap Text Text))
-> Either String (Int -> UpdateRegistryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"tags" Either String (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text)
-> Either String (Maybe (HashMap Text Text))
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> UpdateRegistryResponse)
-> Either String Int -> Either String UpdateRegistryResponse
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 UpdateRegistry

instance Prelude.NFData UpdateRegistry

instance Core.ToHeaders UpdateRegistry where
  toHeaders :: UpdateRegistry -> ResponseHeaders
toHeaders =
    ResponseHeaders -> UpdateRegistry -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ 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 UpdateRegistry where
  toJSON :: UpdateRegistry -> Value
toJSON UpdateRegistry' {Maybe Text
Text
registryName :: Text
description :: Maybe Text
$sel:registryName:UpdateRegistry' :: UpdateRegistry -> Text
$sel:description:UpdateRegistry' :: UpdateRegistry -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [(Text
"Description" 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
description]
      )

instance Core.ToPath UpdateRegistry where
  toPath :: UpdateRegistry -> ByteString
toPath UpdateRegistry' {Maybe Text
Text
registryName :: Text
description :: Maybe Text
$sel:registryName:UpdateRegistry' :: UpdateRegistry -> Text
$sel:description:UpdateRegistry' :: UpdateRegistry -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ByteString
"/v1/registries/name/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
registryName]

instance Core.ToQuery UpdateRegistry where
  toQuery :: UpdateRegistry -> QueryString
toQuery = QueryString -> UpdateRegistry -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newUpdateRegistryResponse' smart constructor.
data UpdateRegistryResponse = UpdateRegistryResponse'
  { -- | The name of the registry.
    UpdateRegistryResponse -> Maybe Text
registryName :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the registry.
    UpdateRegistryResponse -> Maybe Text
registryArn :: Prelude.Maybe Prelude.Text,
    -- | The description of the registry.
    UpdateRegistryResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | Tags associated with the registry.
    UpdateRegistryResponse -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The response's http status code.
    UpdateRegistryResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (UpdateRegistryResponse -> UpdateRegistryResponse -> Bool
(UpdateRegistryResponse -> UpdateRegistryResponse -> Bool)
-> (UpdateRegistryResponse -> UpdateRegistryResponse -> Bool)
-> Eq UpdateRegistryResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateRegistryResponse -> UpdateRegistryResponse -> Bool
$c/= :: UpdateRegistryResponse -> UpdateRegistryResponse -> Bool
== :: UpdateRegistryResponse -> UpdateRegistryResponse -> Bool
$c== :: UpdateRegistryResponse -> UpdateRegistryResponse -> Bool
Prelude.Eq, ReadPrec [UpdateRegistryResponse]
ReadPrec UpdateRegistryResponse
Int -> ReadS UpdateRegistryResponse
ReadS [UpdateRegistryResponse]
(Int -> ReadS UpdateRegistryResponse)
-> ReadS [UpdateRegistryResponse]
-> ReadPrec UpdateRegistryResponse
-> ReadPrec [UpdateRegistryResponse]
-> Read UpdateRegistryResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UpdateRegistryResponse]
$creadListPrec :: ReadPrec [UpdateRegistryResponse]
readPrec :: ReadPrec UpdateRegistryResponse
$creadPrec :: ReadPrec UpdateRegistryResponse
readList :: ReadS [UpdateRegistryResponse]
$creadList :: ReadS [UpdateRegistryResponse]
readsPrec :: Int -> ReadS UpdateRegistryResponse
$creadsPrec :: Int -> ReadS UpdateRegistryResponse
Prelude.Read, Int -> UpdateRegistryResponse -> ShowS
[UpdateRegistryResponse] -> ShowS
UpdateRegistryResponse -> String
(Int -> UpdateRegistryResponse -> ShowS)
-> (UpdateRegistryResponse -> String)
-> ([UpdateRegistryResponse] -> ShowS)
-> Show UpdateRegistryResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateRegistryResponse] -> ShowS
$cshowList :: [UpdateRegistryResponse] -> ShowS
show :: UpdateRegistryResponse -> String
$cshow :: UpdateRegistryResponse -> String
showsPrec :: Int -> UpdateRegistryResponse -> ShowS
$cshowsPrec :: Int -> UpdateRegistryResponse -> ShowS
Prelude.Show, (forall x. UpdateRegistryResponse -> Rep UpdateRegistryResponse x)
-> (forall x.
    Rep UpdateRegistryResponse x -> UpdateRegistryResponse)
-> Generic UpdateRegistryResponse
forall x. Rep UpdateRegistryResponse x -> UpdateRegistryResponse
forall x. UpdateRegistryResponse -> Rep UpdateRegistryResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateRegistryResponse x -> UpdateRegistryResponse
$cfrom :: forall x. UpdateRegistryResponse -> Rep UpdateRegistryResponse x
Prelude.Generic)

-- |
-- Create a value of 'UpdateRegistryResponse' 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:
--
-- 'registryName', 'updateRegistryResponse_registryName' - The name of the registry.
--
-- 'registryArn', 'updateRegistryResponse_registryArn' - The ARN of the registry.
--
-- 'description', 'updateRegistryResponse_description' - The description of the registry.
--
-- 'tags', 'updateRegistryResponse_tags' - Tags associated with the registry.
--
-- 'httpStatus', 'updateRegistryResponse_httpStatus' - The response's http status code.
newUpdateRegistryResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  UpdateRegistryResponse
newUpdateRegistryResponse :: Int -> UpdateRegistryResponse
newUpdateRegistryResponse Int
pHttpStatus_ =
  UpdateRegistryResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> Int
-> UpdateRegistryResponse
UpdateRegistryResponse'
    { $sel:registryName:UpdateRegistryResponse' :: Maybe Text
registryName =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:registryArn:UpdateRegistryResponse' :: Maybe Text
registryArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:UpdateRegistryResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:UpdateRegistryResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:UpdateRegistryResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The name of the registry.
updateRegistryResponse_registryName :: Lens.Lens' UpdateRegistryResponse (Prelude.Maybe Prelude.Text)
updateRegistryResponse_registryName :: (Maybe Text -> f (Maybe Text))
-> UpdateRegistryResponse -> f UpdateRegistryResponse
updateRegistryResponse_registryName = (UpdateRegistryResponse -> Maybe Text)
-> (UpdateRegistryResponse -> Maybe Text -> UpdateRegistryResponse)
-> Lens
     UpdateRegistryResponse
     UpdateRegistryResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRegistryResponse' {Maybe Text
registryName :: Maybe Text
$sel:registryName:UpdateRegistryResponse' :: UpdateRegistryResponse -> Maybe Text
registryName} -> Maybe Text
registryName) (\s :: UpdateRegistryResponse
s@UpdateRegistryResponse' {} Maybe Text
a -> UpdateRegistryResponse
s {$sel:registryName:UpdateRegistryResponse' :: Maybe Text
registryName = Maybe Text
a} :: UpdateRegistryResponse)

-- | The ARN of the registry.
updateRegistryResponse_registryArn :: Lens.Lens' UpdateRegistryResponse (Prelude.Maybe Prelude.Text)
updateRegistryResponse_registryArn :: (Maybe Text -> f (Maybe Text))
-> UpdateRegistryResponse -> f UpdateRegistryResponse
updateRegistryResponse_registryArn = (UpdateRegistryResponse -> Maybe Text)
-> (UpdateRegistryResponse -> Maybe Text -> UpdateRegistryResponse)
-> Lens
     UpdateRegistryResponse
     UpdateRegistryResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRegistryResponse' {Maybe Text
registryArn :: Maybe Text
$sel:registryArn:UpdateRegistryResponse' :: UpdateRegistryResponse -> Maybe Text
registryArn} -> Maybe Text
registryArn) (\s :: UpdateRegistryResponse
s@UpdateRegistryResponse' {} Maybe Text
a -> UpdateRegistryResponse
s {$sel:registryArn:UpdateRegistryResponse' :: Maybe Text
registryArn = Maybe Text
a} :: UpdateRegistryResponse)

-- | The description of the registry.
updateRegistryResponse_description :: Lens.Lens' UpdateRegistryResponse (Prelude.Maybe Prelude.Text)
updateRegistryResponse_description :: (Maybe Text -> f (Maybe Text))
-> UpdateRegistryResponse -> f UpdateRegistryResponse
updateRegistryResponse_description = (UpdateRegistryResponse -> Maybe Text)
-> (UpdateRegistryResponse -> Maybe Text -> UpdateRegistryResponse)
-> Lens
     UpdateRegistryResponse
     UpdateRegistryResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRegistryResponse' {Maybe Text
description :: Maybe Text
$sel:description:UpdateRegistryResponse' :: UpdateRegistryResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: UpdateRegistryResponse
s@UpdateRegistryResponse' {} Maybe Text
a -> UpdateRegistryResponse
s {$sel:description:UpdateRegistryResponse' :: Maybe Text
description = Maybe Text
a} :: UpdateRegistryResponse)

-- | Tags associated with the registry.
updateRegistryResponse_tags :: Lens.Lens' UpdateRegistryResponse (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
updateRegistryResponse_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateRegistryResponse -> f UpdateRegistryResponse
updateRegistryResponse_tags = (UpdateRegistryResponse -> Maybe (HashMap Text Text))
-> (UpdateRegistryResponse
    -> Maybe (HashMap Text Text) -> UpdateRegistryResponse)
-> Lens
     UpdateRegistryResponse
     UpdateRegistryResponse
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRegistryResponse' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:UpdateRegistryResponse' :: UpdateRegistryResponse -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: UpdateRegistryResponse
s@UpdateRegistryResponse' {} Maybe (HashMap Text Text)
a -> UpdateRegistryResponse
s {$sel:tags:UpdateRegistryResponse' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: UpdateRegistryResponse) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> UpdateRegistryResponse -> f UpdateRegistryResponse)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> UpdateRegistryResponse
-> f UpdateRegistryResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text 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
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
updateRegistryResponse_httpStatus :: Lens.Lens' UpdateRegistryResponse Prelude.Int
updateRegistryResponse_httpStatus :: (Int -> f Int)
-> UpdateRegistryResponse -> f UpdateRegistryResponse
updateRegistryResponse_httpStatus = (UpdateRegistryResponse -> Int)
-> (UpdateRegistryResponse -> Int -> UpdateRegistryResponse)
-> Lens UpdateRegistryResponse UpdateRegistryResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateRegistryResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateRegistryResponse' :: UpdateRegistryResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateRegistryResponse
s@UpdateRegistryResponse' {} Int
a -> UpdateRegistryResponse
s {$sel:httpStatus:UpdateRegistryResponse' :: Int
httpStatus = Int
a} :: UpdateRegistryResponse)

instance Prelude.NFData UpdateRegistryResponse