module Stratosphere.EC2.SubnetRouteTableAssociation (
        SubnetRouteTableAssociation(..), mkSubnetRouteTableAssociation
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data SubnetRouteTableAssociation
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetroutetableassociation.html>
    SubnetRouteTableAssociation {SubnetRouteTableAssociation -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetroutetableassociation.html#cfn-ec2-subnetroutetableassociation-routetableid>
                                 SubnetRouteTableAssociation -> Value Text
routeTableId :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetroutetableassociation.html#cfn-ec2-subnetroutetableassociation-subnetid>
                                 SubnetRouteTableAssociation -> Value Text
subnetId :: (Value Prelude.Text)}
  deriving stock (SubnetRouteTableAssociation -> SubnetRouteTableAssociation -> Bool
(SubnetRouteTableAssociation
 -> SubnetRouteTableAssociation -> Bool)
-> (SubnetRouteTableAssociation
    -> SubnetRouteTableAssociation -> Bool)
-> Eq SubnetRouteTableAssociation
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SubnetRouteTableAssociation -> SubnetRouteTableAssociation -> Bool
== :: SubnetRouteTableAssociation -> SubnetRouteTableAssociation -> Bool
$c/= :: SubnetRouteTableAssociation -> SubnetRouteTableAssociation -> Bool
/= :: SubnetRouteTableAssociation -> SubnetRouteTableAssociation -> Bool
Prelude.Eq, Int -> SubnetRouteTableAssociation -> ShowS
[SubnetRouteTableAssociation] -> ShowS
SubnetRouteTableAssociation -> String
(Int -> SubnetRouteTableAssociation -> ShowS)
-> (SubnetRouteTableAssociation -> String)
-> ([SubnetRouteTableAssociation] -> ShowS)
-> Show SubnetRouteTableAssociation
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> SubnetRouteTableAssociation -> ShowS
showsPrec :: Int -> SubnetRouteTableAssociation -> ShowS
$cshow :: SubnetRouteTableAssociation -> String
show :: SubnetRouteTableAssociation -> String
$cshowList :: [SubnetRouteTableAssociation] -> ShowS
showList :: [SubnetRouteTableAssociation] -> ShowS
Prelude.Show)
mkSubnetRouteTableAssociation ::
  Value Prelude.Text
  -> Value Prelude.Text -> SubnetRouteTableAssociation
mkSubnetRouteTableAssociation :: Value Text -> Value Text -> SubnetRouteTableAssociation
mkSubnetRouteTableAssociation Value Text
routeTableId Value Text
subnetId
  = SubnetRouteTableAssociation
      {haddock_workaround_ :: ()
haddock_workaround_ = (), routeTableId :: Value Text
routeTableId = Value Text
routeTableId,
       subnetId :: Value Text
subnetId = Value Text
subnetId}
instance ToResourceProperties SubnetRouteTableAssociation where
  toResourceProperties :: SubnetRouteTableAssociation -> ResourceProperties
toResourceProperties SubnetRouteTableAssociation {()
Value Text
haddock_workaround_ :: SubnetRouteTableAssociation -> ()
routeTableId :: SubnetRouteTableAssociation -> Value Text
subnetId :: SubnetRouteTableAssociation -> Value Text
haddock_workaround_ :: ()
routeTableId :: Value Text
subnetId :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::EC2::SubnetRouteTableAssociation",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"RouteTableId" 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
routeTableId,
                       Key
"SubnetId" 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
subnetId]}
instance JSON.ToJSON SubnetRouteTableAssociation where
  toJSON :: SubnetRouteTableAssociation -> Value
toJSON SubnetRouteTableAssociation {()
Value Text
haddock_workaround_ :: SubnetRouteTableAssociation -> ()
routeTableId :: SubnetRouteTableAssociation -> Value Text
subnetId :: SubnetRouteTableAssociation -> Value Text
haddock_workaround_ :: ()
routeTableId :: Value Text
subnetId :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object
        [Key
"RouteTableId" 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
routeTableId, Key
"SubnetId" 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
subnetId]
instance Property "RouteTableId" SubnetRouteTableAssociation where
  type PropertyType "RouteTableId" SubnetRouteTableAssociation = Value Prelude.Text
  set :: PropertyType "RouteTableId" SubnetRouteTableAssociation
-> SubnetRouteTableAssociation -> SubnetRouteTableAssociation
set PropertyType "RouteTableId" SubnetRouteTableAssociation
newValue SubnetRouteTableAssociation {()
Value Text
haddock_workaround_ :: SubnetRouteTableAssociation -> ()
routeTableId :: SubnetRouteTableAssociation -> Value Text
subnetId :: SubnetRouteTableAssociation -> Value Text
haddock_workaround_ :: ()
routeTableId :: Value Text
subnetId :: Value Text
..}
    = SubnetRouteTableAssociation {routeTableId :: Value Text
routeTableId = PropertyType "RouteTableId" SubnetRouteTableAssociation
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
subnetId :: Value Text
haddock_workaround_ :: ()
subnetId :: Value Text
..}
instance Property "SubnetId" SubnetRouteTableAssociation where
  type PropertyType "SubnetId" SubnetRouteTableAssociation = Value Prelude.Text
  set :: PropertyType "SubnetId" SubnetRouteTableAssociation
-> SubnetRouteTableAssociation -> SubnetRouteTableAssociation
set PropertyType "SubnetId" SubnetRouteTableAssociation
newValue SubnetRouteTableAssociation {()
Value Text
haddock_workaround_ :: SubnetRouteTableAssociation -> ()
routeTableId :: SubnetRouteTableAssociation -> Value Text
subnetId :: SubnetRouteTableAssociation -> Value Text
haddock_workaround_ :: ()
routeTableId :: Value Text
subnetId :: Value Text
..}
    = SubnetRouteTableAssociation {subnetId :: Value Text
subnetId = PropertyType "SubnetId" SubnetRouteTableAssociation
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
routeTableId :: Value Text
haddock_workaround_ :: ()
routeTableId :: Value Text
..}