module Stratosphere.VpcLattice.Rule.HeaderMatchProperty (
module Exports, HeaderMatchProperty(..), mkHeaderMatchProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.VpcLattice.Rule.HeaderMatchTypeProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data
=
{HeaderMatchProperty -> ()
haddock_workaround_ :: (),
HeaderMatchProperty -> Maybe (Value Bool)
caseSensitive :: (Prelude.Maybe (Value Prelude.Bool)),
HeaderMatchProperty -> HeaderMatchTypeProperty
match :: HeaderMatchTypeProperty,
HeaderMatchProperty -> Value Text
name :: (Value Prelude.Text)}
deriving stock (HeaderMatchProperty -> HeaderMatchProperty -> Bool
(HeaderMatchProperty -> HeaderMatchProperty -> Bool)
-> (HeaderMatchProperty -> HeaderMatchProperty -> Bool)
-> Eq HeaderMatchProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: HeaderMatchProperty -> HeaderMatchProperty -> Bool
== :: HeaderMatchProperty -> HeaderMatchProperty -> Bool
$c/= :: HeaderMatchProperty -> HeaderMatchProperty -> Bool
/= :: HeaderMatchProperty -> HeaderMatchProperty -> Bool
Prelude.Eq, Int -> HeaderMatchProperty -> ShowS
[HeaderMatchProperty] -> ShowS
HeaderMatchProperty -> String
(Int -> HeaderMatchProperty -> ShowS)
-> (HeaderMatchProperty -> String)
-> ([HeaderMatchProperty] -> ShowS)
-> Show HeaderMatchProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> HeaderMatchProperty -> ShowS
showsPrec :: Int -> HeaderMatchProperty -> ShowS
$cshow :: HeaderMatchProperty -> String
show :: HeaderMatchProperty -> String
$cshowList :: [HeaderMatchProperty] -> ShowS
showList :: [HeaderMatchProperty] -> ShowS
Prelude.Show)
mkHeaderMatchProperty ::
HeaderMatchTypeProperty
-> Value Prelude.Text -> HeaderMatchProperty
HeaderMatchTypeProperty
match Value Text
name
= HeaderMatchProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), match :: HeaderMatchTypeProperty
match = HeaderMatchTypeProperty
match, name :: Value Text
name = Value Text
name,
caseSensitive :: Maybe (Value Bool)
caseSensitive = Maybe (Value Bool)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties HeaderMatchProperty where
toResourceProperties :: HeaderMatchProperty -> ResourceProperties
toResourceProperties HeaderMatchProperty {Maybe (Value Bool)
()
Value Text
HeaderMatchTypeProperty
haddock_workaround_ :: HeaderMatchProperty -> ()
caseSensitive :: HeaderMatchProperty -> Maybe (Value Bool)
match :: HeaderMatchProperty -> HeaderMatchTypeProperty
name :: HeaderMatchProperty -> Value Text
haddock_workaround_ :: ()
caseSensitive :: Maybe (Value Bool)
match :: HeaderMatchTypeProperty
name :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::VpcLattice::Rule.HeaderMatch",
supportsTags :: Bool
supportsTags = Bool
Prelude.False,
properties :: Object
properties = [Item Object] -> Object
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Match" Key -> HeaderMatchTypeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= HeaderMatchTypeProperty
match, Key
"Name" 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
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CaseSensitive" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
caseSensitive]))}
instance JSON.ToJSON HeaderMatchProperty where
toJSON :: HeaderMatchProperty -> Value
toJSON HeaderMatchProperty {Maybe (Value Bool)
()
Value Text
HeaderMatchTypeProperty
haddock_workaround_ :: HeaderMatchProperty -> ()
caseSensitive :: HeaderMatchProperty -> Maybe (Value Bool)
match :: HeaderMatchProperty -> HeaderMatchTypeProperty
name :: HeaderMatchProperty -> Value Text
haddock_workaround_ :: ()
caseSensitive :: Maybe (Value Bool)
match :: HeaderMatchTypeProperty
name :: Value Text
..}
= [(Key, Value)] -> Value
JSON.object
([Item [(Key, Value)]] -> [(Key, Value)]
forall l. IsList l => [Item l] -> l
Prelude.fromList
([(Key, Value)] -> [(Key, Value)] -> [(Key, Value)]
forall a. Semigroup a => a -> a -> a
(Prelude.<>)
[Key
"Match" Key -> HeaderMatchTypeProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= HeaderMatchTypeProperty
match, Key
"Name" 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
name]
([Maybe (Key, Value)] -> [(Key, Value)]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[Key -> Value Bool -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
(JSON..=) Key
"CaseSensitive" (Value Bool -> (Key, Value))
-> Maybe (Value Bool) -> Maybe (Key, Value)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (Value Bool)
caseSensitive])))
instance Property "CaseSensitive" HeaderMatchProperty where
type PropertyType "CaseSensitive" HeaderMatchProperty = Value Prelude.Bool
set :: PropertyType "CaseSensitive" HeaderMatchProperty
-> HeaderMatchProperty -> HeaderMatchProperty
set PropertyType "CaseSensitive" HeaderMatchProperty
newValue HeaderMatchProperty {Maybe (Value Bool)
()
Value Text
HeaderMatchTypeProperty
haddock_workaround_ :: HeaderMatchProperty -> ()
caseSensitive :: HeaderMatchProperty -> Maybe (Value Bool)
match :: HeaderMatchProperty -> HeaderMatchTypeProperty
name :: HeaderMatchProperty -> Value Text
haddock_workaround_ :: ()
caseSensitive :: Maybe (Value Bool)
match :: HeaderMatchTypeProperty
name :: Value Text
..}
= HeaderMatchProperty {caseSensitive :: Maybe (Value Bool)
caseSensitive = Value Bool -> Maybe (Value Bool)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "CaseSensitive" HeaderMatchProperty
Value Bool
newValue, ()
Value Text
HeaderMatchTypeProperty
haddock_workaround_ :: ()
match :: HeaderMatchTypeProperty
name :: Value Text
haddock_workaround_ :: ()
match :: HeaderMatchTypeProperty
name :: Value Text
..}
instance Property "Match" HeaderMatchProperty where
type PropertyType "Match" HeaderMatchProperty = HeaderMatchTypeProperty
set :: PropertyType "Match" HeaderMatchProperty
-> HeaderMatchProperty -> HeaderMatchProperty
set PropertyType "Match" HeaderMatchProperty
newValue HeaderMatchProperty {Maybe (Value Bool)
()
Value Text
HeaderMatchTypeProperty
haddock_workaround_ :: HeaderMatchProperty -> ()
caseSensitive :: HeaderMatchProperty -> Maybe (Value Bool)
match :: HeaderMatchProperty -> HeaderMatchTypeProperty
name :: HeaderMatchProperty -> Value Text
haddock_workaround_ :: ()
caseSensitive :: Maybe (Value Bool)
match :: HeaderMatchTypeProperty
name :: Value Text
..}
= HeaderMatchProperty {match :: HeaderMatchTypeProperty
match = PropertyType "Match" HeaderMatchProperty
HeaderMatchTypeProperty
newValue, Maybe (Value Bool)
()
Value Text
haddock_workaround_ :: ()
caseSensitive :: Maybe (Value Bool)
name :: Value Text
haddock_workaround_ :: ()
caseSensitive :: Maybe (Value Bool)
name :: Value Text
..}
instance Property "Name" HeaderMatchProperty where
type PropertyType "Name" HeaderMatchProperty = Value Prelude.Text
set :: PropertyType "Name" HeaderMatchProperty
-> HeaderMatchProperty -> HeaderMatchProperty
set PropertyType "Name" HeaderMatchProperty
newValue HeaderMatchProperty {Maybe (Value Bool)
()
Value Text
HeaderMatchTypeProperty
haddock_workaround_ :: HeaderMatchProperty -> ()
caseSensitive :: HeaderMatchProperty -> Maybe (Value Bool)
match :: HeaderMatchProperty -> HeaderMatchTypeProperty
name :: HeaderMatchProperty -> Value Text
haddock_workaround_ :: ()
caseSensitive :: Maybe (Value Bool)
match :: HeaderMatchTypeProperty
name :: Value Text
..}
= HeaderMatchProperty {name :: Value Text
name = PropertyType "Name" HeaderMatchProperty
Value Text
newValue, Maybe (Value Bool)
()
HeaderMatchTypeProperty
haddock_workaround_ :: ()
caseSensitive :: Maybe (Value Bool)
match :: HeaderMatchTypeProperty
haddock_workaround_ :: ()
caseSensitive :: Maybe (Value Bool)
match :: HeaderMatchTypeProperty
..}