{-# 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.ServiceCatalog.DisassociatePrincipalFromPortfolio
-- 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)
--
-- Disassociates a previously associated principal ARN from a specified
-- portfolio.
module Amazonka.ServiceCatalog.DisassociatePrincipalFromPortfolio
  ( -- * Creating a Request
    DisassociatePrincipalFromPortfolio (..),
    newDisassociatePrincipalFromPortfolio,

    -- * Request Lenses
    disassociatePrincipalFromPortfolio_acceptLanguage,
    disassociatePrincipalFromPortfolio_portfolioId,
    disassociatePrincipalFromPortfolio_principalARN,

    -- * Destructuring the Response
    DisassociatePrincipalFromPortfolioResponse (..),
    newDisassociatePrincipalFromPortfolioResponse,

    -- * Response Lenses
    disassociatePrincipalFromPortfolioResponse_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.ServiceCatalog.Types

-- | /See:/ 'newDisassociatePrincipalFromPortfolio' smart constructor.
data DisassociatePrincipalFromPortfolio = DisassociatePrincipalFromPortfolio'
  { -- | The language code.
    --
    -- -   @en@ - English (default)
    --
    -- -   @jp@ - Japanese
    --
    -- -   @zh@ - Chinese
    DisassociatePrincipalFromPortfolio -> Maybe Text
acceptLanguage :: Prelude.Maybe Prelude.Text,
    -- | The portfolio identifier.
    DisassociatePrincipalFromPortfolio -> Text
portfolioId :: Prelude.Text,
    -- | The ARN of the principal (IAM user, role, or group).
    DisassociatePrincipalFromPortfolio -> Text
principalARN :: Prelude.Text
  }
  deriving (DisassociatePrincipalFromPortfolio
-> DisassociatePrincipalFromPortfolio -> Bool
(DisassociatePrincipalFromPortfolio
 -> DisassociatePrincipalFromPortfolio -> Bool)
-> (DisassociatePrincipalFromPortfolio
    -> DisassociatePrincipalFromPortfolio -> Bool)
-> Eq DisassociatePrincipalFromPortfolio
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociatePrincipalFromPortfolio
-> DisassociatePrincipalFromPortfolio -> Bool
$c/= :: DisassociatePrincipalFromPortfolio
-> DisassociatePrincipalFromPortfolio -> Bool
== :: DisassociatePrincipalFromPortfolio
-> DisassociatePrincipalFromPortfolio -> Bool
$c== :: DisassociatePrincipalFromPortfolio
-> DisassociatePrincipalFromPortfolio -> Bool
Prelude.Eq, ReadPrec [DisassociatePrincipalFromPortfolio]
ReadPrec DisassociatePrincipalFromPortfolio
Int -> ReadS DisassociatePrincipalFromPortfolio
ReadS [DisassociatePrincipalFromPortfolio]
(Int -> ReadS DisassociatePrincipalFromPortfolio)
-> ReadS [DisassociatePrincipalFromPortfolio]
-> ReadPrec DisassociatePrincipalFromPortfolio
-> ReadPrec [DisassociatePrincipalFromPortfolio]
-> Read DisassociatePrincipalFromPortfolio
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociatePrincipalFromPortfolio]
$creadListPrec :: ReadPrec [DisassociatePrincipalFromPortfolio]
readPrec :: ReadPrec DisassociatePrincipalFromPortfolio
$creadPrec :: ReadPrec DisassociatePrincipalFromPortfolio
readList :: ReadS [DisassociatePrincipalFromPortfolio]
$creadList :: ReadS [DisassociatePrincipalFromPortfolio]
readsPrec :: Int -> ReadS DisassociatePrincipalFromPortfolio
$creadsPrec :: Int -> ReadS DisassociatePrincipalFromPortfolio
Prelude.Read, Int -> DisassociatePrincipalFromPortfolio -> ShowS
[DisassociatePrincipalFromPortfolio] -> ShowS
DisassociatePrincipalFromPortfolio -> String
(Int -> DisassociatePrincipalFromPortfolio -> ShowS)
-> (DisassociatePrincipalFromPortfolio -> String)
-> ([DisassociatePrincipalFromPortfolio] -> ShowS)
-> Show DisassociatePrincipalFromPortfolio
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociatePrincipalFromPortfolio] -> ShowS
$cshowList :: [DisassociatePrincipalFromPortfolio] -> ShowS
show :: DisassociatePrincipalFromPortfolio -> String
$cshow :: DisassociatePrincipalFromPortfolio -> String
showsPrec :: Int -> DisassociatePrincipalFromPortfolio -> ShowS
$cshowsPrec :: Int -> DisassociatePrincipalFromPortfolio -> ShowS
Prelude.Show, (forall x.
 DisassociatePrincipalFromPortfolio
 -> Rep DisassociatePrincipalFromPortfolio x)
-> (forall x.
    Rep DisassociatePrincipalFromPortfolio x
    -> DisassociatePrincipalFromPortfolio)
