module Stratosphere.WAF.ByteMatchSet.ByteMatchTupleProperty (
module Exports, ByteMatchTupleProperty(..),
mkByteMatchTupleProperty
) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import {-# SOURCE #-} Stratosphere.WAF.ByteMatchSet.FieldToMatchProperty as Exports
import Stratosphere.ResourceProperties
import Stratosphere.Value
data ByteMatchTupleProperty
=
ByteMatchTupleProperty {ByteMatchTupleProperty -> ()
haddock_workaround_ :: (),
ByteMatchTupleProperty -> FieldToMatchProperty
fieldToMatch :: FieldToMatchProperty,
ByteMatchTupleProperty -> Value Text
positionalConstraint :: (Value Prelude.Text),
ByteMatchTupleProperty -> Maybe (Value Text)
targetString :: (Prelude.Maybe (Value Prelude.Text)),
ByteMatchTupleProperty -> Maybe (Value Text)
targetStringBase64 :: (Prelude.Maybe (Value Prelude.Text)),
ByteMatchTupleProperty -> Value Text
textTransformation :: (Value Prelude.Text)}
deriving stock (ByteMatchTupleProperty -> ByteMatchTupleProperty -> Bool
(ByteMatchTupleProperty -> ByteMatchTupleProperty -> Bool)
-> (ByteMatchTupleProperty -> ByteMatchTupleProperty -> Bool)
-> Eq ByteMatchTupleProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ByteMatchTupleProperty -> ByteMatchTupleProperty -> Bool
== :: ByteMatchTupleProperty -> ByteMatchTupleProperty -> Bool
$c/= :: ByteMatchTupleProperty -> ByteMatchTupleProperty -> Bool
/= :: ByteMatchTupleProperty -> ByteMatchTupleProperty -> Bool
Prelude.Eq, Int -> ByteMatchTupleProperty -> ShowS
[ByteMatchTupleProperty] -> ShowS
ByteMatchTupleProperty -> String
(Int -> ByteMatchTupleProperty -> ShowS)
-> (ByteMatchTupleProperty -> String)
-> ([ByteMatchTupleProperty] -> ShowS)
-> Show ByteMatchTupleProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> ByteMatchTupleProperty -> ShowS
showsPrec :: Int -> ByteMatchTupleProperty -> ShowS
$cshow :: ByteMatchTupleProperty -> String
show :: ByteMatchTupleProperty -> String
$cshowList :: [ByteMatchTupleProperty] -> ShowS
showList :: [ByteMatchTupleProperty] -> ShowS
Prelude.Show)
mkByteMatchTupleProperty ::
FieldToMatchProperty
-> Value Prelude.Text
-> Value Prelude.Text -> ByteMatchTupleProperty
mkByteMatchTupleProperty :: FieldToMatchProperty
-> Value Text -> Value Text -> ByteMatchTupleProperty
mkByteMatchTupleProperty
FieldToMatchProperty
fieldToMatch
Value Text
positionalConstraint
Value Text
textTransformation
= ByteMatchTupleProperty
{haddock_workaround_ :: ()
haddock_workaround_ = (), fieldToMatch :: FieldToMatchProperty
fieldToMatch = FieldToMatchProperty
fieldToMatch,
positionalConstraint :: Value Text
positionalConstraint = Value Text
positionalConstraint,
textTransformation :: Value Text
textTransformation = Value Text
textTransformation,
targetString :: Maybe (Value Text)
targetString = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing,
targetStringBase64 :: Maybe (Value Text)
targetStringBase64 = Maybe (Value Text)
forall a. Maybe a
Prelude.Nothing}
instance ToResourceProperties ByteMatchTupleProperty where
toResourceProperties :: ByteMatchTupleProperty -> ResourceProperties
toResourceProperties ByteMatchTupleProperty {Maybe (Value Text)
()
Value Text
FieldToMatchProperty
haddock_workaround_ :: ByteMatchTupleProperty -> ()
fieldToMatch :: ByteMatchTupleProperty -> FieldToMatchProperty
positionalConstraint :: ByteMatchTupleProperty -> Value Text
targetString :: ByteMatchTupleProperty -> Maybe (Value Text)
targetStringBase64 :: ByteMatchTupleProperty -> Maybe (Value Text)
textTransformation :: ByteMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
textTransformation :: Value Text
..}
= ResourceProperties
{awsType :: Text
awsType = Text
"AWS::WAF::ByteMatchSet.ByteMatchTuple",
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
"FieldToMatch" Key -> FieldToMatchProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FieldToMatchProperty
fieldToMatch,
Key
"PositionalConstraint" 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
positionalConstraint,
Key
"TextTransformation" 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
textTransformation]
([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
"TargetString" (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)
targetString,
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
"TargetStringBase64" (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)
targetStringBase64]))}
instance JSON.ToJSON ByteMatchTupleProperty where
toJSON :: ByteMatchTupleProperty -> Value
toJSON ByteMatchTupleProperty {Maybe (Value Text)
()
Value Text
FieldToMatchProperty
haddock_workaround_ :: ByteMatchTupleProperty -> ()
fieldToMatch :: ByteMatchTupleProperty -> FieldToMatchProperty
positionalConstraint :: ByteMatchTupleProperty -> Value Text
targetString :: ByteMatchTupleProperty -> Maybe (Value Text)
targetStringBase64 :: ByteMatchTupleProperty -> Maybe (Value Text)
textTransformation :: ByteMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
textTransformation :: 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
"FieldToMatch" Key -> FieldToMatchProperty -> (Key, Value)
forall v. ToJSON v => Key -> v -> (Key, Value)
forall e kv v. (KeyValue e kv, ToJSON v) => Key -> v -> kv
JSON..= FieldToMatchProperty
fieldToMatch,
Key
"PositionalConstraint" 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
positionalConstraint,
Key
"TextTransformation" 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
textTransformation]
([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
"TargetString" (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)
targetString,
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
"TargetStringBase64" (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)
targetStringBase64])))
instance Property "FieldToMatch" ByteMatchTupleProperty where
type PropertyType "FieldToMatch" ByteMatchTupleProperty = FieldToMatchProperty
set :: PropertyType "FieldToMatch" ByteMatchTupleProperty
-> ByteMatchTupleProperty -> ByteMatchTupleProperty
set PropertyType "FieldToMatch" ByteMatchTupleProperty
newValue ByteMatchTupleProperty {Maybe (Value Text)
()
Value Text
FieldToMatchProperty
haddock_workaround_ :: ByteMatchTupleProperty -> ()
fieldToMatch :: ByteMatchTupleProperty -> FieldToMatchProperty
positionalConstraint :: ByteMatchTupleProperty -> Value Text
targetString :: ByteMatchTupleProperty -> Maybe (Value Text)
targetStringBase64 :: ByteMatchTupleProperty -> Maybe (Value Text)
textTransformation :: ByteMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
textTransformation :: Value Text
..}
= ByteMatchTupleProperty {fieldToMatch :: FieldToMatchProperty
fieldToMatch = PropertyType "FieldToMatch" ByteMatchTupleProperty
FieldToMatchProperty
newValue, Maybe (Value Text)
()
Value Text
haddock_workaround_ :: ()
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
textTransformation :: Value Text
haddock_workaround_ :: ()
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
textTransformation :: Value Text
..}
instance Property "PositionalConstraint" ByteMatchTupleProperty where
type PropertyType "PositionalConstraint" ByteMatchTupleProperty = Value Prelude.Text
set :: PropertyType "PositionalConstraint" ByteMatchTupleProperty
-> ByteMatchTupleProperty -> ByteMatchTupleProperty
set PropertyType "PositionalConstraint" ByteMatchTupleProperty
newValue ByteMatchTupleProperty {Maybe (Value Text)
()
Value Text
FieldToMatchProperty
haddock_workaround_ :: ByteMatchTupleProperty -> ()
fieldToMatch :: ByteMatchTupleProperty -> FieldToMatchProperty
positionalConstraint :: ByteMatchTupleProperty -> Value Text
targetString :: ByteMatchTupleProperty -> Maybe (Value Text)
targetStringBase64 :: ByteMatchTupleProperty -> Maybe (Value Text)
textTransformation :: ByteMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
textTransformation :: Value Text
..}
= ByteMatchTupleProperty {positionalConstraint :: Value Text
positionalConstraint = PropertyType "PositionalConstraint" ByteMatchTupleProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
FieldToMatchProperty
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
textTransformation :: Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
textTransformation :: Value Text
..}
instance Property "TargetString" ByteMatchTupleProperty where
type PropertyType "TargetString" ByteMatchTupleProperty = Value Prelude.Text
set :: PropertyType "TargetString" ByteMatchTupleProperty
-> ByteMatchTupleProperty -> ByteMatchTupleProperty
set PropertyType "TargetString" ByteMatchTupleProperty
newValue ByteMatchTupleProperty {Maybe (Value Text)
()
Value Text
FieldToMatchProperty
haddock_workaround_ :: ByteMatchTupleProperty -> ()
fieldToMatch :: ByteMatchTupleProperty -> FieldToMatchProperty
positionalConstraint :: ByteMatchTupleProperty -> Value Text
targetString :: ByteMatchTupleProperty -> Maybe (Value Text)
targetStringBase64 :: ByteMatchTupleProperty -> Maybe (Value Text)
textTransformation :: ByteMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
textTransformation :: Value Text
..}
= ByteMatchTupleProperty {targetString :: Maybe (Value Text)
targetString = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TargetString" ByteMatchTupleProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
FieldToMatchProperty
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetStringBase64 :: Maybe (Value Text)
textTransformation :: Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetStringBase64 :: Maybe (Value Text)
textTransformation :: Value Text
..}
instance Property "TargetStringBase64" ByteMatchTupleProperty where
type PropertyType "TargetStringBase64" ByteMatchTupleProperty = Value Prelude.Text
set :: PropertyType "TargetStringBase64" ByteMatchTupleProperty
-> ByteMatchTupleProperty -> ByteMatchTupleProperty
set PropertyType "TargetStringBase64" ByteMatchTupleProperty
newValue ByteMatchTupleProperty {Maybe (Value Text)
()
Value Text
FieldToMatchProperty
haddock_workaround_ :: ByteMatchTupleProperty -> ()
fieldToMatch :: ByteMatchTupleProperty -> FieldToMatchProperty
positionalConstraint :: ByteMatchTupleProperty -> Value Text
targetString :: ByteMatchTupleProperty -> Maybe (Value Text)
targetStringBase64 :: ByteMatchTupleProperty -> Maybe (Value Text)
textTransformation :: ByteMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
textTransformation :: Value Text
..}
= ByteMatchTupleProperty
{targetStringBase64 :: Maybe (Value Text)
targetStringBase64 = Value Text -> Maybe (Value Text)
forall a. a -> Maybe a
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure PropertyType "TargetStringBase64" ByteMatchTupleProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
FieldToMatchProperty
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
textTransformation :: Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
textTransformation :: Value Text
..}
instance Property "TextTransformation" ByteMatchTupleProperty where
type PropertyType "TextTransformation" ByteMatchTupleProperty = Value Prelude.Text
set :: PropertyType "TextTransformation" ByteMatchTupleProperty
-> ByteMatchTupleProperty -> ByteMatchTupleProperty
set PropertyType "TextTransformation" ByteMatchTupleProperty
newValue ByteMatchTupleProperty {Maybe (Value Text)
()
Value Text
FieldToMatchProperty
haddock_workaround_ :: ByteMatchTupleProperty -> ()
fieldToMatch :: ByteMatchTupleProperty -> FieldToMatchProperty
positionalConstraint :: ByteMatchTupleProperty -> Value Text
targetString :: ByteMatchTupleProperty -> Maybe (Value Text)
targetStringBase64 :: ByteMatchTupleProperty -> Maybe (Value Text)
textTransformation :: ByteMatchTupleProperty -> Value Text
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
textTransformation :: Value Text
..}
= ByteMatchTupleProperty {textTransformation :: Value Text
textTransformation = PropertyType "TextTransformation" ByteMatchTupleProperty
Value Text
newValue, Maybe (Value Text)
()
Value Text
FieldToMatchProperty
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
haddock_workaround_ :: ()
fieldToMatch :: FieldToMatchProperty
positionalConstraint :: Value Text
targetString :: Maybe (Value Text)
targetStringBase64 :: Maybe (Value Text)
..}