{-# 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.DisableVGWRoutePropagation
(
disableVGWRoutePropagation
, DisableVGWRoutePropagation
, dvrpGatewayId
, dvrpRouteTableId
, disableVGWRoutePropagationResponse
, DisableVGWRoutePropagationResponse
) 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 DisableVGWRoutePropagation = DisableVGWRoutePropagation'
{ _dvrpGatewayId :: !Text
, _dvrpRouteTableId :: !Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
disableVGWRoutePropagation
:: Text
-> Text
-> DisableVGWRoutePropagation
disableVGWRoutePropagation pGatewayId_ pRouteTableId_ =
DisableVGWRoutePropagation'
{_dvrpGatewayId = pGatewayId_, _dvrpRouteTableId = pRouteTableId_}
dvrpGatewayId :: Lens' DisableVGWRoutePropagation Text
dvrpGatewayId = lens _dvrpGatewayId (\ s a -> s{_dvrpGatewayId = a})
dvrpRouteTableId :: Lens' DisableVGWRoutePropagation Text
dvrpRouteTableId = lens _dvrpRouteTableId (\ s a -> s{_dvrpRouteTableId = a})
instance AWSRequest DisableVGWRoutePropagation where
type Rs DisableVGWRoutePropagation =
DisableVGWRoutePropagationResponse
request = postQuery ec2
response
= receiveNull DisableVGWRoutePropagationResponse'
instance Hashable DisableVGWRoutePropagation where
instance NFData DisableVGWRoutePropagation where
instance ToHeaders DisableVGWRoutePropagation where
toHeaders = const mempty
instance ToPath DisableVGWRoutePropagation where
toPath = const "/"
instance ToQuery DisableVGWRoutePropagation where
toQuery DisableVGWRoutePropagation'{..}
= mconcat
["Action" =:
("DisableVgwRoutePropagation" :: ByteString),
"Version" =: ("2016-11-15" :: ByteString),
"GatewayId" =: _dvrpGatewayId,
"RouteTableId" =: _dvrpRouteTableId]
data DisableVGWRoutePropagationResponse =
DisableVGWRoutePropagationResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
disableVGWRoutePropagationResponse
:: DisableVGWRoutePropagationResponse
disableVGWRoutePropagationResponse = DisableVGWRoutePropagationResponse'
instance NFData DisableVGWRoutePropagationResponse
where