module Stratosphere.EC2.ClientVpnRoute (
        ClientVpnRoute(..), mkClientVpnRoute
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ClientVpnRoute
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpnroute.html>
    ClientVpnRoute {ClientVpnRoute -> ()
haddock_workaround_ :: (),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpnroute.html#cfn-ec2-clientvpnroute-clientvpnendpointid>
                    ClientVpnRoute -> Value Text
clientVpnEndpointId :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpnroute.html#cfn-ec2-clientvpnroute-description>
                    ClientVpnRoute -> Maybe (Value Text)
description :: (Prelude.Maybe (Value Prelude.Text)),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpnroute.html#cfn-ec2-clientvpnroute-destinationcidrblock>
                    ClientVpnRoute -> Value Text
destinationCidrBlock :: (Value Prelude.Text),
                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-clientvpnroute.html#cfn-ec2-clientvpnroute-targetvpcsubnetid>
                    ClientVpnRoute -> Value Text
targetVpcSubnetId :: (Value Prelude.Text)}
  deriving stock (ClientVpnRoute -> ClientVpnRoute -> Bool
(ClientVpnRoute -> ClientVpnRoute -> Bool)
-> (ClientVpnRoute -> ClientVpnRoute -> Bool) -> Eq ClientVpnRoute
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ClientVpnRoute -> ClientVpnRoute -> Bool
== :: ClientVpnRoute -> ClientVpnRoute -> Bool
$c/= :: ClientVpnRoute -> ClientVpnRoute -> Bool
/= :: ClientVpnRoute -> ClientVpnRoute -> Bool
Prelude.Eq, Int -> ClientVpnRoute -> ShowS
[ClientVpnRoute] -> ShowS
ClientVpnRoute -> String
(Int -> ClientVpnRoute -> ShowS)
-> (ClientVpnRoute -> String)
-> ([ClientVpnRoute] -> ShowS)
-> Show ClientVpnRoute
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ClientVpnRoute -> ShowS
showsPrec :: Int -> ClientVpnRoute -> ShowS
$cshow :: ClientVpnRoute -> String
show :: ClientVpnRoute -> String
$cshowList :: [ClientVpnRoute] -> ShowS
showList :: [ClientVpnRoute] -> ShowS
Prelude.Show)
mkClientVpnRoute ::
  Value Prelude.Text
  -> Value Prelude.Text -> Value Prelude.Text -> ClientVpnRoute
mkClientVpnRoute :: Value Text -> Value Text -> Value Text -> ClientVpnRoute
mkClientVpnRoute
  Value Text
clientVpnEndpointId
  Value Text
destinationCidrBlock
  Value Text
targetVpcSubnetId
  = ClientVpnRoute
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       clientVpnEndpointId :: Value Text
clientVpnEndpointId = Value Text
clientVpnEndpointId,
       destinationCidrBlock :: Value Text
destinationCidrBlock = Value Text
destinationCidrBlock,
       targetVpcSubnetId :: Value Text
targetVpcSubnetId = Value Text
targetVpcSubnetId,
       description :: Maybe (Value Text)
description = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ClientVpnRoute where
  toResourceProperties :: ClientVpnRoute -> ResourceProperties
toResourceProperties ClientVpnRoute {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ClientVpnRoute -> ()
clientVpnEndpointId :: ClientVpnRoute -> Value Text
description :: ClientVpnRoute -> Maybe (Value Text)
destinationCidrBlock :: ClientVpnRoute -> Value Text
targetVpcSubnetId :: ClientVpnRoute -> Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
description :: Maybe (Value Text)
destinationCidrBlock :: Value Text
targetVpcSubnetId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::ClientVpnRoute",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
                           [Key
"ClientVpnEndpointId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
clientVpnEndpointId,
                            Key
"DestinationCidrBlock" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
destinationCidrBlock,
                            Key
"TargetVpcSubnetId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
targetVpcSubnetId]
                           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                              [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description]))}
instance JSON.ToJSON ClientVpnRoute where
  toJSON :: ClientVpnRoute -> Value
toJSON ClientVpnRoute {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ClientVpnRoute -> ()
clientVpnEndpointId :: ClientVpnRoute -> Value Text
description :: ClientVpnRoute -> Maybe (Value Text)
destinationCidrBlock :: ClientVpnRoute -> Value Text
targetVpcSubnetId :: ClientVpnRoute -> Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
description :: Maybe (Value Text)
destinationCidrBlock :: Value Text
targetVpcSubnetId :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
              [Key
"ClientVpnEndpointId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
clientVpnEndpointId,
               Key
"DestinationCidrBlock" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
destinationCidrBlock,
               Key
"TargetVpcSubnetId" Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= Value Text
targetVpcSubnetId]
              ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                 [Key -> Value Text -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Description" (Value Text -> (Key, Value))
-> Maybe (Value Text) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Text)
description])))
instance Property "ClientVpnEndpointId" ClientVpnRoute where
  type PropertyType "ClientVpnEndpointId" ClientVpnRoute = Value Prelude.Text
  set :: PropertyType "ClientVpnEndpointId" ClientVpnRoute
