module Stratosphere.EC2.LocalGatewayRouteTableVPCAssociation (
        LocalGatewayRouteTableVPCAssociation(..),
        mkLocalGatewayRouteTableVPCAssociation
    ) 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 LocalGatewayRouteTableVPCAssociation
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-localgatewayroutetablevpcassociation.html>
    LocalGatewayRouteTableVPCAssociation {LocalGatewayRouteTableVPCAssociation -> ()
haddock_workaround_ :: (),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-localgatewayroutetablevpcassociation.html#cfn-ec2-localgatewayroutetablevpcassociation-localgatewayroutetableid>
                                          LocalGatewayRouteTableVPCAssociation -> Value Text
localGatewayRouteTableId :: (Value Prelude.Text),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-localgatewayroutetablevpcassociation.html#cfn-ec2-localgatewayroutetablevpcassociation-tags>
                                          LocalGatewayRouteTableVPCAssociation -> Maybe [Tag]
tags :: (Prelude.Maybe [Tag]),
                                          -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-localgatewayroutetablevpcassociation.html#cfn-ec2-localgatewayroutetablevpcassociation-vpcid>
                                          LocalGatewayRouteTableVPCAssociation -> Value Text
vpcId :: (Value Prelude.Text)}
  deriving stock (LocalGatewayRouteTableVPCAssociation
-> LocalGatewayRouteTableVPCAssociation -> Bool
(LocalGatewayRouteTableVPCAssociation
 -> LocalGatewayRouteTableVPCAssociation -> Bool)
-> (LocalGatewayRouteTableVPCAssociation
    -> LocalGatewayRouteTableVPCAssociation -> Bool)
-> Eq LocalGatewayRouteTableVPCAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LocalGatewayRouteTableVPCAssociation
-> LocalGatewayRouteTableVPCAssociation -> Bool
== :: LocalGatewayRouteTableVPCAssociation
-> LocalGatewayRouteTableVPCAssociation -> Bool
$c/= :: LocalGatewayRouteTableVPCAssociation
-> LocalGatewayRouteTableVPCAssociation -> Bool
/= :: LocalGatewayRouteTableVPCAssociation
-> LocalGatewayRouteTableVPCAssociation -> Bool
Prelude.Eq, Int -> LocalGatewayRouteTableVPCAssociation -> ShowS
[LocalGatewayRouteTableVPCAssociation] -> ShowS
LocalGatewayRouteTableVPCAssociation -> String
(Int -> LocalGatewayRouteTableVPCAssociation -> ShowS)
-> (LocalGatewayRouteTableVPCAssociation -> String)
-> ([LocalGatewayRouteTableVPCAssociation] -> ShowS)
-> Show LocalGatewayRouteTableVPCAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LocalGatewayRouteTableVPCAssociation -> ShowS
showsPrec :: Int -> LocalGatewayRouteTableVPCAssociation -> ShowS
$cshow :: LocalGatewayRouteTableVPCAssociation -> String
show :: LocalGatewayRouteTableVPCAssociation -> String
$cshowList :: [LocalGatewayRouteTableVPCAssociation] -> ShowS
showList :: [LocalGatewayRouteTableVPCAssociation] -> ShowS
Prelude.Show)
mkLocalGatewayRouteTableVPCAssociation ::
  Value Prelude.Text
  -> Value Prelude.Text -> LocalGatewayRouteTableVPCAssociation
mkLocalGatewayRouteTableVPCAssociation :: Value Text -> Value Text -> LocalGatewayRouteTableVPCAssociation
mkLocalGatewayRouteTableVPCAssociation
  Value Text
localGatewayRouteTableId
  Value Text
