{-# 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.FMS.DisassociateAdminAccount
(
DisassociateAdminAccount (..),
newDisassociateAdminAccount,
DisassociateAdminAccountResponse (..),
newDisassociateAdminAccountResponse,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.FMS.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DisassociateAdminAccount = DisassociateAdminAccount'
{
}
deriving (DisassociateAdminAccount -> DisassociateAdminAccount -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateAdminAccount -> DisassociateAdminAccount -> Bool
$c/= :: DisassociateAdminAccount -> DisassociateAdminAccount -> Bool
== :: DisassociateAdminAccount -> DisassociateAdminAccount -> Bool
$c== :: DisassociateAdminAccount -> DisassociateAdminAccount -> Bool
Prelude.Eq, ReadPrec [DisassociateAdminAccount]
ReadPrec DisassociateAdminAccount
Int -> ReadS DisassociateAdminAccount
ReadS [DisassociateAdminAccount]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateAdminAccount]
$creadListPrec :: ReadPrec [DisassociateAdminAccount]
readPrec :: ReadPrec DisassociateAdminAccount
$creadPrec :: ReadPrec DisassociateAdminAccount
readList :: ReadS [DisassociateAdminAccount]
$creadList :: ReadS [DisassociateAdminAccount]
readsPrec :: Int -> ReadS DisassociateAdminAccount
$creadsPrec :: Int -> ReadS DisassociateAdminAccount
Prelude.Read, Int -> DisassociateAdminAccount -> ShowS
[DisassociateAdminAccount] -> ShowS
DisassociateAdminAccount -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateAdminAccount] -> ShowS
$cshowList :: [DisassociateAdminAccount] -> ShowS
show :: DisassociateAdminAccount -> String
$cshow :: DisassociateAdminAccount -> String
showsPrec :: Int -> DisassociateAdminAccount -> ShowS
$cshowsPrec :: Int -> DisassociateAdminAccount -> ShowS
Prelude.Show, forall x.
Rep DisassociateAdminAccount x -> DisassociateAdminAccount
forall x.
DisassociateAdminAccount -> Rep DisassociateAdminAccount x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateAdminAccount x -> DisassociateAdminAccount
$cfrom :: forall x.
DisassociateAdminAccount -> Rep DisassociateAdminAccount x
Prelude.Generic)
newDisassociateAdminAccount ::
DisassociateAdminAccount
newDisassociateAdminAccount :: DisassociateAdminAccount
newDisassociateAdminAccount =
DisassociateAdminAccount
DisassociateAdminAccount'
instance Core.AWSRequest DisassociateAdminAccount where
type
AWSResponse DisassociateAdminAccount =
DisassociateAdminAccountResponse
request :: (Service -> Service)
-> DisassociateAdminAccount -> Request DisassociateAdminAccount
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy DisassociateAdminAccount
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DisassociateAdminAccount)))
response =
forall (m :: * -> *) a.
MonadResource m =>
AWSResponse a
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveNull
DisassociateAdminAccountResponse
DisassociateAdminAccountResponse'
instance Prelude.Hashable DisassociateAdminAccount where
hashWithSalt :: Int -> DisassociateAdminAccount -> Int
hashWithSalt Int
_salt DisassociateAdminAccount
_ =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` ()
instance Prelude.NFData DisassociateAdminAccount where
rnf :: DisassociateAdminAccount -> ()
rnf DisassociateAdminAccount
_ = ()
instance Data.ToHeaders DisassociateAdminAccount where
toHeaders :: DisassociateAdminAccount -> [Header]
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> [Header]
Data.=# ( ByteString
"AWSFMS_20180101.DisassociateAdminAccount" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> [Header]
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON DisassociateAdminAccount where
toJSON :: DisassociateAdminAccount -> Value
toJSON = forall a b. a -> b -> a
Prelude.const (Object -> Value
Data.Object forall a. Monoid a => a
Prelude.mempty)
instance Data.ToPath DisassociateAdminAccount where
toPath :: DisassociateAdminAccount -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery DisassociateAdminAccount where
toQuery :: DisassociateAdminAccount -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DisassociateAdminAccountResponse = DisassociateAdminAccountResponse'
{
}
deriving (DisassociateAdminAccountResponse
-> DisassociateAdminAccountResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DisassociateAdminAccountResponse
-> DisassociateAdminAccountResponse -> Bool
$c/= :: DisassociateAdminAccountResponse
-> DisassociateAdminAccountResponse -> Bool
== :: DisassociateAdminAccountResponse
-> DisassociateAdminAccountResponse -> Bool
$c== :: DisassociateAdminAccountResponse
-> DisassociateAdminAccountResponse -> Bool
Prelude.Eq, ReadPrec [DisassociateAdminAccountResponse]
ReadPrec DisassociateAdminAccountResponse
Int -> ReadS DisassociateAdminAccountResponse
ReadS [DisassociateAdminAccountResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DisassociateAdminAccountResponse]
$creadListPrec :: ReadPrec [DisassociateAdminAccountResponse]
readPrec :: ReadPrec DisassociateAdminAccountResponse
$creadPrec :: ReadPrec DisassociateAdminAccountResponse
readList :: ReadS [DisassociateAdminAccountResponse]
$creadList :: ReadS [DisassociateAdminAccountResponse]
readsPrec :: Int -> ReadS DisassociateAdminAccountResponse
$creadsPrec :: Int -> ReadS DisassociateAdminAccountResponse
Prelude.Read, Int -> DisassociateAdminAccountResponse -> ShowS
[DisassociateAdminAccountResponse] -> ShowS
DisassociateAdminAccountResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DisassociateAdminAccountResponse] -> ShowS
$cshowList :: [DisassociateAdminAccountResponse] -> ShowS
show :: DisassociateAdminAccountResponse -> String
$cshow :: DisassociateAdminAccountResponse -> String
showsPrec :: Int -> DisassociateAdminAccountResponse -> ShowS
$cshowsPrec :: Int -> DisassociateAdminAccountResponse -> ShowS
Prelude.Show, forall x.
Rep DisassociateAdminAccountResponse x
-> DisassociateAdminAccountResponse
forall x.
DisassociateAdminAccountResponse
-> Rep DisassociateAdminAccountResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DisassociateAdminAccountResponse x
-> DisassociateAdminAccountResponse
$cfrom :: forall x.
DisassociateAdminAccountResponse
-> Rep DisassociateAdminAccountResponse x
Prelude.Generic)
newDisassociateAdminAccountResponse ::
DisassociateAdminAccountResponse
newDisassociateAdminAccountResponse :: DisassociateAdminAccountResponse
newDisassociateAdminAccountResponse =
DisassociateAdminAccountResponse
DisassociateAdminAccountResponse'
instance
Prelude.NFData
DisassociateAdminAccountResponse
where
rnf :: DisassociateAdminAccountResponse -> ()
rnf DisassociateAdminAccountResponse
_ = ()