{-# 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.DescribeAccountAssignmentCreationStatus
-- 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 creation request.
module Amazonka.SSOAdmin.DescribeAccountAssignmentCreationStatus
  ( -- * Creating a Request
    DescribeAccountAssignmentCreationStatus (..),
    newDescribeAccountAssignmentCreationStatus,

    -- * Request Lenses
    describeAccountAssignmentCreationStatus_instanceArn,
    describeAccountAssignmentCreationStatus_accountAssignmentCreationRequestId,

    -- * Destructuring the Response
    DescribeAccountAssignmentCreationStatusResponse (..),
    newDescribeAccountAssignmentCreationStatusResponse,

    -- * Response Lenses
    describeAccountAssignmentCreationStatusResponse_accountAssignmentCreationStatus,
    describeAccountAssignmentCreationStatusResponse_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:/ 'newDescribeAccountAssignmentCreationStatus' smart constructor.
data DescribeAccountAssignmentCreationStatus = DescribeAccountAssignmentCreationStatus'
  { -- | 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/.
    DescribeAccountAssignmentCreationStatus -> Text
instanceArn :: Prelude.Text,
    -- | The identifier that is used to track the request operation progress.
    DescribeAccountAssignmentCreationStatus -> Text
accountAssignmentCreationRequestId :: Prelude.Text
  }
  deriving (DescribeAccountAssignmentCreationStatus
-> DescribeAccountAssignmentCreationStatus -> Bool
(DescribeAccountAssignmentCreationStatus
 -> DescribeAccountAssignmentCreationStatus -> Bool)
-> (DescribeAccountAssignmentCreationStatus
    -> DescribeAccountAssignmentCreationStatus -> Bool)
-> Eq DescribeAccountAssignmentCreationStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeAccountAssignmentCreationStatus
-> DescribeAccountAssignmentCreationStatus -> Bool
$c/= :: DescribeAccountAssignmentCreationStatus
-> DescribeAccountAssignmentCreationStatus -> Bool
== :: DescribeAccountAssignmentCreationStatus
-> DescribeAccountAssignmentCreationStatus -> Bool
$c== :: DescribeAccountAssignmentCreationStatus
-> DescribeAccountAssignmentCreationStatus -> Bool
Prelude.Eq, ReadPrec [DescribeAccountAssignmentCreationStatus]
ReadPrec DescribeAccountAssignmentCreationStatus
Int -> ReadS DescribeAccountAssignmentCreationStatus
ReadS [DescribeAccountAssignmentCreationStatus]
(Int -> ReadS DescribeAccountAssignmentCreationStatus)
-> ReadS [DescribeAccountAssignmentCreationStatus]
-> ReadPrec DescribeAccountAssignmentCreationStatus
-> ReadPrec [DescribeAccountAssignmentCreationStatus]
-> Read DescribeAccountAssignmentCreationStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeAccountAssignmentCreationStatus]
$creadListPrec :: ReadPrec [DescribeAccountAssignmentCreationStatus]
readPrec :: ReadPrec DescribeAccountAssignmentCreationStatus
$creadPrec :: ReadPrec DescribeAccountAssignmentCreationStatus
readList :: ReadS [DescribeAccountAssignmentCreationStatus]
$creadList :: ReadS [DescribeAccountAssignmentCreationStatus]
readsPrec :: Int -> ReadS DescribeAccountAssignmentCreationStatus
$creadsPrec :: Int -> ReadS DescribeAccountAssignmentCreationStatus
Prelude.Read, Int -> DescribeAccountAssignmentCreationStatus -> ShowS
[DescribeAccountAssignmentCreationStatus] -> ShowS
DescribeAccountAssignmentCreationStatus -> String
(Int -> DescribeAccountAssignmentCreationStatus -> ShowS)
-> (DescribeAccountAssignmentCreationStatus -> String)
-> ([DescribeAccountAssignmentCreationStatus] -> ShowS)
-> Show DescribeAccountAssignmentCreationStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeAccountAssignmentCreationStatus] -> ShowS
$cshowList :: [DescribeAccountAssignmentCreationStatus] -> ShowS
show :: DescribeAccountAssignmentCreationStatus -> String
$cshow :: DescribeAccountAssignmentCreationStatus -> String
showsPrec :: Int -> DescribeAccountAssignmentCreationStatus -> ShowS
$cshowsPrec :: Int -> DescribeAccountAssignmentCreationStatus -> ShowS
Prelude.Show, (forall x.
 DescribeAccountAssignmentCreationStatus
 -> Rep DescribeAccountAssignmentCreationStatus x)
-> (forall x.
    Rep DescribeAccountAssignmentCreationStatus x
    -> DescribeAccountAssignmentCreationStatus)
-> Generic DescribeAccountAssignmentCreationStatus
forall x.
Rep DescribeAccountAssignmentCreationStatus x
-> DescribeAccountAssignmentCreationStatus
forall x.
DescribeAccountAssignmentCreationStatus
-> Rep DescribeAccountAssignmentCreationStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeAccountAssignmentCreationStatus x
-> DescribeAccountAssignmentCreationStatus
$cfrom :: forall x.
DescribeAccountAssignmentCreationStatus
-> Rep DescribeAccountAssignmentCreationStatus x
Prelude.Generic)

