{-# 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.QuickSight.DeleteIAMPolicyAssignment
-- 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)
--
-- Deletes an existing IAMpolicy assignment.
module Amazonka.QuickSight.DeleteIAMPolicyAssignment
  ( -- * Creating a Request
    DeleteIAMPolicyAssignment (..),
    newDeleteIAMPolicyAssignment,

    -- * Request Lenses
    deleteIAMPolicyAssignment_awsAccountId,
    deleteIAMPolicyAssignment_assignmentName,
    deleteIAMPolicyAssignment_namespace,

    -- * Destructuring the Response
    DeleteIAMPolicyAssignmentResponse (..),
    newDeleteIAMPolicyAssignmentResponse,

    -- * Response Lenses
    deleteIAMPolicyAssignmentResponse_requestId,
    deleteIAMPolicyAssignmentResponse_assignmentName,
    deleteIAMPolicyAssignmentResponse_status,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.QuickSight.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newDeleteIAMPolicyAssignment' smart constructor.
data DeleteIAMPolicyAssignment = DeleteIAMPolicyAssignment'
  { -- | The Amazon Web Services account ID where you want to delete the
    -- IAMpolicy assignment.
    DeleteIAMPolicyAssignment -> Text
awsAccountId :: Prelude.Text,
    -- | The name of the assignment.
    DeleteIAMPolicyAssignment -> Text
assignmentName :: Prelude.Text,
    -- | The namespace that contains the assignment.
    DeleteIAMPolicyAssignment -> Text
namespace :: Prelude.Text
  }
  deriving (DeleteIAMPolicyAssignment -> DeleteIAMPolicyAssignment -> Bool
(DeleteIAMPolicyAssignment -> DeleteIAMPolicyAssignment -> Bool)
-> (DeleteIAMPolicyAssignment -> DeleteIAMPolicyAssignment -> Bool)
-> Eq DeleteIAMPolicyAssignment
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteIAMPolicyAssignment -> DeleteIAMPolicyAssignment -> Bool
$c/= :: DeleteIAMPolicyAssignment -> DeleteIAMPolicyAssignment -> Bool
== :: DeleteIAMPolicyAssignment -> DeleteIAMPolicyAssignment -> Bool
$c== :: DeleteIAMPolicyAssignment -> DeleteIAMPolicyAssignment -> Bool
Prelude.Eq, ReadPrec [DeleteIAMPolicyAssignment]
ReadPrec DeleteIAMPolicyAssignment
Int -> ReadS DeleteIAMPolicyAssignment
ReadS [DeleteIAMPolicyAssignment]
(Int -> ReadS DeleteIAMPolicyAssignment)
-> ReadS [DeleteIAMPolicyAssignment]
-> ReadPrec DeleteIAMPolicyAssignment
-> ReadPrec [DeleteIAMPolicyAssignment]
-> Read DeleteIAMPolicyAssignment
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteIAMPolicyAssignment]
$creadListPrec :: ReadPrec [DeleteIAMPolicyAssignment]
readPrec :: ReadPrec DeleteIAMPolicyAssignment
$creadPrec :: ReadPrec DeleteIAMPolicyAssignment
readList :: ReadS [DeleteIAMPolicyAssignment]
$creadList :: ReadS [DeleteIAMPolicyAssignment]
readsPrec :: Int -> ReadS DeleteIAMPolicyAssignment
$creadsPrec :: Int -> ReadS DeleteIAMPolicyAssignment
Prelude.Read, Int -> DeleteIAMPolicyAssignment -> ShowS
[DeleteIAMPolicyAssignment] -> ShowS
DeleteIAMPolicyAssignment -> String
(Int -> DeleteIAMPolicyAssignment -> ShowS)
-> (DeleteIAMPolicyAssignment -> String)
-> ([DeleteIAMPolicyAssignment] -> ShowS)
-> Show DeleteIAMPolicyAssignment
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteIAMPolicyAssignment] -> ShowS
$cshowList :: [DeleteIAMPolicyAssignment] -> ShowS
show :: DeleteIAMPolicyAssignment -> String
$cshow :: DeleteIAMPolicyAssignment -> String
showsPrec :: Int -> DeleteIAMPolicyAssignment -> ShowS
$cshowsPrec :: Int -> DeleteIAMPolicyAssignment -> ShowS
Prelude.Show, (forall x.
 DeleteIAMPolicyAssignment -> Rep DeleteIAMPolicyAssignment x)
