{-# 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.Glue.GetRegistry
-- 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)
--
-- Describes the specified registry in detail.
module Amazonka.Glue.GetRegistry
  ( -- * Creating a Request
    GetRegistry (..),
    newGetRegistry,

    -- * Request Lenses
    getRegistry_registryId,

    -- * Destructuring the Response
    GetRegistryResponse (..),
    newGetRegistryResponse,

    -- * Response Lenses
    getRegistryResponse_status,
    getRegistryResponse_registryName,
    getRegistryResponse_createdTime,
    getRegistryResponse_registryArn,
    getRegistryResponse_updatedTime,
    getRegistryResponse_description,
    getRegistryResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.Glue.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:/ 'newGetRegistry' smart constructor.
data GetRegistry = GetRegistry'
  { -- | This is a wrapper structure that may contain the registry name and
    -- Amazon Resource Name (ARN).
    GetRegistry -> RegistryId
registryId :: RegistryId
  }
  deriving (GetRegistry -> GetRegistry -> Bool
(GetRegistry -> GetRegistry -> Bool)
-> (GetRegistry -> GetRegistry -> Bool) -> Eq GetRegistry
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRegistry -> GetRegistry -> Bool
$c/= :: GetRegistry -> GetRegistry -> Bool
== :: GetRegistry -> GetRegistry -> Bool
$c== :: GetRegistry -> GetRegistry -> Bool
Prelude.Eq, ReadPrec [GetRegistry]
ReadPrec GetRegistry
Int -> ReadS GetRegistry
ReadS [GetRegistry]
(Int -> ReadS GetRegistry)
-> ReadS [GetRegistry]
-> ReadPrec GetRegistry
-> ReadPrec [GetRegistry]
-> Read GetRegistry
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRegistry]
$creadListPrec :: ReadPrec [GetRegistry]
readPrec :: ReadPrec GetRegistry
$creadPrec :: ReadPrec GetRegistry
readList :: ReadS [GetRegistry]
$creadList :: ReadS [GetRegistry]
readsPrec :: Int -> ReadS GetRegistry
$creadsPrec :: Int -> ReadS GetRegistry
Prelude.Read, Int -> GetRegistry -> ShowS
[GetRegistry] -> ShowS
GetRegistry -> String
(Int -> GetRegistry -> ShowS)
-> (GetRegistry -> String)
-> ([GetRegistry] -> ShowS)
-> Show GetRegistry
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRegistry] -> ShowS
$cshowList :: [GetRegistry] -> ShowS
show :: GetRegistry -> String
$cshow :: GetRegistry -> String
showsPrec :: Int -> GetRegistry -> ShowS
$cshowsPrec :: Int -> GetRegistry -> ShowS
Prelude.Show, (forall x. GetRegistry -> Rep GetRegistry x)
-> (forall x. Rep GetRegistry x -> GetRegistry)
-> Generic GetRegistry
forall x. Rep GetRegistry x -> GetRegistry
forall x. GetRegistry -> Rep GetRegistry x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetRegistry x -> GetRegistry
$cfrom :: forall x. GetRegistry -> Rep GetRegistry x
Prelude.Generic)

-- |
-- Create a value of 'GetRegistry' 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', 'getRegistry_registryId' - This is a wrapper structure that may contain the registry name and
-- Amazon Resource Name (ARN).
newGetRegistry ::
  -- | 'registryId'
  RegistryId ->
  GetRegistry
newGetRegistry :: RegistryId -> GetRegistry
newGetRegistry RegistryId
pRegistryId_ =
  GetRegistry' :: RegistryId -> GetRegistry
GetRegistry' {$sel:registryId:GetRegistry' :: RegistryId
registryId = RegistryId
pRegistryId_}

-- | This is a wrapper structure that may contain the registry name and
-- Amazon Resource Name (ARN).
getRegistry_registryId :: Lens.Lens' GetRegistry RegistryId
getRegistry_registryId :: (RegistryId -> f RegistryId) -> GetRegistry -> f GetRegistry
getRegistry_registryId = (GetRegistry -> RegistryId)
-> (GetRegistry -> RegistryId -> GetRegistry)
-> Lens GetRegistry GetRegistry RegistryId RegistryId
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRegistry' {RegistryId
registryId :: RegistryId
$sel:registryId:GetRegistry' :: GetRegistry -> RegistryId
registryId} -> RegistryId
registryId) (\s :: GetRegistry
s@GetRegistry' {} RegistryId
a -> GetRegistry
s {$sel:registryId:GetRegistry' :: RegistryId
registryId = RegistryId
a} :: GetRegistry)

instance Core.AWSRequest GetRegistry where
  type AWSResponse GetRegistry = GetRegistryResponse
  request :: GetRegistry -> Request GetRegistry
request = Service -> GetRegistry -> Request GetRegistry
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy GetRegistry
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetRegistry)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetRegistry))
-> Logger
-> Service
-> Proxy GetRegistry
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetRegistry)))
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 RegistryStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetRegistryResponse
GetRegistryResponse'
            (Maybe RegistryStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Int
 -> GetRegistryResponse)
