module Stratosphere.VpcLattice.Rule.HeaderMatchTypeProperty (
HeaderMatchTypeProperty(..), mkHeaderMatchTypeProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data
=
{HeaderMatchTypeProperty -> ()
haddock_workaround_ :: (),
HeaderMatchTypeProperty -> Maybe (Value Text)
contains :: (Prelude.Maybe (Value Prelude.Text)),
HeaderMatchTypeProperty -> Maybe (Value Text)
exact :: (Prelude.Maybe (Value Prelude.Text)),
HeaderMatchTypeProperty -> Maybe (Value Text)
prefix :: (Prelude.Maybe (Value Prelude.Text))}
deriving stock (HeaderMatchTypeProperty -> HeaderMatchTypeProperty -> Bool
(HeaderMatchTypeProperty -> HeaderMatchTypeProperty -> Bool)
-> (HeaderMatchTypeProperty -> HeaderMatchTypeProperty -> Bool)
-> Eq HeaderMatchTypeProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HeaderMatchTypeProperty -> HeaderMatchTypeProperty -> Bool
== :: HeaderMatchTypeProperty -> HeaderMatchTypeProperty -> Bool
$c/= :: HeaderMatchTypeProperty -> HeaderMatchTypeProperty -> Bool
/= :: HeaderMatchTypeProperty -> HeaderMatchTypeProperty -> Bool
Prelude.Eq, Int -> HeaderMatchTypeProperty -> ShowS
[HeaderMatchTypeProperty] -> ShowS
HeaderMatchTypeProperty -> String
(Int -> HeaderMatchTypeProperty -> ShowS)
-> (HeaderMatchTypeProperty -> String)
-> ([HeaderMatchTypeProperty] -> ShowS)
-> Show HeaderMatchTypeProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HeaderMatchTypeProperty -> ShowS
showsPrec :: Int -> HeaderMatchTypeProperty -> ShowS
$cshow :: HeaderMatchTypeProperty -> String
show :: HeaderMatchTypeProperty -> String
$cshowList :: [HeaderMatchTypeProperty] -> ShowS
showList :: [HeaderMatchTypeProperty] -> ShowS
Prelude.Show)
mkHeaderMatchTypeProperty :: HeaderMatchTypeProperty
= HeaderMatchTypeProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), contains :: Maybe (Value Text)
contains = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
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}
instance ToResourceProperties HeaderMatchTypeProperty where
toResourceProperties :: HeaderMatchTypeProperty -> ResourceProperties
toResourceProperties HeaderMatchTypeProperty {Maybe (Value Text)
()
haddock_workaround_ :: HeaderMatchTypeProperty -> ()
contains :: HeaderMatchTypeProperty -> Maybe (Value Text)
exact :: HeaderMatchTypeProperty -> Maybe (Value Text)
prefix :: HeaderMatchTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
contains :: Maybe (Value Text)
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::VpcLattice::Rule.HeaderMatchType",
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
"Contains" (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)
contains,
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])}
instance JSON.ToJSON HeaderMatchTypeProperty where
toJSON :: HeaderMatchTypeProperty -> Value
toJSON HeaderMatchTypeProperty {Maybe (Value Text)
()
haddock_workaround_ :: HeaderMatchTypeProperty -> ()
contains :: HeaderMatchTypeProperty -> Maybe (Value Text)
exact :: HeaderMatchTypeProperty -> Maybe (Value Text)
prefix :: HeaderMatchTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
contains :: Maybe (Value Text)
exact :: Maybe (Value Text)
prefix :: 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
"Contains" (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)
contains,
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]))
instance Property "Contains" HeaderMatchTypeProperty where
type PropertyType "Contains" HeaderMatchTypeProperty = Value Prelude.Text
set :: PropertyType "Contains" HeaderMatchTypeProperty
-> HeaderMatchTypeProperty -> HeaderMatchTypeProperty
set PropertyType "Contains" HeaderMatchTypeProperty
newValue HeaderMatchTypeProperty {Maybe (Value Text)
()
haddock_workaround_ :: HeaderMatchTypeProperty -> ()
contains :: HeaderMatchTypeProperty -> Maybe (Value Text)
exact :: HeaderMatchTypeProperty -> Maybe (Value Text)
prefix :: HeaderMatchTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
contains :: Maybe (Value Text)
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
..}
= HeaderMatchTypeProperty {contains :: Maybe (Value Text)
contains = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "Contains" HeaderMatchTypeProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
haddock_workaround_ :: ()
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
..}
instance Property "Exact" HeaderMatchTypeProperty where
type PropertyType "Exact" HeaderMatchTypeProperty = Value Prelude.Text
set :: PropertyType "Exact" HeaderMatchTypeProperty
-> HeaderMatchTypeProperty -> HeaderMatchTypeProperty
set PropertyType "Exact" HeaderMatchTypeProperty
newValue HeaderMatchTypeProperty {Maybe (Value Text)
()
haddock_workaround_ :: HeaderMatchTypeProperty -> ()
contains :: HeaderMatchTypeProperty -> Maybe (Value Text)
exact :: HeaderMatchTypeProperty -> Maybe (Value Text)
prefix :: HeaderMatchTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
contains :: Maybe (Value Text)
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
..}
= HeaderMatchTypeProperty {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" HeaderMatchTypeProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
contains :: Maybe (Value Text)
prefix :: Maybe (Value Text)
haddock_workaround_ :: ()
contains :: Maybe (Value Text)
prefix :: Maybe (Value Text)
..}
instance Property "Prefix" HeaderMatchTypeProperty where
type PropertyType "Prefix" HeaderMatchTypeProperty = Value Prelude.Text
set :: PropertyType "Prefix" HeaderMatchTypeProperty
-> HeaderMatchTypeProperty -> HeaderMatchTypeProperty
set PropertyType "Prefix" HeaderMatchTypeProperty
newValue HeaderMatchTypeProperty {Maybe (Value Text)
()
haddock_workaround_ :: HeaderMatchTypeProperty -> ()
contains :: HeaderMatchTypeProperty -> Maybe (Value Text)
exact :: HeaderMatchTypeProperty -> Maybe (Value Text)
prefix :: HeaderMatchTypeProperty -> Maybe (Value Text)
haddock_workaround_ :: ()
contains :: Maybe (Value Text)
exact :: Maybe (Value Text)
prefix :: Maybe (Value Text)
..}
= HeaderMatchTypeProperty {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" HeaderMatchTypeProperty
Value Text
newValue, Maybe (Value Text)
()
haddock_workaround_ :: ()
contains :: Maybe (Value Text)
exact :: Maybe (Value Text)
haddock_workaround_ :: ()
contains :: Maybe (Value Text)
exact :: Maybe (Value Text)
..}