{-# 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.CloudFormation.DescribeTypeRegistration
-- 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)
--
-- Returns information about an extension\'s registration, including its
-- current status and type and version identifiers.
--
-- When you initiate a registration request using @ RegisterType @, you can
-- then use @ DescribeTypeRegistration @ to monitor the progress of that
-- registration request.
--
-- Once the registration request has completed, use @ DescribeType @ to
-- return detailed information about an extension.
module Amazonka.CloudFormation.DescribeTypeRegistration
  ( -- * Creating a Request
    DescribeTypeRegistration (..),
    newDescribeTypeRegistration,

    -- * Request Lenses
    describeTypeRegistration_registrationToken,

    -- * Destructuring the Response
    DescribeTypeRegistrationResponse (..),
    newDescribeTypeRegistrationResponse,

    -- * Response Lenses
    describeTypeRegistrationResponse_typeVersionArn,
    describeTypeRegistrationResponse_progressStatus,
    describeTypeRegistrationResponse_typeArn,
    describeTypeRegistrationResponse_description,
    describeTypeRegistrationResponse_httpStatus,
  )
where

import Amazonka.CloudFormation.Types
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

-- | /See:/ 'newDescribeTypeRegistration' smart constructor.
data DescribeTypeRegistration = DescribeTypeRegistration'
  { -- | The identifier for this registration request.
    --
    -- This registration token is generated by CloudFormation when you initiate
    -- a registration request using @ RegisterType @.
    DescribeTypeRegistration -> Text
registrationToken :: Prelude.Text
  }
  deriving (DescribeTypeRegistration -> DescribeTypeRegistration -> Bool
(DescribeTypeRegistration -> DescribeTypeRegistration -> Bool)
-> (DescribeTypeRegistration -> DescribeTypeRegistration -> Bool)
-> Eq DescribeTypeRegistration
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTypeRegistration -> DescribeTypeRegistration -> Bool
$c/= :: DescribeTypeRegistration -> DescribeTypeRegistration -> Bool
== :: DescribeTypeRegistration -> DescribeTypeRegistration -> Bool
$c== :: DescribeTypeRegistration -> DescribeTypeRegistration -> Bool
Prelude.Eq, ReadPrec [DescribeTypeRegistration]
ReadPrec DescribeTypeRegistration
Int -> ReadS DescribeTypeRegistration
ReadS [DescribeTypeRegistration]
(Int -> ReadS DescribeTypeRegistration)
-> ReadS [DescribeTypeRegistration]
-> ReadPrec DescribeTypeRegistration
-> ReadPrec [DescribeTypeRegistration]
-> Read DescribeTypeRegistration
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTypeRegistration]
$creadListPrec :: ReadPrec [DescribeTypeRegistration]
readPrec :: ReadPrec DescribeTypeRegistration
$creadPrec :: ReadPrec DescribeTypeRegistration
readList :: ReadS [DescribeTypeRegistration]
$creadList :: ReadS [DescribeTypeRegistration]
readsPrec :: Int -> ReadS DescribeTypeRegistration
$creadsPrec :: Int -> ReadS DescribeTypeRegistration
Prelude.Read, Int -> DescribeTypeRegistration -> ShowS
[DescribeTypeRegistration] -> ShowS
DescribeTypeRegistration -> String
(Int -> DescribeTypeRegistration -> ShowS)
-> (DescribeTypeRegistration -> String)
-> ([DescribeTypeRegistration] -> ShowS)
-> Show DescribeTypeRegistration
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTypeRegistration] -> ShowS
$cshowList :: [DescribeTypeRegistration] -> ShowS
show :: DescribeTypeRegistration -> String
$cshow :: DescribeTypeRegistration -> String
showsPrec :: Int -> DescribeTypeRegistration -> ShowS
$cshowsPrec :: Int -> DescribeTypeRegistration -> ShowS
Prelude.Show, (forall x.
 DescribeTypeRegistration -> Rep DescribeTypeRegistration x)
-> (forall x.
    Rep DescribeTypeRegistration x -> DescribeTypeRegistration)