-> (forall x.
    Rep DeleteIAMPolicyAssignment x -> DeleteIAMPolicyAssignment)
-> Generic DeleteIAMPolicyAssignment
forall x.
Rep DeleteIAMPolicyAssignment x -> DeleteIAMPolicyAssignment
forall x.
DeleteIAMPolicyAssignment -> Rep DeleteIAMPolicyAssignment x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteIAMPolicyAssignment x -> DeleteIAMPolicyAssignment
$cfrom :: forall x.
DeleteIAMPolicyAssignment -> Rep DeleteIAMPolicyAssignment x
Prelude.Generic)

-- |
-- Create a value of 'DeleteIAMPolicyAssignment' 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:
--
-- 'awsAccountId', 'deleteIAMPolicyAssignment_awsAccountId' - The Amazon Web Services account ID where you want to delete the
-- IAMpolicy assignment.
--
-- 'assignmentName', 'deleteIAMPolicyAssignment_assignmentName' - The name of the assignment.
--
-- 'namespace', 'deleteIAMPolicyAssignment_namespace' - The namespace that contains the assignment.
newDeleteIAMPolicyAssignment ::
  -- | 'awsAccountId'
  Prelude.Text ->
  -- | 'assignmentName'
  Prelude.Text ->
  -- | 'namespace'
  Prelude.Text ->
  DeleteIAMPolicyAssignment
newDeleteIAMPolicyAssignment :: Text -> Text -> Text -> DeleteIAMPolicyAssignment
newDeleteIAMPolicyAssignment
  Text
pAwsAccountId_
  Text
pAssignmentName_
  Text
pNamespace_ =
    DeleteIAMPolicyAssignment' :: Text -> Text -> Text -> DeleteIAMPolicyAssignment
DeleteIAMPolicyAssignment'
      { $sel:awsAccountId:DeleteIAMPolicyAssignment' :: Text
awsAccountId =
          Text
pAwsAccountId_,
        $sel:assignmentName:DeleteIAMPolicyAssignment' :: Text
assignmentName = Text
pAssignmentName_,
        $sel:namespace:DeleteIAMPolicyAssignment' :: Text
namespace = Text
pNamespace_
      }

-- | The Amazon Web Services account ID where you want to delete the
-- IAMpolicy assignment.
deleteIAMPolicyAssignment_awsAccountId :: Lens.Lens' DeleteIAMPolicyAssignment Prelude.Text
deleteIAMPolicyAssignment_awsAccountId :: (Text -> f Text)
-> DeleteIAMPolicyAssignment -> f DeleteIAMPolicyAssignment
deleteIAMPolicyAssignment_awsAccountId = (DeleteIAMPolicyAssignment -> Text)
-> (DeleteIAMPolicyAssignment -> Text -> DeleteIAMPolicyAssignment)
-> Lens
     DeleteIAMPolicyAssignment DeleteIAMPolicyAssignment Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteIAMPolicyAssignment' {Text
awsAccountId :: Text
$sel:awsAccountId:DeleteIAMPolicyAssignment' :: DeleteIAMPolicyAssignment -> Text
awsAccountId} -> Text
awsAccountId) (\s :: DeleteIAMPolicyAssignment
s@DeleteIAMPolicyAssignment' {} Text
a -> DeleteIAMPolicyAssignment
s {$sel:awsAccountId:DeleteIAMPolicyAssignment' :: Text
awsAccountId = Text
a} :: DeleteIAMPolicyAssignment)

-- | The name of the assignment.
deleteIAMPolicyAssignment_assignmentName :: Lens.Lens' DeleteIAMPolicyAssignment Prelude.Text
deleteIAMPolicyAssignment_assignmentName :: (Text -> f Text)
-> DeleteIAMPolicyAssignment -> f DeleteIAMPolicyAssignment
deleteIAMPolicyAssignment_assignmentName = (DeleteIAMPolicyAssignment -> Text)
-> (DeleteIAMPolicyAssignment -> Text -> DeleteIAMPolicyAssignment)
-> Lens
     DeleteIAMPolicyAssignment DeleteIAMPolicyAssignment Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteIAMPolicyAssignment' {Text
