{-# 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.GameLift.DeleteBuild
(
deleteBuild
, DeleteBuild
, dbBuildId
, deleteBuildResponse
, DeleteBuildResponse
) where
import Network.AWS.GameLift.Types
import Network.AWS.GameLift.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteBuild = DeleteBuild'
{ _dbBuildId :: Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteBuild
:: Text
-> DeleteBuild
deleteBuild pBuildId_ =
DeleteBuild'
{ _dbBuildId = pBuildId_
}
dbBuildId :: Lens' DeleteBuild Text
dbBuildId = lens _dbBuildId (\ s a -> s{_dbBuildId = a});
instance AWSRequest DeleteBuild where
type Rs DeleteBuild = DeleteBuildResponse
request = postJSON gameLift
response = receiveNull DeleteBuildResponse'
instance Hashable DeleteBuild
instance NFData DeleteBuild
instance ToHeaders DeleteBuild where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("GameLift.DeleteBuild" :: ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToJSON DeleteBuild where
toJSON DeleteBuild'{..}
= object (catMaybes [Just ("BuildId" .= _dbBuildId)])
instance ToPath DeleteBuild where
toPath = const "/"
instance ToQuery DeleteBuild where
toQuery = const mempty
data DeleteBuildResponse =
DeleteBuildResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
deleteBuildResponse
:: DeleteBuildResponse
deleteBuildResponse = DeleteBuildResponse'
instance NFData DeleteBuildResponse