{-# 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.DeviceFarm.DeleteVPCEConfiguration
(
deleteVPCEConfiguration
, DeleteVPCEConfiguration
, dvecArn
, deleteVPCEConfigurationResponse
, DeleteVPCEConfigurationResponse
, dvecrsResponseStatus
) where
import Network.AWS.DeviceFarm.Types
import Network.AWS.DeviceFarm.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteVPCEConfiguration = DeleteVPCEConfiguration'
{ _dvecArn :: Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteVPCEConfiguration
:: Text
-> DeleteVPCEConfiguration
deleteVPCEConfiguration pArn_ = DeleteVPCEConfiguration' {_dvecArn = pArn_}
dvecArn :: Lens' DeleteVPCEConfiguration Text
dvecArn = lens _dvecArn (\ s a -> s{_dvecArn = a})
instance AWSRequest DeleteVPCEConfiguration where
type Rs DeleteVPCEConfiguration =
DeleteVPCEConfigurationResponse
request = postJSON deviceFarm
response
= receiveEmpty
(\ s h x ->
DeleteVPCEConfigurationResponse' <$>
(pure (fromEnum s)))
instance Hashable DeleteVPCEConfiguration where
instance NFData DeleteVPCEConfiguration where
instance ToHeaders DeleteVPCEConfiguration where
toHeaders
= const
(mconcat
["X-Amz-Target" =#
("DeviceFarm_20150623.DeleteVPCEConfiguration" ::
ByteString),
"Content-Type" =#
("application/x-amz-json-1.1" :: ByteString)])
instance ToJSON DeleteVPCEConfiguration where
toJSON DeleteVPCEConfiguration'{..}
= object (catMaybes [Just ("arn" .= _dvecArn)])
instance ToPath DeleteVPCEConfiguration where
toPath = const "/"
instance ToQuery DeleteVPCEConfiguration where
toQuery = const mempty
newtype DeleteVPCEConfigurationResponse = DeleteVPCEConfigurationResponse'
{ _dvecrsResponseStatus :: Int
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteVPCEConfigurationResponse
:: Int
-> DeleteVPCEConfigurationResponse
deleteVPCEConfigurationResponse pResponseStatus_ =
DeleteVPCEConfigurationResponse' {_dvecrsResponseStatus = pResponseStatus_}
dvecrsResponseStatus :: Lens' DeleteVPCEConfigurationResponse Int
dvecrsResponseStatus = lens _dvecrsResponseStatus (\ s a -> s{_dvecrsResponseStatus = a})
instance NFData DeleteVPCEConfigurationResponse where