{-# 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 #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Network.AWS.EC2.DisableVGWRoutePropagation -- Copyright : (c) 2013-2018 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC. -- -- module Network.AWS.EC2.DisableVGWRoutePropagation ( -- * Creating a Request disableVGWRoutePropagation , DisableVGWRoutePropagation -- * Request Lenses , dvrpGatewayId , dvrpRouteTableId -- * Destructuring the Response , 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 -- | Contains the parameters for DisableVgwRoutePropagation. -- -- -- -- /See:/ 'disableVGWRoutePropagation' smart constructor. data DisableVGWRoutePropagation = DisableVGWRoutePropagation' { _dvrpGatewayId :: !Text , _dvrpRouteTableId :: !Text } deriving (Eq, Read, Show, Data, Typeable, Generic) -- | Creates a value of 'DisableVGWRoutePropagation' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'dvrpGatewayId' - The ID of the virtual private gateway. -- -- * 'dvrpRouteTableId' - The ID of the route table. disableVGWRoutePropagation :: Text -- ^ 'dvrpGatewayId' -> Text -- ^ 'dvrpRouteTableId' -> DisableVGWRoutePropagation disableVGWRoutePropagation pGatewayId_ pRouteTableId_ = DisableVGWRoutePropagation' {_dvrpGatewayId = pGatewayId_, _dvrpRouteTableId = pRouteTableId_} -- | The ID of the virtual private gateway. dvrpGatewayId :: Lens' DisableVGWRoutePropagation Text dvrpGatewayId = lens _dvrpGatewayId (\ s a -> s{_dvrpGatewayId = a}) -- | The ID of the route table. 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] -- | /See:/ 'disableVGWRoutePropagationResponse' smart constructor. data DisableVGWRoutePropagationResponse = DisableVGWRoutePropagationResponse' deriving (Eq, Read, Show, Data, Typeable, Generic) -- | Creates a value of 'DisableVGWRoutePropagationResponse' with the minimum fields required to make a request. -- disableVGWRoutePropagationResponse :: DisableVGWRoutePropagationResponse disableVGWRoutePropagationResponse = DisableVGWRoutePropagationResponse' instance NFData DisableVGWRoutePropagationResponse where