-> Generic DisassociatePrincipalFromPortfolio
forall x.
Rep DisassociatePrincipalFromPortfolio x
-> DisassociatePrincipalFromPortfolio
forall x.
DisassociatePrincipalFromPortfolio
-> Rep DisassociatePrincipalFromPortfolio x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociatePrincipalFromPortfolio x
-> DisassociatePrincipalFromPortfolio
$cfrom :: forall x.
DisassociatePrincipalFromPortfolio
-> Rep DisassociatePrincipalFromPortfolio x
Prelude.Generic)

-- |
-- Create a value of 'DisassociatePrincipalFromPortfolio' 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:
--
-- 'acceptLanguage', 'disassociatePrincipalFromPortfolio_acceptLanguage' - The language code.
--
-- -   @en@ - English (default)
--
-- -   @jp@ - Japanese
--
-- -   @zh@ - Chinese
--
-- 'portfolioId', 'disassociatePrincipalFromPortfolio_portfolioId' - The portfolio identifier.
--
-- 'principalARN', 'disassociatePrincipalFromPortfolio_principalARN' - The ARN of the principal (IAM user, role, or group).
newDisassociatePrincipalFromPortfolio ::
  -- | 'portfolioId'
  Prelude.Text ->
  -- | 'principalARN'
  Prelude.Text ->
  DisassociatePrincipalFromPortfolio
newDisassociatePrincipalFromPortfolio :: Text -> Text -> DisassociatePrincipalFromPortfolio
newDisassociatePrincipalFromPortfolio
  Text
pPortfolioId_
  Text
pPrincipalARN_ =
    DisassociatePrincipalFromPortfolio' :: Maybe Text -> Text -> Text -> DisassociatePrincipalFromPortfolio
DisassociatePrincipalFromPortfolio'
      { $sel:acceptLanguage:DisassociatePrincipalFromPortfolio' :: Maybe Text
acceptLanguage =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:portfolioId:DisassociatePrincipalFromPortfolio' :: Text
portfolioId = Text
pPortfolioId_,
        $sel:principalARN:DisassociatePrincipalFromPortfolio' :: Text
principalARN = Text
pPrincipalARN_
      }

-- | The language code.
--
-- -   @en@ - English (default)
--
-- -   @jp@ - Japanese
--
-- -   @zh@ - Chinese
disassociatePrincipalFromPortfolio_acceptLanguage :: Lens.Lens' DisassociatePrincipalFromPortfolio (Prelude.Maybe Prelude.Text)
disassociatePrincipalFromPortfolio_acceptLanguage :: (Maybe Text -> f (Maybe Text))
-> DisassociatePrincipalFromPortfolio
-> f DisassociatePrincipalFromPortfolio
disassociatePrincipalFromPortfolio_acceptLanguage = (DisassociatePrincipalFromPortfolio -> Maybe Text)
-> (DisassociatePrincipalFromPortfolio
    -> Maybe Text -> DisassociatePrincipalFromPortfolio)
-> Lens
     DisassociatePrincipalFromPortfolio
     DisassociatePrincipalFromPortfolio
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociatePrincipalFromPortfolio' {Maybe Text
acceptLanguage :: Maybe Text
$sel:acceptLanguage:DisassociatePrincipalFromPortfolio' :: DisassociatePrincipalFromPortfolio -> Maybe Text
acceptLanguage} -> Maybe Text
acceptLanguage) (\s :: DisassociatePrincipalFromPortfolio
s@DisassociatePrincipalFromPortfolio' {} Maybe Text
a -> DisassociatePrincipalFromPortfolio
s {$sel:acceptLanguage:DisassociatePrincipalFromPortfolio' :: Maybe Text
acceptLanguage = Maybe Text
a} :: DisassociatePrincipalFromPortfolio)

-- | The portfolio identifier.
disassociatePrincipalFromPortfolio_portfolioId :: Lens.Lens' DisassociatePrincipalFromPortfolio Prelude.Text
disassociatePrincipalFromPortfolio_portfolioId :: (Text -> f Text)
-> DisassociatePrincipalFromPortfolio
-> f DisassociatePrincipalFromPortfolio
disassociatePrincipalFromPortfolio_portfolioId = (DisassociatePrincipalFromPortfolio -> Text)
-> (DisassociatePrincipalFromPortfolio
    -> Text -> DisassociatePrincipalFromPortfolio)
-> Lens
     DisassociatePrincipalFromPortfolio
     DisassociatePrincipalFromPortfolio
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociatePrincipalFromPortfolio' {Text
portfolioId :: Text
$sel:portfolioId:DisassociatePrincipalFromPortfolio' :: DisassociatePrincipalFromPortfolio -> Text
portfolioId} -> Text
portfolioId) (\s :: DisassociatePrincipalFromPortfolio
s@DisassociatePrincipalFromPortfolio' {} Text
a -> DisassociatePrincipalFromPortfolio
s {$sel:portfolioId:DisassociatePrincipalFromPortfolio' :: Text
portfolioId = Text
a} :: DisassociatePrincipalFromPortfolio)