-> Generic DescribeTypeRegistration
forall x.
Rep DescribeTypeRegistration x -> DescribeTypeRegistration
forall x.
DescribeTypeRegistration -> Rep DescribeTypeRegistration x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTypeRegistration x -> DescribeTypeRegistration
$cfrom :: forall x.
DescribeTypeRegistration -> Rep DescribeTypeRegistration x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTypeRegistration' 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:
--
-- 'registrationToken', 'describeTypeRegistration_registrationToken' - The identifier for this registration request.
--
-- This registration token is generated by CloudFormation when you initiate
-- a registration request using @ RegisterType @.
newDescribeTypeRegistration ::
  -- | 'registrationToken'
  Prelude.Text ->
  DescribeTypeRegistration
newDescribeTypeRegistration :: Text -> DescribeTypeRegistration
newDescribeTypeRegistration Text
pRegistrationToken_ =
  DescribeTypeRegistration' :: Text -> DescribeTypeRegistration
DescribeTypeRegistration'
    { $sel:registrationToken:DescribeTypeRegistration' :: Text
registrationToken =
        Text
pRegistrationToken_
    }

-- | The identifier for this registration request.
--
-- This registration token is generated by CloudFormation when you initiate
-- a registration request using @ RegisterType @.
describeTypeRegistration_registrationToken :: Lens.Lens' DescribeTypeRegistration Prelude.Text
describeTypeRegistration_registrationToken :: (Text -> f Text)
-> DescribeTypeRegistration -> f DescribeTypeRegistration
describeTypeRegistration_registrationToken = (DescribeTypeRegistration -> Text)
-> (DescribeTypeRegistration -> Text -> DescribeTypeRegistration)
-> Lens DescribeTypeRegistration DescribeTypeRegistration Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTypeRegistration' {Text
registrationToken :: Text
$sel:registrationToken:DescribeTypeRegistration' :: DescribeTypeRegistration -> Text
registrationToken} -> Text
registrationToken) (\s :: DescribeTypeRegistration
s@DescribeTypeRegistration' {} Text
a -> DescribeTypeRegistration
s {$sel:registrationToken:DescribeTypeRegistration' :: Text
registrationToken = Text
a} :: DescribeTypeRegistration)

instance Core.AWSRequest DescribeTypeRegistration where
  type
    AWSResponse DescribeTypeRegistration =
      DescribeTypeRegistrationResponse
  request :: DescribeTypeRegistration -> Request DescribeTypeRegistration
request = Service
-> DescribeTypeRegistration -> Request DescribeTypeRegistration
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeTypeRegistration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeTypeRegistration)))
response =
    Text
-> (Int
    -> ResponseHeaders
    -> [Node]
    -> Either String (AWSResponse DescribeTypeRegistration))
