{-# 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.DisassociateRouteTable
(
disassociateRouteTable
, DisassociateRouteTable
, drtDryRun
, drtAssociationId
, disassociateRouteTableResponse
, DisassociateRouteTableResponse
) 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
data DisassociateRouteTable = DisassociateRouteTable'
{ _drtDryRun :: !(Maybe Bool)
, _drtAssociationId :: !Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
disassociateRouteTable
:: Text
-> DisassociateRouteTable
disassociateRouteTable pAssociationId_ =
DisassociateRouteTable'
{_drtDryRun = Nothing, _drtAssociationId = pAssociationId_}
drtDryRun :: Lens' DisassociateRouteTable (Maybe Bool)
drtDryRun = lens _drtDryRun (\ s a -> s{_drtDryRun = a})
drtAssociationId :: Lens' DisassociateRouteTable Text
drtAssociationId = lens _drtAssociationId (\ s a -> s{_drtAssociationId = a})
instance AWSRequest DisassociateRouteTable where
type Rs DisassociateRouteTable =
DisassociateRouteTableResponse
request = postQuery ec2
response
= receiveNull DisassociateRouteTableResponse'
instance Hashable DisassociateRouteTable where
instance NFData DisassociateRouteTable where
instance ToHeaders DisassociateRouteTable where
toHeaders = const mempty
instance ToPath DisassociateRouteTable where
toPath = const "/"
instance ToQuery DisassociateRouteTable where
toQuery DisassociateRouteTable'{..}
= mconcat
["Action" =:
("DisassociateRouteTable" :: ByteString),
"Version" =: ("2016-11-15" :: ByteString),
"DryRun" =: _drtDryRun,
"AssociationId" =: _drtAssociationId]
data DisassociateRouteTableResponse =
DisassociateRouteTableResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
disassociateRouteTableResponse
:: DisassociateRouteTableResponse
disassociateRouteTableResponse = DisassociateRouteTableResponse'
instance NFData DisassociateRouteTableResponse where