module Stratosphere.EC2.LocalGatewayRouteTableVirtualInterfaceGroupAssociation (
LocalGatewayRouteTableVirtualInterfaceGroupAssociation(..),
mkLocalGatewayRouteTableVirtualInterfaceGroupAssociation
) 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 LocalGatewayRouteTableVirtualInterfaceGroupAssociation
=
LocalGatewayRouteTableVirtualInterfaceGroupAssociation {LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ()
haddock_workaround_ :: (),
LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Value Text
localGatewayRouteTableId :: (Value Prelude.Text),
LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Value Text
localGatewayVirtualInterfaceGroupId :: (Value Prelude.Text),
LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe [Tag]
tags :: (Prelude.Maybe [Tag])}
deriving stock (LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Bool
(LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Bool)
-> (LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Bool)
-> Eq LocalGatewayRouteTableVirtualInterfaceGroupAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Bool
== :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Bool
$c/= :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Bool
/= :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Bool
Prelude.Eq, Int
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ShowS
[LocalGatewayRouteTableVirtualInterfaceGroupAssociation] -> ShowS
LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> String
(Int
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ShowS)
-> (LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> String)
-> ([LocalGatewayRouteTableVirtualInterfaceGroupAssociation]
-> ShowS)
-> Show LocalGatewayRouteTableVirtualInterfaceGroupAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ShowS
showsPrec :: Int
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ShowS
$cshow :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> String
show :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> String
$cshowList :: [LocalGatewayRouteTableVirtualInterfaceGroupAssociation] -> ShowS
showList :: [LocalGatewayRouteTableVirtualInterfaceGroupAssociation] -> ShowS
Prelude.Show)
mkLocalGatewayRouteTableVirtualInterfaceGroupAssociation ::
Value Prelude.Text
-> Value Prelude.Text
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
mkLocalGatewayRouteTableVirtualInterfaceGroupAssociation :: Value Text
-> Value Text
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
mkLocalGatewayRouteTableVirtualInterfaceGroupAssociation
Value Text
localGatewayRouteTableId
Value Text
localGatewayVirtualInterfaceGroupId
= LocalGatewayRouteTableVirtualInterfaceGroupAssociation
{haddock_workaround_ :: ()
haddock_workaround_ = (),
localGatewayRouteTableId :: Value Text
localGatewayRouteTableId = Value Text
localGatewayRouteTableId,
localGatewayVirtualInterfaceGroupId :: Value Text
localGatewayVirtualInterfaceGroupId = Value Text
localGatewayVirtualInterfaceGroupId,
tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LocalGatewayRouteTableVirtualInterfaceGroupAssociation where
toResourceProperties :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> ResourceProperties
toResourceProperties
LocalGatewayRouteTableVirtualInterfaceGroupAssociation {Maybe [Tag]
()
Value Text
haddock_workaround_ :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ()
localGatewayRouteTableId :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Value Text
localGatewayVirtualInterfaceGroupId :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Value Text
tags :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe [Tag]
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
localGatewayVirtualInterfaceGroupId :: Value Text
tags :: Maybe [Tag]
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::EC2::LocalGatewayRouteTableVirtualInterfaceGroupAssociation",
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
"LocalGatewayRouteTableId" 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
localGatewayRouteTableId,
Key
"LocalGatewayVirtualInterfaceGroupId"
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
localGatewayVirtualInterfaceGroupId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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 LocalGatewayRouteTableVirtualInterfaceGroupAssociation where
toJSON :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> Value
toJSON LocalGatewayRouteTableVirtualInterfaceGroupAssociation {Maybe [Tag]
()
Value Text
haddock_workaround_ :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ()
localGatewayRouteTableId :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Value Text
localGatewayVirtualInterfaceGroupId :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Value Text
tags :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe [Tag]
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
localGatewayVirtualInterfaceGroupId :: Value Text
tags :: Maybe [Tag]
..}
= [(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
"LocalGatewayRouteTableId" 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
localGatewayRouteTableId,
Key
"LocalGatewayVirtualInterfaceGroupId"
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
localGatewayVirtualInterfaceGroupId]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes [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 "LocalGatewayRouteTableId" LocalGatewayRouteTableVirtualInterfaceGroupAssociation where
type PropertyType "LocalGatewayRouteTableId" LocalGatewayRouteTableVirtualInterfaceGroupAssociation = Value Prelude.Text
set :: PropertyType
"LocalGatewayRouteTableId"
LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
set
PropertyType
"LocalGatewayRouteTableId"
LocalGatewayRouteTableVirtualInterfaceGroupAssociation
newValue
LocalGatewayRouteTableVirtualInterfaceGroupAssociation {Maybe [Tag]
()
Value Text
haddock_workaround_ :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ()
localGatewayRouteTableId :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Value Text
localGatewayVirtualInterfaceGroupId :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Value Text
tags :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe [Tag]
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
localGatewayVirtualInterfaceGroupId :: Value Text
tags :: Maybe [Tag]
..}
= LocalGatewayRouteTableVirtualInterfaceGroupAssociation
{localGatewayRouteTableId :: Value Text
localGatewayRouteTableId = PropertyType
"LocalGatewayRouteTableId"
LocalGatewayRouteTableVirtualInterfaceGroupAssociation
Value Text
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
localGatewayVirtualInterfaceGroupId :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
localGatewayVirtualInterfaceGroupId :: Value Text
tags :: Maybe [Tag]
..}
instance Property "LocalGatewayVirtualInterfaceGroupId" LocalGatewayRouteTableVirtualInterfaceGroupAssociation where
type PropertyType "LocalGatewayVirtualInterfaceGroupId" LocalGatewayRouteTableVirtualInterfaceGroupAssociation = Value Prelude.Text
set :: PropertyType
"LocalGatewayVirtualInterfaceGroupId"
LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
set
PropertyType
"LocalGatewayVirtualInterfaceGroupId"
LocalGatewayRouteTableVirtualInterfaceGroupAssociation
newValue
LocalGatewayRouteTableVirtualInterfaceGroupAssociation {Maybe [Tag]
()
Value Text
haddock_workaround_ :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ()
localGatewayRouteTableId :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Value Text
localGatewayVirtualInterfaceGroupId :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Value Text
tags :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe [Tag]
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
localGatewayVirtualInterfaceGroupId :: Value Text
tags :: Maybe [Tag]
..}
= LocalGatewayRouteTableVirtualInterfaceGroupAssociation
{localGatewayVirtualInterfaceGroupId :: Value Text
localGatewayVirtualInterfaceGroupId = PropertyType
"LocalGatewayVirtualInterfaceGroupId"
LocalGatewayRouteTableVirtualInterfaceGroupAssociation
Value Text
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
tags :: Maybe [Tag]
..}
instance Property "Tags" LocalGatewayRouteTableVirtualInterfaceGroupAssociation where
type PropertyType "Tags" LocalGatewayRouteTableVirtualInterfaceGroupAssociation = [Tag]
set :: PropertyType
"Tags" LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> LocalGatewayRouteTableVirtualInterfaceGroupAssociation
set
PropertyType
"Tags" LocalGatewayRouteTableVirtualInterfaceGroupAssociation
newValue
LocalGatewayRouteTableVirtualInterfaceGroupAssociation {Maybe [Tag]
()
Value Text
haddock_workaround_ :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation -> ()
localGatewayRouteTableId :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Value Text
localGatewayVirtualInterfaceGroupId :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Value Text
tags :: LocalGatewayRouteTableVirtualInterfaceGroupAssociation
-> Maybe [Tag]
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
localGatewayVirtualInterfaceGroupId :: Value Text
tags :: Maybe [Tag]
..}
= LocalGatewayRouteTableVirtualInterfaceGroupAssociation
{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" LocalGatewayRouteTableVirtualInterfaceGroupAssociation
newValue, ()
Value Text
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
localGatewayVirtualInterfaceGroupId :: Value Text
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
localGatewayVirtualInterfaceGroupId :: Value Text
..}