{-# 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.SSOAdmin.DescribeAccountAssignmentDeletionStatus
-- 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 status of the assignment deletion request.
module Amazonka.SSOAdmin.DescribeAccountAssignmentDeletionStatus
  ( -- * Creating a Request
    DescribeAccountAssignmentDeletionStatus (..),
    newDescribeAccountAssignmentDeletionStatus,

    -- * Request Lenses
    describeAccountAssignmentDeletionStatus_instanceArn,
    describeAccountAssignmentDeletionStatus_accountAssignmentDeletionRequestId,

    -- * Destructuring the Response
    DescribeAccountAssignmentDeletionStatusResponse (..),
    newDescribeAccountAssignmentDeletionStatusResponse,

    -- * Response Lenses
    describeAccountAssignmentDeletionStatusResponse_accountAssignmentDeletionStatus,
    describeAccountAssignmentDeletionStatusResponse_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.SSOAdmin.Types

-- | /See:/ 'newDescribeAccountAssignmentDeletionStatus' smart constructor.
data DescribeAccountAssignmentDeletionStatus = DescribeAccountAssignmentDeletionStatus'
  { -- | The ARN of the SSO instance under which the operation will be executed.
    -- For more information about ARNs, see
    -- </general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces>
    -- in the /Amazon Web Services General Reference/.
    DescribeAccountAssignmentDeletionStatus -> Text
instanceArn :: Prelude.Text,
    -- | The identifier that is used to track the request operation progress.
    DescribeAccountAssignmentDeletionStatus -> Text
accountAssignmentDeletionRequestId :: Prelude.Text
  }
  deriving (DescribeAccountAssignmentDeletionStatus
-> DescribeAccountAssignmentDeletionStatus -> Bool
(DescribeAccountAssignmentDeletionStatus
 -> DescribeAccountAssignmentDeletionStatus -> Bool)
-> (DescribeAccountAssignmentDeletionStatus
    -> DescribeAccountAssignmentDeletionStatus -> Bool)
-> Eq DescribeAccountAssignmentDeletionStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAccountAssignmentDeletionStatus
-> DescribeAccountAssignmentDeletionStatus -> Bool
$c/= :: DescribeAccountAssignmentDeletionStatus
-> DescribeAccountAssignmentDeletionStatus -> Bool
== :: DescribeAccountAssignmentDeletionStatus
-> DescribeAccountAssignmentDeletionStatus -> Bool
$c== :: DescribeAccountAssignmentDeletionStatus
-> DescribeAccountAssignmentDeletionStatus -> Bool
Prelude.Eq, ReadPrec [DescribeAccountAssignmentDeletionStatus]
ReadPrec DescribeAccountAssignmentDeletionStatus
Int -> ReadS DescribeAccountAssignmentDeletionStatus
ReadS [DescribeAccountAssignmentDeletionStatus]
(Int -> ReadS DescribeAccountAssignmentDeletionStatus)
-> ReadS [DescribeAccountAssignmentDeletionStatus]
-> ReadPrec DescribeAccountAssignmentDeletionStatus
-> ReadPrec [DescribeAccountAssignmentDeletionStatus]
-> Read DescribeAccountAssignmentDeletionStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAccountAssignmentDeletionStatus]
$creadListPrec :: ReadPrec [DescribeAccountAssignmentDeletionStatus]
readPrec :: ReadPrec DescribeAccountAssignmentDeletionStatus
$creadPrec :: ReadPrec DescribeAccountAssignmentDeletionStatus
readList :: ReadS [DescribeAccountAssignmentDeletionStatus]
$creadList :: ReadS [DescribeAccountAssignmentDeletionStatus]
readsPrec :: Int -> ReadS DescribeAccountAssignmentDeletionStatus
$creadsPrec :: Int -> ReadS DescribeAccountAssignmentDeletionStatus
Prelude.Read, Int -> DescribeAccountAssignmentDeletionStatus -> ShowS
[DescribeAccountAssignmentDeletionStatus] -> ShowS
DescribeAccountAssignmentDeletionStatus -> String
(Int -> DescribeAccountAssignmentDeletionStatus -> ShowS)
-> (DescribeAccountAssignmentDeletionStatus -> String)
-> ([DescribeAccountAssignmentDeletionStatus] -> ShowS)
-> Show DescribeAccountAssignmentDeletionStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAccountAssignmentDeletionStatus] -> ShowS
$cshowList :: [DescribeAccountAssignmentDeletionStatus] -> ShowS
show :: DescribeAccountAssignmentDeletionStatus -> String
$cshow :: DescribeAccountAssignmentDeletionStatus -> String
showsPrec :: Int -> DescribeAccountAssignmentDeletionStatus -> ShowS
$cshowsPrec :: Int -> DescribeAccountAssignmentDeletionStatus -> ShowS
Prelude.Show, (forall x.
 DescribeAccountAssignmentDeletionStatus
 -> Rep DescribeAccountAssignmentDeletionStatus x)
-> (forall x.
    Rep DescribeAccountAssignmentDeletionStatus x
    -> DescribeAccountAssignmentDeletionStatus)
-> Generic DescribeAccountAssignmentDeletionStatus
forall x.
Rep DescribeAccountAssignmentDeletionStatus x
-> DescribeAccountAssignmentDeletionStatus
forall x.
DescribeAccountAssignmentDeletionStatus
-> Rep DescribeAccountAssignmentDeletionStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAccountAssignmentDeletionStatus x
-> DescribeAccountAssignmentDeletionStatus
$cfrom :: forall x.
DescribeAccountAssignmentDeletionStatus
-> Rep DescribeAccountAssignmentDeletionStatus x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAccountAssignmentDeletionStatus' 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:
--
-- 'instanceArn', 'describeAccountAssignmentDeletionStatus_instanceArn' - The ARN of the SSO instance under which the operation will be executed.
-- For more information about ARNs, see
-- </general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces>
-- in the /Amazon Web Services General Reference/.
--
-- 'accountAssignmentDeletionRequestId', 'describeAccountAssignmentDeletionStatus_accountAssignmentDeletionRequestId' - The identifier that is used to track the request operation progress.
newDescribeAccountAssignmentDeletionStatus ::
  -- | 'instanceArn'
  Prelude.Text ->
  -- | 'accountAssignmentDeletionRequestId'
  Prelude.Text ->
  DescribeAccountAssignmentDeletionStatus
newDescribeAccountAssignmentDeletionStatus :: Text -> Text -> DescribeAccountAssignmentDeletionStatus
newDescribeAccountAssignmentDeletionStatus
  Text
pInstanceArn_
  Text
pAccountAssignmentDeletionRequestId_ =
    DescribeAccountAssignmentDeletionStatus' :: Text -> Text -> DescribeAccountAssignmentDeletionStatus
DescribeAccountAssignmentDeletionStatus'
      { $sel:instanceArn:DescribeAccountAssignmentDeletionStatus' :: Text
instanceArn =
          Text
pInstanceArn_,
        $sel:accountAssignmentDeletionRequestId:DescribeAccountAssignmentDeletionStatus' :: Text
accountAssignmentDeletionRequestId =
          Text
pAccountAssignmentDeletionRequestId_
      }

-- | The ARN of the SSO instance under which the operation will be executed.
-- For more information about ARNs, see
-- </general/latest/gr/aws-arns-and-namespaces.html Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces>
-- in the /Amazon Web Services General Reference/.
describeAccountAssignmentDeletionStatus_instanceArn :: Lens.Lens' DescribeAccountAssignmentDeletionStatus Prelude.Text
describeAccountAssignmentDeletionStatus_instanceArn :: (Text -> f Text)
-> DescribeAccountAssignmentDeletionStatus
-> f DescribeAccountAssignmentDeletionStatus
describeAccountAssignmentDeletionStatus_instanceArn = (DescribeAccountAssignmentDeletionStatus -> Text)
-> (DescribeAccountAssignmentDeletionStatus
    -> Text -> DescribeAccountAssignmentDeletionStatus)
-> Lens
     DescribeAccountAssignmentDeletionStatus
     DescribeAccountAssignmentDeletionStatus
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountAssignmentDeletionStatus' {Text
instanceArn :: Text
$sel:instanceArn:DescribeAccountAssignmentDeletionStatus' :: DescribeAccountAssignmentDeletionStatus -> Text
instanceArn} -> Text
instanceArn) (\s :: DescribeAccountAssignmentDeletionStatus
s@DescribeAccountAssignmentDeletionStatus' {} Text
a -> DescribeAccountAssignmentDeletionStatus
s {$sel:instanceArn:DescribeAccountAssignmentDeletionStatus' :: Text
instanceArn = Text
a} :: DescribeAccountAssignmentDeletionStatus)