-> Logger
-> Service
-> Proxy DescribeTypeRegistration
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse DescribeTypeRegistration)))
forall (m :: * -> *) a.
MonadResource m =>
Text
-> (Int
    -> ResponseHeaders -> [Node] -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveXMLWrapper
      Text
"DescribeTypeRegistrationResult"
      ( \Int
s ResponseHeaders
h [Node]
x ->
          Maybe Text
-> Maybe RegistrationStatus
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeTypeRegistrationResponse
DescribeTypeRegistrationResponse'
            (Maybe Text
 -> Maybe RegistrationStatus
 -> Maybe Text
 -> Maybe Text
 -> Int
 -> DescribeTypeRegistrationResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe RegistrationStatus
      -> Maybe Text
      -> Maybe Text
      -> Int
      -> DescribeTypeRegistrationResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TypeVersionArn")
            Either
  String
  (Maybe RegistrationStatus
   -> Maybe Text
   -> Maybe Text
   -> Int
   -> DescribeTypeRegistrationResponse)
-> Either String (Maybe RegistrationStatus)
-> Either
     String
     (Maybe Text
      -> Maybe Text -> Int -> DescribeTypeRegistrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe RegistrationStatus)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"ProgressStatus")
            Either
  String
  (Maybe Text
   -> Maybe Text -> Int -> DescribeTypeRegistrationResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe Text -> Int -> DescribeTypeRegistrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"TypeArn")
            Either
  String (Maybe Text -> Int -> DescribeTypeRegistrationResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeTypeRegistrationResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ([Node]
x [Node] -> Text -> Either String (Maybe Text)
forall a. FromXML a => [Node] -> Text -> Either String (Maybe a)
Core..@? Text
"Description")
            Either String (Int -> DescribeTypeRegistrationResponse)
-> Either String Int
-> Either String DescribeTypeRegistrationResponse
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 DescribeTypeRegistration

instance Prelude.NFData DescribeTypeRegistration

instance Core.ToHeaders DescribeTypeRegistration where
  toHeaders :: DescribeTypeRegistration -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeTypeRegistration -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

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

instance Core.ToQuery DescribeTypeRegistration where
  toQuery :: DescribeTypeRegistration -> QueryString
toQuery DescribeTypeRegistration' {Text
registrationToken :: Text
$sel:registrationToken:DescribeTypeRegistration' :: DescribeTypeRegistration -> Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"Action"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"DescribeTypeRegistration" :: Prelude.ByteString),
        ByteString
"Version"
          ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-15" :: Prelude.ByteString),
        ByteString
"RegistrationToken" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
registrationToken
      ]

-- | /See:/ 'newDescribeTypeRegistrationResponse' smart constructor.
data DescribeTypeRegistrationResponse = DescribeTypeRegistrationResponse'
  { -- | The Amazon Resource Name (ARN) of this specific version of the extension
    -- being registered.
    --
    -- For registration requests with a @ProgressStatus@ of other than
    -- @COMPLETE@, this will be @null@.
    DescribeTypeRegistrationResponse -> Maybe Text
typeVersionArn :: Prelude.Maybe Prelude.Text,
    -- | The current status of the extension registration request.
    DescribeTypeRegistrationResponse -> Maybe RegistrationStatus
progressStatus :: Prelude.Maybe RegistrationStatus,
    -- | The Amazon Resource Name (ARN) of the extension being registered.
    --
    -- For registration requests with a @ProgressStatus@ of other than
    -- @COMPLETE@, this will be @null@.
    DescribeTypeRegistrationResponse -> Maybe Text
typeArn :: Prelude.Maybe Prelude.Text,
    -- | The description of the extension registration request.
    DescribeTypeRegistrationResponse -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeTypeRegistrationResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeTypeRegistrationResponse
-> DescribeTypeRegistrationResponse -> Bool
(DescribeTypeRegistrationResponse
 -> DescribeTypeRegistrationResponse -> Bool)
-> (DescribeTypeRegistrationResponse
    -> DescribeTypeRegistrationResponse -> Bool)
-> Eq DescribeTypeRegistrationResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeTypeRegistrationResponse
-> DescribeTypeRegistrationResponse -> Bool
$c/= :: DescribeTypeRegistrationResponse
-> DescribeTypeRegistrationResponse -> Bool
== :: DescribeTypeRegistrationResponse
-> DescribeTypeRegistrationResponse -> Bool
$c== :: DescribeTypeRegistrationResponse
-> DescribeTypeRegistrationResponse -> Bool
Prelude.Eq, ReadPrec [DescribeTypeRegistrationResponse]
ReadPrec DescribeTypeRegistrationResponse
Int -> ReadS DescribeTypeRegistrationResponse
ReadS [DescribeTypeRegistrationResponse]
(Int -> ReadS DescribeTypeRegistrationResponse)
-> ReadS [DescribeTypeRegistrationResponse]
-> ReadPrec DescribeTypeRegistrationResponse
-> ReadPrec [DescribeTypeRegistrationResponse]
-> Read DescribeTypeRegistrationResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeTypeRegistrationResponse]
$creadListPrec :: ReadPrec [DescribeTypeRegistrationResponse]
readPrec :: ReadPrec DescribeTypeRegistrationResponse
$creadPrec :: ReadPrec DescribeTypeRegistrationResponse
readList :: ReadS [DescribeTypeRegistrationResponse]
$creadList :: ReadS [DescribeTypeRegistrationResponse]
readsPrec :: Int -> ReadS DescribeTypeRegistrationResponse
$creadsPrec :: Int -> ReadS DescribeTypeRegistrationResponse
Prelude.Read, Int -> DescribeTypeRegistrationResponse -> ShowS
[DescribeTypeRegistrationResponse] -> ShowS
DescribeTypeRegistrationResponse -> String
(Int -> DescribeTypeRegistrationResponse -> ShowS)
-> (DescribeTypeRegistrationResponse -> String)
-> ([DescribeTypeRegistrationResponse] -> ShowS)
-> Show DescribeTypeRegistrationResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeTypeRegistrationResponse] -> ShowS
$cshowList :: [DescribeTypeRegistrationResponse] -> ShowS
show :: DescribeTypeRegistrationResponse -> String
$cshow :: DescribeTypeRegistrationResponse -> String
showsPrec :: Int -> DescribeTypeRegistrationResponse -> ShowS
$cshowsPrec :: Int -> DescribeTypeRegistrationResponse -> ShowS
Prelude.Show, (forall x.
 DescribeTypeRegistrationResponse
 -> Rep DescribeTypeRegistrationResponse x)
-> (forall x.
    Rep DescribeTypeRegistrationResponse x
    -> DescribeTypeRegistrationResponse)
-> Generic DescribeTypeRegistrationResponse
forall x.
Rep DescribeTypeRegistrationResponse x
-> DescribeTypeRegistrationResponse
forall x.
DescribeTypeRegistrationResponse
-> Rep DescribeTypeRegistrationResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeTypeRegistrationResponse x
-> DescribeTypeRegistrationResponse
$cfrom :: forall x.
DescribeTypeRegistrationResponse
-> Rep DescribeTypeRegistrationResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeTypeRegistrationResponse' 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:
--
-- 'typeVersionArn', 'describeTypeRegistrationResponse_typeVersionArn' - The Amazon Resource Name (ARN) of this specific version of the extension
-- being registered.
--
-- For registration requests with a @ProgressStatus@ of other than
-- @COMPLETE@, this will be @null@.
--
-- 'progressStatus', 'describeTypeRegistrationResponse_progressStatus' - The current status of the extension registration request.
--
-- 'typeArn', 'describeTypeRegistrationResponse_typeArn' - The Amazon Resource Name (ARN) of the extension being registered.
--
-- For registration requests with a @ProgressStatus@ of other than
-- @COMPLETE@, this will be @null@.
--
-- 'description', 'describeTypeRegistrationResponse_description' - The description of the extension registration request.
--
-- 'httpStatus', 'describeTypeRegistrationResponse_httpStatus' - The response's http status code.
newDescribeTypeRegistrationResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeTypeRegistrationResponse
newDescribeTypeRegistrationResponse :: Int -> DescribeTypeRegistrationResponse
newDescribeTypeRegistrationResponse Int
pHttpStatus_ =
  DescribeTypeRegistrationResponse' :: Maybe Text
-> Maybe RegistrationStatus
-> Maybe Text
-> Maybe Text
-> Int
-> DescribeTypeRegistrationResponse
DescribeTypeRegistrationResponse'
    { $sel:typeVersionArn:DescribeTypeRegistrationResponse' :: Maybe Text
typeVersionArn =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:progressStatus:DescribeTypeRegistrationResponse' :: Maybe RegistrationStatus
progressStatus = Maybe RegistrationStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:typeArn:DescribeTypeRegistrationResponse' :: Maybe Text
typeArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:description:DescribeTypeRegistrationResponse' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:DescribeTypeRegistrationResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The Amazon Resource Name (ARN) of this specific version of the extension
-- being registered.
--
-- For registration requests with a @ProgressStatus@ of other than
-- @COMPLETE@, this will be @null@.
describeTypeRegistrationResponse_typeVersionArn :: Lens.Lens' DescribeTypeRegistrationResponse (Prelude.Maybe Prelude.Text)
describeTypeRegistrationResponse_typeVersionArn :: (Maybe Text -> f (Maybe Text))
-> DescribeTypeRegistrationResponse
-> f DescribeTypeRegistrationResponse
describeTypeRegistrationResponse_typeVersionArn = (DescribeTypeRegistrationResponse -> Maybe Text)
-> (DescribeTypeRegistrationResponse
    -> Maybe Text -> DescribeTypeRegistrationResponse)
-> Lens
     DescribeTypeRegistrationResponse
     DescribeTypeRegistrationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTypeRegistrationResponse' {Maybe Text
typeVersionArn :: Maybe Text
$sel:typeVersionArn:DescribeTypeRegistrationResponse' :: DescribeTypeRegistrationResponse -> Maybe Text
typeVersionArn} -> Maybe Text
typeVersionArn) (\s :: DescribeTypeRegistrationResponse
s@DescribeTypeRegistrationResponse' {} Maybe Text
a -> DescribeTypeRegistrationResponse
s {$sel:typeVersionArn:DescribeTypeRegistrationResponse' :: Maybe Text
typeVersionArn = Maybe Text
a} :: DescribeTypeRegistrationResponse)

