{-# 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.Redshift.DeleteClusterSecurityGroup
(
deleteClusterSecurityGroup
, DeleteClusterSecurityGroup
, dClusterSecurityGroupName
, deleteClusterSecurityGroupResponse
, DeleteClusterSecurityGroupResponse
) where
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Redshift.Types
import Network.AWS.Redshift.Types.Product
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteClusterSecurityGroup = DeleteClusterSecurityGroup'
{ _dClusterSecurityGroupName :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteClusterSecurityGroup
:: Text
-> DeleteClusterSecurityGroup
deleteClusterSecurityGroup pClusterSecurityGroupName_ =
DeleteClusterSecurityGroup'
{_dClusterSecurityGroupName = pClusterSecurityGroupName_}
dClusterSecurityGroupName :: Lens' DeleteClusterSecurityGroup Text
dClusterSecurityGroupName = lens _dClusterSecurityGroupName (\ s a -> s{_dClusterSecurityGroupName = a})
instance AWSRequest DeleteClusterSecurityGroup where
type Rs DeleteClusterSecurityGroup =
DeleteClusterSecurityGroupResponse
request = postQuery redshift
response
= receiveNull DeleteClusterSecurityGroupResponse'
instance Hashable DeleteClusterSecurityGroup where
instance NFData DeleteClusterSecurityGroup where
instance ToHeaders DeleteClusterSecurityGroup where
toHeaders = const mempty
instance ToPath DeleteClusterSecurityGroup where
toPath = const "/"
instance ToQuery DeleteClusterSecurityGroup where
toQuery DeleteClusterSecurityGroup'{..}
= mconcat
["Action" =:
("DeleteClusterSecurityGroup" :: ByteString),
"Version" =: ("2012-12-01" :: ByteString),
"ClusterSecurityGroupName" =:
_dClusterSecurityGroupName]
data DeleteClusterSecurityGroupResponse =
DeleteClusterSecurityGroupResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteClusterSecurityGroupResponse
:: DeleteClusterSecurityGroupResponse
deleteClusterSecurityGroupResponse = DeleteClusterSecurityGroupResponse'
instance NFData DeleteClusterSecurityGroupResponse
where