-- | The identifier that is used to track the request operation progress.
describeAccountAssignmentDeletionStatus_accountAssignmentDeletionRequestId :: Lens.Lens' DescribeAccountAssignmentDeletionStatus Prelude.Text
describeAccountAssignmentDeletionStatus_accountAssignmentDeletionRequestId :: (Text -> f Text)
-> DescribeAccountAssignmentDeletionStatus
-> f DescribeAccountAssignmentDeletionStatus
describeAccountAssignmentDeletionStatus_accountAssignmentDeletionRequestId = (DescribeAccountAssignmentDeletionStatus -> Text)
-> (DescribeAccountAssignmentDeletionStatus
    -> Text -> DescribeAccountAssignmentDeletionStatus)
-> Lens
     DescribeAccountAssignmentDeletionStatus
     DescribeAccountAssignmentDeletionStatus
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountAssignmentDeletionStatus' {Text
accountAssignmentDeletionRequestId :: Text
$sel:accountAssignmentDeletionRequestId:DescribeAccountAssignmentDeletionStatus' :: DescribeAccountAssignmentDeletionStatus -> Text
accountAssignmentDeletionRequestId} -> Text
accountAssignmentDeletionRequestId) (\s :: DescribeAccountAssignmentDeletionStatus
s@DescribeAccountAssignmentDeletionStatus' {} Text
a -> DescribeAccountAssignmentDeletionStatus
s {$sel:accountAssignmentDeletionRequestId:DescribeAccountAssignmentDeletionStatus' :: Text
accountAssignmentDeletionRequestId = Text
a} :: DescribeAccountAssignmentDeletionStatus)

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