assignmentName :: Text
$sel:assignmentName:DeleteIAMPolicyAssignment' :: DeleteIAMPolicyAssignment -> Text
assignmentName} -> Text
assignmentName) (\s :: DeleteIAMPolicyAssignment
s@DeleteIAMPolicyAssignment' {} Text
a -> DeleteIAMPolicyAssignment
s {$sel:assignmentName:DeleteIAMPolicyAssignment' :: Text
assignmentName = Text
a} :: DeleteIAMPolicyAssignment)

-- | The namespace that contains the assignment.
deleteIAMPolicyAssignment_namespace :: Lens.Lens' DeleteIAMPolicyAssignment Prelude.Text
deleteIAMPolicyAssignment_namespace :: (Text -> f Text)
-> DeleteIAMPolicyAssignment -> f DeleteIAMPolicyAssignment
deleteIAMPolicyAssignment_namespace = (DeleteIAMPolicyAssignment -> Text)
-> (DeleteIAMPolicyAssignment -> Text -> DeleteIAMPolicyAssignment)
-> Lens
     DeleteIAMPolicyAssignment DeleteIAMPolicyAssignment Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteIAMPolicyAssignment' {Text
namespace :: Text
$sel:namespace:DeleteIAMPolicyAssignment' :: DeleteIAMPolicyAssignment -> Text
namespace} -> Text
namespace) (\s :: DeleteIAMPolicyAssignment
s@DeleteIAMPolicyAssignment' {} Text
a -> DeleteIAMPolicyAssignment
s {$sel:namespace:DeleteIAMPolicyAssignment' :: Text
namespace = Text
a} :: DeleteIAMPolicyAssignment)

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

instance Prelude.NFData DeleteIAMPolicyAssignment

instance Core.ToHeaders DeleteIAMPolicyAssignment where
  toHeaders :: DeleteIAMPolicyAssignment -> ResponseHeaders
toHeaders =
    ResponseHeaders -> DeleteIAMPolicyAssignment -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath DeleteIAMPolicyAssignment where
  toPath :: DeleteIAMPolicyAssignment -> ByteString
toPath DeleteIAMPolicyAssignment' {Text
namespace :: Text
assignmentName :: Text
awsAccountId :: Text
$sel:namespace:DeleteIAMPolicyAssignment' :: DeleteIAMPolicyAssignment -> Text
$sel:assignmentName:DeleteIAMPolicyAssignment' :: DeleteIAMPolicyAssignment -> Text
$sel:awsAccountId:DeleteIAMPolicyAssignment' :: DeleteIAMPolicyAssignment -> Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/accounts/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
awsAccountId,
        ByteString
"/namespace/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
namespace,
        ByteString
"/iam-policy-assignments/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
assignmentName
      ]

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

