{-# 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.DescribePermissionSetProvisioningStatus
-- 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 for the given permission set provisioning request.
module Amazonka.SSOAdmin.DescribePermissionSetProvisioningStatus
  ( -- * Creating a Request
    DescribePermissionSetProvisioningStatus (..),
    newDescribePermissionSetProvisioningStatus,

    -- * Request Lenses
    describePermissionSetProvisioningStatus_instanceArn,
    describePermissionSetProvisioningStatus_provisionPermissionSetRequestId,

    -- * Destructuring the Response
    DescribePermissionSetProvisioningStatusResponse (..),
    newDescribePermissionSetProvisioningStatusResponse,

    -- * Response Lenses
    describePermissionSetProvisioningStatusResponse_permissionSetProvisioningStatus,
    describePermissionSetProvisioningStatusResponse_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:/ 'newDescribePermissionSetProvisioningStatus' smart constructor.
data DescribePermissionSetProvisioningStatus = DescribePermissionSetProvisioningStatus'
  { -- | 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/.
    DescribePermissionSetProvisioningStatus -> Text
instanceArn :: Prelude.Text,
    -- | The identifier that is provided by the ProvisionPermissionSet call to
    -- retrieve the current status of the provisioning workflow.
    DescribePermissionSetProvisioningStatus -> Text
provisionPermissionSetRequestId :: Prelude.Text
  }
  deriving (DescribePermissionSetProvisioningStatus
-> DescribePermissionSetProvisioningStatus -> Bool
(DescribePermissionSetProvisioningStatus
 -> DescribePermissionSetProvisioningStatus -> Bool)
-> (DescribePermissionSetProvisioningStatus
    -> DescribePermissionSetProvisioningStatus -> Bool)
-> Eq DescribePermissionSetProvisioningStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribePermissionSetProvisioningStatus
-> DescribePermissionSetProvisioningStatus -> Bool
$c/= :: DescribePermissionSetProvisioningStatus
-> DescribePermissionSetProvisioningStatus -> Bool
== :: DescribePermissionSetProvisioningStatus
-> DescribePermissionSetProvisioningStatus -> Bool
$c== :: DescribePermissionSetProvisioningStatus
-> DescribePermissionSetProvisioningStatus -> Bool
Prelude.Eq, ReadPrec [DescribePermissionSetProvisioningStatus]
ReadPrec DescribePermissionSetProvisioningStatus
Int -> ReadS DescribePermissionSetProvisioningStatus
ReadS [DescribePermissionSetProvisioningStatus]
(Int -> ReadS DescribePermissionSetProvisioningStatus)
-> ReadS [DescribePermissionSetProvisioningStatus]
-> ReadPrec DescribePermissionSetProvisioningStatus
-> ReadPrec [DescribePermissionSetProvisioningStatus]
-> Read DescribePermissionSetProvisioningStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribePermissionSetProvisioningStatus]
$creadListPrec :: ReadPrec [DescribePermissionSetProvisioningStatus]
readPrec :: ReadPrec DescribePermissionSetProvisioningStatus
$creadPrec :: ReadPrec DescribePermissionSetProvisioningStatus
readList :: ReadS [DescribePermissionSetProvisioningStatus]
$creadList :: ReadS [DescribePermissionSetProvisioningStatus]
readsPrec :: Int -> ReadS DescribePermissionSetProvisioningStatus
$creadsPrec :: Int -> ReadS DescribePermissionSetProvisioningStatus
Prelude.Read, Int -> DescribePermissionSetProvisioningStatus -> ShowS
[DescribePermissionSetProvisioningStatus] -> ShowS
DescribePermissionSetProvisioningStatus -> String
(Int -> DescribePermissionSetProvisioningStatus -> ShowS)
-> (DescribePermissionSetProvisioningStatus -> String)
-> ([DescribePermissionSetProvisioningStatus] -> ShowS)
-> Show DescribePermissionSetProvisioningStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribePermissionSetProvisioningStatus] -> ShowS
$cshowList :: [DescribePermissionSetProvisioningStatus] -> ShowS
show :: DescribePermissionSetProvisioningStatus -> String
$cshow :: DescribePermissionSetProvisioningStatus -> String
showsPrec :: Int -> DescribePermissionSetProvisioningStatus -> ShowS
$cshowsPrec :: Int -> DescribePermissionSetProvisioningStatus -> ShowS
Prelude.Show, (forall x.
 DescribePermissionSetProvisioningStatus
 -> Rep DescribePermissionSetProvisioningStatus x)
-> (forall x.
    Rep DescribePermissionSetProvisioningStatus x
    -> DescribePermissionSetProvisioningStatus)
-> Generic DescribePermissionSetProvisioningStatus
forall x.
Rep DescribePermissionSetProvisioningStatus x
-> DescribePermissionSetProvisioningStatus
forall x.
DescribePermissionSetProvisioningStatus
-> Rep DescribePermissionSetProvisioningStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribePermissionSetProvisioningStatus x
-> DescribePermissionSetProvisioningStatus
$cfrom :: forall x.
DescribePermissionSetProvisioningStatus
-> Rep DescribePermissionSetProvisioningStatus x
Prelude.Generic)

