{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Network.AWS.Organizations.DeleteOrganization
(
deleteOrganization
, DeleteOrganization
, deleteOrganizationResponse
, DeleteOrganizationResponse
) where
import Network.AWS.Lens
import Network.AWS.Organizations.Types
import Network.AWS.Organizations.Types.Product
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
data DeleteOrganization =
DeleteOrganization'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteOrganization
:: DeleteOrganization
deleteOrganization = DeleteOrganization'
instance AWSRequest DeleteOrganization where
type Rs DeleteOrganization =
DeleteOrganizationResponse
request = postJSON organizations
response = receiveNull DeleteOrganizationResponse'
instance Hashable DeleteOrganization where
instance NFData DeleteOrganization where
instance ToHeaders DeleteOrganization where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("AWSOrganizationsV20161128.DeleteOrganization" ::
ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToJSON DeleteOrganization where
toJSON = const (Object mempty)
instance ToPath DeleteOrganization where
toPath = const "/"
instance ToQuery DeleteOrganization where
toQuery = const mempty
data DeleteOrganizationResponse =
DeleteOrganizationResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteOrganizationResponse
:: DeleteOrganizationResponse
deleteOrganizationResponse = DeleteOrganizationResponse'
instance NFData DeleteOrganizationResponse where