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