module Stratosphere.EC2.VPNGateway (
VPNGateway(..), mkVPNGateway
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Tag
import Stratosphere.Value
data VPNGateway
=
VPNGateway {VPNGateway -> ()
haddock_workaround_ :: (),
VPNGateway -> Maybe (Value Integer)
amazonSideAsn :: (Prelude.Maybe (Value Prelude.Integer)),
VPNGateway -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
VPNGateway -> Value Text
type' :: (Value Prelude.Text)}
deriving stock (VPNGateway -> VPNGateway -> Bool
(VPNGateway -> VPNGateway -> Bool)
-> (VPNGateway -> VPNGateway -> Bool) -> Eq VPNGateway
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: VPNGateway -> VPNGateway -> Bool
== :: VPNGateway -> VPNGateway -> Bool
$c/= :: VPNGateway -> VPNGateway -> Bool
/= :: VPNGateway -> VPNGateway -> Bool
Prelude.Eq, Int -> VPNGateway -> ShowS
[VPNGateway] -> ShowS
VPNGateway -> String
(Int -> VPNGateway -> ShowS)
-> (VPNGateway -> String)
-> ([VPNGateway] -> ShowS)
-> Show VPNGateway
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> VPNGateway -> ShowS
showsPrec :: Int -> VPNGateway -> ShowS
$cshow :: VPNGateway -> String
show :: VPNGateway -> String
$cshowList :: [VPNGateway] -> ShowS
showList :: [VPNGateway] -> ShowS
Prelude.Show)
mkVPNGateway :: Value Prelude.Text -> VPNGateway
mkVPNGateway :: Value Text -> VPNGateway
mkVPNGateway Value Text
type'
= VPNGateway
{haddock_workaround_ :: ()
haddock_workaround_ = (), type' :: Value Text
type' = Value Text
type',
amazonSideAsn :: Maybe (Value Integer)
amazonSideAsn = Maybe (Value Integer)
forall a. Maybe a
Prelude.Nothing, tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties VPNGateway where
toResourceProperties :: VPNGateway -> ResourceProperties
toResourceProperties VPNGateway {Maybe [Tag]
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: VPNGateway -> ()
amazonSideAsn :: VPNGateway -> Maybe (Value Integer)
tags :: VPNGateway -> Maybe [Tag]
type' :: VPNGateway -> Value Text
haddock_workaround_ :: ()
amazonSideAsn :: Maybe (Value Integer)
tags :: Maybe [Tag]
type' :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::VPNGateway", supportsTags :: Bool
supportsTags = Bool
Prelude.True,
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
"Type" 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
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AmazonSideAsn" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
amazonSideAsn,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags]))}
instance JSON.ToJSON VPNGateway where
toJSON :: VPNGateway -> Value
toJSON VPNGateway {Maybe [Tag]
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: VPNGateway -> ()
amazonSideAsn :: VPNGateway -> Maybe (Value Integer)
tags :: VPNGateway -> Maybe [Tag]
type' :: VPNGateway -> Value Text
haddock_workaround_ :: ()
amazonSideAsn :: Maybe (Value Integer)
tags :: Maybe [Tag]
type' :: 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
"Type" 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
type']
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Integer -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"AmazonSideAsn" (Value Integer -> (Key, Value))
-> Maybe (Value Integer) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Integer)
amazonSideAsn,
Key -> [Tag] -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Tags" ([Tag] -> (Key, Value)) -> Maybe [Tag] -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags])))
instance Property "AmazonSideAsn" VPNGateway where
type PropertyType "AmazonSideAsn" VPNGateway = Value Prelude.Integer
set :: PropertyType "AmazonSideAsn" VPNGateway -> VPNGateway -> VPNGateway
set PropertyType "AmazonSideAsn" VPNGateway
newValue VPNGateway {Maybe [Tag]
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: VPNGateway -> ()
amazonSideAsn :: VPNGateway -> Maybe (Value Integer)
tags :: VPNGateway -> Maybe [Tag]
type' :: VPNGateway -> Value Text
haddock_workaround_ :: ()
amazonSideAsn :: Maybe (Value Integer)
tags :: Maybe [Tag]
type' :: Value Text
..}
= VPNGateway {amazonSideAsn :: Maybe (Value Integer)
amazonSideAsn = Value Integer -> Maybe (Value Integer)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "AmazonSideAsn" VPNGateway
Value Integer
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
tags :: Maybe [Tag]
type' :: Value Text
haddock_workaround_ :: ()
tags :: Maybe [Tag]
type' :: Value Text
..}
instance Property "Tags" VPNGateway where
type PropertyType "Tags" VPNGateway = [Tag]
set :: PropertyType "Tags" VPNGateway -> VPNGateway -> VPNGateway
set PropertyType "Tags" VPNGateway
newValue VPNGateway {Maybe [Tag]
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: VPNGateway -> ()
amazonSideAsn :: VPNGateway -> Maybe (Value Integer)
tags :: VPNGateway -> Maybe [Tag]
type' :: VPNGateway -> Value Text
haddock_workaround_ :: ()
amazonSideAsn :: Maybe (Value Integer)
tags :: Maybe [Tag]
type' :: Value Text
..}
= VPNGateway {tags :: Maybe [Tag]
tags = [Tag] -> Maybe [Tag]
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure [Tag]
PropertyType "Tags" VPNGateway
newValue, Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: ()
amazonSideAsn :: Maybe (Value Integer)
type' :: Value Text
haddock_workaround_ :: ()
amazonSideAsn :: Maybe (Value Integer)
type' :: Value Text
..}
instance Property "Type" VPNGateway where
type PropertyType "Type" VPNGateway = Value Prelude.Text
set :: PropertyType "Type" VPNGateway -> VPNGateway -> VPNGateway
set PropertyType "Type" VPNGateway
newValue VPNGateway {Maybe [Tag]
Maybe (Value Integer)
()
Value Text
haddock_workaround_ :: VPNGateway -> ()
amazonSideAsn :: VPNGateway -> Maybe (Value Integer)
tags :: VPNGateway -> Maybe [Tag]
type' :: VPNGateway -> Value Text
haddock_workaround_ :: ()
amazonSideAsn :: Maybe (Value Integer)
tags :: Maybe [Tag]
type' :: Value Text
..} = VPNGateway {type' :: Value Text
type' = PropertyType "Type" VPNGateway
Value Text
newValue, Maybe [Tag]
Maybe (Value Integer)
()
haddock_workaround_ :: ()
amazonSideAsn :: Maybe (Value Integer)
tags :: Maybe [Tag]
haddock_workaround_ :: ()
amazonSideAsn :: Maybe (Value Integer)
tags :: Maybe [Tag]
..}