-- |
-- Create a value of 'DescribeAccountAssignmentCreationStatus' 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', 'describeAccountAssignmentCreationStatus_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/.
--
-- 'accountAssignmentCreationRequestId', 'describeAccountAssignmentCreationStatus_accountAssignmentCreationRequestId' - The identifier that is used to track the request operation progress.
newDescribeAccountAssignmentCreationStatus ::
  -- | 'instanceArn'
  Prelude.Text ->
  -- | 'accountAssignmentCreationRequestId'
  Prelude.Text ->
  DescribeAccountAssignmentCreationStatus
newDescribeAccountAssignmentCreationStatus :: Text -> Text -> DescribeAccountAssignmentCreationStatus
newDescribeAccountAssignmentCreationStatus
  Text
pInstanceArn_
  Text
pAccountAssignmentCreationRequestId_ =
    DescribeAccountAssignmentCreationStatus' :: Text -> Text -> DescribeAccountAssignmentCreationStatus
DescribeAccountAssignmentCreationStatus'
      { $sel:instanceArn:DescribeAccountAssignmentCreationStatus' :: Text
instanceArn =
          Text
pInstanceArn_,
        $sel:accountAssignmentCreationRequestId:DescribeAccountAssignmentCreationStatus' :: Text
accountAssignmentCreationRequestId =
          Text
pAccountAssignmentCreationRequestId_
      }

-- | 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/.
describeAccountAssignmentCreationStatus_instanceArn :: Lens.Lens' DescribeAccountAssignmentCreationStatus Prelude.Text
describeAccountAssignmentCreationStatus_instanceArn :: (Text -> f Text)
-> DescribeAccountAssignmentCreationStatus
-> f DescribeAccountAssignmentCreationStatus
describeAccountAssignmentCreationStatus_instanceArn = (DescribeAccountAssignmentCreationStatus -> Text)
-> (DescribeAccountAssignmentCreationStatus
    -> Text -> DescribeAccountAssignmentCreationStatus)
-> Lens
     DescribeAccountAssignmentCreationStatus
     DescribeAccountAssignmentCreationStatus
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeAccountAssignmentCreationStatus' {Text
instanceArn :: Text
$sel:instanceArn:DescribeAccountAssignmentCreationStatus' :: DescribeAccountAssignmentCreationStatus -> Text
instanceArn} -> Text
instanceArn) (\s :: DescribeAccountAssignmentCreationStatus
s@DescribeAccountAssignmentCreationStatus' {} Text
a -> DescribeAccountAssignmentCreationStatus
s {$sel:instanceArn:DescribeAccountAssignmentCreationStatus' :: Text
instanceArn = Text
a} :: DescribeAccountAssignmentCreationStatus)

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