-- | The current status of the extension registration request.
describeTypeRegistrationResponse_progressStatus :: Lens.Lens' DescribeTypeRegistrationResponse (Prelude.Maybe RegistrationStatus)
describeTypeRegistrationResponse_progressStatus :: (Maybe RegistrationStatus -> f (Maybe RegistrationStatus))
-> DescribeTypeRegistrationResponse
-> f DescribeTypeRegistrationResponse
describeTypeRegistrationResponse_progressStatus = (DescribeTypeRegistrationResponse -> Maybe RegistrationStatus)
-> (DescribeTypeRegistrationResponse
    -> Maybe RegistrationStatus -> DescribeTypeRegistrationResponse)
-> Lens
     DescribeTypeRegistrationResponse
     DescribeTypeRegistrationResponse
     (Maybe RegistrationStatus)
     (Maybe RegistrationStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTypeRegistrationResponse' {Maybe RegistrationStatus
progressStatus :: Maybe RegistrationStatus
$sel:progressStatus:DescribeTypeRegistrationResponse' :: DescribeTypeRegistrationResponse -> Maybe RegistrationStatus
progressStatus} -> Maybe RegistrationStatus
progressStatus) (\s :: DescribeTypeRegistrationResponse
s@DescribeTypeRegistrationResponse' {} Maybe RegistrationStatus
a -> DescribeTypeRegistrationResponse
s {$sel:progressStatus:DescribeTypeRegistrationResponse' :: Maybe RegistrationStatus
progressStatus = Maybe RegistrationStatus
a} :: DescribeTypeRegistrationResponse)