instance
  Prelude.NFData
    DescribeAccountAssignmentDeletionStatus

instance
  Core.ToHeaders
    DescribeAccountAssignmentDeletionStatus
  where
  toHeaders :: DescribeAccountAssignmentDeletionStatus -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeAccountAssignmentDeletionStatus -> 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
"SWBExternalService.DescribeAccountAssignmentDeletionStatus" ::
                          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
    DescribeAccountAssignmentDeletionStatus
  where
  toJSON :: DescribeAccountAssignmentDeletionStatus -> Value
toJSON DescribeAccountAssignmentDeletionStatus' {Text
accountAssignmentDeletionRequestId :: Text
instanceArn :: Text
$sel:accountAssignmentDeletionRequestId:DescribeAccountAssignmentDeletionStatus' :: DescribeAccountAssignmentDeletionStatus -> Text
$sel:instanceArn:DescribeAccountAssignmentDeletionStatus' :: DescribeAccountAssignmentDeletionStatus -> Text
..} =
    [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
"InstanceArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
instanceArn),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
              ( Text
"AccountAssignmentDeletionRequestId"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
accountAssignmentDeletionRequestId
              )
          ]
      )

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

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

-- | /See:/ 'newDescribeAccountAssignmentDeletionStatusResponse' smart constructor.
data DescribeAccountAssignmentDeletionStatusResponse = DescribeAccountAssignmentDeletionStatusResponse'
  { -- | The status object for the account assignment deletion operation.
    DescribeAccountAssignmentDeletionStatusResponse
-> Maybe AccountAssignmentOperationStatus
accountAssignmentDeletionStatus :: Prelude.Maybe AccountAssignmentOperationStatus,
    -- | The response's http status code.
    DescribeAccountAssignmentDeletionStatusResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeAccountAssignmentDeletionStatusResponse
-> DescribeAccountAssignmentDeletionStatusResponse -> Bool
(DescribeAccountAssignmentDeletionStatusResponse
 -> DescribeAccountAssignmentDeletionStatusResponse -> Bool)
-> (DescribeAccountAssignmentDeletionStatusResponse
    -> DescribeAccountAssignmentDeletionStatusResponse -> Bool)
-> Eq DescribeAccountAssignmentDeletionStatusResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAccountAssignmentDeletionStatusResponse
-> DescribeAccountAssignmentDeletionStatusResponse -> Bool
$c/= :: DescribeAccountAssignmentDeletionStatusResponse
-> DescribeAccountAssignmentDeletionStatusResponse -> Bool
== :: DescribeAccountAssignmentDeletionStatusResponse
-> DescribeAccountAssignmentDeletionStatusResponse -> Bool
$c== :: DescribeAccountAssignmentDeletionStatusResponse
-> DescribeAccountAssignmentDeletionStatusResponse -> Bool
Prelude.Eq, ReadPrec [DescribeAccountAssignmentDeletionStatusResponse]
ReadPrec DescribeAccountAssignmentDeletionStatusResponse
Int -> ReadS DescribeAccountAssignmentDeletionStatusResponse
ReadS [DescribeAccountAssignmentDeletionStatusResponse]
(Int -> ReadS DescribeAccountAssignmentDeletionStatusResponse)
-> ReadS [DescribeAccountAssignmentDeletionStatusResponse]
-> ReadPrec DescribeAccountAssignmentDeletionStatusResponse
-> ReadPrec [DescribeAccountAssignmentDeletionStatusResponse]
-> Read DescribeAccountAssignmentDeletionStatusResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAccountAssignmentDeletionStatusResponse]
$creadListPrec :: ReadPrec [DescribeAccountAssignmentDeletionStatusResponse]
readPrec :: ReadPrec DescribeAccountAssignmentDeletionStatusResponse
$creadPrec :: ReadPrec DescribeAccountAssignmentDeletionStatusResponse
readList :: ReadS [DescribeAccountAssignmentDeletionStatusResponse]
$creadList :: ReadS [DescribeAccountAssignmentDeletionStatusResponse]
readsPrec :: Int -> ReadS DescribeAccountAssignmentDeletionStatusResponse
$creadsPrec :: Int -> ReadS DescribeAccountAssignmentDeletionStatusResponse
Prelude.Read, Int -> DescribeAccountAssignmentDeletionStatusResponse -> ShowS
[DescribeAccountAssignmentDeletionStatusResponse] -> ShowS
DescribeAccountAssignmentDeletionStatusResponse -> String
(Int -> DescribeAccountAssignmentDeletionStatusResponse -> ShowS)
-> (DescribeAccountAssignmentDeletionStatusResponse -> String)
-> ([DescribeAccountAssignmentDeletionStatusResponse] -> ShowS)
-> Show DescribeAccountAssignmentDeletionStatusResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAccountAssignmentDeletionStatusResponse] -> ShowS
$cshowList :: [DescribeAccountAssignmentDeletionStatusResponse] -> ShowS
show :: DescribeAccountAssignmentDeletionStatusResponse -> String
$cshow :: DescribeAccountAssignmentDeletionStatusResponse -> String
showsPrec :: Int -> DescribeAccountAssignmentDeletionStatusResponse -> ShowS
$cshowsPrec :: Int -> DescribeAccountAssignmentDeletionStatusResponse -> ShowS
Prelude.Show, (forall x.
 DescribeAccountAssignmentDeletionStatusResponse
 -> Rep DescribeAccountAssignmentDeletionStatusResponse x)