instance
  Core.AWSRequest
    DescribeAccountAssignmentCreationStatus
  where
  type
    AWSResponse
      DescribeAccountAssignmentCreationStatus =
      DescribeAccountAssignmentCreationStatusResponse
  request :: DescribeAccountAssignmentCreationStatus
-> Request DescribeAccountAssignmentCreationStatus
request = Service
-> DescribeAccountAssignmentCreationStatus
-> Request DescribeAccountAssignmentCreationStatus
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DescribeAccountAssignmentCreationStatus
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeAccountAssignmentCreationStatus)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse DescribeAccountAssignmentCreationStatus))
-> Logger
-> Service
-> Proxy DescribeAccountAssignmentCreationStatus
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse DescribeAccountAssignmentCreationStatus)))
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 -> DescribeAccountAssignmentCreationStatusResponse
DescribeAccountAssignmentCreationStatusResponse'
            (Maybe AccountAssignmentOperationStatus
 -> Int -> DescribeAccountAssignmentCreationStatusResponse)
-> Either String (Maybe AccountAssignmentOperationStatus)
-> Either
     String (Int -> DescribeAccountAssignmentCreationStatusResponse)
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
"AccountAssignmentCreationStatus")
              Either
  String (Int -> DescribeAccountAssignmentCreationStatusResponse)
-> Either String Int
-> Either String DescribeAccountAssignmentCreationStatusResponse
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
    DescribeAccountAssignmentCreationStatus

instance
  Prelude.NFData
    DescribeAccountAssignmentCreationStatus

instance
  Core.ToHeaders
    DescribeAccountAssignmentCreationStatus
  where
  toHeaders :: DescribeAccountAssignmentCreationStatus -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DescribeAccountAssignmentCreationStatus -> 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.DescribeAccountAssignmentCreationStatus" ::
                          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
    DescribeAccountAssignmentCreationStatus
  where
  toJSON :: DescribeAccountAssignmentCreationStatus -> Value
toJSON DescribeAccountAssignmentCreationStatus' {Text
accountAssignmentCreationRequestId :: Text
instanceArn :: Text
$sel:accountAssignmentCreationRequestId:DescribeAccountAssignmentCreationStatus' :: DescribeAccountAssignmentCreationStatus -> Text
$sel:instanceArn:DescribeAccountAssignmentCreationStatus' :: DescribeAccountAssignmentCreationStatus -> 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
"AccountAssignmentCreationRequestId"
                  Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
accountAssignmentCreationRequestId
              )
          ]
      )

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

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

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

-- |
-- Create a value of 'DescribeAccountAssignmentCreationStatusResponse' 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:
--
-- 'accountAssignmentCreationStatus', 'describeAccountAssignmentCreationStatusResponse_accountAssignmentCreationStatus' - The status object for the account assignment creation operation.
--
-- 'httpStatus', 'describeAccountAssignmentCreationStatusResponse_httpStatus' - The response's http status code.
newDescribeAccountAssignmentCreationStatusResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeAccountAssignmentCreationStatusResponse
newDescribeAccountAssignmentCreationStatusResponse :: Int -> DescribeAccountAssignmentCreationStatusResponse
newDescribeAccountAssignmentCreationStatusResponse
  Int
pHttpStatus_ =
    DescribeAccountAssignmentCreationStatusResponse' :: Maybe AccountAssignmentOperationStatus
-> Int -> DescribeAccountAssignmentCreationStatusResponse
DescribeAccountAssignmentCreationStatusResponse'
      { $sel:accountAssignmentCreationStatus:DescribeAccountAssignmentCreationStatusResponse' :: Maybe AccountAssignmentOperationStatus
accountAssignmentCreationStatus =
          Maybe AccountAssignmentOperationStatus
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeAccountAssignmentCreationStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

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

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

instance
  Prelude.NFData
    DescribeAccountAssignmentCreationStatusResponse