{-# 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
(DeleteUser -> DeleteUser -> Bool)
-> (DeleteUser -> DeleteUser -> Bool) -> Eq DeleteUser
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
Eq DeleteUser
-> (DeleteUser -> DeleteUser -> Ordering)
-> (DeleteUser -> DeleteUser -> Bool)
-> (DeleteUser -> DeleteUser -> Bool)
-> (DeleteUser -> DeleteUser -> Bool)
-> (DeleteUser -> DeleteUser -> Bool)
-> (DeleteUser -> DeleteUser -> DeleteUser)
-> (DeleteUser -> DeleteUser -> DeleteUser)
-> Ord 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
$cp1Ord :: Eq DeleteUser
Ord, Int -> DeleteUser -> ShowS
[DeleteUser] -> ShowS
DeleteUser -> String
(Int -> DeleteUser -> ShowS)
-> (DeleteUser -> String)
-> ([DeleteUser] -> ShowS)
-> Show DeleteUser
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 :: DeleteUser
-> ServiceConfiguration DeleteUser queryType
-> SignatureData
-> SignedQuery
signQuery (DeleteUser Text
userName)
= ByteString
-> [(ByteString, Text)]
-> IamConfiguration queryType
-> SignatureData
-> SignedQuery
forall qt.
ByteString
-> [(ByteString, Text)]
-> IamConfiguration qt
-> SignatureData
-> SignedQuery
iamAction ByteString
"DeleteUser" [(ByteString
"UserName", Text
userName)]
data DeleteUserResponse = DeleteUserResponse
deriving (DeleteUserResponse -> DeleteUserResponse -> Bool
(DeleteUserResponse -> DeleteUserResponse -> Bool)
-> (DeleteUserResponse -> DeleteUserResponse -> Bool)
-> Eq DeleteUserResponse
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
Eq DeleteUserResponse
-> (DeleteUserResponse -> DeleteUserResponse -> Ordering)
-> (DeleteUserResponse -> DeleteUserResponse -> Bool)
-> (DeleteUserResponse -> DeleteUserResponse -> Bool)
-> (DeleteUserResponse -> DeleteUserResponse -> Bool)
-> (DeleteUserResponse -> DeleteUserResponse -> Bool)
-> (DeleteUserResponse -> DeleteUserResponse -> DeleteUserResponse)
-> (DeleteUserResponse -> DeleteUserResponse -> DeleteUserResponse)
-> Ord 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
$cp1Ord :: Eq DeleteUserResponse
Ord, Int -> DeleteUserResponse -> ShowS
[DeleteUserResponse] -> ShowS
DeleteUserResponse -> String
(Int -> DeleteUserResponse -> ShowS)
-> (DeleteUserResponse -> String)
-> ([DeleteUserResponse] -> ShowS)
-> Show DeleteUserResponse
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
_
= (Cursor -> Response IamMetadata DeleteUserResponse)
-> IORef IamMetadata -> HTTPResponseConsumer DeleteUserResponse
forall a.
(Cursor -> Response IamMetadata a)
-> IORef IamMetadata -> HTTPResponseConsumer a
iamResponseConsumer (Response IamMetadata DeleteUserResponse
-> Cursor -> Response IamMetadata DeleteUserResponse
forall a b. a -> b -> a
const (Response IamMetadata DeleteUserResponse
-> Cursor -> Response IamMetadata DeleteUserResponse)
-> Response IamMetadata DeleteUserResponse
-> Cursor
-> Response IamMetadata DeleteUserResponse
forall a b. (a -> b) -> a -> b
$ DeleteUserResponse -> Response IamMetadata DeleteUserResponse
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 = DeleteUserResponse
-> ResourceT IO (MemoryResponse DeleteUserResponse)
forall (m :: * -> *) a. Monad m => a -> m a
return