{-# 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.EnableVGWRoutePropagation
(
enableVGWRoutePropagation
, EnableVGWRoutePropagation
, evrpRouteTableId
, evrpGatewayId
, enableVGWRoutePropagationResponse
, EnableVGWRoutePropagationResponse
) 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 EnableVGWRoutePropagation = EnableVGWRoutePropagation'
{ _evrpRouteTableId :: !Text
, _evrpGatewayId :: !Text
} deriving (Eq,Read,Show,Data,Typeable,Generic)
enableVGWRoutePropagation
:: Text
-> Text
-> EnableVGWRoutePropagation
enableVGWRoutePropagation pRouteTableId_ pGatewayId_ =
EnableVGWRoutePropagation'
{ _evrpRouteTableId = pRouteTableId_
, _evrpGatewayId = pGatewayId_
}
evrpRouteTableId :: Lens' EnableVGWRoutePropagation Text
evrpRouteTableId = lens _evrpRouteTableId (\ s a -> s{_evrpRouteTableId = a});
evrpGatewayId :: Lens' EnableVGWRoutePropagation Text
evrpGatewayId = lens _evrpGatewayId (\ s a -> s{_evrpGatewayId = a});
instance AWSRequest EnableVGWRoutePropagation where
type Rs EnableVGWRoutePropagation =
EnableVGWRoutePropagationResponse
request = postQuery ec2
response
= receiveNull EnableVGWRoutePropagationResponse'
instance Hashable EnableVGWRoutePropagation
instance NFData EnableVGWRoutePropagation
instance ToHeaders EnableVGWRoutePropagation where
toHeaders = const mempty
instance ToPath EnableVGWRoutePropagation where
toPath = const "/"
instance ToQuery EnableVGWRoutePropagation where
toQuery EnableVGWRoutePropagation'{..}
= mconcat
["Action" =:
("EnableVgwRoutePropagation" :: ByteString),
"Version" =: ("2016-04-01" :: ByteString),
"RouteTableId" =: _evrpRouteTableId,
"GatewayId" =: _evrpGatewayId]
data EnableVGWRoutePropagationResponse =
EnableVGWRoutePropagationResponse'
deriving (Eq,Read,Show,Data,Typeable,Generic)
enableVGWRoutePropagationResponse
:: EnableVGWRoutePropagationResponse
enableVGWRoutePropagationResponse = EnableVGWRoutePropagationResponse'
instance NFData EnableVGWRoutePropagationResponse