{-# 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.IoTThingsGraph.GetNamespaceDeletionStatus
-- 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)
--
-- Gets the status of a namespace deletion task.
module Amazonka.IoTThingsGraph.GetNamespaceDeletionStatus
  ( -- * Creating a Request
    GetNamespaceDeletionStatus (..),
    newGetNamespaceDeletionStatus,

    -- * Destructuring the Response
    GetNamespaceDeletionStatusResponse (..),
    newGetNamespaceDeletionStatusResponse,

    -- * Response Lenses
    getNamespaceDeletionStatusResponse_status,
    getNamespaceDeletionStatusResponse_namespaceArn,
    getNamespaceDeletionStatusResponse_namespaceName,
    getNamespaceDeletionStatusResponse_errorCode,
    getNamespaceDeletionStatusResponse_errorMessage,
    getNamespaceDeletionStatusResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import Amazonka.IoTThingsGraph.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:/ 'newGetNamespaceDeletionStatus' smart constructor.
data GetNamespaceDeletionStatus = GetNamespaceDeletionStatus'
  {
  }
  deriving (GetNamespaceDeletionStatus -> GetNamespaceDeletionStatus -> Bool
(GetNamespaceDeletionStatus -> GetNamespaceDeletionStatus -> Bool)
-> (GetNamespaceDeletionStatus
    -> GetNamespaceDeletionStatus -> Bool)
-> Eq GetNamespaceDeletionStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetNamespaceDeletionStatus -> GetNamespaceDeletionStatus -> Bool
$c/= :: GetNamespaceDeletionStatus -> GetNamespaceDeletionStatus -> Bool
== :: GetNamespaceDeletionStatus -> GetNamespaceDeletionStatus -> Bool
$c== :: GetNamespaceDeletionStatus -> GetNamespaceDeletionStatus -> Bool
Prelude.Eq, ReadPrec [GetNamespaceDeletionStatus]
ReadPrec GetNamespaceDeletionStatus
Int -> ReadS GetNamespaceDeletionStatus
ReadS [GetNamespaceDeletionStatus]
(Int -> ReadS GetNamespaceDeletionStatus)
-> ReadS [GetNamespaceDeletionStatus]
-> ReadPrec GetNamespaceDeletionStatus
-> ReadPrec [GetNamespaceDeletionStatus]
-> Read GetNamespaceDeletionStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetNamespaceDeletionStatus]
$creadListPrec :: ReadPrec [GetNamespaceDeletionStatus]
readPrec :: ReadPrec GetNamespaceDeletionStatus
$creadPrec :: ReadPrec GetNamespaceDeletionStatus
readList :: ReadS [GetNamespaceDeletionStatus]
$creadList :: ReadS [GetNamespaceDeletionStatus]
readsPrec :: Int -> ReadS GetNamespaceDeletionStatus
$creadsPrec :: Int -> ReadS GetNamespaceDeletionStatus
Prelude.Read, Int -> GetNamespaceDeletionStatus -> ShowS
[GetNamespaceDeletionStatus] -> ShowS
GetNamespaceDeletionStatus -> String
(Int -> GetNamespaceDeletionStatus -> ShowS)
-> (GetNamespaceDeletionStatus -> String)
-> ([GetNamespaceDeletionStatus] -> ShowS)
-> Show GetNamespaceDeletionStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetNamespaceDeletionStatus] -> ShowS
$cshowList :: [GetNamespaceDeletionStatus] -> ShowS
show :: GetNamespaceDeletionStatus -> String
$cshow :: GetNamespaceDeletionStatus -> String
showsPrec :: Int -> GetNamespaceDeletionStatus -> ShowS
$cshowsPrec :: Int -> GetNamespaceDeletionStatus -> ShowS
Prelude.Show, (forall x.
 GetNamespaceDeletionStatus -> Rep GetNamespaceDeletionStatus x)
-> (forall x.
    Rep GetNamespaceDeletionStatus x -> GetNamespaceDeletionStatus)
