{-# 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.EC2.DeleteSpotDatafeedSubscription
(
deleteSpotDatafeedSubscription
, DeleteSpotDatafeedSubscription
, dsdssDryRun
, deleteSpotDatafeedSubscriptionResponse
, DeleteSpotDatafeedSubscriptionResponse
) where
import Network.AWS.EC2.Types
import Network.AWS.EC2.Types.Product
import Network.AWS.Lens
import Network.AWS.Prelude
import Network.AWS.Request
import Network.AWS.Response
newtype DeleteSpotDatafeedSubscription = DeleteSpotDatafeedSubscription'
{ _dsdssDryRun :: Maybe Bool
} deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteSpotDatafeedSubscription
:: DeleteSpotDatafeedSubscription
deleteSpotDatafeedSubscription =
DeleteSpotDatafeedSubscription' {_dsdssDryRun = Nothing}
dsdssDryRun :: Lens' DeleteSpotDatafeedSubscription (Maybe Bool)
dsdssDryRun = lens _dsdssDryRun (\ s a -> s{_dsdssDryRun = a})
instance AWSRequest DeleteSpotDatafeedSubscription
where
type Rs DeleteSpotDatafeedSubscription =
DeleteSpotDatafeedSubscriptionResponse
request = postQuery ec2
response
= receiveNull DeleteSpotDatafeedSubscriptionResponse'
instance Hashable DeleteSpotDatafeedSubscription
where
instance NFData DeleteSpotDatafeedSubscription where
instance ToHeaders DeleteSpotDatafeedSubscription
where
toHeaders = const mempty
instance ToPath DeleteSpotDatafeedSubscription where
toPath = const "/"
instance ToQuery DeleteSpotDatafeedSubscription where
toQuery DeleteSpotDatafeedSubscription'{..}
= mconcat
["Action" =:
("DeleteSpotDatafeedSubscription" :: ByteString),
"Version" =: ("2016-11-15" :: ByteString),
"DryRun" =: _dsdssDryRun]
data DeleteSpotDatafeedSubscriptionResponse =
DeleteSpotDatafeedSubscriptionResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
deleteSpotDatafeedSubscriptionResponse
:: DeleteSpotDatafeedSubscriptionResponse
deleteSpotDatafeedSubscriptionResponse = DeleteSpotDatafeedSubscriptionResponse'
instance NFData
DeleteSpotDatafeedSubscriptionResponse
where