module Network.AWS.CognitoIdentity.DeleteIdentityPool
(
deleteIdentityPool
, DeleteIdentityPool
, dIdentityPoolId
, deleteIdentityPoolResponse
, DeleteIdentityPoolResponse
) where
import Network.AWS.CognitoIdentity.Types
import Network.AWS.CognitoIdentity.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteIdentityPool = DeleteIdentityPool'
{ _dIdentityPoolId :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteIdentityPool
:: Text
-> DeleteIdentityPool
deleteIdentityPool pIdentityPoolId_ =
DeleteIdentityPool'
{ _dIdentityPoolId = pIdentityPoolId_
}
dIdentityPoolId :: Lens' DeleteIdentityPool Text
dIdentityPoolId = lens _dIdentityPoolId (\ s a -> s{_dIdentityPoolId = a});
instance AWSRequest DeleteIdentityPool where
type Rs DeleteIdentityPool =
DeleteIdentityPoolResponse
request = postJSON cognitoIdentity
response = receiveNull DeleteIdentityPoolResponse'
instance Hashable DeleteIdentityPool
instance ToHeaders DeleteIdentityPool where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("AWSCognitoIdentityService.DeleteIdentityPool" ::
ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToJSON DeleteIdentityPool where
toJSON DeleteIdentityPool'{..}
= object
(catMaybes
[Just ("IdentityPoolId" .= _dIdentityPoolId)])
instance ToPath DeleteIdentityPool where
toPath = const "/"
instance ToQuery DeleteIdentityPool where
toQuery = const mempty
data DeleteIdentityPoolResponse =
DeleteIdentityPoolResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteIdentityPoolResponse
:: DeleteIdentityPoolResponse
deleteIdentityPoolResponse = DeleteIdentityPoolResponse'