-- | The Amazon Resource Name (ARN) of the extension being registered.
--
-- For registration requests with a @ProgressStatus@ of other than
-- @COMPLETE@, this will be @null@.
describeTypeRegistrationResponse_typeArn :: Lens.Lens' DescribeTypeRegistrationResponse (Prelude.Maybe Prelude.Text)
describeTypeRegistrationResponse_typeArn :: (Maybe Text -> f (Maybe Text))
-> DescribeTypeRegistrationResponse
-> f DescribeTypeRegistrationResponse
describeTypeRegistrationResponse_typeArn = (DescribeTypeRegistrationResponse -> Maybe Text)
-> (DescribeTypeRegistrationResponse
    -> Maybe Text -> DescribeTypeRegistrationResponse)
-> Lens
     DescribeTypeRegistrationResponse
     DescribeTypeRegistrationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTypeRegistrationResponse' {Maybe Text
typeArn :: Maybe Text
$sel:typeArn:DescribeTypeRegistrationResponse' :: DescribeTypeRegistrationResponse -> Maybe Text
typeArn} -> Maybe Text
typeArn) (\s :: DescribeTypeRegistrationResponse
s@DescribeTypeRegistrationResponse' {} Maybe Text
a -> DescribeTypeRegistrationResponse
s {$sel:typeArn:DescribeTypeRegistrationResponse' :: Maybe Text
typeArn = Maybe Text
a} :: DescribeTypeRegistrationResponse)

-- | The description of the extension registration request.
describeTypeRegistrationResponse_description :: Lens.Lens' DescribeTypeRegistrationResponse (Prelude.Maybe Prelude.Text)
describeTypeRegistrationResponse_description :: (Maybe Text -> f (Maybe Text))
-> DescribeTypeRegistrationResponse
-> f DescribeTypeRegistrationResponse
describeTypeRegistrationResponse_description = (DescribeTypeRegistrationResponse -> Maybe Text)
-> (DescribeTypeRegistrationResponse
    -> Maybe Text -> DescribeTypeRegistrationResponse)
-> Lens
     DescribeTypeRegistrationResponse
     DescribeTypeRegistrationResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeTypeRegistrationResponse' {Maybe Text
description :: Maybe Text
$sel:description:DescribeTypeRegistrationResponse' :: DescribeTypeRegistrationResponse -> Maybe Text
description} -> Maybe Text
description) (\s :: DescribeTypeRegistrationResponse
s@DescribeTypeRegistrationResponse' {} Maybe Text
a -> DescribeTypeRegistrationResponse
s {$sel:description:DescribeTypeRegistrationResponse' :: Maybe Text
description = Maybe Text
a} :: DescribeTypeRegistrationResponse)

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

instance
  Prelude.NFData
    DescribeTypeRegistrationResponse