-> Generic GetNamespaceDeletionStatus
forall x.
Rep GetNamespaceDeletionStatus x -> GetNamespaceDeletionStatus
forall x.
GetNamespaceDeletionStatus -> Rep GetNamespaceDeletionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetNamespaceDeletionStatus x -> GetNamespaceDeletionStatus
$cfrom :: forall x.
GetNamespaceDeletionStatus -> Rep GetNamespaceDeletionStatus x
Prelude.Generic)

-- |
-- Create a value of 'GetNamespaceDeletionStatus' 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.
newGetNamespaceDeletionStatus ::
  GetNamespaceDeletionStatus
newGetNamespaceDeletionStatus :: GetNamespaceDeletionStatus
newGetNamespaceDeletionStatus =
  GetNamespaceDeletionStatus
GetNamespaceDeletionStatus'

instance Core.AWSRequest GetNamespaceDeletionStatus where
  type
    AWSResponse GetNamespaceDeletionStatus =
      GetNamespaceDeletionStatusResponse
  request :: GetNamespaceDeletionStatus -> Request GetNamespaceDeletionStatus
request = Service
-> GetNamespaceDeletionStatus -> Request GetNamespaceDeletionStatus
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy GetNamespaceDeletionStatus
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetNamespaceDeletionStatus)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetNamespaceDeletionStatus))
-> Logger
-> Service
-> Proxy GetNamespaceDeletionStatus
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse GetNamespaceDeletionStatus)))
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 NamespaceDeletionStatus
-> Maybe Text
-> Maybe Text
-> Maybe NamespaceDeletionStatusErrorCodes
-> Maybe Text
-> Int
-> GetNamespaceDeletionStatusResponse
GetNamespaceDeletionStatusResponse'
            (Maybe NamespaceDeletionStatus
 -> Maybe Text
 -> Maybe Text
 -> Maybe NamespaceDeletionStatusErrorCodes
 -> Maybe Text
 -> Int
 -> GetNamespaceDeletionStatusResponse)
-> Either String (Maybe NamespaceDeletionStatus)
-> Either
     String
     (Maybe Text
      -> Maybe Text
      -> Maybe NamespaceDeletionStatusErrorCodes
      -> Maybe Text
      -> Int
      -> GetNamespaceDeletionStatusResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe NamespaceDeletionStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"status")
            Either
  String
  (Maybe Text
   -> Maybe Text
   -> Maybe NamespaceDeletionStatusErrorCodes
   -> Maybe Text
   -> Int
   -> GetNamespaceDeletionStatusResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe NamespaceDeletionStatusErrorCodes
      -> Maybe Text
      -> Int
      -> GetNamespaceDeletionStatusResponse)
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
"namespaceArn")
            Either
  String
  (Maybe Text
   -> Maybe NamespaceDeletionStatusErrorCodes
   -> Maybe Text
   -> Int
   -> GetNamespaceDeletionStatusResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe NamespaceDeletionStatusErrorCodes
      -> Maybe Text -> Int -> GetNamespaceDeletionStatusResponse)
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
"namespaceName")
            Either
  String
  (Maybe NamespaceDeletionStatusErrorCodes
   -> Maybe Text -> Int -> GetNamespaceDeletionStatusResponse)
-> Either String (Maybe NamespaceDeletionStatusErrorCodes)
-> Either
     String (Maybe Text -> Int -> GetNamespaceDeletionStatusResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe NamespaceDeletionStatusErrorCodes)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"errorCode")
            Either
  String (Maybe Text -> Int -> GetNamespaceDeletionStatusResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetNamespaceDeletionStatusResponse)
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
"errorMessage")
            Either String (Int -> GetNamespaceDeletionStatusResponse)
-> Either String Int
-> Either String GetNamespaceDeletionStatusResponse
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 GetNamespaceDeletionStatus

instance Prelude.NFData GetNamespaceDeletionStatus