-> (forall x.
    Rep DescribeAccountAssignmentDeletionStatusResponse x
    -> DescribeAccountAssignmentDeletionStatusResponse)
-> Generic DescribeAccountAssignmentDeletionStatusResponse
forall x.
Rep DescribeAccountAssignmentDeletionStatusResponse x
-> DescribeAccountAssignmentDeletionStatusResponse
forall x.
DescribeAccountAssignmentDeletionStatusResponse
-> Rep DescribeAccountAssignmentDeletionStatusResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAccountAssignmentDeletionStatusResponse x
-> DescribeAccountAssignmentDeletionStatusResponse
$cfrom :: forall x.
DescribeAccountAssignmentDeletionStatusResponse
-> Rep DescribeAccountAssignmentDeletionStatusResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAccountAssignmentDeletionStatusResponse' 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:
--
-- 'accountAssignmentDeletionStatus', 'describeAccountAssignmentDeletionStatusResponse_accountAssignmentDeletionStatus' - The status object for the account assignment deletion operation.
--
-- 'httpStatus', 'describeAccountAssignmentDeletionStatusResponse_httpStatus' - The response's http status code.
newDescribeAccountAssignmentDeletionStatusResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeAccountAssignmentDeletionStatusResponse
newDescribeAccountAssignmentDeletionStatusResponse :: Int -> DescribeAccountAssignmentDeletionStatusResponse
newDescribeAccountAssignmentDeletionStatusResponse
  Int
