module Stratosphere.EC2.TransitGatewayRoute (
TransitGatewayRoute(..), mkTransitGatewayRoute
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data TransitGatewayRoute
=
TransitGatewayRoute {TransitGatewayRoute -> ()
haddock_workaround_ :: (),
TransitGatewayRoute -> Maybe (Value Bool)
blackhole :: (Prelude.Maybe (Value Prelude.Bool)),
TransitGatewayRoute -> Value Text
destinationCidrBlock :: (Value Prelude.Text),
TransitGatewayRoute -> Maybe (Value Text)
transitGatewayAttachmentId :: (Prelude.Maybe (Value Prelude.Text)),
TransitGatewayRoute -> Value Text
transitGatewayRouteTableId :: (Value Prelude.Text)}
deriving stock (TransitGatewayRoute -> TransitGatewayRoute -> Bool
(TransitGatewayRoute -> TransitGatewayRoute -> Bool)
-> (TransitGatewayRoute -> TransitGatewayRoute -> Bool)
-> Eq TransitGatewayRoute
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TransitGatewayRoute -> TransitGatewayRoute -> Bool
== :: TransitGatewayRoute -> TransitGatewayRoute -> Bool
$c/= :: TransitGatewayRoute -> TransitGatewayRoute -> Bool
/= :: TransitGatewayRoute -> TransitGatewayRoute -> Bool
Prelude.Eq, Int -> TransitGatewayRoute -> ShowS
[TransitGatewayRoute] -> ShowS
TransitGatewayRoute -> String
(Int -> TransitGatewayRoute -> ShowS)
-> (TransitGatewayRoute -> String)
-> ([TransitGatewayRoute] -> ShowS)
-> Show TransitGatewayRoute
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TransitGatewayRoute -> ShowS
showsPrec :: Int -> TransitGatewayRoute -> ShowS
$cshow :: TransitGatewayRoute -> String
show :: TransitGatewayRoute -> String
$cshowList :: [TransitGatewayRoute] -> ShowS
showList :: [TransitGatewayRoute] -> ShowS
Prelude.Show)
mkTransitGatewayRoute ::
Value Prelude.Text -> Value Prelude.Text -> TransitGatewayRoute
mkTransitGatewayRoute :: Value Text -> Value Text -> TransitGatewayRoute
mkTransitGatewayRoute
Value Text
destinationCidrBlock
Value Text
transitGatewayRouteTableId
= TransitGatewayRoute
{haddock_workaround_ :: ()
haddock_workaround_ = (),
destinationCidrBlock :: Value Text
destinationCidrBlock = Value Text
destinationCidrBlock,
transitGatewayRouteTableId :: Value Text
transitGatewayRouteTableId = Value Text
transitGatewayRouteTableId,
blackhole :: Maybe (Value Bool)
blackhole = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing,
transitGatewayAttachmentId :: Maybe (Value Text)
transitGatewayAttachmentId = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties TransitGatewayRoute where
toResourceProperties :: TransitGatewayRoute -> ResourceProperties
toResourceProperties TransitGatewayRoute {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TransitGatewayRoute -> ()
blackhole :: TransitGatewayRoute -> Maybe (Value Bool)
destinationCidrBlock :: TransitGatewayRoute -> Value Text
transitGatewayAttachmentId :: TransitGatewayRoute -> Maybe (Value Text)
transitGatewayRouteTableId :: TransitGatewayRoute -> Value Text
haddock_workaround_ :: ()
blackhole :: Maybe (Value Bool)
destinationCidrBlock :: Value Text
transitGatewayAttachmentId :: Maybe (Value Text)
transitGatewayRouteTableId :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::TransitGatewayRoute",
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
"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
"TransitGatewayRouteTableId" 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
transitGatewayRouteTableId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Blackhole" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
blackhole,
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
"TransitGatewayAttachmentId"
(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)
transitGatewayAttachmentId]))}
instance JSON.ToJSON TransitGatewayRoute where
toJSON :: TransitGatewayRoute -> Value
toJSON TransitGatewayRoute {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TransitGatewayRoute -> ()
blackhole :: TransitGatewayRoute -> Maybe (Value Bool)
destinationCidrBlock :: TransitGatewayRoute -> Value Text
transitGatewayAttachmentId :: TransitGatewayRoute -> Maybe (Value Text)
transitGatewayRouteTableId :: TransitGatewayRoute -> Value Text
haddock_workaround_ :: ()
blackhole :: Maybe (Value Bool)
destinationCidrBlock :: Value Text
transitGatewayAttachmentId :: Maybe (Value Text)
transitGatewayRouteTableId :: 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
"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
"TransitGatewayRouteTableId" 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
transitGatewayRouteTableId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Blackhole" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
blackhole,
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
"TransitGatewayAttachmentId"
(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)
transitGatewayAttachmentId])))
instance Property "Blackhole" TransitGatewayRoute where
type PropertyType "Blackhole" TransitGatewayRoute = Value Prelude.Bool
set :: PropertyType "Blackhole" TransitGatewayRoute
-> TransitGatewayRoute -> TransitGatewayRoute
set PropertyType "Blackhole" TransitGatewayRoute
newValue TransitGatewayRoute {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TransitGatewayRoute -> ()
blackhole :: TransitGatewayRoute -> Maybe (Value Bool)
destinationCidrBlock :: TransitGatewayRoute -> Value Text
transitGatewayAttachmentId :: TransitGatewayRoute -> Maybe (Value Text)
transitGatewayRouteTableId :: TransitGatewayRoute -> Value Text
haddock_workaround_ :: ()
blackhole :: Maybe (Value Bool)
destinationCidrBlock :: Value Text
transitGatewayAttachmentId :: Maybe (Value Text)
transitGatewayRouteTableId :: Value Text
..}
= TransitGatewayRoute {blackhole :: Maybe (Value Bool)
blackhole = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Blackhole" TransitGatewayRoute
Value Bool
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
destinationCidrBlock :: Value Text
transitGatewayAttachmentId :: Maybe (Value Text)
transitGatewayRouteTableId :: Value Text
haddock_workaround_ :: ()
destinationCidrBlock :: Value Text
transitGatewayAttachmentId :: Maybe (Value Text)
transitGatewayRouteTableId :: Value Text
..}
instance Property "DestinationCidrBlock" TransitGatewayRoute where
type PropertyType "DestinationCidrBlock" TransitGatewayRoute = Value Prelude.Text
set :: PropertyType "DestinationCidrBlock" TransitGatewayRoute
-> TransitGatewayRoute -> TransitGatewayRoute
set PropertyType "DestinationCidrBlock" TransitGatewayRoute
newValue TransitGatewayRoute {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TransitGatewayRoute -> ()
blackhole :: TransitGatewayRoute -> Maybe (Value Bool)
destinationCidrBlock :: TransitGatewayRoute -> Value Text
transitGatewayAttachmentId :: TransitGatewayRoute -> Maybe (Value Text)
transitGatewayRouteTableId :: TransitGatewayRoute -> Value Text
haddock_workaround_ :: ()
blackhole :: Maybe (Value Bool)
destinationCidrBlock :: Value Text
transitGatewayAttachmentId :: Maybe (Value Text)
transitGatewayRouteTableId :: Value Text
..}
= TransitGatewayRoute {destinationCidrBlock :: Value Text
destinationCidrBlock = PropertyType "DestinationCidrBlock" TransitGatewayRoute
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
blackhole :: Maybe (Value Bool)
transitGatewayAttachmentId :: Maybe (Value Text)
transitGatewayRouteTableId :: Value Text
haddock_workaround_ :: ()
blackhole :: Maybe (Value Bool)
transitGatewayAttachmentId :: Maybe (Value Text)
transitGatewayRouteTableId :: Value Text
..}
instance Property "TransitGatewayAttachmentId" TransitGatewayRoute where
type PropertyType "TransitGatewayAttachmentId" TransitGatewayRoute = Value Prelude.Text
set :: PropertyType "TransitGatewayAttachmentId" TransitGatewayRoute
-> TransitGatewayRoute -> TransitGatewayRoute
set PropertyType "TransitGatewayAttachmentId" TransitGatewayRoute
newValue TransitGatewayRoute {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TransitGatewayRoute -> ()
blackhole :: TransitGatewayRoute -> Maybe (Value Bool)
destinationCidrBlock :: TransitGatewayRoute -> Value Text
transitGatewayAttachmentId :: TransitGatewayRoute -> Maybe (Value Text)
transitGatewayRouteTableId :: TransitGatewayRoute -> Value Text
haddock_workaround_ :: ()
blackhole :: Maybe (Value Bool)
destinationCidrBlock :: Value Text
transitGatewayAttachmentId :: Maybe (Value Text)
transitGatewayRouteTableId :: Value Text
..}
= TransitGatewayRoute
{transitGatewayAttachmentId :: Maybe (Value Text)
transitGatewayAttachmentId = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TransitGatewayAttachmentId" TransitGatewayRoute
Value Text
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
blackhole :: Maybe (Value Bool)
destinationCidrBlock :: Value Text
transitGatewayRouteTableId :: Value Text
haddock_workaround_ :: ()
blackhole :: Maybe (Value Bool)
destinationCidrBlock :: Value Text
transitGatewayRouteTableId :: Value Text
..}
instance Property "TransitGatewayRouteTableId" TransitGatewayRoute where
type PropertyType "TransitGatewayRouteTableId" TransitGatewayRoute = Value Prelude.Text
set :: PropertyType "TransitGatewayRouteTableId" TransitGatewayRoute
-> TransitGatewayRoute -> TransitGatewayRoute
set PropertyType "TransitGatewayRouteTableId" TransitGatewayRoute
newValue TransitGatewayRoute {Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: TransitGatewayRoute -> ()
blackhole :: TransitGatewayRoute -> Maybe (Value Bool)
destinationCidrBlock :: TransitGatewayRoute -> Value Text
transitGatewayAttachmentId :: TransitGatewayRoute -> Maybe (Value Text)
transitGatewayRouteTableId :: TransitGatewayRoute -> Value Text
haddock_workaround_ :: ()
blackhole :: Maybe (Value Bool)
destinationCidrBlock :: Value Text
transitGatewayAttachmentId :: Maybe (Value Text)
transitGatewayRouteTableId :: Value Text
..}
= TransitGatewayRoute {transitGatewayRouteTableId :: Value Text
transitGatewayRouteTableId = PropertyType "TransitGatewayRouteTableId" TransitGatewayRoute
Value Text
newValue, Maybe (Value Bool)
Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
blackhole :: Maybe (Value Bool)
destinationCidrBlock :: Value Text
transitGatewayAttachmentId :: Maybe (Value Text)
haddock_workaround_ :: ()
blackhole :: Maybe (Value Bool)
destinationCidrBlock :: Value Text
transitGatewayAttachmentId :: Maybe (Value Text)
..}