instance Core.ToHeaders GetNamespaceDeletionStatus where
  toHeaders :: GetNamespaceDeletionStatus -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetNamespaceDeletionStatus -> 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
"IotThingsGraphFrontEndService.GetNamespaceDeletionStatus" ::
                          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 GetNamespaceDeletionStatus where
  toJSON :: GetNamespaceDeletionStatus -> Value
toJSON = Value -> GetNamespaceDeletionStatus -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)

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

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

-- | /See:/ 'newGetNamespaceDeletionStatusResponse' smart constructor.
data GetNamespaceDeletionStatusResponse = GetNamespaceDeletionStatusResponse'
  { -- | The status of the deletion request.
    GetNamespaceDeletionStatusResponse -> Maybe NamespaceDeletionStatus
status :: Prelude.Maybe NamespaceDeletionStatus,
    -- | The ARN of the namespace that is being deleted.
    GetNamespaceDeletionStatusResponse -> Maybe Text
namespaceArn :: Prelude.Maybe Prelude.Text,
    -- | The name of the namespace that is being deleted.
    GetNamespaceDeletionStatusResponse -> Maybe Text
namespaceName :: Prelude.Maybe Prelude.Text,
    -- | An error code returned by the namespace deletion task.
    GetNamespaceDeletionStatusResponse
-> Maybe NamespaceDeletionStatusErrorCodes
errorCode :: Prelude.Maybe NamespaceDeletionStatusErrorCodes,
    -- | An error code returned by the namespace deletion task.
    GetNamespaceDeletionStatusResponse -> Maybe Text
errorMessage :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetNamespaceDeletionStatusResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetNamespaceDeletionStatusResponse
-> GetNamespaceDeletionStatusResponse -> Bool
(GetNamespaceDeletionStatusResponse
 -> GetNamespaceDeletionStatusResponse -> Bool)
-> (GetNamespaceDeletionStatusResponse
    -> GetNamespaceDeletionStatusResponse -> Bool)
-> Eq GetNamespaceDeletionStatusResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetNamespaceDeletionStatusResponse
-> GetNamespaceDeletionStatusResponse -> Bool
$c/= :: GetNamespaceDeletionStatusResponse
-> GetNamespaceDeletionStatusResponse -> Bool
== :: GetNamespaceDeletionStatusResponse
-> GetNamespaceDeletionStatusResponse -> Bool
$c== :: GetNamespaceDeletionStatusResponse
-> GetNamespaceDeletionStatusResponse -> Bool
Prelude.Eq, ReadPrec [GetNamespaceDeletionStatusResponse]
ReadPrec GetNamespaceDeletionStatusResponse
Int -> ReadS GetNamespaceDeletionStatusResponse
ReadS [GetNamespaceDeletionStatusResponse]
(Int -> ReadS GetNamespaceDeletionStatusResponse)
-> ReadS [GetNamespaceDeletionStatusResponse]
-> ReadPrec GetNamespaceDeletionStatusResponse
-> ReadPrec [GetNamespaceDeletionStatusResponse]
-> Read GetNamespaceDeletionStatusResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetNamespaceDeletionStatusResponse]
$creadListPrec :: ReadPrec [GetNamespaceDeletionStatusResponse]
readPrec :: ReadPrec GetNamespaceDeletionStatusResponse
$creadPrec :: ReadPrec GetNamespaceDeletionStatusResponse
readList :: ReadS [GetNamespaceDeletionStatusResponse]
$creadList :: ReadS [GetNamespaceDeletionStatusResponse]
readsPrec :: Int -> ReadS GetNamespaceDeletionStatusResponse
$creadsPrec :: Int -> ReadS GetNamespaceDeletionStatusResponse
Prelude.Read, Int -> GetNamespaceDeletionStatusResponse -> ShowS
[GetNamespaceDeletionStatusResponse] -> ShowS
GetNamespaceDeletionStatusResponse -> String
(Int -> GetNamespaceDeletionStatusResponse -> ShowS)
-> (GetNamespaceDeletionStatusResponse -> String)
-> ([GetNamespaceDeletionStatusResponse] -> ShowS)
-> Show GetNamespaceDeletionStatusResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetNamespaceDeletionStatusResponse] -> ShowS
$cshowList :: [GetNamespaceDeletionStatusResponse] -> ShowS
show :: GetNamespaceDeletionStatusResponse -> String
$cshow :: GetNamespaceDeletionStatusResponse -> String
showsPrec :: Int -> GetNamespaceDeletionStatusResponse -> ShowS
$cshowsPrec :: Int -> GetNamespaceDeletionStatusResponse -> ShowS
Prelude.Show, (forall x.
 GetNamespaceDeletionStatusResponse
 -> Rep GetNamespaceDeletionStatusResponse x)