-- | /See:/ 'newDeleteIAMPolicyAssignmentResponse' smart constructor.
data DeleteIAMPolicyAssignmentResponse = DeleteIAMPolicyAssignmentResponse'
  { -- | The Amazon Web Services request ID for this operation.
    DeleteIAMPolicyAssignmentResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
    -- | The name of the assignment.
    DeleteIAMPolicyAssignmentResponse -> Maybe Text
assignmentName :: Prelude.Maybe Prelude.Text,
    -- | The HTTP status of the request.
    DeleteIAMPolicyAssignmentResponse -> Int
status :: Prelude.Int
  }
  deriving (DeleteIAMPolicyAssignmentResponse
-> DeleteIAMPolicyAssignmentResponse -> Bool
(DeleteIAMPolicyAssignmentResponse
 -> DeleteIAMPolicyAssignmentResponse -> Bool)
-> (DeleteIAMPolicyAssignmentResponse
    -> DeleteIAMPolicyAssignmentResponse -> Bool)
-> Eq DeleteIAMPolicyAssignmentResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteIAMPolicyAssignmentResponse
-> DeleteIAMPolicyAssignmentResponse -> Bool
$c/= :: DeleteIAMPolicyAssignmentResponse
-> DeleteIAMPolicyAssignmentResponse -> Bool
== :: DeleteIAMPolicyAssignmentResponse
-> DeleteIAMPolicyAssignmentResponse -> Bool
$c== :: DeleteIAMPolicyAssignmentResponse
-> DeleteIAMPolicyAssignmentResponse -> Bool
Prelude.Eq, ReadPrec [DeleteIAMPolicyAssignmentResponse]
ReadPrec DeleteIAMPolicyAssignmentResponse
Int -> ReadS DeleteIAMPolicyAssignmentResponse
ReadS [DeleteIAMPolicyAssignmentResponse]
(Int -> ReadS DeleteIAMPolicyAssignmentResponse)
-> ReadS [DeleteIAMPolicyAssignmentResponse]
-> ReadPrec DeleteIAMPolicyAssignmentResponse
-> ReadPrec [DeleteIAMPolicyAssignmentResponse]
-> Read DeleteIAMPolicyAssignmentResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteIAMPolicyAssignmentResponse]
$creadListPrec :: ReadPrec [DeleteIAMPolicyAssignmentResponse]
readPrec :: ReadPrec DeleteIAMPolicyAssignmentResponse
$creadPrec :: ReadPrec DeleteIAMPolicyAssignmentResponse
readList :: ReadS [DeleteIAMPolicyAssignmentResponse]
$creadList :: ReadS [DeleteIAMPolicyAssignmentResponse]
readsPrec :: Int -> ReadS DeleteIAMPolicyAssignmentResponse
$creadsPrec :: Int -> ReadS DeleteIAMPolicyAssignmentResponse
Prelude.Read, Int -> DeleteIAMPolicyAssignmentResponse -> ShowS
[DeleteIAMPolicyAssignmentResponse] -> ShowS
DeleteIAMPolicyAssignmentResponse -> String
(Int -> DeleteIAMPolicyAssignmentResponse -> ShowS)
-> (DeleteIAMPolicyAssignmentResponse -> String)
-> ([DeleteIAMPolicyAssignmentResponse] -> ShowS)
-> Show DeleteIAMPolicyAssignmentResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteIAMPolicyAssignmentResponse] -> ShowS
$cshowList :: [DeleteIAMPolicyAssignmentResponse] -> ShowS
show :: DeleteIAMPolicyAssignmentResponse -> String
$cshow :: DeleteIAMPolicyAssignmentResponse -> String
showsPrec :: Int -> DeleteIAMPolicyAssignmentResponse -> ShowS
$cshowsPrec :: Int -> DeleteIAMPolicyAssignmentResponse -> ShowS
Prelude.Show, (forall x.
 DeleteIAMPolicyAssignmentResponse
 -> Rep DeleteIAMPolicyAssignmentResponse x)
-> (forall x.
    Rep DeleteIAMPolicyAssignmentResponse x
    -> DeleteIAMPolicyAssignmentResponse)
-> Generic DeleteIAMPolicyAssignmentResponse
forall x.
Rep DeleteIAMPolicyAssignmentResponse x
-> DeleteIAMPolicyAssignmentResponse
forall x.
DeleteIAMPolicyAssignmentResponse
-> Rep DeleteIAMPolicyAssignmentResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteIAMPolicyAssignmentResponse x
-> DeleteIAMPolicyAssignmentResponse
$cfrom :: forall x.
DeleteIAMPolicyAssignmentResponse
-> Rep DeleteIAMPolicyAssignmentResponse x
Prelude.Generic)

-- |
-- Create a value of 'DeleteIAMPolicyAssignmentResponse' 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:
--
-- 'requestId', 'deleteIAMPolicyAssignmentResponse_requestId' - The Amazon Web Services request ID for this operation.
--
-- 'assignmentName', 'deleteIAMPolicyAssignmentResponse_assignmentName' - The name of the assignment.
--
-- 'status', 'deleteIAMPolicyAssignmentResponse_status' - The HTTP status of the request.
newDeleteIAMPolicyAssignmentResponse ::
  -- | 'status'
  Prelude.Int ->
  DeleteIAMPolicyAssignmentResponse
newDeleteIAMPolicyAssignmentResponse :: Int -> DeleteIAMPolicyAssignmentResponse
newDeleteIAMPolicyAssignmentResponse Int
pStatus_ =
  DeleteIAMPolicyAssignmentResponse' :: Maybe Text
-> Maybe Text -> Int -> DeleteIAMPolicyAssignmentResponse
DeleteIAMPolicyAssignmentResponse'
    { $sel:requestId:DeleteIAMPolicyAssignmentResponse' :: Maybe Text
requestId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:assignmentName:DeleteIAMPolicyAssignmentResponse' :: Maybe Text
assignmentName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:status:DeleteIAMPolicyAssignmentResponse' :: Int
status = Int
pStatus_
    }

