module Stratosphere.WAFv2.WebACL.LabelMatchStatementProperty (
        LabelMatchStatementProperty(..), mkLabelMatchStatementProperty
    ) where
import qualified Data.Aeson as JSON
import qualified Stratosphere.Prelude as Prelude
import Stratosphere.Property
import Stratosphere.ResourceProperties
import Stratosphere.Value
data LabelMatchStatementProperty
  = -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-labelmatchstatement.html>
    LabelMatchStatementProperty {LabelMatchStatementProperty -> ()
haddock_workaround_ :: (),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-labelmatchstatement.html#cfn-wafv2-webacl-labelmatchstatement-key>
                                 LabelMatchStatementProperty -> Value Text
key :: (Value Prelude.Text),
                                 -- | See: <http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-labelmatchstatement.html#cfn-wafv2-webacl-labelmatchstatement-scope>
                                 LabelMatchStatementProperty -> Value Text
scope :: (Value Prelude.Text)}
  deriving stock (LabelMatchStatementProperty -> LabelMatchStatementProperty -> Bool
(LabelMatchStatementProperty
 -> LabelMatchStatementProperty -> Bool)
-> (LabelMatchStatementProperty
    -> LabelMatchStatementProperty -> Bool)
-> Eq LabelMatchStatementProperty
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: LabelMatchStatementProperty -> LabelMatchStatementProperty -> Bool
== :: LabelMatchStatementProperty -> LabelMatchStatementProperty -> Bool
$c/= :: LabelMatchStatementProperty -> LabelMatchStatementProperty -> Bool
/= :: LabelMatchStatementProperty -> LabelMatchStatementProperty -> Bool
Prelude.Eq, Int -> LabelMatchStatementProperty -> ShowS
[LabelMatchStatementProperty] -> ShowS
LabelMatchStatementProperty -> String
(Int -> LabelMatchStatementProperty -> ShowS)
-> (LabelMatchStatementProperty -> String)
-> ([LabelMatchStatementProperty] -> ShowS)
-> Show LabelMatchStatementProperty
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> LabelMatchStatementProperty -> ShowS
showsPrec :: Int -> LabelMatchStatementProperty -> ShowS
$cshow :: LabelMatchStatementProperty -> String
show :: LabelMatchStatementProperty -> String
$cshowList :: [LabelMatchStatementProperty] -> ShowS
showList :: [LabelMatchStatementProperty] -> ShowS
Prelude.Show)
mkLabelMatchStatementProperty ::
  Value Prelude.Text
  -> Value Prelude.Text -> LabelMatchStatementProperty
mkLabelMatchStatementProperty :: Value Text -> Value Text -> LabelMatchStatementProperty
mkLabelMatchStatementProperty Value Text
key Value Text
scope
  = LabelMatchStatementProperty
      {haddock_workaround_ :: ()
haddock_workaround_ = (), key :: Value Text
key = Value Text
key, scope :: Value Text
scope = Value Text
scope}
instance ToResourceProperties LabelMatchStatementProperty where
  toResourceProperties :: LabelMatchStatementProperty -> ResourceProperties
toResourceProperties LabelMatchStatementProperty {()
Value Text
haddock_workaround_ :: LabelMatchStatementProperty -> ()
key :: LabelMatchStatementProperty -> Value Text
scope :: LabelMatchStatementProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
scope :: Value Text
..}
    = ResourceProperties
        {awsType :: Text
awsType = Text
"AWS::WAFv2::WebACL.LabelMatchStatement",
         supportsTags :: Bool
supportsTags = Bool
Prelude.False,
         properties :: Object
properties = [Key
"Key" 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
key, Key
"Scope" 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
scope]}
instance JSON.ToJSON LabelMatchStatementProperty where
  toJSON :: LabelMatchStatementProperty -> Value
toJSON LabelMatchStatementProperty {()
Value Text
haddock_workaround_ :: LabelMatchStatementProperty -> ()
key :: LabelMatchStatementProperty -> Value Text
scope :: LabelMatchStatementProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
scope :: Value Text
..}
    = [(Key, Value)] -> Value
JSON.object [Key
"Key" 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
key, Key
"Scope" 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
scope]
instance Property "Key" LabelMatchStatementProperty where
  type PropertyType "Key" LabelMatchStatementProperty = Value Prelude.Text
  set :: PropertyType "Key" LabelMatchStatementProperty
-> LabelMatchStatementProperty -> LabelMatchStatementProperty
set PropertyType "Key" LabelMatchStatementProperty
newValue LabelMatchStatementProperty {()
Value Text
haddock_workaround_ :: LabelMatchStatementProperty -> ()
key :: LabelMatchStatementProperty -> Value Text
scope :: LabelMatchStatementProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
scope :: Value Text
..}
    = LabelMatchStatementProperty {key :: Value Text
key = PropertyType "Key" LabelMatchStatementProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
scope :: Value Text
haddock_workaround_ :: ()
scope :: Value Text
..}
instance Property "Scope" LabelMatchStatementProperty where
  type PropertyType "Scope" LabelMatchStatementProperty = Value Prelude.Text
  set :: PropertyType "Scope" LabelMatchStatementProperty
-> LabelMatchStatementProperty -> LabelMatchStatementProperty
set PropertyType "Scope" LabelMatchStatementProperty
newValue LabelMatchStatementProperty {()
Value Text
haddock_workaround_ :: LabelMatchStatementProperty -> ()
key :: LabelMatchStatementProperty -> Value Text
scope :: LabelMatchStatementProperty -> Value Text
haddock_workaround_ :: ()
key :: Value Text
scope :: Value Text
..}
    = LabelMatchStatementProperty {scope :: Value Text
scope = PropertyType "Scope" LabelMatchStatementProperty
Value Text
newValue, ()
Value Text
haddock_workaround_ :: ()
key :: Value Text
haddock_workaround_ :: ()
key :: Value Text
..}