-> (forall x.
    Rep GetNamespaceDeletionStatusResponse x
    -> GetNamespaceDeletionStatusResponse)
-> Generic GetNamespaceDeletionStatusResponse
forall x.
Rep GetNamespaceDeletionStatusResponse x
-> GetNamespaceDeletionStatusResponse
forall x.
GetNamespaceDeletionStatusResponse
-> Rep GetNamespaceDeletionStatusResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetNamespaceDeletionStatusResponse x
-> GetNamespaceDeletionStatusResponse
$cfrom :: forall x.
GetNamespaceDeletionStatusResponse
-> Rep GetNamespaceDeletionStatusResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetNamespaceDeletionStatusResponse' 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', 'getNamespaceDeletionStatusResponse_status' - The status of the deletion request.
--
-- 'namespaceArn', 'getNamespaceDeletionStatusResponse_namespaceArn' - The ARN of the namespace that is being deleted.
--
-- 'namespaceName', 'getNamespaceDeletionStatusResponse_namespaceName' - The name of the namespace that is being deleted.
--
-- 'errorCode', 'getNamespaceDeletionStatusResponse_errorCode' - An error code returned by the namespace deletion task.
--
-- 'errorMessage', 'getNamespaceDeletionStatusResponse_errorMessage' - An error code returned by the namespace deletion task.
--
-- 'httpStatus', 'getNamespaceDeletionStatusResponse_httpStatus' - The response's http status code.
newGetNamespaceDeletionStatusResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetNamespaceDeletionStatusResponse
newGetNamespaceDeletionStatusResponse :: Int -> GetNamespaceDeletionStatusResponse
newGetNamespaceDeletionStatusResponse Int
pHttpStatus_ =
  GetNamespaceDeletionStatusResponse' :: Maybe NamespaceDeletionStatus
-> Maybe Text
-> Maybe Text
-> Maybe NamespaceDeletionStatusErrorCodes
-> Maybe Text
-> Int
-> GetNamespaceDeletionStatusResponse
GetNamespaceDeletionStatusResponse'
    { $sel:status:GetNamespaceDeletionStatusResponse' :: Maybe NamespaceDeletionStatus
status =
        Maybe NamespaceDeletionStatus
forall a. Maybe a
Prelude.Nothing,
      $sel:namespaceArn:GetNamespaceDeletionStatusResponse' :: Maybe Text
namespaceArn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:namespaceName:GetNamespaceDeletionStatusResponse' :: Maybe Text
namespaceName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:errorCode:GetNamespaceDeletionStatusResponse' :: Maybe NamespaceDeletionStatusErrorCodes
errorCode = Maybe NamespaceDeletionStatusErrorCodes
forall a. Maybe a
Prelude.Nothing,
      $sel:errorMessage:GetNamespaceDeletionStatusResponse' :: Maybe Text
errorMessage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetNamespaceDeletionStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The status of the deletion request.
getNamespaceDeletionStatusResponse_status :: Lens.Lens' GetNamespaceDeletionStatusResponse (Prelude.Maybe NamespaceDeletionStatus)
getNamespaceDeletionStatusResponse_status :: (Maybe NamespaceDeletionStatus
 -> f (Maybe NamespaceDeletionStatus))
-> GetNamespaceDeletionStatusResponse
-> f GetNamespaceDeletionStatusResponse
getNamespaceDeletionStatusResponse_status = (GetNamespaceDeletionStatusResponse
 -> Maybe NamespaceDeletionStatus)
-> (GetNamespaceDeletionStatusResponse
    -> Maybe NamespaceDeletionStatus
    -> GetNamespaceDeletionStatusResponse)
-> Lens
     GetNamespaceDeletionStatusResponse
     GetNamespaceDeletionStatusResponse
     (Maybe NamespaceDeletionStatus)
     (Maybe NamespaceDeletionStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetNamespaceDeletionStatusResponse' {Maybe NamespaceDeletionStatus
status :: Maybe NamespaceDeletionStatus
$sel:status:GetNamespaceDeletionStatusResponse' :: GetNamespaceDeletionStatusResponse -> Maybe NamespaceDeletionStatus
status} -> Maybe NamespaceDeletionStatus
status) (\s :: GetNamespaceDeletionStatusResponse
s@GetNamespaceDeletionStatusResponse' {} Maybe NamespaceDeletionStatus
a -> GetNamespaceDeletionStatusResponse
s {$sel:status:GetNamespaceDeletionStatusResponse' :: Maybe NamespaceDeletionStatus
status = Maybe NamespaceDeletionStatus
a} :: GetNamespaceDeletionStatusResponse)

