{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE TypeFamilies          #-}
module Aws.Iam.Commands.DeleteGroup
    ( DeleteGroup(..)
    , DeleteGroupResponse(..)
    ) where

import           Aws.Core
import           Aws.Iam.Core
import           Aws.Iam.Internal
import           Data.Text          (Text)
import           Data.Typeable

-- | Deletes the specified group.
--
-- <http://docs.aws.amazon.com/IAM/latest/APIReference/API_DeleteGroup.html>
data DeleteGroup = DeleteGroup Text
    deriving (DeleteGroup -> DeleteGroup -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteGroup -> DeleteGroup -> Bool
$c/= :: DeleteGroup -> DeleteGroup -> Bool
== :: DeleteGroup -> DeleteGroup -> Bool
$c== :: DeleteGroup -> DeleteGroup -> Bool
Eq, Eq DeleteGroup
DeleteGroup -> DeleteGroup -> Bool
DeleteGroup -> DeleteGroup -> Ordering
DeleteGroup -> DeleteGroup -> DeleteGroup
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 :: DeleteGroup -> DeleteGroup -> DeleteGroup
$cmin :: DeleteGroup -> DeleteGroup -> DeleteGroup
max :: DeleteGroup -> DeleteGroup -> DeleteGroup
$cmax :: DeleteGroup -> DeleteGroup -> DeleteGroup
>= :: DeleteGroup -> DeleteGroup -> Bool
$c>= :: DeleteGroup -> DeleteGroup -> Bool
> :: DeleteGroup -> DeleteGroup -> Bool
$c> :: DeleteGroup -> DeleteGroup -> Bool
<= :: DeleteGroup -> DeleteGroup -> Bool
$c<= :: DeleteGroup -> DeleteGroup -> Bool
< :: DeleteGroup -> DeleteGroup -> Bool
$c< :: DeleteGroup -> DeleteGroup -> Bool
compare :: DeleteGroup -> DeleteGroup -> Ordering
$ccompare :: DeleteGroup -> DeleteGroup -> Ordering
Ord, Int -> DeleteGroup -> ShowS
[DeleteGroup] -> ShowS
DeleteGroup -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteGroup] -> ShowS
$cshowList :: [DeleteGroup] -> ShowS
show :: DeleteGroup -> String
$cshow :: DeleteGroup -> String
showsPrec :: Int -> DeleteGroup -> ShowS
$cshowsPrec :: Int -> DeleteGroup -> ShowS
Show, Typeable)

instance SignQuery DeleteGroup where
    type ServiceConfiguration DeleteGroup = IamConfiguration
    signQuery :: forall queryType.
DeleteGroup
-> ServiceConfiguration DeleteGroup queryType
-> SignatureData
-> SignedQuery
signQuery (DeleteGroup Text
groupName)
        = forall qt.
ByteString
-> [(ByteString, Text)]
-> IamConfiguration qt
-> SignatureData
-> SignedQuery
iamAction ByteString
"DeleteGroup" [(ByteString
"GroupName", Text
groupName)]

data DeleteGroupResponse = DeleteGroupResponse
    deriving (DeleteGroupResponse -> DeleteGroupResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DeleteGroupResponse -> DeleteGroupResponse -> Bool
$c/= :: DeleteGroupResponse -> DeleteGroupResponse -> Bool
== :: DeleteGroupResponse -> DeleteGroupResponse -> Bool
$c== :: DeleteGroupResponse -> DeleteGroupResponse -> Bool
Eq, Eq DeleteGroupResponse
DeleteGroupResponse -> DeleteGroupResponse -> Bool
DeleteGroupResponse -> DeleteGroupResponse -> Ordering
DeleteGroupResponse -> DeleteGroupResponse -> DeleteGroupResponse
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 :: DeleteGroupResponse -> DeleteGroupResponse -> DeleteGroupResponse
$cmin :: DeleteGroupResponse -> DeleteGroupResponse -> DeleteGroupResponse
max :: DeleteGroupResponse -> DeleteGroupResponse -> DeleteGroupResponse
$cmax :: DeleteGroupResponse -> DeleteGroupResponse -> DeleteGroupResponse
>= :: DeleteGroupResponse -> DeleteGroupResponse -> Bool
$c>= :: DeleteGroupResponse -> DeleteGroupResponse -> Bool
> :: DeleteGroupResponse -> DeleteGroupResponse -> Bool
$c> :: DeleteGroupResponse -> DeleteGroupResponse -> Bool
<= :: DeleteGroupResponse -> DeleteGroupResponse -> Bool
$c<= :: DeleteGroupResponse -> DeleteGroupResponse -> Bool
< :: DeleteGroupResponse -> DeleteGroupResponse -> Bool
$c< :: DeleteGroupResponse -> DeleteGroupResponse -> Bool
compare :: DeleteGroupResponse -> DeleteGroupResponse -> Ordering
$ccompare :: DeleteGroupResponse -> DeleteGroupResponse -> Ordering
Ord, Int -> DeleteGroupResponse -> ShowS
[DeleteGroupResponse] -> ShowS
DeleteGroupResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DeleteGroupResponse] -> ShowS
$cshowList :: [DeleteGroupResponse] -> ShowS
show :: DeleteGroupResponse -> String
$cshow :: DeleteGroupResponse -> String
showsPrec :: Int -> DeleteGroupResponse -> ShowS
$cshowsPrec :: Int -> DeleteGroupResponse -> ShowS
Show, Typeable)

instance ResponseConsumer DeleteGroup DeleteGroupResponse where
    type ResponseMetadata DeleteGroupResponse = IamMetadata
    responseConsumer :: Request
-> DeleteGroup
-> IORef (ResponseMetadata DeleteGroupResponse)
-> HTTPResponseConsumer DeleteGroupResponse
responseConsumer Request
_ DeleteGroup
_
        = 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 DeleteGroupResponse
DeleteGroupResponse)

instance Transaction DeleteGroup DeleteGroupResponse

instance AsMemoryResponse DeleteGroupResponse where
    type MemoryResponse DeleteGroupResponse = DeleteGroupResponse
    loadToMemory :: DeleteGroupResponse
-> ResourceT IO (MemoryResponse DeleteGroupResponse)
loadToMemory = forall (m :: * -> *) a. Monad m => a -> m a
return