module Network.AWS.CodeDeploy.DeleteDeploymentConfig
(
DeleteDeploymentConfig
, deleteDeploymentConfig
, ddcDeploymentConfigName
, DeleteDeploymentConfigResponse
, deleteDeploymentConfigResponse
) where
import Network.AWS.Prelude
import Network.AWS.Request.JSON
import Network.AWS.CodeDeploy.Types
import qualified GHC.Exts
newtype DeleteDeploymentConfig = DeleteDeploymentConfig
{ _ddcDeploymentConfigName :: Text
} deriving (Eq, Ord, Read, Show, Monoid, IsString)
deleteDeploymentConfig :: Text
-> DeleteDeploymentConfig
deleteDeploymentConfig p1 = DeleteDeploymentConfig
{ _ddcDeploymentConfigName = p1
}
ddcDeploymentConfigName :: Lens' DeleteDeploymentConfig Text
ddcDeploymentConfigName =
lens _ddcDeploymentConfigName (\s a -> s { _ddcDeploymentConfigName = a })
data DeleteDeploymentConfigResponse = DeleteDeploymentConfigResponse
deriving (Eq, Ord, Read, Show, Generic)
deleteDeploymentConfigResponse :: DeleteDeploymentConfigResponse
deleteDeploymentConfigResponse = DeleteDeploymentConfigResponse
instance ToPath DeleteDeploymentConfig where
toPath = const "/"
instance ToQuery DeleteDeploymentConfig where
toQuery = const mempty
instance ToHeaders DeleteDeploymentConfig
instance ToJSON DeleteDeploymentConfig where
toJSON DeleteDeploymentConfig{..} = object
[ "deploymentConfigName" .= _ddcDeploymentConfigName
]
instance AWSRequest DeleteDeploymentConfig where
type Sv DeleteDeploymentConfig = CodeDeploy
type Rs DeleteDeploymentConfig = DeleteDeploymentConfigResponse
request = post "DeleteDeploymentConfig"
response = nullResponse DeleteDeploymentConfigResponse