-- | The ARN of the namespace that is being deleted.
getNamespaceDeletionStatusResponse_namespaceArn :: Lens.Lens' GetNamespaceDeletionStatusResponse (Prelude.Maybe Prelude.Text)
getNamespaceDeletionStatusResponse_namespaceArn :: (Maybe Text -> f (Maybe Text))
-> GetNamespaceDeletionStatusResponse
-> f GetNamespaceDeletionStatusResponse
getNamespaceDeletionStatusResponse_namespaceArn = (GetNamespaceDeletionStatusResponse -> Maybe Text)
-> (GetNamespaceDeletionStatusResponse
    -> Maybe Text -> GetNamespaceDeletionStatusResponse)
-> Lens
     GetNamespaceDeletionStatusResponse
     GetNamespaceDeletionStatusResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetNamespaceDeletionStatusResponse' {Maybe Text
namespaceArn :: Maybe Text
$sel:namespaceArn:GetNamespaceDeletionStatusResponse' :: GetNamespaceDeletionStatusResponse -> Maybe Text
namespaceArn} -> Maybe Text
namespaceArn) (\s :: GetNamespaceDeletionStatusResponse
s@GetNamespaceDeletionStatusResponse' {} Maybe Text
a -> GetNamespaceDeletionStatusResponse
s {$sel:namespaceArn:GetNamespaceDeletionStatusResponse' :: Maybe Text
namespaceArn = Maybe Text
a} :: GetNamespaceDeletionStatusResponse)

-- | The name of the namespace that is being deleted.
getNamespaceDeletionStatusResponse_namespaceName :: Lens.Lens' GetNamespaceDeletionStatusResponse (Prelude.Maybe Prelude.Text)
getNamespaceDeletionStatusResponse_namespaceName :: (Maybe Text -> f (Maybe Text))
-> GetNamespaceDeletionStatusResponse
-> f GetNamespaceDeletionStatusResponse
getNamespaceDeletionStatusResponse_namespaceName = (GetNamespaceDeletionStatusResponse -> Maybe Text)
-> (GetNamespaceDeletionStatusResponse
    -> Maybe Text -> GetNamespaceDeletionStatusResponse)
-> Lens
     GetNamespaceDeletionStatusResponse
     GetNamespaceDeletionStatusResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetNamespaceDeletionStatusResponse' {Maybe Text