pHttpStatus_ =
    DescribeAccountAssignmentDeletionStatusResponse' :: Maybe AccountAssignmentOperationStatus
-> Int -> DescribeAccountAssignmentDeletionStatusResponse
DescribeAccountAssignmentDeletionStatusResponse'
      { $sel:accountAssignmentDeletionStatus:DescribeAccountAssignmentDeletionStatusResponse' :: Maybe AccountAssignmentOperationStatus
accountAssignmentDeletionStatus =
          Maybe AccountAssignmentOperationStatus
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeAccountAssignmentDeletionStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The status object for the account assignment deletion operation.
describeAccountAssignmentDeletionStatusResponse_accountAssignmentDeletionStatus :: Lens.Lens' DescribeAccountAssignmentDeletionStatusResponse (Prelude.Maybe AccountAssignmentOperationStatus)
describeAccountAssignmentDeletionStatusResponse_accountAssignmentDeletionStatus :: (Maybe AccountAssignmentOperationStatus
 -> f (Maybe AccountAssignmentOperationStatus))
-> DescribeAccountAssignmentDeletionStatusResponse
-> f DescribeAccountAssignmentDeletionStatusResponse
describeAccountAssignmentDeletionStatusResponse_accountAssignmentDeletionStatus = (DescribeAccountAssignmentDeletionStatusResponse
 -> Maybe AccountAssignmentOperationStatus)
-> (DescribeAccountAssignmentDeletionStatusResponse
    -> Maybe AccountAssignmentOperationStatus
    -> DescribeAccountAssignmentDeletionStatusResponse)
-> Lens
     DescribeAccountAssignmentDeletionStatusResponse
     DescribeAccountAssignmentDeletionStatusResponse
     (Maybe AccountAssignmentOperationStatus)
     (Maybe AccountAssignmentOperationStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountAssignmentDeletionStatusResponse' {Maybe AccountAssignmentOperationStatus
accountAssignmentDeletionStatus :: Maybe AccountAssignmentOperationStatus
$sel:accountAssignmentDeletionStatus:DescribeAccountAssignmentDeletionStatusResponse' :: DescribeAccountAssignmentDeletionStatusResponse
-> Maybe AccountAssignmentOperationStatus
accountAssignmentDeletionStatus} -> Maybe AccountAssignmentOperationStatus
accountAssignmentDeletionStatus) (\s :: DescribeAccountAssignmentDeletionStatusResponse
s@DescribeAccountAssignmentDeletionStatusResponse' {} Maybe AccountAssignmentOperationStatus
a -> DescribeAccountAssignmentDeletionStatusResponse
s {$sel:accountAssignmentDeletionStatus:DescribeAccountAssignmentDeletionStatusResponse' :: Maybe AccountAssignmentOperationStatus
accountAssignmentDeletionStatus = Maybe AccountAssignmentOperationStatus
a} :: DescribeAccountAssignmentDeletionStatusResponse)

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

instance
  Prelude.NFData
    DescribeAccountAssignmentDeletionStatusResponse