module Stratosphere.AppMesh.GatewayRoute.GatewayRouteHostnameMatchProperty (
        GatewayRouteHostnameMatchProperty(..),
        mkGatewayRouteHostnameMatchProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data GatewayRouteHostnameMatchProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutehostnamematch.html>
    GatewayRouteHostnameMatchProperty {GatewayRouteHostnameMatchProperty -> ()
haddock_workaround_ :: (),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutehostnamematch.html#cfn-appmesh-gatewayroute-gatewayroutehostnamematch-exact>
                                       GatewayRouteHostnameMatchProperty -> Maybe (Value Text)
exact :: (Prelude.Maybe (Value Prelude.Text)),
                                       -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appmesh-gatewayroute-gatewayroutehostnamematch.html#cfn-appmesh-gatewayroute-gatewayroutehostnamematch-suffix>
                                       GatewayRouteHostnameMatchProperty -> Maybe (Value Text)
suffix :: (Prelude.Maybe (Value Prelude.Text))}
  deriving stock (GatewayRouteHostnameMatchProperty
-> GatewayRouteHostnameMatchProperty -> Bool
(GatewayRouteHostnameMatchProperty
 -> GatewayRouteHostnameMatchProperty -> Bool)
-> (GatewayRouteHostnameMatchProperty
    -> GatewayRouteHostnameMatchProperty -> Bool)
-> Eq GatewayRouteHostnameMatchProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: GatewayRouteHostnameMatchProperty
-> GatewayRouteHostnameMatchProperty -> Bool
== :: GatewayRouteHostnameMatchProperty
-> GatewayRouteHostnameMatchProperty -> Bool
$c/= :: GatewayRouteHostnameMatchProperty
-> GatewayRouteHostnameMatchProperty -> Bool
/= :: GatewayRouteHostnameMatchProperty
-> GatewayRouteHostnameMatchProperty -> Bool
Prelude.Eq, Int -> GatewayRouteHostnameMatchProperty -> ShowS
[GatewayRouteHostnameMatchProperty] -> ShowS
GatewayRouteHostnameMatchProperty -> String
(Int -> GatewayRouteHostnameMatchProperty -> ShowS)
-> (GatewayRouteHostnameMatchProperty -> String)
-> ([GatewayRouteHostnameMatchProperty] -> ShowS)
-> Show GatewayRouteHostnameMatchProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> GatewayRouteHostnameMatchProperty -> ShowS
showsPrec :: Int -> GatewayRouteHostnameMatchProperty -> ShowS
$cshow :: GatewayRouteHostnameMatchProperty -> String
show :: GatewayRouteHostnameMatchProperty -> String
$cshowList :: [GatewayRouteHostnameMatchProperty] -> ShowS
showList :: [GatewayRouteHostnameMatchProperty] -> ShowS
Prelude.Show)
mkGatewayRouteHostnameMatchProperty ::
  GatewayRouteHostnameMatchProperty
mkGatewayRouteHostnameMatchProperty :: GatewayRouteHostnameMatchProperty
mkGatewayRouteHostnameMatchProperty
  = GatewayRouteHostnameMatchProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), exact :: Maybe (Value Text)
exact = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
       suffix :: Maybe (Value Text)
suffix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties GatewayRouteHostnameMatchProperty where
  toResourceProperties :: GatewayRouteHostnameMatchProperty -> ResourceProperties
toResourceProperties GatewayRouteHostnameMatchProperty {Maybe (Value Text)
()
haddock_workaround_ :: GatewayRouteHostnameMatchProperty -> ()
exact :: GatewayRouteHostnameMatchProperty -> Maybe (Value Text)
suffix :: GatewayRouteHostnameMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::AppMesh::GatewayRoute.GatewayRouteHostnameMatch",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
                        ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
                           [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
"Exact" (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)
exact,
                            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
"Suffix" (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)
suffix])}
instance JSON.ToJSON GatewayRouteHostnameMatchProperty where
  toJSON :: GatewayRouteHostnameMatchProperty -> Value
toJSON GatewayRouteHostnameMatchProperty {Maybe (Value Text)
()
haddock_workaround_ :: GatewayRouteHostnameMatchProperty -> ()
exact :: GatewayRouteHostnameMatchProperty -> Maybe (Value Text)
suffix :: GatewayRouteHostnameMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
    = [(Key, Value)] -> Value
JSON.object
        ([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
           ([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
              [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
"Exact" (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)
exact,
               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
"Suffix" (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)
suffix]))
instance Property "Exact" GatewayRouteHostnameMatchProperty where
  type PropertyType "Exact" GatewayRouteHostnameMatchProperty = Value Prelude.Text
  set :: PropertyType "Exact" GatewayRouteHostnameMatchProperty
-> GatewayRouteHostnameMatchProperty
-> GatewayRouteHostnameMatchProperty
set PropertyType "Exact" GatewayRouteHostnameMatchProperty
newValue GatewayRouteHostnameMatchProperty {Maybe (Value Text)
()
haddock_workaround_ :: GatewayRouteHostnameMatchProperty -> ()
exact :: GatewayRouteHostnameMatchProperty -> Maybe (Value Text)
suffix :: GatewayRouteHostnameMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
    = GatewayRouteHostnameMatchProperty
        {exact :: Maybe (Value Text)
exact = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Exact" GatewayRouteHostnameMatchProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
suffix :: Maybe (Value Text)
haddock_workaround_ :: ()
suffix :: Maybe (Value Text)
..}
instance Property "Suffix" GatewayRouteHostnameMatchProperty where
  type PropertyType "Suffix" GatewayRouteHostnameMatchProperty = Value Prelude.Text
  set :: PropertyType "Suffix" GatewayRouteHostnameMatchProperty
-> GatewayRouteHostnameMatchProperty
-> GatewayRouteHostnameMatchProperty
set PropertyType "Suffix" GatewayRouteHostnameMatchProperty
newValue GatewayRouteHostnameMatchProperty {Maybe (Value Text)
()
haddock_workaround_ :: GatewayRouteHostnameMatchProperty -> ()
exact :: GatewayRouteHostnameMatchProperty -> Maybe (Value Text)
suffix :: GatewayRouteHostnameMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
    = GatewayRouteHostnameMatchProperty
        {suffix :: Maybe (Value Text)
suffix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Suffix" GatewayRouteHostnameMatchProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
..}