-- |
-- Create a value of 'DescribePermissionSetProvisioningStatus' 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', 'describePermissionSetProvisioningStatus_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/.
--
-- 'provisionPermissionSetRequestId', 'describePermissionSetProvisioningStatus_provisionPermissionSetRequestId' - The identifier that is provided by the ProvisionPermissionSet call to
-- retrieve the current status of the provisioning workflow.
newDescribePermissionSetProvisioningStatus ::
  -- | 'instanceArn'
  Prelude.Text ->
  -- | 'provisionPermissionSetRequestId'
  Prelude.Text ->
  DescribePermissionSetProvisioningStatus
newDescribePermissionSetProvisioningStatus :: Text -> Text -> DescribePermissionSetProvisioningStatus
newDescribePermissionSetProvisioningStatus
  Text
pInstanceArn_
  Text
pProvisionPermissionSetRequestId_ =
    DescribePermissionSetProvisioningStatus' :: Text -> Text -> DescribePermissionSetProvisioningStatus
DescribePermissionSetProvisioningStatus'
      { $sel:instanceArn:DescribePermissionSetProvisioningStatus' :: Text
instanceArn =
          Text
pInstanceArn_,
        $sel:provisionPermissionSetRequestId:DescribePermissionSetProvisioningStatus' :: Text
provisionPermissionSetRequestId =
          Text
pProvisionPermissionSetRequestId_
      }

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

-- | The identifier that is provided by the ProvisionPermissionSet call to
-- retrieve the current status of the provisioning workflow.
describePermissionSetProvisioningStatus_provisionPermissionSetRequestId :: Lens.Lens' DescribePermissionSetProvisioningStatus Prelude.Text
describePermissionSetProvisioningStatus_provisionPermissionSetRequestId :: (Text -> f Text)
-> DescribePermissionSetProvisioningStatus
-> f DescribePermissionSetProvisioningStatus
describePermissionSetProvisioningStatus_provisionPermissionSetRequestId = (DescribePermissionSetProvisioningStatus -> Text)
-> (DescribePermissionSetProvisioningStatus
    -> Text -> DescribePermissionSetProvisioningStatus)
-> Lens
     DescribePermissionSetProvisioningStatus
     DescribePermissionSetProvisioningStatus
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePermissionSetProvisioningStatus' {Text
provisionPermissionSetRequestId :: Text
$sel:provisionPermissionSetRequestId:DescribePermissionSetProvisioningStatus' :: DescribePermissionSetProvisioningStatus -> Text
provisionPermissionSetRequestId} -> Text
provisionPermissionSetRequestId) (\s :: DescribePermissionSetProvisioningStatus
s@DescribePermissionSetProvisioningStatus' {} Text
a -> DescribePermissionSetProvisioningStatus
s {$sel:provisionPermissionSetRequestId:DescribePermissionSetProvisioningStatus' :: Text
provisionPermissionSetRequestId = Text
a} :: DescribePermissionSetProvisioningStatus)

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