-> Either String (Maybe RegistryStatus)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Int
      -> GetRegistryResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe RegistryStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Status")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Int
   -> GetRegistryResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Int
      -> GetRegistryResponse)
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
"RegistryName")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Int
   -> GetRegistryResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe Text -> Maybe Text -> Int -> GetRegistryResponse)
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
"CreatedTime")
            Either
  String
  (Maybe Text
   -> Maybe Text -> Maybe Text -> Int -> GetRegistryResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Text -> Maybe Text -> Int -> GetRegistryResponse)
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 Text -> Int -> GetRegistryResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> GetRegistryResponse)
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
"UpdatedTime")
            Either String (Maybe Text -> Int -> GetRegistryResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetRegistryResponse)
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 (Int -> GetRegistryResponse)
-> Either String Int -> Either String GetRegistryResponse
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 GetRegistry

instance Prelude.NFData GetRegistry

instance Core.ToHeaders GetRegistry where
  toHeaders :: GetRegistry -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetRegistry -> 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
"AWSGlue.GetRegistry" :: 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 GetRegistry where
  toJSON :: GetRegistry -> Value
toJSON GetRegistry' {RegistryId
registryId :: RegistryId
$sel:registryId:GetRegistry' :: GetRegistry -> RegistryId
..} =
    [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
"RegistryId" Text -> RegistryId -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= RegistryId
registryId)]
      )

instance Core.ToPath GetRegistry where
  toPath :: GetRegistry -> ByteString
toPath = ByteString -> GetRegistry -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

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

-- | /See:/ 'newGetRegistryResponse' smart constructor.
data GetRegistryResponse = GetRegistryResponse'
  { -- | The status of the registry.
    GetRegistryResponse -> Maybe RegistryStatus
status :: Prelude.Maybe RegistryStatus,
    -- | The name of the registry.
    GetRegistryResponse -> Maybe Text
registryName :: Prelude.Maybe Prelude.Text,
    -- | The date and time the registry was created.
    GetRegistryResponse -> Maybe Text
createdTime :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the registry.
    GetRegistryResponse -> Maybe Text
registryArn :: Prelude.Maybe Prelude.Text,
    -- | The date and time the registry was updated.
    GetRegistryResponse -> Maybe Text
updatedTime :: Prelude.Maybe Prelude.Text,
    -- | A description of the registry.
    GetRegistryResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetRegistryResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetRegistryResponse -> GetRegistryResponse -> Bool
(GetRegistryResponse -> GetRegistryResponse -> Bool)
-> (GetRegistryResponse -> GetRegistryResponse -> Bool)
-> Eq GetRegistryResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRegistryResponse -> GetRegistryResponse -> Bool
$c/= :: GetRegistryResponse -> GetRegistryResponse -> Bool
== :: GetRegistryResponse -> GetRegistryResponse -> Bool
$c== :: GetRegistryResponse -> GetRegistryResponse -> Bool
Prelude.Eq, ReadPrec [GetRegistryResponse]
ReadPrec GetRegistryResponse
Int -> ReadS GetRegistryResponse
ReadS [GetRegistryResponse]
(Int -> ReadS GetRegistryResponse)
-> ReadS [GetRegistryResponse]
-> ReadPrec GetRegistryResponse
-> ReadPrec [GetRegistryResponse]
-> Read GetRegistryResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRegistryResponse]
$creadListPrec :: ReadPrec [GetRegistryResponse]
readPrec :: ReadPrec GetRegistryResponse
$creadPrec :: ReadPrec GetRegistryResponse
readList :: ReadS [GetRegistryResponse]
$creadList :: ReadS [GetRegistryResponse]
readsPrec :: Int -> ReadS GetRegistryResponse
$creadsPrec :: Int -> ReadS GetRegistryResponse
Prelude.Read, Int -> GetRegistryResponse -> ShowS
[GetRegistryResponse] -> ShowS
GetRegistryResponse -> String
(Int -> GetRegistryResponse -> ShowS)
-> (GetRegistryResponse -> String)
-> ([GetRegistryResponse] -> ShowS)
-> Show GetRegistryResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRegistryResponse] -> ShowS
$cshowList :: [GetRegistryResponse] -> ShowS
show :: GetRegistryResponse -> String
$cshow :: GetRegistryResponse -> String
showsPrec :: Int -> GetRegistryResponse -> ShowS
$cshowsPrec :: Int -> GetRegistryResponse -> ShowS
Prelude.Show, (forall x. GetRegistryResponse -> Rep GetRegistryResponse x)
-> (forall x. Rep GetRegistryResponse x -> GetRegistryResponse)
-> Generic GetRegistryResponse
forall x. Rep GetRegistryResponse x -> GetRegistryResponse
forall x. GetRegistryResponse -> Rep GetRegistryResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetRegistryResponse x -> GetRegistryResponse
$cfrom :: forall x. GetRegistryResponse -> Rep GetRegistryResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetRegistryResponse' 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:
--
-- 'status', 'getRegistryResponse_status' - The status of the registry.
--
-- 'registryName', 'getRegistryResponse_registryName' - The name of the registry.
--
-- 'createdTime', 'getRegistryResponse_createdTime' - The date and time the registry was created.
--
-- 'registryArn', 'getRegistryResponse_registryArn' - The Amazon Resource Name (ARN) of the registry.
--
-- 'updatedTime', 'getRegistryResponse_updatedTime' - The date and time the registry was updated.
--
-- 'description', 'getRegistryResponse_description' - A description of the registry.
--
-- 'httpStatus', 'getRegistryResponse_httpStatus' - The response's http status code.
newGetRegistryResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetRegistryResponse
newGetRegistryResponse :: Int -> GetRegistryResponse
newGetRegistryResponse Int
pHttpStatus_ =
  GetRegistryResponse' :: Maybe RegistryStatus
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> GetRegistryResponse
GetRegistryResponse'
    { $sel:status:GetRegistryResponse' :: Maybe RegistryStatus
status = Maybe RegistryStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:registryName:GetRegistryResponse' :: Maybe Text
registryName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:createdTime:GetRegistryResponse' :: Maybe Text
createdTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:registryArn:GetRegistryResponse' :: Maybe Text
registryArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:updatedTime:GetRegistryResponse' :: Maybe Text
updatedTime = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:GetRegistryResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetRegistryResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The status of the registry.
getRegistryResponse_status :: Lens.Lens' GetRegistryResponse (Prelude.Maybe RegistryStatus)
getRegistryResponse_status :: (Maybe RegistryStatus -> f (Maybe RegistryStatus))
-> GetRegistryResponse -> f GetRegistryResponse
getRegistryResponse_status = (GetRegistryResponse -> Maybe RegistryStatus)
-> (GetRegistryResponse
    -> Maybe RegistryStatus -> GetRegistryResponse)
-> Lens
     GetRegistryResponse
     GetRegistryResponse
     (Maybe RegistryStatus)
     (Maybe RegistryStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRegistryResponse' {Maybe RegistryStatus
status :: Maybe RegistryStatus
$sel:status:GetRegistryResponse' :: GetRegistryResponse -> Maybe RegistryStatus
status} -> Maybe RegistryStatus
status) (\s :: GetRegistryResponse
s@GetRegistryResponse' {} Maybe RegistryStatus
a -> GetRegistryResponse
s {$sel:status:GetRegistryResponse' :: Maybe RegistryStatus
status = Maybe RegistryStatus
a} :: GetRegistryResponse)

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

