{-# 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.IAM.DeleteRolePermissionsBoundary
(
DeleteRolePermissionsBoundary (..),
newDeleteRolePermissionsBoundary,
deleteRolePermissionsBoundary_roleName,
DeleteRolePermissionsBoundaryResponse (..),
newDeleteRolePermissionsBoundaryResponse,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IAM.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DeleteRolePermissionsBoundary = DeleteRolePermissionsBoundary'
{
DeleteRolePermissionsBoundary -> Text
roleName :: Prelude.Text
}
deriving (DeleteRolePermissionsBoundary
-> DeleteRolePermissionsBoundary -> Bool
(DeleteRolePermissionsBoundary
-> DeleteRolePermissionsBoundary -> Bool)
-> (DeleteRolePermissionsBoundary
-> DeleteRolePermissionsBoundary -> Bool)
-> Eq DeleteRolePermissionsBoundary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteRolePermissionsBoundary
-> DeleteRolePermissionsBoundary -> Bool
$c/= :: DeleteRolePermissionsBoundary
-> DeleteRolePermissionsBoundary -> Bool
== :: DeleteRolePermissionsBoundary
-> DeleteRolePermissionsBoundary -> Bool
$c== :: DeleteRolePermissionsBoundary
-> DeleteRolePermissionsBoundary -> Bool
Prelude.Eq, ReadPrec [DeleteRolePermissionsBoundary]
ReadPrec DeleteRolePermissionsBoundary
Int -> ReadS DeleteRolePermissionsBoundary
ReadS [DeleteRolePermissionsBoundary]
(Int -> ReadS DeleteRolePermissionsBoundary)
-> ReadS [DeleteRolePermissionsBoundary]
-> ReadPrec DeleteRolePermissionsBoundary
-> ReadPrec [DeleteRolePermissionsBoundary]
-> Read DeleteRolePermissionsBoundary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteRolePermissionsBoundary]
$creadListPrec :: ReadPrec [DeleteRolePermissionsBoundary]
readPrec :: ReadPrec DeleteRolePermissionsBoundary
$creadPrec :: ReadPrec DeleteRolePermissionsBoundary
readList :: ReadS [DeleteRolePermissionsBoundary]
$creadList :: ReadS [DeleteRolePermissionsBoundary]
readsPrec :: Int -> ReadS DeleteRolePermissionsBoundary
$creadsPrec :: Int -> ReadS DeleteRolePermissionsBoundary
Prelude.Read, Int -> DeleteRolePermissionsBoundary -> ShowS
[DeleteRolePermissionsBoundary] -> ShowS
DeleteRolePermissionsBoundary -> String
(Int -> DeleteRolePermissionsBoundary -> ShowS)
-> (DeleteRolePermissionsBoundary -> String)
-> ([DeleteRolePermissionsBoundary] -> ShowS)
-> Show DeleteRolePermissionsBoundary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteRolePermissionsBoundary] -> ShowS
$cshowList :: [DeleteRolePermissionsBoundary] -> ShowS
show :: DeleteRolePermissionsBoundary -> String
$cshow :: DeleteRolePermissionsBoundary -> String
showsPrec :: Int -> DeleteRolePermissionsBoundary -> ShowS
$cshowsPrec :: Int -> DeleteRolePermissionsBoundary -> ShowS
Prelude.Show, (forall x.
DeleteRolePermissionsBoundary
-> Rep DeleteRolePermissionsBoundary x)
-> (forall x.
Rep DeleteRolePermissionsBoundary x
-> DeleteRolePermissionsBoundary)
-> Generic DeleteRolePermissionsBoundary
forall x.
Rep DeleteRolePermissionsBoundary x
-> DeleteRolePermissionsBoundary
forall x.
DeleteRolePermissionsBoundary
-> Rep DeleteRolePermissionsBoundary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteRolePermissionsBoundary x
-> DeleteRolePermissionsBoundary
$cfrom :: forall x.
DeleteRolePermissionsBoundary
-> Rep DeleteRolePermissionsBoundary x
Prelude.Generic)
newDeleteRolePermissionsBoundary ::
Prelude.Text ->
DeleteRolePermissionsBoundary
newDeleteRolePermissionsBoundary :: Text -> DeleteRolePermissionsBoundary
newDeleteRolePermissionsBoundary Text
pRoleName_ =
DeleteRolePermissionsBoundary' :: Text -> DeleteRolePermissionsBoundary
DeleteRolePermissionsBoundary'
{ $sel:roleName:DeleteRolePermissionsBoundary' :: Text
roleName =
Text
pRoleName_
}
deleteRolePermissionsBoundary_roleName :: Lens.Lens' DeleteRolePermissionsBoundary Prelude.Text
deleteRolePermissionsBoundary_roleName :: (Text -> f Text)
-> DeleteRolePermissionsBoundary -> f DeleteRolePermissionsBoundary
deleteRolePermissionsBoundary_roleName = (DeleteRolePermissionsBoundary -> Text)
-> (DeleteRolePermissionsBoundary
-> Text -> DeleteRolePermissionsBoundary)
-> Lens
DeleteRolePermissionsBoundary
DeleteRolePermissionsBoundary
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DeleteRolePermissionsBoundary' {Text
roleName :: Text
$sel:roleName:DeleteRolePermissionsBoundary' :: DeleteRolePermissionsBoundary -> Text
roleName} -> Text
roleName) (\s :: DeleteRolePermissionsBoundary
s@DeleteRolePermissionsBoundary' {} Text
a -> DeleteRolePermissionsBoundary
s {$sel:roleName:DeleteRolePermissionsBoundary' :: Text
roleName = Text
a} :: DeleteRolePermissionsBoundary)
instance
Core.AWSRequest
DeleteRolePermissionsBoundary
where
type
AWSResponse DeleteRolePermissionsBoundary =
DeleteRolePermissionsBoundaryResponse
request :: DeleteRolePermissionsBoundary
-> Request DeleteRolePermissionsBoundary
request = Service
-> DeleteRolePermissionsBoundary
-> Request DeleteRolePermissionsBoundary
forall a. ToRequest a => Service -> a -> Request a
Request.postQuery Service
defaultService
response :: Logger
-> Service
-> Proxy DeleteRolePermissionsBoundary
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteRolePermissionsBoundary)))
response =
AWSResponse DeleteRolePermissionsBoundary
-> Logger
-> Service
-> Proxy DeleteRolePermissionsBoundary
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DeleteRolePermissionsBoundary)))
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
AWSResponse DeleteRolePermissionsBoundary
DeleteRolePermissionsBoundaryResponse
DeleteRolePermissionsBoundaryResponse'
instance
Prelude.Hashable
DeleteRolePermissionsBoundary
instance Prelude.NFData DeleteRolePermissionsBoundary
instance Core.ToHeaders DeleteRolePermissionsBoundary where
toHeaders :: DeleteRolePermissionsBoundary -> [Header]
toHeaders = [Header] -> DeleteRolePermissionsBoundary -> [Header]
forall a b. a -> b -> a
Prelude.const [Header]
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DeleteRolePermissionsBoundary where
toPath :: DeleteRolePermissionsBoundary -> ByteString
toPath = ByteString -> DeleteRolePermissionsBoundary -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery DeleteRolePermissionsBoundary where
toQuery :: DeleteRolePermissionsBoundary -> QueryString
toQuery DeleteRolePermissionsBoundary' {Text
roleName :: Text
$sel:roleName:DeleteRolePermissionsBoundary' :: DeleteRolePermissionsBoundary -> Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"Action"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ( ByteString
"DeleteRolePermissionsBoundary" ::
Prelude.ByteString
),
ByteString
"Version"
ByteString -> ByteString -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: (ByteString
"2010-05-08" :: Prelude.ByteString),
ByteString
"RoleName" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
roleName
]
data DeleteRolePermissionsBoundaryResponse = DeleteRolePermissionsBoundaryResponse'
{
}
deriving (DeleteRolePermissionsBoundaryResponse
-> DeleteRolePermissionsBoundaryResponse -> Bool
(DeleteRolePermissionsBoundaryResponse
-> DeleteRolePermissionsBoundaryResponse -> Bool)
-> (DeleteRolePermissionsBoundaryResponse
-> DeleteRolePermissionsBoundaryResponse -> Bool)
-> Eq DeleteRolePermissionsBoundaryResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteRolePermissionsBoundaryResponse
-> DeleteRolePermissionsBoundaryResponse -> Bool
$c/= :: DeleteRolePermissionsBoundaryResponse
-> DeleteRolePermissionsBoundaryResponse -> Bool
== :: DeleteRolePermissionsBoundaryResponse
-> DeleteRolePermissionsBoundaryResponse -> Bool
$c== :: DeleteRolePermissionsBoundaryResponse
-> DeleteRolePermissionsBoundaryResponse -> Bool
Prelude.Eq, ReadPrec [DeleteRolePermissionsBoundaryResponse]
ReadPrec DeleteRolePermissionsBoundaryResponse
Int -> ReadS DeleteRolePermissionsBoundaryResponse
ReadS [DeleteRolePermissionsBoundaryResponse]
(Int -> ReadS DeleteRolePermissionsBoundaryResponse)
-> ReadS [DeleteRolePermissionsBoundaryResponse]
-> ReadPrec DeleteRolePermissionsBoundaryResponse
-> ReadPrec [DeleteRolePermissionsBoundaryResponse]
-> Read DeleteRolePermissionsBoundaryResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DeleteRolePermissionsBoundaryResponse]
$creadListPrec :: ReadPrec [DeleteRolePermissionsBoundaryResponse]
readPrec :: ReadPrec DeleteRolePermissionsBoundaryResponse
$creadPrec :: ReadPrec DeleteRolePermissionsBoundaryResponse
readList :: ReadS [DeleteRolePermissionsBoundaryResponse]
$creadList :: ReadS [DeleteRolePermissionsBoundaryResponse]
readsPrec :: Int -> ReadS DeleteRolePermissionsBoundaryResponse
$creadsPrec :: Int -> ReadS DeleteRolePermissionsBoundaryResponse
Prelude.Read, Int -> DeleteRolePermissionsBoundaryResponse -> ShowS
[DeleteRolePermissionsBoundaryResponse] -> ShowS
DeleteRolePermissionsBoundaryResponse -> String
(Int -> DeleteRolePermissionsBoundaryResponse -> ShowS)
-> (DeleteRolePermissionsBoundaryResponse -> String)
-> ([DeleteRolePermissionsBoundaryResponse] -> ShowS)
-> Show DeleteRolePermissionsBoundaryResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteRolePermissionsBoundaryResponse] -> ShowS
$cshowList :: [DeleteRolePermissionsBoundaryResponse] -> ShowS
show :: DeleteRolePermissionsBoundaryResponse -> String
$cshow :: DeleteRolePermissionsBoundaryResponse -> String
showsPrec :: Int -> DeleteRolePermissionsBoundaryResponse -> ShowS
$cshowsPrec :: Int -> DeleteRolePermissionsBoundaryResponse -> ShowS
Prelude.Show, (forall x.
DeleteRolePermissionsBoundaryResponse
-> Rep DeleteRolePermissionsBoundaryResponse x)
-> (forall x.
Rep DeleteRolePermissionsBoundaryResponse x
-> DeleteRolePermissionsBoundaryResponse)
-> Generic DeleteRolePermissionsBoundaryResponse
forall x.
Rep DeleteRolePermissionsBoundaryResponse x
-> DeleteRolePermissionsBoundaryResponse
forall x.
DeleteRolePermissionsBoundaryResponse
-> Rep DeleteRolePermissionsBoundaryResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DeleteRolePermissionsBoundaryResponse x
-> DeleteRolePermissionsBoundaryResponse
$cfrom :: forall x.
DeleteRolePermissionsBoundaryResponse
-> Rep DeleteRolePermissionsBoundaryResponse x
Prelude.Generic)
newDeleteRolePermissionsBoundaryResponse ::
DeleteRolePermissionsBoundaryResponse
newDeleteRolePermissionsBoundaryResponse :: DeleteRolePermissionsBoundaryResponse
newDeleteRolePermissionsBoundaryResponse =
DeleteRolePermissionsBoundaryResponse
DeleteRolePermissionsBoundaryResponse'
instance
Prelude.NFData
DeleteRolePermissionsBoundaryResponse