stratosphere-0.3.0: library-gen/Stratosphere/Resources/EC2VPNGatewayRoutePropagation.hs
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html
module Stratosphere.Resources.EC2VPNGatewayRoutePropagation where
import Control.Lens
import Data.Aeson
import Data.Aeson.Types
import Data.Text
import GHC.Generics
import Stratosphere.Values
-- | Full data type definition for EC2VPNGatewayRoutePropagation. See
-- | 'ec2VPNGatewayRoutePropagation' for a more convenient constructor.
data EC2VPNGatewayRoutePropagation =
EC2VPNGatewayRoutePropagation
{ _eC2VPNGatewayRoutePropagationRouteTableIds :: [Val Text]
, _eC2VPNGatewayRoutePropagationVpnGatewayId :: Val Text
} deriving (Show, Generic)
instance ToJSON EC2VPNGatewayRoutePropagation where
toJSON = genericToJSON defaultOptions { fieldLabelModifier = Prelude.drop 30, omitNothingFields = True }
instance FromJSON EC2VPNGatewayRoutePropagation where
parseJSON = genericParseJSON defaultOptions { fieldLabelModifier = Prelude.drop 30, omitNothingFields = True }
-- | Constructor for 'EC2VPNGatewayRoutePropagation' containing required
-- | fields as arguments.
ec2VPNGatewayRoutePropagation
:: [Val Text] -- ^ 'ecvpngrpRouteTableIds'
-> Val Text -- ^ 'ecvpngrpVpnGatewayId'
-> EC2VPNGatewayRoutePropagation
ec2VPNGatewayRoutePropagation routeTableIdsarg vpnGatewayIdarg =
EC2VPNGatewayRoutePropagation
{ _eC2VPNGatewayRoutePropagationRouteTableIds = routeTableIdsarg
, _eC2VPNGatewayRoutePropagationVpnGatewayId = vpnGatewayIdarg
}
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-routetableids
ecvpngrpRouteTableIds :: Lens' EC2VPNGatewayRoutePropagation [Val Text]
ecvpngrpRouteTableIds = lens _eC2VPNGatewayRoutePropagationRouteTableIds (\s a -> s { _eC2VPNGatewayRoutePropagationRouteTableIds = a })
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpn-gatewayrouteprop.html#cfn-ec2-vpngatewayrouteprop-vpngatewayid
ecvpngrpVpnGatewayId :: Lens' EC2VPNGatewayRoutePropagation (Val Text)
ecvpngrpVpnGatewayId = lens _eC2VPNGatewayRoutePropagationVpnGatewayId (\s a -> s { _eC2VPNGatewayRoutePropagationVpnGatewayId = a })