vpcId
  = LocalGatewayRouteTableVPCAssociation
      {haddock_workaround_ :: ()
haddock_workaround_ = (),
       localGatewayRouteTableId :: Value Text
localGatewayRouteTableId = Value Text
localGatewayRouteTableId, vpcId :: Value Text
vpcId = Value Text
vpcId,
       tags :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties LocalGatewayRouteTableVPCAssociation where
  toResourceProperties :: LocalGatewayRouteTableVPCAssociation -> ResourceProperties
toResourceProperties LocalGatewayRouteTableVPCAssociation {Maybe [Tag]
()
Value Text
haddock_workaround_ :: LocalGatewayRouteTableVPCAssociation -> ()
localGatewayRouteTableId :: LocalGatewayRouteTableVPCAssociation -> Value Text
tags :: LocalGatewayRouteTableVPCAssociation -> Maybe [Tag]
vpcId :: LocalGatewayRouteTableVPCAssociation -> Value Text
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::LocalGatewayRouteTableVPCAssociation",
         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
"VpcId" 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
vpcId]
                           ([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 LocalGatewayRouteTableVPCAssociation where
  toJSON :: LocalGatewayRouteTableVPCAssociation -> Value
toJSON LocalGatewayRouteTableVPCAssociation {Maybe [Tag]
()
Value Text
haddock_workaround_ :: LocalGatewayRouteTableVPCAssociation -> ()
localGatewayRouteTableId :: LocalGatewayRouteTableVPCAssociation -> Value Text
tags :: LocalGatewayRouteTableVPCAssociation -> Maybe [Tag]
vpcId :: LocalGatewayRouteTableVPCAssociation -> Value Text
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
tags :: Maybe [Tag]
vpcId :: 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
"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
"VpcId" 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
vpcId]
              ([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" LocalGatewayRouteTableVPCAssociation where
  type PropertyType "LocalGatewayRouteTableId" LocalGatewayRouteTableVPCAssociation = Value Prelude.Text
  set :: PropertyType
  "LocalGatewayRouteTableId" LocalGatewayRouteTableVPCAssociation
-> LocalGatewayRouteTableVPCAssociation
-> LocalGatewayRouteTableVPCAssociation
set PropertyType
  "LocalGatewayRouteTableId" LocalGatewayRouteTableVPCAssociation
newValue LocalGatewayRouteTableVPCAssociation {Maybe [Tag]
()
Value Text
haddock_workaround_ :: LocalGatewayRouteTableVPCAssociation -> ()
localGatewayRouteTableId :: LocalGatewayRouteTableVPCAssociation -> Value Text
tags :: LocalGatewayRouteTableVPCAssociation -> Maybe [Tag]
vpcId :: LocalGatewayRouteTableVPCAssociation -> Value Text
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = LocalGatewayRouteTableVPCAssociation
        {localGatewayRouteTableId :: Value Text
localGatewayRouteTableId = PropertyType
  "LocalGatewayRouteTableId" LocalGatewayRouteTableVPCAssociation
Value Text
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
tags :: Maybe [Tag]
vpcId :: Value Text
haddock_workaround_ :: ()
tags :: Maybe [Tag]
vpcId :: Value Text
..}
instance Property "Tags" LocalGatewayRouteTableVPCAssociation where
  type PropertyType "Tags" LocalGatewayRouteTableVPCAssociation = [Tag]
  set :: PropertyType "Tags" LocalGatewayRouteTableVPCAssociation
-> LocalGatewayRouteTableVPCAssociation
-> LocalGatewayRouteTableVPCAssociation
set PropertyType "Tags" LocalGatewayRouteTableVPCAssociation
newValue LocalGatewayRouteTableVPCAssociation {Maybe [Tag]
()
Value Text
haddock_workaround_ :: LocalGatewayRouteTableVPCAssociation -> ()
localGatewayRouteTableId :: LocalGatewayRouteTableVPCAssociation -> Value Text
tags :: LocalGatewayRouteTableVPCAssociation -> Maybe [Tag]
vpcId :: LocalGatewayRouteTableVPCAssociation -> Value Text
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = LocalGatewayRouteTableVPCAssociation
        {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" LocalGatewayRouteTableVPCAssociation
newValue, ()
Value Text
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
vpcId :: Value Text
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
vpcId :: Value Text
..}
instance Property "VpcId" LocalGatewayRouteTableVPCAssociation where
  type PropertyType "VpcId" LocalGatewayRouteTableVPCAssociation = Value Prelude.Text
  set :: PropertyType "VpcId" LocalGatewayRouteTableVPCAssociation
-> LocalGatewayRouteTableVPCAssociation
-> LocalGatewayRouteTableVPCAssociation
set PropertyType "VpcId" LocalGatewayRouteTableVPCAssociation
newValue LocalGatewayRouteTableVPCAssociation {Maybe [Tag]
()
Value Text
haddock_workaround_ :: LocalGatewayRouteTableVPCAssociation -> ()
localGatewayRouteTableId :: LocalGatewayRouteTableVPCAssociation -> Value Text
tags :: LocalGatewayRouteTableVPCAssociation -> Maybe [Tag]
vpcId :: LocalGatewayRouteTableVPCAssociation -> Value Text
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
tags :: Maybe [Tag]
vpcId :: Value Text
..}
    = LocalGatewayRouteTableVPCAssociation {vpcId :: Value Text
vpcId = PropertyType "VpcId" LocalGatewayRouteTableVPCAssociation
Value Text
newValue, Maybe [Tag]
()
Value Text
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
tags :: Maybe [Tag]
haddock_workaround_ :: ()
localGatewayRouteTableId :: Value Text
tags :: Maybe [Tag]
..}