-> ClientVpnRoute -> ClientVpnRoute
set PropertyType "ClientVpnEndpointId" ClientVpnRoute
newValue ClientVpnRoute {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ClientVpnRoute -> ()
clientVpnEndpointId :: ClientVpnRoute -> Value Text
description :: ClientVpnRoute -> Maybe (Value Text)
destinationCidrBlock :: ClientVpnRoute -> Value Text
targetVpcSubnetId :: ClientVpnRoute -> Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
description :: Maybe (Value Text)
destinationCidrBlock :: Value Text
targetVpcSubnetId :: Value Text
..}
    = ClientVpnRoute {clientVpnEndpointId :: Value Text
clientVpnEndpointId = PropertyType "ClientVpnEndpointId" ClientVpnRoute
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
destinationCidrBlock :: Value Text
targetVpcSubnetId :: Value Text
haddock_workaround_ :: ()
description :: Maybe (Value Text)
destinationCidrBlock :: Value Text
targetVpcSubnetId :: Value Text
..}
instance Property "Description" ClientVpnRoute where
  type PropertyType "Description" ClientVpnRoute = Value Prelude.Text
  set :: PropertyType "Description" ClientVpnRoute
-> ClientVpnRoute -> ClientVpnRoute
set PropertyType "Description" ClientVpnRoute
newValue ClientVpnRoute {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ClientVpnRoute -> ()
clientVpnEndpointId :: ClientVpnRoute -> Value Text
description :: ClientVpnRoute -> Maybe (Value Text)
destinationCidrBlock :: ClientVpnRoute -> Value Text
targetVpcSubnetId :: ClientVpnRoute -> Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
description :: Maybe (Value Text)
destinationCidrBlock :: Value Text
targetVpcSubnetId :: Value Text
..}
    = ClientVpnRoute {description :: Maybe (Value Text)
description = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Description" ClientVpnRoute
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
destinationCidrBlock :: Value Text
targetVpcSubnetId :: Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
destinationCidrBlock :: Value Text
targetVpcSubnetId :: Value Text
..}
instance Property "DestinationCidrBlock" ClientVpnRoute where
  type PropertyType "DestinationCidrBlock" ClientVpnRoute = Value Prelude.Text
  set :: PropertyType "DestinationCidrBlock" ClientVpnRoute
-> ClientVpnRoute -> ClientVpnRoute
set PropertyType "DestinationCidrBlock" ClientVpnRoute
newValue ClientVpnRoute {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ClientVpnRoute -> ()
clientVpnEndpointId :: ClientVpnRoute -> Value Text
description :: ClientVpnRoute -> Maybe (Value Text)
destinationCidrBlock :: ClientVpnRoute -> Value Text
targetVpcSubnetId :: ClientVpnRoute -> Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
description :: Maybe (Value Text)
destinationCidrBlock :: Value Text
targetVpcSubnetId :: Value Text
..}
    = ClientVpnRoute {destinationCidrBlock :: Value Text
destinationCidrBlock = PropertyType "DestinationCidrBlock" ClientVpnRoute
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
description :: Maybe (Value Text)
targetVpcSubnetId :: Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
description :: Maybe (Value Text)
targetVpcSubnetId :: Value Text
..}
instance Property "TargetVpcSubnetId" ClientVpnRoute where
  type PropertyType "TargetVpcSubnetId" ClientVpnRoute = Value Prelude.Text
  set :: PropertyType "TargetVpcSubnetId" ClientVpnRoute
-> ClientVpnRoute -> ClientVpnRoute
set PropertyType "TargetVpcSubnetId" ClientVpnRoute
newValue ClientVpnRoute {Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ClientVpnRoute -> ()
clientVpnEndpointId :: ClientVpnRoute -> Value Text
description :: ClientVpnRoute -> Maybe (Value Text)
destinationCidrBlock :: ClientVpnRoute -> Value Text
targetVpcSubnetId :: ClientVpnRoute -> Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
description :: Maybe (Value Text)
destinationCidrBlock :: Value Text
targetVpcSubnetId :: Value Text
..}
    = ClientVpnRoute {targetVpcSubnetId :: Value Text
targetVpcSubnetId = PropertyType "TargetVpcSubnetId" ClientVpnRoute
Value Text
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
description :: Maybe (Value Text)
destinationCidrBlock :: Value Text
haddock_workaround_ :: ()
clientVpnEndpointId :: Value Text
description :: Maybe (Value Text)
destinationCidrBlock :: Value Text
..}