-- | The ARN of the principal (IAM user, role, or group).
disassociatePrincipalFromPortfolio_principalARN :: Lens.Lens' DisassociatePrincipalFromPortfolio Prelude.Text
disassociatePrincipalFromPortfolio_principalARN :: (Text -> f Text)
-> DisassociatePrincipalFromPortfolio
-> f DisassociatePrincipalFromPortfolio
disassociatePrincipalFromPortfolio_principalARN = (DisassociatePrincipalFromPortfolio -> Text)
-> (DisassociatePrincipalFromPortfolio
    -> Text -> DisassociatePrincipalFromPortfolio)
-> Lens
     DisassociatePrincipalFromPortfolio
     DisassociatePrincipalFromPortfolio
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DisassociatePrincipalFromPortfolio' {Text
principalARN :: Text
$sel:principalARN:DisassociatePrincipalFromPortfolio' :: DisassociatePrincipalFromPortfolio -> Text
principalARN} -> Text
principalARN) (\s :: DisassociatePrincipalFromPortfolio
s@DisassociatePrincipalFromPortfolio' {} Text
a -> DisassociatePrincipalFromPortfolio
s {$sel:principalARN:DisassociatePrincipalFromPortfolio' :: Text
principalARN = Text
a} :: DisassociatePrincipalFromPortfolio)

instance
  Core.AWSRequest
    DisassociatePrincipalFromPortfolio
  where
  type
    AWSResponse DisassociatePrincipalFromPortfolio =
      DisassociatePrincipalFromPortfolioResponse
  request :: DisassociatePrincipalFromPortfolio
-> Request DisassociatePrincipalFromPortfolio
request = Service
-> DisassociatePrincipalFromPortfolio
-> Request DisassociatePrincipalFromPortfolio
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy DisassociatePrincipalFromPortfolio
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DisassociatePrincipalFromPortfolio)))
response =
    (Int
 -> ResponseHeaders
 -> ()
 -> Either String (AWSResponse DisassociatePrincipalFromPortfolio))
-> Logger
-> Service
-> Proxy DisassociatePrincipalFromPortfolio
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DisassociatePrincipalFromPortfolio)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
      ( \Int
s ResponseHeaders
h ()
x ->
          Int -> DisassociatePrincipalFromPortfolioResponse
DisassociatePrincipalFromPortfolioResponse'
            (Int -> DisassociatePrincipalFromPortfolioResponse)
-> Either String Int
-> Either String DisassociatePrincipalFromPortfolioResponse
forall (f :: * -> *) a b. Functor 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
    DisassociatePrincipalFromPortfolio

instance
  Prelude.NFData
    DisassociatePrincipalFromPortfolio

instance
  Core.ToHeaders
    DisassociatePrincipalFromPortfolio
  where
  toHeaders :: DisassociatePrincipalFromPortfolio -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> DisassociatePrincipalFromPortfolio -> 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
"AWS242ServiceCatalogService.DisassociatePrincipalFromPortfolio" ::
                          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
    DisassociatePrincipalFromPortfolio
  where
  toJSON :: DisassociatePrincipalFromPortfolio -> Value
toJSON DisassociatePrincipalFromPortfolio' {Maybe Text
Text
principalARN :: Text
portfolioId :: Text
acceptLanguage :: Maybe Text
$sel:principalARN:DisassociatePrincipalFromPortfolio' :: DisassociatePrincipalFromPortfolio -> Text
$sel:portfolioId:DisassociatePrincipalFromPortfolio' :: DisassociatePrincipalFromPortfolio -> Text
$sel:acceptLanguage:DisassociatePrincipalFromPortfolio' :: DisassociatePrincipalFromPortfolio -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"AcceptLanguage" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
              (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
acceptLanguage,
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"PortfolioId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
portfolioId),
            Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"PrincipalARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
principalARN)
          ]
      )

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

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

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

-- |
-- Create a value of 'DisassociatePrincipalFromPortfolioResponse' 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:
--
-- 'httpStatus', 'disassociatePrincipalFromPortfolioResponse_httpStatus' - The response's http status code.
newDisassociatePrincipalFromPortfolioResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DisassociatePrincipalFromPortfolioResponse
newDisassociatePrincipalFromPortfolioResponse :: Int -> DisassociatePrincipalFromPortfolioResponse
newDisassociatePrincipalFromPortfolioResponse
  Int
pHttpStatus_ =
    DisassociatePrincipalFromPortfolioResponse' :: Int -> DisassociatePrincipalFromPortfolioResponse
DisassociatePrincipalFromPortfolioResponse'
      { $sel:httpStatus:DisassociatePrincipalFromPortfolioResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

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

instance
  Prelude.NFData
    DisassociatePrincipalFromPortfolioResponse