instance
  Prelude.NFData
    DescribePermissionSetProvisioningStatus

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

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

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

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

-- |
-- Create a value of 'DescribePermissionSetProvisioningStatusResponse' 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:
--
-- 'permissionSetProvisioningStatus', 'describePermissionSetProvisioningStatusResponse_permissionSetProvisioningStatus' - The status object for the permission set provisioning operation.
--
-- 'httpStatus', 'describePermissionSetProvisioningStatusResponse_httpStatus' - The response's http status code.
newDescribePermissionSetProvisioningStatusResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribePermissionSetProvisioningStatusResponse
newDescribePermissionSetProvisioningStatusResponse :: Int -> DescribePermissionSetProvisioningStatusResponse
newDescribePermissionSetProvisioningStatusResponse
  Int
pHttpStatus_ =
    DescribePermissionSetProvisioningStatusResponse' :: Maybe PermissionSetProvisioningStatus
-> Int -> DescribePermissionSetProvisioningStatusResponse
DescribePermissionSetProvisioningStatusResponse'
      { $sel:permissionSetProvisioningStatus:DescribePermissionSetProvisioningStatusResponse' :: Maybe PermissionSetProvisioningStatus
permissionSetProvisioningStatus =
          Maybe PermissionSetProvisioningStatus
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribePermissionSetProvisioningStatusResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The status object for the permission set provisioning operation.
describePermissionSetProvisioningStatusResponse_permissionSetProvisioningStatus :: Lens.Lens' DescribePermissionSetProvisioningStatusResponse (Prelude.Maybe PermissionSetProvisioningStatus)
describePermissionSetProvisioningStatusResponse_permissionSetProvisioningStatus :: (Maybe PermissionSetProvisioningStatus
 -> f (Maybe PermissionSetProvisioningStatus))
-> DescribePermissionSetProvisioningStatusResponse
-> f DescribePermissionSetProvisioningStatusResponse
describePermissionSetProvisioningStatusResponse_permissionSetProvisioningStatus = (DescribePermissionSetProvisioningStatusResponse
 -> Maybe PermissionSetProvisioningStatus)
-> (DescribePermissionSetProvisioningStatusResponse
    -> Maybe PermissionSetProvisioningStatus
    -> DescribePermissionSetProvisioningStatusResponse)
-> Lens
     DescribePermissionSetProvisioningStatusResponse
     DescribePermissionSetProvisioningStatusResponse
     (Maybe PermissionSetProvisioningStatus)
     (Maybe PermissionSetProvisioningStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribePermissionSetProvisioningStatusResponse' {Maybe PermissionSetProvisioningStatus
permissionSetProvisioningStatus :: Maybe PermissionSetProvisioningStatus
$sel:permissionSetProvisioningStatus:DescribePermissionSetProvisioningStatusResponse' :: DescribePermissionSetProvisioningStatusResponse
-> Maybe PermissionSetProvisioningStatus
permissionSetProvisioningStatus} -> Maybe PermissionSetProvisioningStatus
permissionSetProvisioningStatus) (\s :: DescribePermissionSetProvisioningStatusResponse
s@DescribePermissionSetProvisioningStatusResponse' {} Maybe PermissionSetProvisioningStatus
a -> DescribePermissionSetProvisioningStatusResponse
s {$sel:permissionSetProvisioningStatus:DescribePermissionSetProvisioningStatusResponse' :: Maybe PermissionSetProvisioningStatus
permissionSetProvisioningStatus = Maybe PermissionSetProvisioningStatus
a} :: DescribePermissionSetProvisioningStatusResponse)

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

instance
  Prelude.NFData
    DescribePermissionSetProvisioningStatusResponse