-- | The date and time the registry was created.
getRegistryResponse_createdTime :: Lens.Lens' GetRegistryResponse (Prelude.Maybe Prelude.Text)
getRegistryResponse_createdTime :: (Maybe Text -> f (Maybe Text))
-> GetRegistryResponse -> f GetRegistryResponse
getRegistryResponse_createdTime = (GetRegistryResponse -> Maybe Text)
-> (GetRegistryResponse -> Maybe Text -> GetRegistryResponse)
-> Lens
     GetRegistryResponse GetRegistryResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRegistryResponse' {Maybe Text
createdTime :: Maybe Text
$sel:createdTime:GetRegistryResponse' :: GetRegistryResponse -> Maybe Text
createdTime} -> Maybe Text
createdTime) (\s :: GetRegistryResponse
s@GetRegistryResponse' {} Maybe Text
a -> GetRegistryResponse
s {$sel:createdTime:GetRegistryResponse' :: Maybe Text
createdTime = Maybe Text
a} :: GetRegistryResponse)

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

-- | The date and time the registry was updated.
getRegistryResponse_updatedTime :: Lens.Lens' GetRegistryResponse (Prelude.Maybe Prelude.Text)
getRegistryResponse_updatedTime :: (Maybe Text -> f (Maybe Text))
-> GetRegistryResponse -> f GetRegistryResponse
getRegistryResponse_updatedTime = (GetRegistryResponse -> Maybe Text)
-> (GetRegistryResponse -> Maybe Text -> GetRegistryResponse)
-> Lens
     GetRegistryResponse GetRegistryResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRegistryResponse' {Maybe Text
updatedTime :: Maybe Text
$sel:updatedTime:GetRegistryResponse' :: GetRegistryResponse -> Maybe Text
updatedTime} -> Maybe Text
updatedTime) (\s :: GetRegistryResponse
s@GetRegistryResponse' {} Maybe Text
a -> GetRegistryResponse
s {$sel:updatedTime:GetRegistryResponse' :: Maybe Text
updatedTime = Maybe Text
a} :: GetRegistryResponse)

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

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

instance Prelude.NFData GetRegistryResponse