{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies #-}
module Aws.Iam.Commands.DeleteUser
( DeleteUser(..)
, DeleteUserResponse(..)
) where
import Aws.Core
import Aws.Iam.Core
import Aws.Iam.Internal
import Data.Text (Text)
import Data.Typeable
data DeleteUser = DeleteUser Text
deriving (DeleteUser -> DeleteUser -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteUser -> DeleteUser -> Bool
$c/= :: DeleteUser -> DeleteUser -> Bool
== :: DeleteUser -> DeleteUser -> Bool
$c== :: DeleteUser -> DeleteUser -> Bool
Eq, Eq DeleteUser
DeleteUser -> DeleteUser -> Bool
DeleteUser -> DeleteUser -> Ordering
DeleteUser -> DeleteUser -> DeleteUser
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: DeleteUser -> DeleteUser -> DeleteUser
$cmin :: DeleteUser -> DeleteUser -> DeleteUser
max :: DeleteUser -> DeleteUser -> DeleteUser
$cmax :: DeleteUser -> DeleteUser -> DeleteUser
>= :: DeleteUser -> DeleteUser -> Bool
$c>= :: DeleteUser -> DeleteUser -> Bool
> :: DeleteUser -> DeleteUser -> Bool
$c> :: DeleteUser -> DeleteUser -> Bool
<= :: DeleteUser -> DeleteUser -> Bool
$c<= :: DeleteUser -> DeleteUser -> Bool
< :: DeleteUser -> DeleteUser -> Bool
$c< :: DeleteUser -> DeleteUser -> Bool
compare :: DeleteUser -> DeleteUser -> Ordering
$ccompare :: DeleteUser -> DeleteUser -> Ordering
Ord, Int -> DeleteUser -> ShowS
[DeleteUser] -> ShowS
DeleteUser -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteUser] -> ShowS
$cshowList :: [DeleteUser] -> ShowS
show :: DeleteUser -> String
$cshow :: DeleteUser -> String
showsPrec :: Int -> DeleteUser -> ShowS
$cshowsPrec :: Int -> DeleteUser -> ShowS
Show, Typeable)
instance SignQuery DeleteUser where
type ServiceConfiguration DeleteUser = IamConfiguration
signQuery :: forall queryType.
DeleteUser
-> ServiceConfiguration DeleteUser queryType
-> SignatureData
-> SignedQuery
signQuery (DeleteUser Text
userName)
= forall qt.
ByteString
-> [(ByteString, Text)]
-> IamConfiguration qt
-> SignatureData
-> SignedQuery
iamAction ByteString
"DeleteUser" [(ByteString
"UserName", Text
userName)]
data DeleteUserResponse = DeleteUserResponse
deriving (DeleteUserResponse -> DeleteUserResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteUserResponse -> DeleteUserResponse -> Bool
$c/= :: DeleteUserResponse -> DeleteUserResponse -> Bool
== :: DeleteUserResponse -> DeleteUserResponse -> Bool
$c== :: DeleteUserResponse -> DeleteUserResponse -> Bool
Eq, Eq DeleteUserResponse
DeleteUserResponse -> DeleteUserResponse -> Bool
DeleteUserResponse -> DeleteUserResponse -> Ordering
DeleteUserResponse -> DeleteUserResponse -> DeleteUserResponse
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: DeleteUserResponse -> DeleteUserResponse -> DeleteUserResponse
$cmin :: DeleteUserResponse -> DeleteUserResponse -> DeleteUserResponse
max :: DeleteUserResponse -> DeleteUserResponse -> DeleteUserResponse
$cmax :: DeleteUserResponse -> DeleteUserResponse -> DeleteUserResponse
>= :: DeleteUserResponse -> DeleteUserResponse -> Bool
$c>= :: DeleteUserResponse -> DeleteUserResponse -> Bool
> :: DeleteUserResponse -> DeleteUserResponse -> Bool
$c> :: DeleteUserResponse -> DeleteUserResponse -> Bool
<= :: DeleteUserResponse -> DeleteUserResponse -> Bool
$c<= :: DeleteUserResponse -> DeleteUserResponse -> Bool
< :: DeleteUserResponse -> DeleteUserResponse -> Bool
$c< :: DeleteUserResponse -> DeleteUserResponse -> Bool
compare :: DeleteUserResponse -> DeleteUserResponse -> Ordering
$ccompare :: DeleteUserResponse -> DeleteUserResponse -> Ordering
Ord, Int -> DeleteUserResponse -> ShowS
[DeleteUserResponse] -> ShowS
DeleteUserResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteUserResponse] -> ShowS
$cshowList :: [DeleteUserResponse] -> ShowS
show :: DeleteUserResponse -> String
$cshow :: DeleteUserResponse -> String
showsPrec :: Int -> DeleteUserResponse -> ShowS
$cshowsPrec :: Int -> DeleteUserResponse -> ShowS
Show, Typeable)
instance ResponseConsumer DeleteUser DeleteUserResponse where
type ResponseMetadata DeleteUserResponse = IamMetadata
responseConsumer :: Request
-> DeleteUser
-> IORef (ResponseMetadata DeleteUserResponse)
-> HTTPResponseConsumer DeleteUserResponse
responseConsumer Request
_ DeleteUser
_
= forall a.
(Cursor -> Response IamMetadata a)
-> IORef IamMetadata -> HTTPResponseConsumer a
iamResponseConsumer (forall a b. a -> b -> a
const forall a b. (a -> b) -> a -> b
$ forall (m :: * -> *) a. Monad m => a -> m a
return DeleteUserResponse
DeleteUserResponse)
instance Transaction DeleteUser DeleteUserResponse
instance AsMemoryResponse DeleteUserResponse where
type MemoryResponse DeleteUserResponse = DeleteUserResponse
loadToMemory :: DeleteUserResponse
-> ResourceT IO (MemoryResponse DeleteUserResponse)
loadToMemory = forall (m :: * -> *) a. Monad m => a -> m a
return