module Stratosphere.EC2.VPNConnectionRoute ( VPNConnectionRoute(..), mkVPNConnectionRoute ) where import qualified Data.Aeson as JSON import qualified Stratosphere.Prelude as Prelude import Stratosphere.Property import Stratosphere.ResourceProperties import Stratosphere.Value data VPNConnectionRoute = -- | See: VPNConnectionRoute {haddock_workaround_ :: (), -- | See: destinationCidrBlock :: (Value Prelude.Text), -- | See: vpnConnectionId :: (Value Prelude.Text)} deriving stock (Prelude.Eq, Prelude.Show) mkVPNConnectionRoute :: Value Prelude.Text -> Value Prelude.Text -> VPNConnectionRoute mkVPNConnectionRoute destinationCidrBlock vpnConnectionId = VPNConnectionRoute {haddock_workaround_ = (), destinationCidrBlock = destinationCidrBlock, vpnConnectionId = vpnConnectionId} instance ToResourceProperties VPNConnectionRoute where toResourceProperties VPNConnectionRoute {..} = ResourceProperties {awsType = "AWS::EC2::VPNConnectionRoute", supportsTags = Prelude.False, properties = ["DestinationCidrBlock" JSON..= destinationCidrBlock, "VpnConnectionId" JSON..= vpnConnectionId]} instance JSON.ToJSON VPNConnectionRoute where toJSON VPNConnectionRoute {..} = JSON.object ["DestinationCidrBlock" JSON..= destinationCidrBlock, "VpnConnectionId" JSON..= vpnConnectionId] instance Property "DestinationCidrBlock" VPNConnectionRoute where type PropertyType "DestinationCidrBlock" VPNConnectionRoute = Value Prelude.Text set newValue VPNConnectionRoute {..} = VPNConnectionRoute {destinationCidrBlock = newValue, ..} instance Property "VpnConnectionId" VPNConnectionRoute where type PropertyType "VpnConnectionId" VPNConnectionRoute = Value Prelude.Text set newValue VPNConnectionRoute {..} = VPNConnectionRoute {vpnConnectionId = newValue, ..}