module Stratosphere.AppMesh.GatewayRoute.GatewayRouteRangeMatchProperty (
        GatewayRouteRangeMatchProperty(..),
        mkGatewayRouteRangeMatchProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GatewayRouteRangeMatchProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayrouterangematch.html>
    GatewayRouteRangeMatchProperty {GatewayRouteRangeMatchProperty -> ()
haddock_workaround_ :: (),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayrouterangematch.html#cfn-appmesh-gatewayroute-gatewayrouterangematch-end>
                                    GatewayRouteRangeMatchProperty -> Value Integer
end :: (Value Prelude.Integer),
                                    -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayrouterangematch.html#cfn-appmesh-gatewayroute-gatewayrouterangematch-start>
                                    GatewayRouteRangeMatchProperty -> Value Integer
start :: (Value Prelude.Integer)}
  deriving stock (GatewayRouteRangeMatchProperty
-> GatewayRouteRangeMatchProperty -> Bool
(GatewayRouteRangeMatchProperty
 -> GatewayRouteRangeMatchProperty -> Bool)
-> (GatewayRouteRangeMatchProperty
    -> GatewayRouteRangeMatchProperty -> Bool)
-> Eq GatewayRouteRangeMatchProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GatewayRouteRangeMatchProperty
-> GatewayRouteRangeMatchProperty -> Bool
== :: GatewayRouteRangeMatchProperty
-> GatewayRouteRangeMatchProperty -> Bool
$c/= :: GatewayRouteRangeMatchProperty
-> GatewayRouteRangeMatchProperty -> Bool
/= :: GatewayRouteRangeMatchProperty
-> GatewayRouteRangeMatchProperty -> Bool
Prelude.Eq, Int -> GatewayRouteRangeMatchProperty -> ShowS
[GatewayRouteRangeMatchProperty] -> ShowS
GatewayRouteRangeMatchProperty -> String
(Int -> GatewayRouteRangeMatchProperty -> ShowS)
-> (GatewayRouteRangeMatchProperty -> String)
-> ([GatewayRouteRangeMatchProperty] -> ShowS)
-> Show GatewayRouteRangeMatchProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GatewayRouteRangeMatchProperty -> ShowS
showsPrec :: Int -> GatewayRouteRangeMatchProperty -> ShowS
$cshow :: GatewayRouteRangeMatchProperty -> String
show :: GatewayRouteRangeMatchProperty -> String
$cshowList :: [GatewayRouteRangeMatchProperty] -> ShowS
showList :: [GatewayRouteRangeMatchProperty] -> ShowS
Prelude.Show)
mkGatewayRouteRangeMatchProperty ::
  Value Prelude.Integer
  -> Value Prelude.Integer -> GatewayRouteRangeMatchProperty
mkGatewayRouteRangeMatchProperty :: Value Integer -> Value Integer -> GatewayRouteRangeMatchProperty
mkGatewayRouteRangeMatchProperty Value Integer
end Value Integer
start
  = GatewayRouteRangeMatchProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), end :: Value Integer
end = Value Integer
end, start :: Value Integer
start = Value Integer
start}
instance ToResourceProperties GatewayRouteRangeMatchProperty where
  toResourceProperties :: GatewayRouteRangeMatchProperty -> ResourceProperties
toResourceProperties GatewayRouteRangeMatchProperty {()
Value Integer
haddock_workaround_ :: GatewayRouteRangeMatchProperty -> ()
end :: GatewayRouteRangeMatchProperty -> Value Integer
start :: GatewayRouteRangeMatchProperty -> Value Integer
haddock_workaround_ :: ()
end :: Value Integer
start :: Value Integer
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppMesh::GatewayRoute.GatewayRouteRangeMatch",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"End" 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..= Value Integer
end, Key
"Start" 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..= Value Integer
start]}
instance JSON.ToJSON GatewayRouteRangeMatchProperty where
  toJSON :: GatewayRouteRangeMatchProperty -> Value
toJSON GatewayRouteRangeMatchProperty {()
Value Integer
haddock_workaround_ :: GatewayRouteRangeMatchProperty -> ()
end :: GatewayRouteRangeMatchProperty -> Value Integer
start :: GatewayRouteRangeMatchProperty -> Value Integer
haddock_workaround_ :: ()
end :: Value Integer
start :: Value Integer
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"End" 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..= Value Integer
end, Key
"Start" 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..= Value Integer
start]
instance Property "End" GatewayRouteRangeMatchProperty where
  type PropertyType "End" GatewayRouteRangeMatchProperty = Value Prelude.Integer
  set :: PropertyType "End" GatewayRouteRangeMatchProperty
-> GatewayRouteRangeMatchProperty -> GatewayRouteRangeMatchProperty
set PropertyType "End" GatewayRouteRangeMatchProperty
newValue GatewayRouteRangeMatchProperty {()
Value Integer
haddock_workaround_ :: GatewayRouteRangeMatchProperty -> ()
end :: GatewayRouteRangeMatchProperty -> Value Integer
start :: GatewayRouteRangeMatchProperty -> Value Integer
haddock_workaround_ :: ()
end :: Value Integer
start :: Value Integer
..}
    = GatewayRouteRangeMatchProperty {end :: Value Integer
end = PropertyType "End" GatewayRouteRangeMatchProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
start :: Value Integer
haddock_workaround_ :: ()
start :: Value Integer
..}
instance Property "Start" GatewayRouteRangeMatchProperty where
  type PropertyType "Start" GatewayRouteRangeMatchProperty = Value Prelude.Integer
  set :: PropertyType "Start" GatewayRouteRangeMatchProperty
-> GatewayRouteRangeMatchProperty -> GatewayRouteRangeMatchProperty
set PropertyType "Start" GatewayRouteRangeMatchProperty
newValue GatewayRouteRangeMatchProperty {()
Value Integer
haddock_workaround_ :: GatewayRouteRangeMatchProperty -> ()
end :: GatewayRouteRangeMatchProperty -> Value Integer
start :: GatewayRouteRangeMatchProperty -> Value Integer
haddock_workaround_ :: ()
end :: Value Integer
start :: Value Integer
..}
    = GatewayRouteRangeMatchProperty {start :: Value Integer
start = PropertyType "Start" GatewayRouteRangeMatchProperty
Value Integer
newValue, ()
Value Integer
haddock_workaround_ :: ()
end :: Value Integer
haddock_workaround_ :: ()
end :: Value Integer
..}