-- | The Amazon Web Services request ID for this operation.
deleteIAMPolicyAssignmentResponse_requestId :: Lens.Lens' DeleteIAMPolicyAssignmentResponse (Prelude.Maybe Prelude.Text)
deleteIAMPolicyAssignmentResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> DeleteIAMPolicyAssignmentResponse
-> f DeleteIAMPolicyAssignmentResponse
deleteIAMPolicyAssignmentResponse_requestId = (DeleteIAMPolicyAssignmentResponse -> Maybe Text)
-> (DeleteIAMPolicyAssignmentResponse
    -> Maybe Text -> DeleteIAMPolicyAssignmentResponse)
-> Lens
     DeleteIAMPolicyAssignmentResponse
     DeleteIAMPolicyAssignmentResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteIAMPolicyAssignmentResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:DeleteIAMPolicyAssignmentResponse' :: DeleteIAMPolicyAssignmentResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: DeleteIAMPolicyAssignmentResponse
s@DeleteIAMPolicyAssignmentResponse' {} Maybe Text
a -> DeleteIAMPolicyAssignmentResponse
s {$sel:requestId:DeleteIAMPolicyAssignmentResponse' :: Maybe Text
requestId = Maybe Text
a} :: DeleteIAMPolicyAssignmentResponse)

-- | The name of the assignment.
deleteIAMPolicyAssignmentResponse_assignmentName :: Lens.Lens' DeleteIAMPolicyAssignmentResponse (Prelude.Maybe Prelude.Text)
deleteIAMPolicyAssignmentResponse_assignmentName :: (Maybe Text -> f (Maybe Text))
-> DeleteIAMPolicyAssignmentResponse
-> f DeleteIAMPolicyAssignmentResponse
deleteIAMPolicyAssignmentResponse_assignmentName = (DeleteIAMPolicyAssignmentResponse -> Maybe Text)
-> (DeleteIAMPolicyAssignmentResponse
    -> Maybe Text -> DeleteIAMPolicyAssignmentResponse)
-> Lens
     DeleteIAMPolicyAssignmentResponse
     DeleteIAMPolicyAssignmentResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteIAMPolicyAssignmentResponse' {Maybe Text
assignmentName :: Maybe Text
$sel:assignmentName:DeleteIAMPolicyAssignmentResponse' :: DeleteIAMPolicyAssignmentResponse -> Maybe Text
assignmentName} -> Maybe Text
assignmentName) (\s :: DeleteIAMPolicyAssignmentResponse
s@DeleteIAMPolicyAssignmentResponse' {} Maybe Text
a -> DeleteIAMPolicyAssignmentResponse
s {$sel:assignmentName:DeleteIAMPolicyAssignmentResponse' :: Maybe Text
assignmentName = Maybe Text
a} :: DeleteIAMPolicyAssignmentResponse)

-- | The HTTP status of the request.
deleteIAMPolicyAssignmentResponse_status :: Lens.Lens' DeleteIAMPolicyAssignmentResponse Prelude.Int
deleteIAMPolicyAssignmentResponse_status :: (Int -> f Int)
-> DeleteIAMPolicyAssignmentResponse
-> f DeleteIAMPolicyAssignmentResponse
deleteIAMPolicyAssignmentResponse_status = (DeleteIAMPolicyAssignmentResponse -> Int)
-> (DeleteIAMPolicyAssignmentResponse
    -> Int -> DeleteIAMPolicyAssignmentResponse)
-> Lens
     DeleteIAMPolicyAssignmentResponse
     DeleteIAMPolicyAssignmentResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteIAMPolicyAssignmentResponse' {Int
status :: Int
$sel:status:DeleteIAMPolicyAssignmentResponse' :: DeleteIAMPolicyAssignmentResponse -> Int
status} -> Int
status) (\s :: DeleteIAMPolicyAssignmentResponse
s@DeleteIAMPolicyAssignmentResponse' {} Int
a -> DeleteIAMPolicyAssignmentResponse
s {$sel:status:DeleteIAMPolicyAssignmentResponse' :: Int
status = Int
a} :: DeleteIAMPolicyAssignmentResponse)

instance
  Prelude.NFData
    DeleteIAMPolicyAssignmentResponse