namespaceName :: Maybe Text
$sel:namespaceName:GetNamespaceDeletionStatusResponse' :: GetNamespaceDeletionStatusResponse -> Maybe Text
namespaceName} -> Maybe Text
namespaceName) (\s :: GetNamespaceDeletionStatusResponse
s@GetNamespaceDeletionStatusResponse' {} Maybe Text
a -> GetNamespaceDeletionStatusResponse
s {$sel:namespaceName:GetNamespaceDeletionStatusResponse' :: Maybe Text
namespaceName = Maybe Text
a} :: GetNamespaceDeletionStatusResponse)

-- | An error code returned by the namespace deletion task.
getNamespaceDeletionStatusResponse_errorCode :: Lens.Lens' GetNamespaceDeletionStatusResponse (Prelude.Maybe NamespaceDeletionStatusErrorCodes)
getNamespaceDeletionStatusResponse_errorCode :: (Maybe NamespaceDeletionStatusErrorCodes
 -> f (Maybe NamespaceDeletionStatusErrorCodes))
-> GetNamespaceDeletionStatusResponse
-> f GetNamespaceDeletionStatusResponse
getNamespaceDeletionStatusResponse_errorCode = (GetNamespaceDeletionStatusResponse
 -> Maybe NamespaceDeletionStatusErrorCodes)
-> (GetNamespaceDeletionStatusResponse
    -> Maybe NamespaceDeletionStatusErrorCodes
    -> GetNamespaceDeletionStatusResponse)
-> Lens
     GetNamespaceDeletionStatusResponse
     GetNamespaceDeletionStatusResponse
     (Maybe NamespaceDeletionStatusErrorCodes)
     (Maybe NamespaceDeletionStatusErrorCodes)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetNamespaceDeletionStatusResponse' {Maybe NamespaceDeletionStatusErrorCodes
errorCode :: Maybe NamespaceDeletionStatusErrorCodes
$sel:errorCode:GetNamespaceDeletionStatusResponse' :: GetNamespaceDeletionStatusResponse
-> Maybe NamespaceDeletionStatusErrorCodes
errorCode} -> Maybe NamespaceDeletionStatusErrorCodes
errorCode) (\s :: GetNamespaceDeletionStatusResponse
s@GetNamespaceDeletionStatusResponse' {} Maybe NamespaceDeletionStatusErrorCodes
a -> GetNamespaceDeletionStatusResponse
s {$sel:errorCode:GetNamespaceDeletionStatusResponse' :: Maybe NamespaceDeletionStatusErrorCodes
errorCode = Maybe NamespaceDeletionStatusErrorCodes
a} :: GetNamespaceDeletionStatusResponse)

-- | An error code returned by the namespace deletion task.
getNamespaceDeletionStatusResponse_errorMessage :: Lens.Lens' GetNamespaceDeletionStatusResponse (Prelude.Maybe Prelude.Text)
getNamespaceDeletionStatusResponse_errorMessage :: (Maybe Text -> f (Maybe Text))
-> GetNamespaceDeletionStatusResponse
-> f GetNamespaceDeletionStatusResponse
getNamespaceDeletionStatusResponse_errorMessage = (GetNamespaceDeletionStatusResponse -> Maybe Text)
-> (GetNamespaceDeletionStatusResponse
    -> Maybe Text -> GetNamespaceDeletionStatusResponse)
-> Lens
     GetNamespaceDeletionStatusResponse
     GetNamespaceDeletionStatusResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetNamespaceDeletionStatusResponse' {Maybe Text
errorMessage :: Maybe Text
$sel:errorMessage:GetNamespaceDeletionStatusResponse' :: GetNamespaceDeletionStatusResponse -> Maybe Text
errorMessage} -> Maybe Text
errorMessage) (\s :: GetNamespaceDeletionStatusResponse
s@GetNamespaceDeletionStatusResponse' {} Maybe Text
a -> GetNamespaceDeletionStatusResponse
s {$sel:errorMessage:GetNamespaceDeletionStatusResponse' :: Maybe Text
errorMessage = Maybe Text
a} :: GetNamespaceDeletionStatusResponse)

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

instance
  Prelude.NFData
    GetNamespaceDeletionStatusResponse