module Stratosphere.AppMesh.GatewayRoute.HttpGatewayRouteHeaderMatchProperty (
module Exports, HttpGatewayRouteHeaderMatchProperty(..),
mkHttpGatewayRouteHeaderMatchProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.AppMesh.GatewayRoute.GatewayRouteRangeMatchProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data
=
{HttpGatewayRouteHeaderMatchProperty -> ()
haddock_workaround_ :: (),
HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
exact :: (Prelude.Maybe (Value Prelude.Text)),
HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
prefix :: (Prelude.Maybe (Value Prelude.Text)),
HttpGatewayRouteHeaderMatchProperty
-> Maybe GatewayRouteRangeMatchProperty
range :: (Prelude.Maybe GatewayRouteRangeMatchProperty),
HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
regex :: (Prelude.Maybe (Value Prelude.Text)),
HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
suffix :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty -> Bool
(HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty -> Bool)
-> (HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty -> Bool)
-> Eq HttpGatewayRouteHeaderMatchProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty -> Bool
== :: HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty -> Bool
$c/= :: HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty -> Bool
/= :: HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty -> Bool
Prelude.Eq, Int -> HttpGatewayRouteHeaderMatchProperty -> ShowS
[HttpGatewayRouteHeaderMatchProperty] -> ShowS
HttpGatewayRouteHeaderMatchProperty -> String
(Int -> HttpGatewayRouteHeaderMatchProperty -> ShowS)
-> (HttpGatewayRouteHeaderMatchProperty -> String)
-> ([HttpGatewayRouteHeaderMatchProperty] -> ShowS)
-> Show HttpGatewayRouteHeaderMatchProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HttpGatewayRouteHeaderMatchProperty -> ShowS
showsPrec :: Int -> HttpGatewayRouteHeaderMatchProperty -> ShowS
$cshow :: HttpGatewayRouteHeaderMatchProperty -> String
show :: HttpGatewayRouteHeaderMatchProperty -> String
$cshowList :: [HttpGatewayRouteHeaderMatchProperty] -> ShowS
showList :: [HttpGatewayRouteHeaderMatchProperty] -> ShowS
Prelude.Show)
mkHttpGatewayRouteHeaderMatchProperty ::
HttpGatewayRouteHeaderMatchProperty
= HttpGatewayRouteHeaderMatchProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), exact :: Maybe (Value Text)
exact = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
prefix :: Maybe (Value Text)
prefix = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing, range :: Maybe GatewayRouteRangeMatchProperty
range = Maybe GatewayRouteRangeMatchProperty
forall a. Maybe a
Prelude.Nothing,
regex :: Maybe (Value Text)
regex = 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 HttpGatewayRouteHeaderMatchProperty where
toResourceProperties :: HttpGatewayRouteHeaderMatchProperty -> ResourceProperties
toResourceProperties HttpGatewayRouteHeaderMatchProperty {Maybe (Value Text)
Maybe GatewayRouteRangeMatchProperty
()
haddock_workaround_ :: HttpGatewayRouteHeaderMatchProperty -> ()
exact :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
prefix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
range :: HttpGatewayRouteHeaderMatchProperty
-> Maybe GatewayRouteRangeMatchProperty
regex :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
suffix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::AppMesh::GatewayRoute.HttpGatewayRouteHeaderMatch",
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
"Prefix" (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)
prefix,
Key -> GatewayRouteRangeMatchProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Range" (GatewayRouteRangeMatchProperty -> (Key, Value))
-> Maybe GatewayRouteRangeMatchProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GatewayRouteRangeMatchProperty
range,
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
"Regex" (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)
regex,
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 HttpGatewayRouteHeaderMatchProperty where
toJSON :: HttpGatewayRouteHeaderMatchProperty -> Value
toJSON HttpGatewayRouteHeaderMatchProperty {Maybe (Value Text)
Maybe GatewayRouteRangeMatchProperty
()
haddock_workaround_ :: HttpGatewayRouteHeaderMatchProperty -> ()
exact :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
prefix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
range :: HttpGatewayRouteHeaderMatchProperty
-> Maybe GatewayRouteRangeMatchProperty
regex :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
suffix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: 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
"Prefix" (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)
prefix,
Key -> GatewayRouteRangeMatchProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"Range" (GatewayRouteRangeMatchProperty -> (Key, Value))
-> Maybe GatewayRouteRangeMatchProperty -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe GatewayRouteRangeMatchProperty
range,
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
"Regex" (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)
regex,
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" HttpGatewayRouteHeaderMatchProperty where
type PropertyType "Exact" HttpGatewayRouteHeaderMatchProperty = Value Prelude.Text
set :: PropertyType "Exact" HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty
set PropertyType "Exact" HttpGatewayRouteHeaderMatchProperty
newValue HttpGatewayRouteHeaderMatchProperty {Maybe (Value Text)
Maybe GatewayRouteRangeMatchProperty
()
haddock_workaround_ :: HttpGatewayRouteHeaderMatchProperty -> ()
exact :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
prefix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
range :: HttpGatewayRouteHeaderMatchProperty
-> Maybe GatewayRouteRangeMatchProperty
regex :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
suffix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
= HttpGatewayRouteHeaderMatchProperty
{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" HttpGatewayRouteHeaderMatchProperty
Value Text
newValue, Maybe (Value Text)
Maybe GatewayRouteRangeMatchProperty
()
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: Maybe (Value Text)
suffix :: Maybe (Value Text)
haddock_workaround_ :: ()
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
instance Property "Prefix" HttpGatewayRouteHeaderMatchProperty where
type PropertyType "Prefix" HttpGatewayRouteHeaderMatchProperty = Value Prelude.Text
set :: PropertyType "Prefix" HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty
set PropertyType "Prefix" HttpGatewayRouteHeaderMatchProperty
newValue HttpGatewayRouteHeaderMatchProperty {Maybe (Value Text)
Maybe GatewayRouteRangeMatchProperty
()
haddock_workaround_ :: HttpGatewayRouteHeaderMatchProperty -> ()
exact :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
prefix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
range :: HttpGatewayRouteHeaderMatchProperty
-> Maybe GatewayRouteRangeMatchProperty
regex :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
suffix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
= HttpGatewayRouteHeaderMatchProperty
{prefix :: Maybe (Value Text)
prefix = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Prefix" HttpGatewayRouteHeaderMatchProperty
Value Text
newValue, Maybe (Value Text)
Maybe GatewayRouteRangeMatchProperty
()
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: Maybe (Value Text)
suffix :: Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
instance Property "Range" HttpGatewayRouteHeaderMatchProperty where
type PropertyType "Range" HttpGatewayRouteHeaderMatchProperty = GatewayRouteRangeMatchProperty
set :: PropertyType "Range" HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty
set PropertyType "Range" HttpGatewayRouteHeaderMatchProperty
newValue HttpGatewayRouteHeaderMatchProperty {Maybe (Value Text)
Maybe GatewayRouteRangeMatchProperty
()
haddock_workaround_ :: HttpGatewayRouteHeaderMatchProperty -> ()
exact :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
prefix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
range :: HttpGatewayRouteHeaderMatchProperty
-> Maybe GatewayRouteRangeMatchProperty
regex :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
suffix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
= HttpGatewayRouteHeaderMatchProperty
{range :: Maybe GatewayRouteRangeMatchProperty
range = GatewayRouteRangeMatchProperty
-> Maybe GatewayRouteRangeMatchProperty
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Range" HttpGatewayRouteHeaderMatchProperty
GatewayRouteRangeMatchProperty
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
regex :: Maybe (Value Text)
suffix :: Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
regex :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
instance Property "Regex" HttpGatewayRouteHeaderMatchProperty where
type PropertyType "Regex" HttpGatewayRouteHeaderMatchProperty = Value Prelude.Text
set :: PropertyType "Regex" HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty
set PropertyType "Regex" HttpGatewayRouteHeaderMatchProperty
newValue HttpGatewayRouteHeaderMatchProperty {Maybe (Value Text)
Maybe GatewayRouteRangeMatchProperty
()
haddock_workaround_ :: HttpGatewayRouteHeaderMatchProperty -> ()
exact :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
prefix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
range :: HttpGatewayRouteHeaderMatchProperty
-> Maybe GatewayRouteRangeMatchProperty
regex :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
suffix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
= HttpGatewayRouteHeaderMatchProperty
{regex :: Maybe (Value Text)
regex = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Regex" HttpGatewayRouteHeaderMatchProperty
Value Text
newValue, Maybe (Value Text)
Maybe GatewayRouteRangeMatchProperty
()
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
suffix :: Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
suffix :: Maybe (Value Text)
..}
instance Property "Suffix" HttpGatewayRouteHeaderMatchProperty where
type PropertyType "Suffix" HttpGatewayRouteHeaderMatchProperty = Value Prelude.Text
set :: PropertyType "Suffix" HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty
-> HttpGatewayRouteHeaderMatchProperty
set PropertyType "Suffix" HttpGatewayRouteHeaderMatchProperty
newValue HttpGatewayRouteHeaderMatchProperty {Maybe (Value Text)
Maybe GatewayRouteRangeMatchProperty
()
haddock_workaround_ :: HttpGatewayRouteHeaderMatchProperty -> ()
exact :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
prefix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
range :: HttpGatewayRouteHeaderMatchProperty
-> Maybe GatewayRouteRangeMatchProperty
regex :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
suffix :: HttpGatewayRouteHeaderMatchProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: Maybe (Value Text)
suffix :: Maybe (Value Text)
..}
= HttpGatewayRouteHeaderMatchProperty
{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" HttpGatewayRouteHeaderMatchProperty
Value Text
newValue, Maybe (Value Text)
Maybe GatewayRouteRangeMatchProperty
()
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
range :: Maybe GatewayRouteRangeMatchProperty
regex :: Maybe (Value Text)
..}