{-# 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 #-}
module Amazonka.QuickSight.DeleteIAMPolicyAssignment
(
DeleteIAMPolicyAssignment (..),
newDeleteIAMPolicyAssignment,
deleteIAMPolicyAssignment_awsAccountId,
deleteIAMPolicyAssignment_assignmentName,
deleteIAMPolicyAssignment_namespace,
DeleteIAMPolicyAssignmentResponse (..),
newDeleteIAMPolicyAssignmentResponse,
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
data DeleteIAMPolicyAssignment = DeleteIAMPolicyAssignment'
{
DeleteIAMPolicyAssignment -> Text
awsAccountId :: Prelude.Text,
DeleteIAMPolicyAssignment -> Text
assignmentName :: Prelude.Text,
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)
newDeleteIAMPolicyAssignment ::
Prelude.Text ->
Prelude.Text ->
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_
}
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)
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)
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
data DeleteIAMPolicyAssignmentResponse = DeleteIAMPolicyAssignmentResponse'
{
DeleteIAMPolicyAssignmentResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
DeleteIAMPolicyAssignmentResponse -> Maybe Text
assignmentName :: Prelude.Maybe Prelude.Text,
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)
newDeleteIAMPolicyAssignmentResponse ::
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_
}
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)
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)
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