module Network.AWS.EC2.EnableVGWRoutePropagation
(
enableVGWRoutePropagation
, EnableVGWRoutePropagation
, evrpGatewayId
, evrpRouteTableId
, 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'
{ _evrpGatewayId :: !Text
, _evrpRouteTableId :: !Text
} deriving (Eq, Read, Show, Data, Typeable, Generic)
enableVGWRoutePropagation
:: Text
-> Text
-> EnableVGWRoutePropagation
enableVGWRoutePropagation pGatewayId_ pRouteTableId_ =
EnableVGWRoutePropagation'
{_evrpGatewayId = pGatewayId_, _evrpRouteTableId = pRouteTableId_}
evrpGatewayId :: Lens' EnableVGWRoutePropagation Text
evrpGatewayId = lens _evrpGatewayId (\ s a -> s{_evrpGatewayId = a});
evrpRouteTableId :: Lens' EnableVGWRoutePropagation Text
evrpRouteTableId = lens _evrpRouteTableId (\ s a -> s{_evrpRouteTableId = a});
instance AWSRequest EnableVGWRoutePropagation where
type Rs EnableVGWRoutePropagation =
EnableVGWRoutePropagationResponse
request = postQuery ec2
response
= receiveNull EnableVGWRoutePropagationResponse'
instance Hashable EnableVGWRoutePropagation where
instance NFData EnableVGWRoutePropagation where
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-11-15" :: ByteString),
"GatewayId" =: _evrpGatewayId,
"RouteTableId" =: _evrpRouteTableId]
data EnableVGWRoutePropagationResponse =
EnableVGWRoutePropagationResponse'
deriving (Eq, Read, Show, Data, Typeable, Generic)
enableVGWRoutePropagationResponse
:: EnableVGWRoutePropagationResponse
enableVGWRoutePropagationResponse = EnableVGWRoutePropagationResponse'
instance NFData EnableVGWRoutePropagationResponse
where